Eclipse with Java 6 [message #507804] |
Thu, 14 January 2010 12:48  |
Eclipse User |
|
|
|
I recently had to upgrade my application to use Java 6. I still have Java 5 installed in a separate location. The problem is that when Java 6 is on my PATH Eclipse gives me an error, but my app and others run fine. Eclipse is only happy when Java 5 is in the PATH and Java 6 isn't.
AFAIK, Eclipse is not locked in to a particular version of Java. So if it works for Java 5, I would think it would also work for future versions as well (Java 6). I found nothing about this issue on the Eclipse web site. Is there a command-line switch which I need to tell Eclipse to expect Java 6?
Mark
|
|
|
|
|
|
|
|
Re: Eclipse with Java 6 [message #510557 is a reply to message #507978] |
Wed, 27 January 2010 14:54  |
Eclipse User |
|
|
|
On 1/15/10 6:58 AM, Mark wrote:
> Interestingly, I found the appropriate command-line option and I got
> Eclipse to work using Java 6 by specifying the full path of the java
> executable as an argument to the -vm option. I never had reason to use
> this option before. If I omit this option, then Eclipse will not launch
> if Java 6 is in the PATH.
>
> I now consider this issue closed, but I will check back for replies in
> case anyone posts some comments about why Eclipse would fail without the
> -vm option and Java 6 in the PATH.
See http://wiki.eclipse.org/Eclipse.ini for official documentation (and
examples for several platforms) on how to do this.
Hope this helps,
Eric
|
|
|
Powered by
FUDForum. Page generated in 0.26374 seconds