I am very new to Java. I have one class file that is used for processing.
This class file depends on jar . I am very new to Java, where I pass the jar to my class path when the program starts:
javac -classpath jar MyProgram.java
Now I want to link both jar and MyProgram into a separate jar with the allowed dependency.
Are there any ways to do this in Java? Note that this java MyProgram is only about 50 lines of code, so some simple solution would be a good one.
Thanks in advance.
source share