是什么原因导致“无法访问jarfile"?错误? [英] What causes "Unable to access jarfile" error?

查看:557
本文介绍了是什么原因导致“无法访问jarfile"?错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在不使用IDE的情况下执行我的程序. 我创建了一个jar文件和一个可执行的jar文件.什么时候 我双击exe jar文件,什么也没有发生,当我尝试在cmd中使用命令时,会显示以下信息:

I want to execute my program 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 jarfile <path>

我使用以下命令:java -jar Calculator.jar

我如何创建罐子:

  1. 右键单击项目文件夹(计算器)
  2. 选择
  3. 单击Java文件夹并选择可提取Jar文件",然后选择下一步
  4. 启动配置:主要-计算器
  5. 创建导出目的地
  6. 点击完成"并获利!好吧,不是真的.

推荐答案

固定

我只是将其放置在其他文件夹中,并且可以正常工作.

I just placed it in a different folder and it worked.

这篇关于是什么原因导致“无法访问jarfile"?错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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