错误:无法访问Jar文件 [英] Error: Unable To Access Jar File

查看:134
本文介绍了错误:无法访问Jar文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我会保持这个快速,我完成了我的程序。 (很简单)我所要做的就是能够在不使用IDE的情况下执行它。我创建了一个jar文件和一个可执行的jar文件。当我双击exe jar文件时,没有任何反应,当我尝试使用cmd中的命令时,它给出了这一点:

 错误:无法访问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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆