Bug 61437 - Add possibility to setup JDK from the IDE (was:No way to change default Java platform)
Add possibility to setup JDK from the IDE (was:No way to change default Java ...
Status: NEW
Product: platform
Classification: Unclassified
Component: -- Other --
6.x
PC Windows XP
: P2 with 4 votes (vote)
: Dev
Assigned To: issues@platform
issues@platform
:
: 161446 231581 234324 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-07-27 02:46 UTC by kitfox
Modified: 2014-04-11 14:35 UTC (History)
4 users (show)

See Also:
Issue Type: ENHANCEMENT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kitfox 2005-07-27 02:46:05 UTC
I have several Java installations on my machine, including 1.5.0_02, 1.5.0_04
and 1.6.0.  At the moment, NetBeans is using 1.5.0_02 and I'd like to to change
to using 1.5.0_04.  I've tried to modify this via the Tools/java Platform
Manager, but it seems to provide a read only view of the available platforms.  

I also tried following the online docs, but they ask me to select a 'library'
tab in my project properties dialog which no longer seems to be part of NetBeans:

>Once you have registered a JDK, you can configure a standard project to use 
>that JDK for compilation, execution, and debugging. Go to the project's Project
>Properties dialog box, select the Libraries node, and choose the appropriate 
>JDK in the Java Platform combo box.

Any ideas how I can change this without reinstalling NetBeans?

Mark McKay
http://www.kitfox.com
Comment 1 Milan Kubec 2005-07-27 12:11:33 UTC
If you want to change the JVM the IDE is running on you need to either pass
--jdkhome=<jdk_installation> or you can modify property netbeans_jdkhome in
netbeans.conf file in etc folder in your IDE installation.
If you want to run your project with different JDK than default you need to
register the JDK in your IDE by Tools | Options | Java Platform Manager and then
you assign the platform to the project in its Properties dialog under node
Libraries.
Comment 2 _ lcincura 2005-08-01 16:21:22 UTC
Feel free to reopen, if the hint did not solve your problem
Comment 3 malfunction84 2008-08-07 23:23:21 UTC
It isn't very convenient to have to update the netbeans.conf file manually.  Could you add a "Make Default" button to
the IDE's Java Platform Manager dialog so we can change the default platform from within the IDE itself?

This button would just update the netbeans_jdkhome value defined in etc/netbeans.conf to the Platform Folder of the
selected platform, and it would only take effect after restarting the IDE.
Comment 4 markiewb 2014-04-07 17:04:20 UTC
*** Bug 161446 has been marked as a duplicate of this bug. ***
Comment 5 markiewb 2014-04-07 17:06:24 UTC
*** Bug 231581 has been marked as a duplicate of this bug. ***
Comment 6 Tomas Zezula 2014-04-11 14:32:02 UTC
*** Bug 234324 has been marked as a duplicate of this bug. ***
Comment 7 Tomas Zezula 2014-04-11 14:35:45 UTC
Requires some new naming conventions.
The Default platform in NB is a special platform on which the IDE runs, the build-impl.xml differs to build-impl.xml for non default platform.
The new project (at least Ant) is not created with default platform but with last used platform. We may add something like "preferred" platform which overrides the last used behaviour.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo