Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NSIS Eclipse plugin not working

Tags:

java

eclipse

nsis

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.

When I click File->New->Other->EclipseNSIS_Script I get the error:

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

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. An error occurred while automatically activating bundle net.sf.eclipsensis (755).

I changed the Java version in Eclipse to java5 and java 6.
I set the Java version in the System Path variables.
nothing worked. I still get the same error.

any ideas?

like image 551
juergen d Avatar asked Aug 30 '11 12:08

juergen d


1 Answers

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).

This is what my eclipse.ini looks like:

-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
like image 102
Paul Hunt Avatar answered Oct 07 '22 06:10

Paul Hunt