This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Jar files not being seen Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Jar files not being seen " Watch "Jar files not being seen " New topic
Author

Jar files not being seen

hennie louw
Ranch Hand

Joined: Jul 03, 2001
Posts: 56
Hi all I've got this little problem
I'm writing an app that is using a 3rd party API.
This is wath my classpath look like on the system
>> C:\j2sdk1.4.0\lib;D:\javaProjects\flashmedia\eC-Linck\libs;D:\javaProjects\flashmedia\eC-Linck\libs\smppapi.jar <<
Now the 3rd party API is The smppapi.jar file,
when I compile i get the following

Ok that is what is confusing me, Firstly the API's Jar file is in the class path and also in %JAVA_HOME%\lib directory , so what am i doing worng???

The other wierd thing is that with the jar file mouted in Forte the thing compiles ???
???
Any help would be great
THanks


Any Body can be paid to write good code, but brilliant code can only come from passion
hennie louw
Ranch Hand

Joined: Jul 03, 2001
Posts: 56
HI all
Dont worry I solved the problem
It seems i was useing the CLASS_PATH enviroment varible when I should have been using CLASSPATH

Go figure that it could be that simple :roll:
Snigdha Solanki
Ranch Hand

Joined: Sep 07, 2000
Posts: 128
Are you compiling the code using Forte. Most probably the classpath is not getting set.
Try setting the classpath explicitly in the compile command and try
javac -classpath <path> *.java


Snigdha<br />Sun Certified Programmer for the Java™ 2 Platform
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
hennie louw wrote: It seems i was useing the CLASS_PATH enviroment varible when I should have been using CLASSPATH
Which was the one thing you didn't tell us
There's a valuable lesson there about how to present questions if you want help.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Jar files not being seen
 
Similar Threads
cannot allocate servlet instance
Ant + Ivy: Add 3rd party stuff to shared repository
Injecting a Dependency through Spring
I see alot of JAXP references on JR
Servlet Compilation Error