【已解决】Error: Unable to access jarfile .\xxxx.jar

这篇具有很好参考价值的文章主要介绍了【已解决】Error: Unable to access jarfile .\xxxx.jar。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

报错类型:

Error: Unable to access jarfile .\xxxx.jar


复现工具的时候,通过命令 java -jar xxxx.jar 运行 jar 包报了这个错误,报错原因是:在命令行中出现的路径下找不到 xxxx.jar。


解决方法

检查 xxxx.jar是否存在于命令行中进入到的文件夹下。
xxxx.jar存在的绝对路径是: D:\Project\transformed\xxxx.jar,则有几种可采纳方法:

Solution 1:
  • 首先通过命令进入到 D:\Project\transformed 文件夹下
> cd D:
> cd D:\Project\transformed
  • 运行 xxxx.jar
> java -jar xxxx.jar

Solution 2:
  • 直接运行以下命令:
> java -jar D:\Project\transformed\xxxx.jar

okk,经过以上步骤,即可在命令行运行 xxxx.jar文章来源地址https://www.toymoban.com/news/detail-594467.html

到了这里,关于【已解决】Error: Unable to access jarfile .\xxxx.jar的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • 解决 git 出现 unable to access ‘ ’The requested URL returned error 500 问题

    问题 在项目中 fetch、push 的时候,出现下面这个问题: 网上很多说时文件太大、代理、权限什么的,可能有人是这样吧,但是没能解决我这问题。 解决办法 最后还是看到一篇博客说是账号问题,想了下是不是密码错了,去登录一下直接的账号,发现还真有可能错了,而且这

    2024年02月11日
    浏览(39)
  • git操作出错显示fatal: unable to access ‘https://github.com/xxxx/xxxx.git/‘: SSL certificate problem:

    每次操作完git clone都显示如下内容 Cloning into ‘xxxx’… fatal: unable to access ‘https://github.com/YOUR-USERNAME/YOUR-REPOSITORY.git/’: SSL certificate problem: unable to get local issuer certificate 包括git push以后也同样报错fatal:unable to… 这里提供一种解决错误的办法,符合条件即可使用 二者解决方式

    2024年02月04日
    浏览(47)
  • 解决Gitee或者Github出现Access denied fatal: unable to access,The requested URL returned error: 403

    从github或者gitee码云拉取其他人的私有项目时,报以下错误 要把某个项目push到Gitee码云或者Github上,已经设置了仓库地址,在最后一步推送代码时直接报错。 因为报的错是没有访问权限,只要本地使用过Github或者Gitee等git服务,电脑上就会存储git的账号和密码凭据.这样下次

    2024年01月25日
    浏览(39)
  • 解决git clone时fatal: unable to access ‘https://gitee.com/XXX.git/‘: The requested returned error: 403

    今天想把一些项目的代码提交到git的时候,出现了‘https://gitee.com/XXX.git/‘: The requested returned error: 403 这个报错,然后我在网上找了些解决方法,最后是用这个方法解决的问题,原来我电脑的gitee之前不知道怎么配置的是上一家公司的gitee账号一直没有更改过来。 以下是更换

    2024年04月27日
    浏览(33)
  • 「震惊」git error: Cloning into ‘‘... fatal: unable to access ‘https:……“

    最近在使用git,在使用git clone的时候出现了一些莫名其妙的问题,解决之后决定把它记录下来,方便git初学者。 1、问题描述 2、解决方法 1、问题描述 在git clone的时候出现如下问题: 2、解决方法 参考博文:git报错 fatal error 解决方法 产生原因:一般是这是因为服务器的SSL证

    2024年02月11日
    浏览(39)
  • 成功解决Unable to allocate xxx MiB for an array with shape (xxxx, xxxx)

    看了网上的一些解决方案,应该是跟内存有关。 1.修改 pycharm 的运行内存(未解决) 打开pycharm64.exe.vmoptions进行编辑修改,把 -Xmx750m改为 -Xmx8192m,分配8G内存,内存分配视情况而定。保存并重启pycharm。 2.修改虚拟内存(解决) 视情况设置需要的虚拟内存。

    2024年02月12日
    浏览(60)
  • Error: (‘HY000‘, “[HY000] [Microsoft][ODBC Microsoft Access Driver]General error Unable to open regi

    Error: (\\\'HY000\\\', \\\"[HY000] [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key Temporary (volatile) Ace DSN for process 0x19e0 Thread 0x3984 DBC 0x6b97a34 Jet\\\'.\\\") 以上是完整报错信息。 在使用pypydobc访问access数据库时报错,找了多种说法都觉不对。 但找到一个有道理的,以下是博主的说法

    2024年02月02日
    浏览(36)
  • error: unable to read askpass response from ‘C:\Users\***\AppData\Local\JetBrains\IntelliJIdea20

    18:38:15.369: [tianji] git -c credential.helper= -c core.quotepath=false -c log.showSignature=false push --progress --porcelain origin refs/heads/dev:dev --set-upstream Enumerating objects: 23, done. ..... Writing objects: 100% (12/12), 920 bytes | 184.00 KiB/s, done. Total 12 (delta 5), reused 0 (delta 0), pack-reused 0 Invocation failed Server returned inv

    2024年02月14日
    浏览(30)
  • unable to access https://github.com/....解决方法

    git config --global url.\\\"https://\\\".insteadOf git:// 可以把 git:// 替换成 https:// 方便使用 https 协议 相反的,如果想要将https 替换成 git,比如我们平时下载不到github的东西,提示 unable to access https://github.com/.......的时候就可以用 git config --global url.\\\"git://\\\".insteadOf https:// 这个方法来解决,意

    2024年02月13日
    浏览(32)
  • 已解决unable to access ‘https://github.com/**‘: SSL certificate problem: unable to get

    错误:unable to access \\\'https://github.com/\\\': SSL certificate problem: unable to get local issuer certificate 这个问题是由于没有配置信任的服务器HTTPS验证。默认,curl被设为不信任任何CAS,就是说,它不信任任何服务器验证。 只需要执行下面命令就可以解决:  

    2024年03月19日
    浏览(43)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包