In that case, I suspect you aren't running the JRE that you put the
jar files into.  But if you have it working, then great.

On Thu, Aug 7, 2008 at 12:32 PM, Bourothu Rahul
<[EMAIL PROTECTED]> wrote:
> Dan,
>
> I have added the jar files into the classpath (@/etc/bashrc) and set the
> PATH (@~/.bash_profile) to the JRE installed on my PC. The ShowTopology.java
> is now running. Thank you very much for the help!
>
> Regards
> Rahul
>
>
> On 8/6/08, Dan Streetman <[EMAIL PROTECTED]> wrote:
>>
>> That didn't really answer the question...when you add the jarfiles to
>> your CLASSPATH directly, *what happens*?
>>
>> In any case, it sounds like you are not using the jre that you put the
>> jar files into.  If you want to use the jre at
>> /usr/java/jdk1.5.0_16/jre/bin/java you have to put the actual path
>> where the actual "java" program is, not just /usr/java/jdk1.5.0_16,
>> into your PATH.
>>
>> On Wed, Aug 6, 2008 at 4:15 PM, Bourothu Rahul <[EMAIL PROTECTED]>
>> wrote:
>> > Hi,
>> > When i run "which java", it gives me "/usr/bin/java" . Althought i had
>> > set
>> > my PATH to /usr/java/jdk1.5.0_16 and JAVA_HOME to /usr/java/jdk1.5.0_16.
>> > I
>> > have included my jar files at /usr/java/jdk1.5.0_16/jre/lib/ext and
>> > included
>> > them in my classpath.
>> >
>> > I am using jdk1.5.0_16 on Fedora 9.
>> >
>> > Regards
>> > Rahul Bourothu
>> >
>> >>
>> >>
>> >> On 8/6/08, Dan Streetman <[EMAIL PROTECTED]> wrote:
>> >>>
>> >>> Sounds pretty strange.  Maybe try:
>> >>>
>> >>> -running "which java" and make sure it's the same as the jre where you
>> >>> put the jar files
>> >>> -adding all 3 of the jarfiles into your CLASSPATH - without moving
>> >>> them - and see if it works then
>> >>>
>> >>> Also what java type and version are you using?
>> >>>
>> >>> On Wed, Aug 6, 2008 at 3:10 PM, Bourothu Rahul
>> >>> <[EMAIL PROTECTED]>
>> >>> wrote:
>> >>> > Hi,
>> >>> >
>> >>> > I have built all the three bz2 files that come with the jsr80 1.0.2
>> >>> > release
>> >>> > using ANT 1.7.1. Later I installed the 3 jar files into jre/lib/ext
>> >>> > directory (just placed them in that directory, did not change
>> >>> > classpath),
>> >>> > placed the .properties file from the build into jre/lib directory,
>> >>> > and
>> >>> > then
>> >>> > placed the .so file into /usr/lib directory.
>> >>> >
>> >>> > Later i tried to run the ShowTopology.java example from the CVS tree
>> >>> > examples.
>> >>> >
>> >>> > It gives me:
>> >>> >
>> >>> > Exception in thread "main" java.lang.NoClassDefFoundError:
>> >>> > javax/usb/UsbException
>> >>> > Caused by: java.lang.ClassNotFOundException: javax.usb.UsbException
>> >>> >     at java.net.URLClassLoaders$1.run(URLClassLoader.java:217)
>> >>> >     at java.security.AccessController.doPriviledged(Native Method)
>> >>> >     at java.net.URLClassLoader.loadClass(ClassLoader.java:205)
>> >>> >     at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
>> >>> >     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
>> >>> >     at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
>> >>> >     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
>> >>> >
>> >>> >
>> >>> > What could be the possble reason? Can anyone help me with this?
>> >>> >
>> >>> > Thank you
>> >>> > Regards
>> >>> > Rahul Bourothu
>> >>> >
>> >>> >
>> >>> > -------------------------------------------------------------------------
>> >>> > 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

Reply via email to