Thursday, September 13, 2007

Notes on creating a Java "jar" file for an application

If you have an appliation that you want to package so that it can be executed using a command like:

        java -jar myjarfile.jar arg1 arg2

you will need to create the ".jar" file properly. This means that the class containing the main method must be identified and that you have included any necessary support ".jar" files. You must also include a class path.

If you are using RAD, u may create "Application Client Project" with contain MyJarFileEar and MyJarFile project.

No comments: