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.
I am trying to manage/DEBUG web projects originally based on the JDK 1.4.2 and at the same time, port them to JDK 1.5.0 or even run cross-JDK compatible projects for performance comparisons between JDK's. This is damn near impossible with all the batch files/shell scripts that have a JDK_HOME-type value hard coded. I can build using different JDK's, but debugging doesn't (always) work when the Sun App or Tomcat Server is running under a different JDK version and the scripts used to launch them are not configurable. Could we get the batch/shell scripts modified to look for environment variables and/or take an argument to allow overriding the hard coded value (or replace it entirely) and throw an error if it isn't defined?
Passing to j2ee.
passing to web
Tomcat uses same JDK which NetBeans is running. Currently there is no way how to setup different JDK for Tomcat within NetBeans 4.1 (it is planned for next NetBeans version). However you can edit shell/batch scripts by hand - in $NB_INSTALL_DIR/enterprise1\jakarta-tomcat-5.5.7\bin AppServer defines JDK at installation time although bundled AppServer may behave as bundled Tomcat.
*** This issue has been marked as a duplicate of 22977 ***