i have developed a small swing application using netbean5.5.1 IDE and it working fine , i have used the package option under build to package the application, i found that my GUI jar executes only if its inside the project folder ,
i want to package my entire application as a executable file and want to install it in my machne , can any one advice on this
By "executable file", do you mean double-clickable? If so, then jar files can do that. If the application relies on other libraries, then you'll need to adapt the jar file manifest accordingly; see http://faq.javaranch.com/java/JarFiles for more detail.
Thanks for the response ,let me explain my requirement currently if i check my project directory which i got as i
explained above , i have a directory created by the name dist and it contains a directory lib and my GUI jar
Processor.jar , when i am viewing the MANIFEST.MF inside META-INF of my Processor.jar it has referenced the
springlayout.jar available in the lib folder , i want to create the entire thing either as a jar or exe file which can be
installed in a windows machine, please advice.
Joined: Mar 22, 2005
If the Class-Path entry in the manifest file simply refers to "springlayout.jar" (without any directory), then you can simply put both jar files in the same directory and they will work. Is it of vital importance that only a single file is distributed? You could distribute a ZIP file that extracts to a directory containing all the required files; that's a common method of distribution.
You could also re-package all required class files into a single jar file for distribution.
Joined: Jun 29, 2008
is there any way we can install this jar so that it will come under programs in a windows machine