Joseph Smith Joseph Smith - 20 days ago 6
Java Question

Error: Unable To Access Jar File

I'll keep this quick, I've finished my program. (Very Simple) And all I want to do is to be able to execute it without using an IDE. I've created a jar file, and an exectuable jar file. When I double click the exe jar file, nothing happens, and when I try to use the command in cmd it gives me this:

Error: Unable To Access Jar File.


I will provide the code and the command I'm using. I am using Eclipse as my IDE, and I use the command:
java -jar Calculator.jar


How I created the Jar:

1.Right click on Project Folder (Calculator)

2.Select Export

3.Click on Java Folder and select Exectuable Jar File then select next

4.Launch Configuration: Main - Calculator

5.Create Export Destination

6.Hit Finish and Profit! Well, not really.

Answer

Fixed

I just placed it in a different folder and it worked. Thanks for the help all!

Comments