简体   繁体   English

NSIS Eclipse 插件不工作

[英]NSIS Eclipse plugin not working

I want to use the NSIS eclipse plugin under eclipse indigo and windows 7. I installed the NSIS plugin in eclipse with the eclipse plugin manager.我想在 eclipse indigo 和 windows 下使用 NSIS eclipse 插件 7. 我用 eclipse 插件管理器在 eclipse 安装了 NSIS 插件。

When I click File->New->Other->EclipseNSIS_Script I get the error:当我单击文件->新建->其他->EclipseNSIS_Script 时,出现错误:

EclipseNSIS only supports the following VMs on Windows 7: EclipseNSIS 仅支持 Windows 7 上的以下 VM:
1. Sun Version 1.4x, 5.x, 6.x 1.Sun 版本 1.4x、5.x、6.x
2. IBM Version 1.4x 2. IBM 版本 1.4x
3. BEA Version 1.4x and 1.5x 3. BEA 版本 1.4x 和 1.5x

After that I get another error message:之后我收到另一条错误消息:

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. Plug-in.net.sf.eclipsensis 无法加载 class.net.sf.eclipsensis.wizard.NSISScriptWizard。 An error occurred while automatically activating bundle.net.sf.eclipsensis (755).自动激活 bundle.net.sf.eclipsensis 时发生错误 (755)。

I changed the Java version in Eclipse to java5 and java 6.我把Eclipse里面的Java版本改成了java5和java 6.
I set the Java version in the System Path variables.我在系统路径变量中设置了 Java 版本。
nothing worked.没有任何效果。 I still get the same error.我仍然遇到同样的错误。

any ideas?有任何想法吗?

I had problems getting Java to behave nicely with Eclipse and the NSIS plugin but the solution in the end was to use Sun v6 and specify the path to the javaw.exe using the -vm argument in the eclipse.ini file (which is in the same folder as eclipse.exe). 我在使Java在Eclipse和NSIS插件上表现良好时遇到了问题,但最终的解决方案是使用Sun v6,并使用eclipse.ini文件中的-vm参数指定javaw.exe的路径。与eclipse.exe相同的文件夹)。

This is what my eclipse.ini looks like: 这是我的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

I have had similar kinds of problems with Eclipse Kepler using EclipseNSIS. 使用EclipseNSIS的Eclipse Kepler遇到了类似的问题。

Finally I ran the NSIS installer from Nullsoft Scriptable Install System (NSIS) download web site after closing Eclipse and when I reopened Eclipse and double clicked on the .nsi script file, it opened up in the EclipseNSIS editor window. 最后,在关闭Eclipse之后,我从Nullsoft Scriptable Install System(NSIS)下载网站运行了NSIS安装程序,当我重新打开Eclipse并双击.nsi脚本文件时,它在EclipseNSIS编辑器窗口中打开。

I am still having problems with the compile button and compile menu item of EclipseNSIS however what I am doing is to right click on the .nsi file to bring up a popup menu and then select the "Run As" menu option which has a "NSIS Script" option. 我仍然对EclipseNSIS的编译按钮和编译菜单项有问题,但是我要做的是右键单击.nsi文件以弹出一个菜单,然后选择具有“ NSIS”的“运行方式”菜单选项。脚本”选项。 By doing the "Run As" I am able to compile the .nsi file. 通过执行“运行方式”,我可以编译.nsi文件。

I am using Windows 7 64 bit OS. 我正在使用Windows 7 64位操作系统。

Edit Jun-04-2015 编辑2015年6月4日

I revisited this answer and saw the answer from Rodrigo below so thought to take another look at this problem which has been on the back burner. 我重新审视了这个答案,并在下面看到了Rodrigo的答案,因此我想再看一下这个问题,而这个问题一直存在。

I started up Eclipse and the first thing I did was to run the updater to update Eclipse. 我启动了Eclipse,要做的第一件事是运行更新程序来更新Eclipse。 Next I used the Install dialog available from the Help menu to check for GEF at URL http://download.eclipse.org/tools/gef/updates/releases and did that install. 接下来,我使用“帮助”菜单中的“安装”对话框来检查URL http://download.eclipse.org/tools/gef/updates/releases GEF,并进行了安装。 Finally I did an update using the NSIS Update Wizard which is available from the Help menu. 最后,我使用“帮助”菜单中的NSIS更新向导进行了更新。

After this procedure the Run tool will now run my .nsi script to create an installer and it does appear to create an installer however there is an error message at the end: 完成此过程之后,运行工具现在将运行我的.nsi脚本以创建安装程序,并且它的确似乎在创建安装程序,但是最后出现错误消息:

Updating NSIS markers has encountered a problem
org.eclipse.ui.editors.text.TextEditor cannot be cast to net.sf.eclipsensis.editor.NSISEditor

The details shows the following text: 详细信息显示以下文本:

org.eclipse.ui.editors.text.TextEditor cannot be cast to net.sf.eclipsensis.editor.NSISEditor
org.eclipse.ui.editors.text.TextEditor cannot be cast to net.sf.eclipsensis.editor.NSISEditor

您还必须确保也安装了Eclipse GEF 3.5

I know this an old thread but just to let you all know I've made available a version of EclipseNSIS which compatible with Eclipse >= 4.18 (2020-12) x86_64 and Microsoft Windows 10 .我知道这是一个旧线程,但只是想让大家知道我已经提供了与Eclipse >= 4.18 (2020-12) x86_64Microsoft Windows 10兼容的 EclipseNSIS 版本。

To download it just use this update site in "Eclipse->Help->Install new software...": https://apinela.github.io/EclipseNSIS/要下载它,只需使用“Eclipse->帮助->安装新软件...”中的此更新站点: https://apinela.github.io/EclipseNSIS/

If you want to have a look at the structural refactor that was done on the whole building process using tycho-maven-plugin to mavenize the build, be my guest: https://github.com/apinela/EclipseNSIS/如果你想看看在整个构建过程中使用 tycho-maven-plugin 对构建进行mavenize的结构重构,做我的客人: https://github.com/apinela/EclipseNSIS/

The following works on my PC with Win7.x64: 以下内容可在装有Win7.x64的PC上运行:

  • Installing Eclipse MARS.1 32bit 安装Eclipse MARS.1 32位
  • Installing JRE 7.80 32bit from JAVA Archiv (Oracle-Account was nessesary to create for download) 从JAVA Archiv安装JRE 7.80 32位 (需要创建Oracle-Account以便下载)
  • Editing the eclipse.ini like decribed above, but you have to detect the right 8.3-directoryname with dir /x. 像上面描述的那样编辑eclipse.ini,但是您必须使用dir / x检测正确的8.3目录名称。 For me is was Progra~2: 对我来说是Progra〜2:

     ... openFile -vm C:/Progra~2/Java/jre7/bin/javaw.exe ... 
  • copying the files from this http://www.sharksoftware.it/nsispackage.zip to the plugin-folder 将文件从此http://www.sharksoftware.it/nsispackage.zip复制到插件文件夹

为日食安装NSISGEF插件

  1. Sun Version 1.4x, 5.x, 6.x Sun版本1.4x,5.x,6.x
  2. IBM Version 1.4x IBM版本1.4x
  3. BEA Version 1.4x and 1.5x BEA版本1.4x和1.5x

Which one is installed which one do you use? 您安装了哪一个?

I would recommend you´ll install sun 6.x. 我建议您安装sun6.x。

The problem might be that you are using a different JRE! 问题可能是您使用的是其他JRE!

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

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