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 124813 - FAST: An easier method is required to change the JDK version post-install for Sierra
Summary: FAST: An easier method is required to change the JDK version post-install for...
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-07 14:43 UTC by lpolycarpou
Modified: 2009-12-08 14:34 UTC (History)
0 users

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 lpolycarpou 2008-01-07 14:43:14 UTC
This relates to the use of Sierra and was found in MS4.  After installing Sierra with a JDK that the user then wishes to
switch out, they need to resort to config files / batch files to do so for the IDE and app server.  There needs to be an
installer modification program to assist changing the desired JDK version for Sierra use.

During the CEW4 workshop, we needed to switch to JDK 1.5 (from 1.6) since the Oracle OTD had some dependencies on 1.5. 
To do so we needed to:

1.Change netbeans_jdkhome to use JDK 1.5.0 in C:\JavaCAPS52\netbeans\etc\netbeans.conf
2.Change “set AS_JAVA=C:\...\jdk1.x\jre/..” to use JDK 1.5.0 in C:\JavaCAPS52\glassfish\config\asenv.bat
Comment 1 Kirill Sorokin 2008-01-09 12:25:39 UTC
lpolycarpou,

to my best knowledge, neither the NetBeans installer nor the underlying NBI engine are used for JCAPS Sierra
installation. Thus, obviously this bug does not really belong here. I'm unsure, what is the proper location, however.
Comment 2 lpolycarpou 2008-01-20 01:57:47 UTC
I don't think this issue is specific to Sierra or installation for that matter.  Customers just need an easier way of
changing the JDK version for NetBeans and Glassfish from the IDE itself post-install.  At the moment, they have the
option to do this using startup parameters / config files.  For instance:

* It would be useful if the NB6 environment itself had a dedicated Option, in the Tools | Options dialog, for switching
the JDK version.  After all, you can change the Ant version in this way, so why not the JDK?

* We should also add something in the Glassfish properties to determine which JDK version NB6 uses for starting Glassfish.
Comment 3 Marian Mirilovic 2008-08-07 14:24:11 UTC
> * It would be useful if the NB6 environment itself had a dedicated Option, in the Tools | Options dialog, for switching
the JDK version.  After all, you can change the Ant version in this way, so why not the JDK?

simply because you are running on the JDK, so you can't change it for running IDE -> WONTFIX

for Glassfish issue reassign to serverplugins
Comment 4 Kirill Sorokin 2008-08-07 14:33:23 UTC
A bit of odd logic here IMHO..

> simply because you are running on the JDK, so you can't change it for running IDE -> WONTFIX

What about change the settings + require IDE restart for them to become effective? Happens every now and then in modern
software. Even if I install a small plugin I'm required to restart the IDE quite often..
Comment 5 Vince Kraemer 2008-10-29 00:31:02 UTC
I would like to resolve this in the GF  v3 plugin. the v2 plugin is not going to get this enhancement.
Comment 6 Vince Kraemer 2009-12-08 14:32:45 UTC
users can change the java executable that is used to run the v3 server