Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

eclipse and classpath

 
Gamb Rockwell
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

thanks
 
Steven Bell
Ranch Hand
Posts: 1071
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic