错误:无法访问Jar文件 [英] Error: Unable To Access Jar File
问题描述
错误:无法访问Jar文件。
我将提供我正在使用的代码和命令。我使用Eclipse作为我的IDE,我使用以下命令: java -jar Calculator.jar
创建Jar:
1.右键单击项目文件夹(Calculator)
2.选择导出
3.点击Java文件夹,然后选择Exectuable Jar文件,然后选择下一个
4.Launch配置:主 - 计算器
5.创建导出目标
6.完成并获利!好吧,不是真的。
修正
我只是把它放在一个不同的文件夹,它的工作。感谢您的帮助!
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.
Fixed
I just placed it in a different folder and it worked. Thanks for the help all!
这篇关于错误:无法访问Jar文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!