(“f”) //to clear the screen for next window (“*** INVALID INPUT *** PLEASE TRY AGAIN”) (“ENTER THE CORRECT CATEGORY NUMBER FOR YOUR CHOICE :”) (“** 1.PMM “+DepartmentN+” BOOKING ROOM **”) (“ENTER THE CORRECT Department NAME FOR YOUR CHOICE :”) (“** CIVIL ELECTRICAL MECHANICAL COMMERCE TOURISM HOSPITALITY **”) Int tot_fd=1,tot_d,d,ch //declaration of Integer variables String DepartmentN,ROOM,size //declaration of String variables String Department=new String //for Storing Department names.ĭepartment=”CIVIL” Department=”ELECTRICAL” Department=”MECHANICAL” Department=”COMMERCE” Department=”TOURISM” Department=”HOSPITALITY” List=”ROOM1″ list=”ROOM2″ list=”ROOM3″ list=”ROOM4″ list=”ROOM5″ list=”ROOM6″ String list=new String //for Storing ROOM names. Public static void main(String args)throws ExceptionīufferedReader br=new BufferedReader(new InputStreamReader(System.in)) You can first use fat jar to get one jar, then use launch4j to convert it to.
#How to convert exe files to jar files windows
Java applications are viewed as native Windows programs (and you can create Windows shortcuts for your Java application in the Start menu or on the desktop).Java applications can make use of file type association.Execute Java applications with any current directory.JAR files can be included into an executable file.The following is some other features it has:
#How to convert exe files to jar files how to
How to use launchrj is very straightforward and it's free without any strings attached. You can easily convert a jar file to exe, then your users can double click the icon and start the program. jar file to windows executable file, there is a good tool called launch4j. We need a program which can be started by double clicking.
Apparently, this is not a good option for most regular not-java-programmer users, especially if the program requires user's input to proceed. But the jar file can be only launched by using command lines. By using eclipse export wizard, you can get executable jar files.