File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes eclipse and classpath Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "eclipse and classpath" Watch "eclipse and classpath" New topic

eclipse and classpath

Gamb Rockwell

Joined: Dec 09, 2003
Posts: 25
I have a program that works from within eclipse(ie. when I use eclipse to run the code) but when I run it outside of eclipse it give me a class not found exception, I think it is a classpath issue does anyone know what could be the cause of that and how to solve it.

Steven Bell
Ranch Hand

Joined: Dec 29, 2004
Posts: 1071
Most likely you are using some extra library, a jar file. Eclipse has that in its build path, but when you run your program outside it can't find it. The solution is to place the library your program needs in the path of your system, or in the same directory as your program. That should work.
I agree. Here's the link:
subject: eclipse and classpath
It's not a secret anymore!