I tried to use a sourceforge library in my program. On my computer I use Eclipse, and I easily add the jar files to my project. Now, I want to move the code to another computer.
I tried an executable jar file, but the problem is I cannot debug it on the new computer. So, I decided to move the source code and compile it there.
I tried the following but defeated in all of them: (all in Windows Command prompt)
- Copy the jar files in the /lib/ext folder of my jre folder and add this folder to classpath
javac -cp ".\lib\*.jar" src/*.java
javac -cp "./lib/*.jar" src/*.java
In all of them the classes that are defined in the library jar files can not be recognized by java! Actually the package doesn't find...
Any idea? Any stupid thing that I am doing?