dimanche 10 mai 2015

Portable NetBeans with c++ support

I use NetBeans on Windows 7 to code c++ and I use Cygwin compilers.

Having S:\cygwin\bin in PATH evironment variable has several drawbacks. i.e. The setup is not portable and most importantly other 4200 unnececcary executables are in PATH. Which can cause problems when other software has or expects other executable with conflicting name.

That is why I would like to modify PATH variable only for NetBeans and use other PATH settings system wide.

Here is the command by which I try to start and use NetBeans:

SET PATH=%PATH%;S:\cygwin\bin &&"S:\software\programming\NetBeans_JavaSE_8.0_Portable\NetBeansPortable.exe"

Everything looks fine. NetBeans can find the compiler tools, creates new project. It even compiles the sources correctly. It produce correct compiled exe file of my program. I can started from command line (after modifing PATH variable again, for that cmd session).

However my program cannot be stareted within netbeans by clicking green start button.

It says: java.lang.NullPointer Exception

Thanks in advance.

Aucun commentaire:

Enregistrer un commentaire