Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 4699  / 3 Years ago, tue, october 26, 2021, 2:22:11

How do I configure what JVM Eclipse runs in?



I'm trying to switch it to use my installed java-6-sun so that I can use jstack to figure out why Eclipse is spinning endlessly in certain situations.



I recently upgraded to Ubuntu 12.04, and I'm using the pre-packaged Ubuntu Eclipse 3.7.2.



I tried to adding the -vm option to eclipse.ini (immediately above the -vmargs line in my /etc/eclipse.ini), but top still shows that Eclipse is running with plain old /usr/bin/java.



The Ubuntu community wiki article for Eclipse mentions /etc/eclipse/java_home, which doesn't exist on my system.


More From » java

 Answers
5

You may already be using your preferred JVM. Please note that /usr/bin/java is not a binary, but a symlink pointing to your preferred Java JRE/JDK alternative.



I recommend changing this alternative to Sun Java 6 to avoid any confusion. For how to do that, please see this question:




How do I make java default to a manually installed JRE/JDK?



[#36781] Wednesday, October 27, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ngthmated

Total Points: 12
Total Questions: 115
Total Answers: 113

Location: Saint Vincent and the Grenadines
Member since Wed, Apr 21, 2021
3 Years ago
;