- This topic has 1 reply, 2 voices, and was last updated 19 years ago by Brian Fernandes.
-
AuthorPosts
-
Bruce PetroMemberOK, I have been working off of JDK 1.4.x, MyEclipse 4.0x and Tomcat.
But I want to install JBoss and all the ones on their distribution page appear to want 1.5, plus it may be time to start getting used to it anyway.SO – if I install JDK 1.5 now, I believe:
1. MyEclipse has record of the 1.4 path and will continue using it till I change that.
Correct? Is MyEclipse yet ready to use 1.5 or does it expect 1.4.x for its running?
It occurs to me the version of Java being run from probably does NOT have to equal
the version source is being programmed for. Otherwise, you wouldn’t offer new projects
to be created with EITHER J2EE 1.3 or J2EE 1.4 which as far as I know crosses that line.
2. Hmm… if I select a project to use J2EE 1.4 instead of 1.3 doesn’t that imply Java 1.5? How do you handle MyEclipse running off of Java 1.4 while the source and libraries are 1.5? OR vice-versa for that matter? I mean just a brief review of how you handle it.
3. At some point I’ll want to move MyEclipse over to 1.5 as well, and would like to know the steps to do that.Thanks!
Brian FernandesModeratorbapetro,
3) MyEclipse will run with Java 1.5, without any issues – see below for how to do it.
1) MyEclipse has no record of your java path, it just depends on your system’s environment. You can check what version is being used in the listing from MyEclipse > About MyEclipse > Configuration Summary.
If you want to force eclipse to use another JDK – use the -vm argument when starting eclipse. e.g. eclipse.exe -vm c:\java1.4\bin\javawIt occurs to me the version of Java being run from probably does NOT have to equal the version source is being programmed for.
Yes, that’s right, you can start eclipse using 1.5 and compile your workspace using 1.4 (Window > Preferences > Java > Compiler > Installed JREs)
2) If 1.5 libraries are used, you will need to compile your workspace with 1.5, see above preference. I’ll ask someone else to pitch in with the J2EE details – if you still require them?
Hope this helps,
Best,
Brian. -
AuthorPosts