Recently, I just created a Java project using Eclipse that requires 2 JAR files (phiget21.jar and mysql.jar)
Everything works fine when I run the program in Eclipse, and I noticed that the jar files are saved in the "lib" folder.
Soon I will transfer the program from my computer so that it can be used on other machines, so I decided to create a batch file to compile all classes and then run it.
However, I am having problems locating jar files. In the batch file, I need the command: set classpath =.: ..; mysql.jar: ../ phidget21.jar, before compiling Java classes?
I read that dots (...) have something to do with directories, but are not quite sure how to implement them.
My program is currently saved in the following places:
Project / src / .java files (.jar files are also placed here, and also I thought this might simplify the task)
Project / lib / .jar Files
Any help would be greatly appreciated!
source share