I don't think you can't use a jar file Class-path to load anything other than other external jar files. http://java.sun.com/docs/books/tutorial/deployment/jar/downman.html
I assume you've put the properties file in the top-level directory of your jar file right? javax.usb is using UsbHostManager.class.getClassLoader().getResourceAsStream to load the properties file, so it should find it, as far as I know. In any case, with the default set of permissions for applets, I don't think you will be able to use javax.usb since you need to load a native library for javax.usb and the default applet permissions don't allow that, as far as I know. You may need to add debugging into your copy of javax.usb to print out the classpath, show more detailed error messages, etc. to try to debug. On Thu, Aug 7, 2008 at 4:06 AM, Marion Decrouez <[EMAIL PROTECTED]> wrote: > Hi, > I still have the same problem with my java applet. The applet works in > Eclipse with the appletviewer but when I test it in a html page the > java console tells "Properties file javax.usb.properties not found". > However this file is in the jar that contains my applet and I've > changed the META-INF/MANIFEST.MF adding "Class-Path: > javax.usb.properties". > Is there anything wrong? > > Here is my html code: > <html> > <body> > <applet code="view.Plateau" width=800 height=800 border=1 > archive="majook.jar, jsr80-1.0.1.jar, jsr80_linux-1.0.1.jar, > jsr80_ri-1.0.1.jar, xstream-1.3.1.jar, geronimo-interop.jar"> > </applet> > </body> > </html> > > majook.jar is the jar that contains my applet and the properties file. > > Thanks! > > > > Quoting Dan Streetman <[EMAIL PROTECTED]>: > >> I'm not familiar with jnlp but others on the list might be. >> >> On Tue, Aug 5, 2008 at 6:03 AM, Marion Decrouez >> <[EMAIL PROTECTED]> wrote: >>> Thanks for the answers >>> I've an other question : I've put my .jar which contains the >>> javax.usb.properties in a jnlp page (resources) but it seems that it's >>> not found again. Is there anything else to do? >>> >>> Thanks >>> >>> Marion >>> >>> >>> Quoting Marion Decrouez <[EMAIL PROTECTED]>: >>> >>>> Hi, >>>> I've made a java applet for my usb device. It works with the >>>> appletviewer of eclipse but it doesn't work if I test it in a html >>>> page : the java console says "properties file javax.usb.properties not >>>> found". This file is in my source project file. >>>> Does anyone have an idea? >>>> >>>> Thanks! >>>> >>>> Marion >>>> >>>> >>>> ------------------------------------------------------------------------- >>>> This SF.Net email is sponsored by the Moblin Your Move Developer's >>>> challenge >>>> Build the coolest Linux based applications with Moblin SDK & win >>>> great prizes >>>> Grand prize is a trip for two to an Open Source event anywhere in the world >>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>>> _______________________________________________ >>>> javax-usb-devel mailing list >>>> [email protected] >>>> https://lists.sourceforge.net/lists/listinfo/javax-usb-devel >>>> >>> >>> >>> >>> >>> ------------------------------------------------------------------------- >>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >>> Build the coolest Linux based applications with Moblin SDK & win >>> great prizes >>> Grand prize is a trip for two to an Open Source event anywhere in the world >>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>> _______________________________________________ >>> javax-usb-devel mailing list >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/javax-usb-devel >>> >> > > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > javax-usb-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/javax-usb-devel > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ javax-usb-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/javax-usb-devel
