Skip to content
This repository was archived by the owner on Apr 3, 2018. It is now read-only.
This repository was archived by the owner on Apr 3, 2018. It is now read-only.

could not start goclipse because java version is 0 #256

Description

@haoquanwang

goclipse version: 0.16.1
Eclipse Version: Oxygen.1a Release (4.7.1a) Build id: 20171005-1200
java version "9.0.1"
Java(TM) SE Runtime Environment (build 9.0.1+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)

When there is JDK 9 installed, starting Eclipse would give an error message "could not start goclipse because java version is 0"

I also installed JRE 9, problem remains the same.

Work around would be: installing JDK 8 along side java 9, then either:

1: Add -vm/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/bin/java to /Applications/Eclipse.app/Contents/Info.plist

Or:

2: change -vm option in /Applications/Eclipse.app/Contents/Eclipse/eclipse.ini from

-vm
/Library/Java/JavaVirtualMachines/jdk-9.0.1.jdk/Contents/Home/bin
-vmargs

to

-vm
/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/bin
-vmargs

I suppose substitute "jdk1.8.0_152.jdk" to any subversion of java 1.8 on your mac OS would work but I haven't tried. jdk1.8.0_152 is the latest as of 23rd November 2017.

I notice there is jre in /Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/ but there is no jre in /Library/Java/JavaVirtualMachines/jdk-9.0.1.jdk/Contents/Home even I have installed jre 9.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions