Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I use mac with mountain lion and java u update 21. When I try to open the file with a double click, I get the following error: java file.jar could not be launched, or sometimes not after the double click, nothing happens.

Why is this happening??

share|improve this question

migrated from stackoverflow.com Jun 17 '13 at 17:24

This question came from our site for professional and enthusiast programmers.

1 Answer 1

Try executing your jar file from the command line (terminal):

java -jar MyJar.jar

This should give you more verbose output about your error.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.