fatjar导出的jar文件双击执行时提示could not find the main class
来源:互联网 发布:拼多多是什么软件 编辑:程序博客网 时间:2024/05/17 03:01
这两天在写一个界面小程序后,用的是fatjar打的包,
在已注册的文件类型中选择"JAR",点击下方的"高级",
是jar程序的执行环境,出现上述问题的原因可能就是由
于该处的路径不正确,
这样再双击执行就一切OK了。
但是打包后双击执行时提示:could not find the main class....
但是在cmd中用java -jar xxxxx时,一切都正常。
经过检查后,发现不是程序的问题,也不是打包的问题,
主要是由于在双击执行时,windows调用的执行环境不对。
jar文件的执行环境通过如下的方式进行修改:
在已注册的文件类型中选择"JAR",点击下方的"高级",
选择"操作"中的"open",点击"高级",在弹出的窗口中,
是jar程序的执行环境,出现上述问题的原因可能就是由
于该处的路径不正确,
将该路径修改为jdk中的javaw.exe,如我的环境
这样再双击执行就一切OK了。
- fatjar导出的jar文件双击执行时提示could not find the main class
- could not find the main class win7/xp 双击执行jar包出现:could not find the main class
- could not find the main class win7/xp 双击执行jar包出现:could not find the main class
- 解决Win7/XP中双击jar文件出现could not find the main class的方法
- win7/xp 双击执行jar包出现:could not find the main class
- win7/xp 双击执行jar包出现:could not find the main class
- windows 双击执行jar包出现:could not find the main class
- 双击jar文件出现Could not find main class的解决办法
- 运行jar文件时,出现“could not find the main class”的解决方法
- 双击jar文件提示:could not found main class:progrom will exit的解决办法!
- jar文件Could not find the main class简易解决办法
- jar文件Could not find the main class解决办法
- java 执行JAR文件总报 Could not find the main class
- 安装MyEclipse时,双击安装包后出现“could not find main class”的错误提示的解决方法
- jar出错 could not find the main class
- 双击jar包出现:could not find the main class .和could not create the java virtual machine.win7/xp解决方法详解
- 双击jar包出现:could not find the main class .和could not create the java virtual machine.win7/xp解决方法详解
- 双击jar包出现:could not find the main class .和could not create the java virtual machine.win7/xp解决方法详解
- Ubuntu 10.04 下pdf显示乱码的解决方法
- php函数前面加&符号的意思是函数的引用
- 网络协议的三要素
- 资治通鉴,卷八十五,晋惠帝也有明白的时候
- 黑马程序员—学习笔记之SQL数据分组、限制结果集行数
- fatjar导出的jar文件双击执行时提示could not find the main class
- sql cookbook 数据库脚本 for db2
- 千兆网动态配置FPGA小结(1)
- dedecms代码研究(4)
- dedecms代码研究(5)
- jsp一些注意事项
- 发邮件去确认了Google App Engine一旦开启支付功能最少费用就是9美金每个月
- 如何花两年时间面试一个人
- JS中的小问题