Changing the default jdk(1.5_06) to 1.4.x

Hi,pls i am building a portlet application and i want to use jdk 1.4_12 for it.i want to be able to change the default jdk(1.5_06) to 1.4_12.the portal in which i am deploying the portlet to does not support jdk 1.5.i am using liferay portal.
[291 byte] By [javaman2020] at [2007-11-26 9:57:43]
# 1
Hi!You can set netbeans_jdkhome=<path_to_jdk> in $Creator_Dir/etc/creator.conf or pass --jdkhome=<path_to_jdk> parameter when You start IDE.Thanks,Roman.
Grif at 2007-7-7 1:22:14 > top of Java-index,Development Tools,Java Tools...
# 2

I need to do this too, & the docs aren't helping much... this FAQ

http://developers.sun.com/prodtech/javatools/jscreator/reference/faqs/configura tion/java5limits.html

seems to indicate that apps will be compiled & run w/a target of 1.4 by default, but this must be old as the Project Properties > Libraries > Java Platform popup only shows 1.5 (Default).

It must have something to do with the "Manage Platforms..." button, but i can't get the "next" button to light up in the "Choose Platform Folder" dialog, nor do i know what a "Platform Folder" is - and the docs & website are no help at all...

Anyone?

alyxandr at 2007-7-7 1:22:14 > top of Java-index,Development Tools,Java Tools...
# 3

OK, my problem was i just had the JRE installed, not the full JDK - damn client laptop... ;-)

Anyway, this appears to work for me:

1) Right-click your project & choose "Properties"

2) Select the "Libraries" category

3) At the top of the dialog box, click the "Manage Platforms..." button

4) Click the "Add Platform" button at the lower left

5) Point at a full SDK (*not* just a JRE) folder & click "Next"

6) Verify that it found the "Platform Sources" (if not, browse for them) and click "Finish"

7) You can then select your new platform from the "Java Platform" popup at the top of the Libraries category of Project Properties

Hope this is what you were looking for, best of luck,

alex.

alyxandr at 2007-7-7 1:22:14 > top of Java-index,Development Tools,Java Tools...