Create java library file

I use the number of java files as common in different ADF projects, I want to archive them in a jar file so that I can import this archive file from any new project, to use java libraries in the project, I tried to create it in jdeveloper, but no luck .

Thanks for any advice

+4
java jar oracle-adf jdeveloper
source share
4 answers

You can use the following article to understand it.

create jar file

jar cf jar-file input-file(s) 

But still, you can archive the file using the zip zip or winzip utility and rename it as a jar file. It is not official, but it works.

+7
source share

No matter how big or small your project is, the best answer to this IMHO question is a build tool. I would recommend maven, this is a great tool. It will take some time to get in, and this will probably slow down your pace at first, but the benefits of knowing how to use such a tool are very large.

http://maven.apache.org/

+3
source share

from your terminal - go to the directory in which you have the files you want to use and enter the command

jar -cf myjarfile.jar * .java

hope this helps see also: Creating a JAR file

+1
source share

Assuming that the files you want to reuse are associated with ADF, you should read about using ADF libraries to increase reuse. See: http://docs.oracle.com/cd/E16162_01/web.1112/e16182/reusing_components.htm#BEIGHHCG

0
source share

All Articles