how to change the config file for correct java location to run scala ide - 'returned exit code 1'

129 Views Asked by At

I downloaded scala ide, but it won't run. It gives me this error:

enter image description here

but my java location is C:/jdk.

I do have JAVA_HOME installed and pointing to C:/jdk.

how to make eclipse look to the right location for scala eclipse ide to run?

2

There are 2 best solutions below

3
howlger On

You have a 64 bit Eclipse (x86_64) that does not work with the 32 bit Java (Program Files (x86)) you have.

To run that Eclipse you need a 64 bit Java, which can be specified in the eclipse.ini.

0
ERJAN On

alright, after soooo much struggle I found a solution - i made eclipse launch with this trick. @howgler - from the previous comment gave me link to Adopt open jdk

I never heard of it before, but it's just another opensource jdk\jre build.

  • I selected windows x64
  • installed the openJDK.
  • changed the JAVA_HOME env var to C:\openjdk\jdk8025209hotspot - no spaces.
  • reload the computer

No need to mess with eclipse.ini file, i just deleted all that "-vm stuff" and made it work with adopt_open_jdk