Link to home
Start Free TrialLog in
Avatar of unomateo
unomateo

asked on

how do I set the classpath for java jar files

I just unziped the xml parser from sun, and I need to set the classpath for the File: jaxp.jar.
I pretty sure I have to edit the .bash_profile but I can't get it to work, please help.

I can get it to work by using -classpath as an argument but I want it to be able to find the classes all the time.

Also I am using Bash
Please Help
Matt
ASKER CERTIFIED SOLUTION
Avatar of s_franklin
s_franklin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of unomateo
unomateo

ASKER

I did some reading on the classpath subject. The first time I tried the new setting for classpath, it didn't work. then I found out you have to also enter classpath on the export line in the samefile too. Don't forget that.

Thanks FOR THE HELP
MAtt
If u want your jar files to be used as your JDK extension in Windows environment simply copy jar files in following directory
of jre

jre\lib\ext

it will work fine