create java library file
Solution 1
You can use the following article to understand the way.
jar cf jar-file input-file(s)
But still you can zip a file using windows zip utility or winzip and rename it as a jar file. It is not official but it works.
Solution 2
No matter how big or small you project is, the best answer to this question IMHO is a build tool. I would recommend maven, it is a great tool. It will take some time to get into and it will probably slow down your pace at first but the rewards of knowing how to use a tool like that are very big.
Solution 3
from your terminal - go to the directory where you have the files you want to jar and type the command
jar -cf myjarfile.jar *.java
hope this helps see also: Creating a JAR File
Comments
-
Ya Basha almost 2 years
I'm using number of java files as common in different ADF projects, I want to archive them in jar file so I can import this archive file from any new project to use the java libraries in the project, I tried create it in jdeveloper but no luck.
Thank you for any advice,
-
Stefano Bossi about 5 yearsMoving to Gradle is even a better choice. It's just a personal consideration. Here you can find the documentation: Gradle Java Library Plugin