[Reopened] [Dapper] Eclipse startup script should respect jwm setting via update-alternatives
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
eclipse (Debian) |
Fix Released
|
Unknown
|
|||
eclipse (Ubuntu) |
Fix Released
|
Medium
|
Niels Thykier |
Bug Description
[Dapper] eclipse 3.1.1-8ubuntu2
I have changed by default jvm to sun java 1.5 via the update-alternatives mechanism (using the package provided in the Dapper repositories).
The eclipse startup script is ignoring this setting even after I did change the default jvm inside eclipse. It cycles through the entries in /etc/eclipse/
Of cause there are several ways to work around this such as using the -vm option. But I feel that eclipse should be good Debian citizen.
The bug has been rejected with the argument that update-alternatives is not able to handle JAVA_HOME. This argument is not very convincing. Basically the bug could be fixed by adapting the heuristics used in the eclipse startup script to determine $JAVA_HOME.
Because I am not very familiar with shell scripting and don't know anything about the Debian packing system, I don't attempt a fix. However the basic strategy to fix the issue could be to determine the jvm from update-alternatives and put the line for the right jvm at the beginning of /etc/eclipse/
To prove the feasibility of my approach: The following (I admit a bit clumpsy) script writes the required variant of /etc/eclipse/
#!/bin/bash
javainterpreter
myjavahome=`cat /etc/eclipse/
cat /etc/eclipse/
Regards
Erich Pawlik
description: | updated |
description: | updated |
Changed in eclipse: | |
assignee: | nobody → motujava |
Changed in eclipse: | |
status: | Unknown → New |
Changed in eclipse (Debian): | |
status: | New → Fix Committed |
Changed in eclipse (Debian): | |
status: | Fix Committed → Fix Released |
With the new sun-java5 packages, eclipse won't run.
A popup box says:
"The custom vm you have chosen is not a valid executable."
On the command line: madkeunnen: ~$ eclipse j2sdk1. 5-sun
joachim@
using specified vm: /usr/lib/
This is the same problem as above, that is: eclipse doesn't follow the settings provided by /etc/alternatives (where I have /usr/lib/ jvm/java- 1.5.0-sun set), but uses the $JAVA_HOME. If I set that to /usr/lib/ jvm/java- 1.5.0-sun, everything works fine.