简体   繁体   English

在Windows 7上双击无法执行jar文件

[英]jar file is not executing on double clicking on windows 7

I have CQ5 executable jar file.It is suppose to be executed on double clicking.But i get error saying "could not find Main class program will exit".The same jar file executed on all my team mates machine but i am unable to execute it. 我有CQ5可执行jar文件。应该双击即可执行。但是我收到错误消息:“找不到主类程序将退出”。在我所有队友的机器上执行了相同的jar文件,但我无法执行它。

I am working on windows 7 OS. 我正在Windows 7 OS上工作。 I have jre6 installed. 我安装了jre6。

I have done all steps provided in following link .jar file keeps giving me " could not find the main class". 我已经完成了以下链接.jar文件中提供的所有步骤, 总是让我“找不到主类”。 Program will exit . 程序将退出

my ftype and assoc is set to propervalue. 我的ftype和assoc设置为propervalue。 there is no problem in manifest file(becoz it executed on others machine). 清单文件中没有问题(因为它在其他计算机上执行)。 all my path variables are set properly. 我所有的路径变量都设置正确。

type of file on my system is "JAR" but on everyone else machine its "Executable JAR" Could not figure out what is problem with my system. 我系统上的文件类型为“ JAR”,但在其他所有机器上,其“可执行JAR”文件都无法弄清楚我的系统出了什么问题。

Help plz. 请帮助。

You can alternatively try executing this command from a command console, first CD to the location where you have the jar file and execute 您也可以尝试从命令控制台执行该命令,首先从CD到拥有jar文件并执行的位置

For Win7 32-bit: 对于Win7 32位:

java -Xmx1024M -jar .jar java -Xmx1024M -jar .jar

For Win7 64-bit: 对于Win7 64位:

java -XX:MaxPermSize=256m -Xmx1024M -jar .jar java -XX:MaxPermSize = 256m -Xmx1024M -jar .jar

if you have supported version of Java installed correctly, then the command should be able to start the CQ5 server. 如果您已经正确安装了受支持的Java版本,则该命令应该能够启动CQ5服务器。 In that case, for fixing the double click issue, you would need to fix the filetype association of .jar files to open with /bin/javaw.exe 在这种情况下,为解决双击问题,您需要修复.jar文件的文件类型关联,才能使用/bin/javaw.exe打开

For supported Java versions, refer 有关受支持的Java版本,请参阅

CQ5.5 http://dev.day.com/docs/en/cq/5-5/deploying/technical_requirements.html CQ5.5 http://dev.day.com/docs/zh-CN/cq/5-5/deploying/technical_requirements.html

CQ5.6 http://dev.day.com/docs/en/cq/5-6/deploying/technical_requirements.html CQ5.6 http://dev.day.com/docs/zh-CN/cq/5-6/deploying/technical_requirements.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM