I have made some GUI Java application and exported it as “Executable Jar”. But Windows shows me this file as RAR archieve, and I can’t execute it! How can I fix it?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From the command line, run:
java -jar <jarfile>.From Windows Explorer, right-click on the JAR file, choose “Open with…” and select your local Java installation.
Make sure you have a JRE installed. Normally Windows will recognise JAR files and do the right thing with them. The fact that they are being identified (understandably) as an archive would hint that you have no JRE.