java – NSIS Eclipse插件不能正常工作
作者:互联网
我想在eclipse indigo和windows 7下使用NSIS eclipse插件.
我用eclipse插件管理器在eclipse中安装了NSIS插件.
当我单击File-> New-> Other-> EclipseNSIS_Script时,我收到错误:
EclipseNSIS only supports the following VMs on Windows 7:
1. Sun Version 1.4x, 5.x, 6.x
2. IBM Version 1.4x
3. BEA Version 1.4x and 1.5x
之后我收到另一条错误消息:
Problem opening wizard.The selected wizard could not be started.
Plug-in net.sf.eclipsensis was unable to load class
net.sf.eclipsensis.wizard.NSISScriptWizard. An error occurred while
automatically activating bundle net.sf.eclipsensis (755).
我将Eclipse中的Java版本更改为java5和java 6.
我在系统路径变量中设置了Java版本.
没有用.我仍然得到同样的错误.
有任何想法吗?
解决方法:
我在让Java与Eclipse和NSIS插件表现良好时遇到了问题,但最终的解决方案是使用Sun v6并使用eclipse.ini文件中的-vm参数指定javaw.exe的路径(该文件位于与eclipse.exe相同的文件夹).
这就是我的eclipse.ini的样子:
-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100.v20110502
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm
C:/Progra~1/Java/jre6/bin/javaw.exe
-vmargs
-Xms40m
-Xmx384m
标签:java,eclipse,nsis 来源: https://codeday.me/bug/20190521/1147712.html