This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi Firat of all I want to ask what is the use of making executable jar files. Suppose 'm having two simple class files A.class and B.class in E:\Files. I created one jar file with both of them. I know that i have to update the Manifest file. I want to ask what is to be written in that file for this particular case. One more thing as these are simple class files, with no GUI, even if I click on jar file>>>nothingwill happen >>i quess so. Suppose I want to make an executable jar file say For HelloWorld applet. Then which files i have to add into manifest file. In jar file i will be having one class file for applet and one html file.
You might want to take a look at the executable JAR file tutorial thread, found through a quick search on this forum. (The search page link is at the top right of this page.) If the OS environment is properly configured and the JAR file is made correctly, it should be executable with a simple double-click. One more thing as these are simple class files, with no GUI, even if I click on jar file>>>nothingwill happen >>i quess so. If the program simply displays text to the console, then you're right, double-clicking on the executable JAR may result in not much happening. With Windows, the OS is configured to run the JAR with javaw.exe, which runs a Java program much like java.exe does, except the console isn't displayed. Suppose I want to make an executable jar file say For HelloWorld applet. You cannot easily make an executable Applet, per se. You could write a Java program that could view a web page (i.e. a web browser) and is configured to open the page with the Applet you have. Or you could use the Applet as a Panel, and just add it to a Frame.