'How to compile Java files and create two diffrent jars?
I have to create two separate .jar files for my project. One is classes.jar where some classes are declared and the second one, main.jar where classes are used. I've already compiled the classes.jar file, but when I try to compile main.java with javac I get "package does not exist" and "cannot find symbol" errors. What can I do to compile the file? How to properly link those .class/.jar files for the compiler to see?
I've tried using javac -cp bin/classes.jar src/library/Main.java command.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
