nus-cs2103-AY1718S2 / forum

0 stars 1 forks source link

Can't open JAR file #51

Open wayneong95 opened 6 years ago

wayneong95 commented 6 years ago

Hi all,

I am unable to open my .Jar file after double-clicking on it. I am thinking it is because i previously downloaded JDK 10 but uninstalled it, but the computer thinks i am still using JDK10 even though i have reverted back to JDK 1.8.0_161. Attached is an image that shows what i am seeing. Would appreciate any help given as i have googled solutions but am unable to solve it.

Thank you!

java error

okkhoy commented 6 years ago

Can you try java - jar <name of jar> from the command line? If you get some error please post and we can try to debug from there.

wayneong95 commented 6 years ago

I got an Error: Unable to access jarfile Personal

okkhoy commented 6 years ago

try escaping the spaces if it is necessary.

wayneong95 commented 6 years ago

Oh okay my bad. It works in the command prompt but it still doesnt open when i double click the .jar file.

okkhoy commented 6 years ago

I know this is not a resolution of the issue, for now, you can use the command prompt to launch the JAR.

wayneong95 commented 6 years ago

Okay thanks for the input! I think the problem could be an issue with the jdk filepath but i have googled and the solutions do not work. Please let me know if anyone knows the solution. Thank you! :)