• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Jar files not being seen

 
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:
 
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic