• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jar files not being seen

 
hennie louw
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
hennie louw
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic