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.

Bug 58659 - Need updated shell/batch scripts to not use hard code JDK locations
Summary: Need updated shell/batch scripts to not use hard code JDK locations
Status: RESOLVED DUPLICATE of bug 22977
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@serverplugins
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-06 17:04 UTC by jvincent
Modified: 2006-06-05 00:55 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jvincent 2005-05-06 17:04:22 UTC
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?
Comment 1 mslama 2005-05-06 17:18:26 UTC
Passing to j2ee.
Comment 2 Martin Adamek 2005-07-04 10:43:40 UTC
passing to web
Comment 3 zikmund 2005-07-07 12:20:06 UTC
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.
Comment 4 zikmund 2005-07-07 12:24:48 UTC

*** This issue has been marked as a duplicate of 22977 ***