How to get Eclipse to use Sun Java?

Before installing Eclipse, I had OpenJDK as the default JVM. I recently changed it to Sun Java.

I did this because Eclipse Helios was very slow. Unfortunately, it is still slow ... Do you have any idea how to get it to use Sun Java?

I could reinstall Eclipse, however I already installed the Android SDK, so I will have to install it again. In the end, I do not think the right way to solve the problem. I am using Ubuntu 10.10.

$ java -version java version "1.6.0_22" Java(TM) SE Runtime Environment (build1.6.0_22-b04) Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode) 

I would be grateful for any help.

+4
source share
2 answers

You can tell Eclipse which virtual machine to use with the -vm command line -vm .

See the Eclipse wiki article for example using

+3
source

Modify $ECLIPSE_HOME/eclipse.ini and add the following before the vmargs option.

 -vm /opt/path/to/sun-jdk-1.6.0.02/bin/java 
+7
source

Source: https://habr.com/ru/post/1335735/


All Articles