Are you using a real JVM/JRE or gcj? I don't think anyone has tried gcj, although it would be great to get it working...
Specifically it appears that you don't have "javax.usb.UsbDevice" in your CLASSPATH; that is part of the API pacakge. I'm not sure how CLASSPATHs work with gcj, I honestly have very little experience using it, although I'd like to try it out... On Mon, 12 Sep 2005, siva balan wrote: >hi all. am new bie to this list.. > i have to devlop some USB API based application in linux platform.. for USB > devices(mobile,Camera,memory stick,mouse) for uploading and downloading files > thru USB port.. > first i start with example file MouseDriver.java.. i am facing some error.. > when i xecute it.. >then i devlop my own simple program.. still i am facing the same unexpected >exception error: > >_________________________________________________________________________ >[EMAIL PROTECTED] src]# gcj -C MouseDriver.java >[EMAIL PROTECTED] src]# java MouseDriver > >Exception in thread "main" java.lang.InternalError: unexpected exception >during linking: java.lang.Cl >assNotFoundException: javax.usb.UsbDevice > at 0x40268e17: java.lang.Throwable.Throwable(java.lang.String) > (/usr/lib/./libgcj.so.3) > at 0x4025bc8e: java.lang.Error.Error(java.lang.String) > (/usr/lib/./libgcj.so.3) > at 0x402691fa: > java.lang.VirtualMachineError.VirtualMachineError(java.lang.String) > (/usr/lib/./lib >gcj.so.3) > at 0x4025d62e: java.lang.InternalError.InternalError(java.lang.String) > (/usr/lib/./libgcj.so.3) > at 0x4025ad82: java.lang.ClassLoader.resolveClass0(java.lang.Class) > (/usr/lib/./libgcj.so.3) > at 0x4024646c: java.lang.Class.initializeClass() (/usr/lib/./libgcj.so.3) > at 0x40244d04: java.lang.Class.forName(java.lang.String, boolean, > java.lang.ClassLoader) (/usr/lib >/./libgcj.so.3) > at 0x40244d9f: java.lang.Class.forName(java.lang.String) > (/usr/lib/./libgcj.so.3) > at 0x402ad01d: gnu.gcj.runtime.FirstThread.run() (/usr/lib/./libgcj.so.3) > at 0x4024fc4c: _Jv_ThreadRun(java.lang.Thread) (/usr/lib/./libgcj.so.3) > at 0x4021c8ac: _Jv_RunMain(java.lang.Class, byte const, int, byte const, > boolean) (/usr/lib/./libg >cj.so.3) > at 0x08048910: ?? (??:0) > at 0x42015574: __libc_start_main (/lib/tls/libc.so.6) > at 0x080486c1: ?? (??:0) >__________________________________________________________________________ > >these above lines are my error.. .. >i am using redhat 9 , kernel 2.4 . GCC version is 3.2.. >kindly anybody tell me .. what i shud do for execution.. > > >thanking u in anticipation > >regards > >__________________________________________________ >Do You Yahoo!? >Tired of spam? Yahoo! Mail has the best spam protection around >http://mail.yahoo.com -- Dan Streetman [EMAIL PROTECTED] --------------------- 186,272 miles per second: It isn't just a good idea, it's the law! ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ javax-usb-devel mailing list javax-usb-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/javax-usb-devel