Installed CDT on Linux - Says Java version too old [message #243652] |
Wed, 19 December 2007 17:36 |
Eclipse User |
|
|
|
Originally posted by: howa.howa.net
Dialog saying "Java version 1.4.2 is not suitable for this product.
Version 1.5 or greater is required".
So I followed the instructions on Sun's site and installed Java version
1.5. Installation appeared to succeed, but apparently Eclipse is still
looking at the old installation. How do I get it to look at the new Java
installation?
Thanks
|
|
|
Re: Installed CDT on Linux - Says Java version too old [message #243658 is a reply to message #243652] |
Wed, 19 December 2007 18:13 |
Eclipse User |
|
|
|
Originally posted by: manfred.antispam.at
Howard Egan wrote:
> Dialog saying "Java version 1.4.2 is not suitable for this product.
> Version 1.5 or greater is required".
>
> So I followed the instructions on Sun's site and installed Java version
> 1.5. Installation appeared to succeed, but apparently Eclipse is still
> looking at the old installation. How do I get it to look at the new
> Java installation?
>
> Thanks
>
>
>
Try to start eclipse with the parameter "-vm <path to java1.5 vm>"
Regards
Manfred
|
|
|
|
Re: Installed CDT on Linux - Says Java version too old [message #243709 is a reply to message #243658] |
Thu, 20 December 2007 10:38 |
Eclipse User |
|
|
|
Originally posted by: 4cs6fcg02.sneakemail.com
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigCB2993FA6DC8A6947EB0C836
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Manfred Stelzhammer schreef:
> Howard Egan wrote:
>> Dialog saying "Java version 1.4.2 is not suitable for this product.=20
>> Version 1.5 or greater is required".
>>
>> So I followed the instructions on Sun's site and installed Java
>> version 1.5. Installation appeared to succeed, but apparently Eclipse=
>> is still looking at the old installation. How do I get it to look at
>> the new Java installation?
> Try to start eclipse with the parameter "-vm <path to java1.5 vm>"
Or rather, you might make sure the 1.5 Java is the default one.
Type
java -version
on the command line. It should say something like
java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_03-b05, mixed mode)
Note that I already have java 1.6, which I would suggest you to take
too. No reason to use the old Java 5 anymore.
This means you will have to mess around with PATH and stuff. I supposed
you installed the new Java in /usr/local/, then it will suffice to put a
symbolic link to /usr/local/jdk<version>/bin/java in /usr/local/bin.
Alternatively, as root, type
update-alternatives -config java
on the command line and see whether it offers you your new version. If
not, you=E2=80=99ll have to add it somehow. I do not know how that works=
, though.
Even more possibilities: install it by your favorite package manager,
this should do all that stuff for you.
H.
--=20
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
--------------enigCB2993FA6DC8A6947EB0C836
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFHakY9e+7xMGD3itQRAlcWAJ4lufeA1Ey12gSslPqYr5dhBIX6qQCd HPV3
/Ic0MwLqVN0ScMPX7MMWpyA=
=GG2O
-----END PGP SIGNATURE-----
--------------enigCB2993FA6DC8A6947EB0C836--
|
|
|
Re: Installed CDT on Linux - Says Java version too old [message #243722 is a reply to message #243658] |
Thu, 20 December 2007 15:01 |
Eclipse User |
|
|
|
Originally posted by: eclipse-news.rizzoweb.com
Manfred Stelzhammer wrote:
> Howard Egan wrote:
>> Dialog saying "Java version 1.4.2 is not suitable for this product.
>> Version 1.5 or greater is required".
>>
>> So I followed the instructions on Sun's site and installed Java
>> version 1.5. Installation appeared to succeed, but apparently Eclipse
>> is still looking at the old installation. How do I get it to look at
>> the new Java installation?
>>
>> Thanks
>>
>
> Try to start eclipse with the parameter "-vm <path to java1.5 vm>"
Better yet is to add that option to eclipse.ini, taking special care to
follow the correct format. There are many examples to be find via Google.
Hope this helps,
Eric
|
|
|
Powered by
FUDForum. Page generated in 0.08969 seconds