How to run Eclipse Indigo on JDK 1.7 OSX

前端 未结 3 1837
清酒与你
清酒与你 2021-02-05 05:51

With the recently OSX JDK 7 ea release from Oracle. How to run Eclipse Indigo ?

I get the following error msg:

$ echo $JAVA_HOME
/Library/Java/JavaVirtua         


        
相关标签:
3条回答
  • 2021-02-05 06:41

    Try this: http://twitter.com/#!/cimnine/status/126219234203271168/photo/1

    Worked for me.

    This is an old solution and has no relevance anymore.

    0 讨论(0)
  • 2021-02-05 06:50

    The Eclipse bug is resolve in the last Eclipse 3.8 Milestone.

    It's work for me.

    0 讨论(0)
  • 2021-02-05 06:53

    I just tried this myself and had some complications so I thought I would share what ended up working for me:

    1. Download and install Mac OSX version of Java SE Development Kit 7
    2. Under Eclipse -> Preferences -> Java -> Installed JREs, click Add, select Mac OS X VM, then click Next.
    3. Enter "/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home" as the JRE home directory, enter something reasonable like "Java SE 7" as the JRE name, and then click Finish. (Note that you won't be able to navigate to the "../Contents/Home" folder. You will have to type it in manually.)
    4. After adding the new JRE to the list of Eclipse installed JREs, check the box next to the new JRE that you just added and then click OK.
    5. Now under Eclipse -> Preferences -> Java -> Compiler, select 1.7 from the "Compiler compliance level" dropdown and click Ok.

    Hope this helps someone who has problems figuring this out. The confusing part for me was selecting the JRE home directory in Eclipse, since I wasn't able to navigate to it.

    0 讨论(0)
提交回复
热议问题