On Tue, Jul 03, 2007 at 07:08:11AM +0000, [EMAIL PROTECTED] wrote: > Hello, > package eclipse 3.2.1-6 with sun-java6-jdk 6-00-2 on start prints: > searching for compatible vm... > testing /usr/lib/jvm/java-gcj...not found > testing /usr/lib/kaffe/pthreads...not found > testing /usr/lib/jvm/java-1.5.0-sun...not found > testing /usr/lib/j2se/1.5...not found > testing /usr/lib/j2se/1.4...not found > testing /usr/lib/j2sdk1.5-ibm...not found > testing /usr/lib/j2sdk1.4-ibm...not found > testing /usr/lib/j2sdk1.5-sun...not found > testing /usr/lib/j2sdk1.4-sun...not found > Could not create /usr/local/lib/eclipse/.eclipseextension. Please run as root: > touch /usr/local/lib/eclipse/.eclipseextension > chmod 2775 /usr/local/lib/eclipse/.eclipseextension > chown root:staff /usr/local/lib/eclipse/.eclipseextension > > man eclipse show > NOTES > Eclipse will search for a java virtual machine in this > order: VM given with the "-vm <JVM>" argument, > $JAVA_HOME/bin/java from $HOME/.eclipse/eclipserc and then in the > environment and at last use /usr/bin/java. > > and on my laptop java is a link to alternatives, java -version is > [EMAIL PROTECTED]:~$ whereis java > java: /usr/bin/java /usr/lib/java /usr/X11R6/bin/java /usr/bin/X11/java > /usr/share/java /usr/share/man/man1/java.1.gz > [EMAIL PROTECTED]:~$ /usr/bin/java -version > java version "1.6.0" > Java(TM) SE Runtime Environment (build 1.6.0-b105) > Java HotSpot(TM) 64-Bit Server VM (build 1.6.0-b105, mixed mode) > > Why eclipse don't start using this JVM?
eclipse currently has its own mechanism to find the JVM to run with. It checks all paths listed in /etc/eclipse/java_home to detect a working JVM. This needs to be changed. To work around this either put the path to your JDK 6 (/usr/lib/jvm/java-6-sun into /etc/eclipse/java_home as first entry or put JAVA_HOME=/usr/lib/jvm/java-6-sun into $HOME/.eclipse/eclipserc. Cheers, Michael -- .''`. | Michael Koch <[EMAIL PROTECTED]> : :' : | Free Java Developer <http://www.classpath.org> `. `' | `- | 1024D/BAC5 4B28 D436 95E6 F2E0 BD11 5923 A008 2763 483B _______________________________________________ pkg-java-maintainers mailing list pkg-java-maintainers@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/pkg-java-maintainers