Well. I had faced this issue a lot while I was installing the product to my clients.
and I found just a simple way to handle it easy :)
Double click into the jar file:
Step 1: Start Control panel
Step 2: Click Default Programs
Step 3: Click Associate a file type or protocol with a specific program
Step 4: Double click .jar
Step 5: Browse C:\Program Files\Java\jre7\bin\javaw.exe
Step 6: Click the button Open
Step 7: Click the button OK
OR
Step 1: right-click on the jar file
Step 2: Open With a Java Runtime listed ( C:\Program Files\Java\jre7\bin\javaw.exe)
Step 3: make it the default program to run with.
To Run Using batch file:
Step 1: Open new Text file .
Step 2: Write into it java -jar [Jar file Name].
Step 3: Save the file name as batch file (ex: lunch.bat)
Step 4: Make sure to save it into the same folder that contain the jar.
Step 5: Double click on the batch file and enjoy
Good luck
and I found just a simple way to handle it easy :)
Double click into the jar file:
Step 1: Start Control panel
Step 2: Click Default Programs
Step 3: Click Associate a file type or protocol with a specific program
Step 4: Double click .jar
Step 5: Browse C:\Program Files\Java\jre7\bin\javaw.exe
Step 6: Click the button Open
Step 7: Click the button OK
OR
Step 1: right-click on the jar file
Step 2: Open With a Java Runtime listed ( C:\Program Files\Java\jre7\bin\javaw.exe)
Step 3: make it the default program to run with.
To Run Using batch file:
Step 1: Open new Text file .
Step 2: Write into it java -jar [Jar file Name].
Step 3: Save the file name as batch file (ex: lunch.bat)
Step 4: Make sure to save it into the same folder that contain the jar.
Step 5: Double click on the batch file and enjoy
Good luck
Related Topics:
- Click here to know how to create the JAR.
No comments:
Post a Comment