This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Now that have removed lines that add jars from $idehome/lib to classpath, many usages of runide.sh option -mainclass do not work any more (they will receive 'ClassNotFoundException'). So we need to obsolete -mainclass option and inform users to use java option "-Dnetbeans.mainclass=" instead.
On a second thought, we coulds just automatic translate -mainclass into -Dnetbeans.mainclass=
Assigning to Jesse.
Good point. It will not work any longer as is. Actually I plan to just remove the system of a "main class" entirely, as it is not really in line with core architectural changes relating to the startup sequence and use of Lookup. There should rather be (1) A simplified, nonreplaceable main class that just does very basic things. (2) All important services installed by means of modules dependencies and lookup. So NB configuration can be controlled by the module set / classpath. (3) The option to invoke custom code during startup. Probably ModuleInstall.restored would be sufficient. See issue #20253. In the short term, -mainclass should set the sysprop.
committed Up-To-Date 1.43 core/release/bin/runide.sh Handing off to Vita for Windows *.exe launchers.
Question: what did -mainclass used to do and would this change effect the OS/2 launch script?
If you do not have a -mainclass option in the OS/2 script, don't add it now!
Exe-launchers are updated now. /cvs/core/exelauncher/runide.cpp: 1.31 /cvs/core/release/bin/runide.exe: 1.32 /cvs/core/release/bin/runidew.exe: 1.32
Hmm, after the fix I cannot run NetBeans in OptimizeIt by the following command: runide.exe -jdkhome C:\JDK1.4.0 -J-Xrunpri:dmp=1 -J-Xbootclasspath/a:C:\OptimizeitSuite\OptimizeitSuite42\lib\oibcp.jar -cp:a C:\OptimizeitSuite\OptimizeitSuite42\lib\optit.jar -mainclass intuitive.audit.Audit -dmp -enableAPI org.netbeans.Main
Use -J, and please edit apisupport/release/bin/unsupported/optimizeit/nbopt.bat to match nbopt.sh after testing.
Do you mean to use -J-Dnetbeans.mainclass=intuitive.audit.Audit instead of -mainclass intuitive.audit.Audit ? But it should not matter, as -mainclass is translated to -Dnetbeans.mainclass in runide anyway (and of course it doesn't work either). I'd think the problem is rather in that the parameters for the Audit class are not passed to it correctly now: intuitive.audit.Audit -dmp -enableAPI org.netbeans.Main
-Jintuitive.audit.Audit Again, see nbopt.sh which works fine already.
Mark as verified. Tested with a fixed version of fjscript.[bat,sh].