preferring java-gcj causes erratic workspace configuration setting

Bug #38748 reported by brettatoms
6
Affects Status Importance Assigned to Milestone
eclipse (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

If $JAVA_HOME is set then eclipse will use...
$HOME/.eclipse/org.eclipse.platform_3.1.2/configuration/.settings$ less org.eclipse.ui.ide.prefs
...for its custom user settings.

If $JAVA_HOME is not set then eclipse will run using java-gcj. If ~/.eclipse is deleted then the prefs file mentioned above is never even created and I can't figure out how to change the default location of the workspace from ~/workspace.

If you hava JAVA_HOME set in ~/.bashrc then running eclipse from the terminal and from deskbar-applet can give you different workspaces.

Revision history for this message
brettatoms (brettatoms) wrote :

oops, bad paste. configuration file should be....
$HOME/.eclipse/org.eclipse.platform_3.1.2/configuration/.settings/org.eclipse.ui.ide.prefs

Revision history for this message
Erich Pawlik (erichpawlik) wrote :

Just a question (my report on bug #36354 is possibly in a way related to your bug): What is your $JAVA_HOME setting? Do you have thze same problem when calling eclipse with the -vm command line option?

Revision history for this message
brettatoms (brettatoms) wrote : Re: [Bug 38748] Re: eclipse JVM/gcj don't use same configuration

I assume you mean #36534 not #36354 (Canon S400 and S100 printing
problem) ;)

$ echo $JAVA_HOME
/usr/lib/j2sdk1.5-sun

$ eclipse -vm /usr/lib/jvm/java-gcj/jre/bin/java

Running with the -vm option as above doesn't seem to use the same
configuration configuration setting as when using the vm from
$JAVA_HOME.

$ eclipse -vm /usr/lib/j2sdk1.5-sun/jre/bin/java
Uses the proper configuration.

On Sat, 2006-04-08 at 15:49 +0000, Erich Pawlik wrote:
> Just a question (my report on bug #36354 is possibly in a way related to your bug): What is your $JAVA_HOME setting? Do you have thze same problem when calling eclipse with the -vm command line option?

Revision history for this message
PomCompot (pomme-compote-launchpad) wrote : Re: eclipse JVM/gcj don't use same configuration

Moreover, using Eclipse 3.2.2 on Hardy (Build id: M20070212-1330 (Ubuntu version: 3.2.2-5ubuntu2)), Eclipse use by default the GCJ JVM and doesn't ask for workspace whatever the value of SHOW_WORKSPACE_SELECTION_DIALOG in ~/.eclipse/org.eclipse.platform_3.2.0/configuration/.settings/org.eclipse.ui.ide.prefs. It's an obvious bug due to the GCJ JVM because it doesn't appear with the Sun JVM.

Globally, I think that the default order of the preferred JVM in the file /etc/eclipse/java_home is not the better choice. I already have problems with Eclipse 3.0 which was very slow with the gcj version. Now, I got this problem with workspace location dialog which doesn't appear. I personally think that the order hereunder must be the default one (with gcj and kaffe at the end) :

#/usr/lib/jvm/java-7-icedtea
/usr/lib/jvm/java-6-sun
/usr/lib/jvm/java-1.5.0-sun
/usr/lib/j2se/1.5
/usr/lib/j2se/1.4
/usr/lib/j2sdk1.5-ibm
/usr/lib/j2sdk1.4-ibm
/usr/lib/j2sdk1.6-sun
/usr/lib/j2sdk1.5-sun
/usr/lib/j2sdk1.4-sun
/usr/lib/jvm/java-gcj
/usr/lib/kaffe/pthreads

Daniel T Chen (crimsun)
Changed in eclipse:
importance: Medium → Low
status: New → Confirmed
Revision history for this message
Niels Thykier (niels-thykier) wrote :

Hi

We no longer have a predefined list of "preferred" JVMs for eclipse (since 3.5.1). While the documentation has not been updated to reflect this, we also now ignore $JAVA_HOME[1], $JAVA_CMD[1] and ~/.eclipse/eclipserc.

~Niels

[1] Though I will not rule out the possibility that eclipse itself might react to this variable. I have not checked and do not have the time to do so before the final freeze.

Changed in eclipse (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.