ich moechte mir Java SDK und Eclipse installieren.
Leider scheitert es schon am sdk.
Nach
Code: Alles auswählen
apt-get install sun-j2se5.0-jdk-binary
Aber beide koennen nicht mal ein einfaches HelloWorld kompilieren:
Code: Alles auswählen
[kirk:root]/home/kirk# /usr/lib/sun-j2se5.0-jdk/bin/java /home/kirk/test
Exception in thread "main" java.lang.NoClassDefFoundError: /home/kirk/test
[kirk:root]/home/kirk# java test
java.lang.UnsupportedClassVersionError
at java.lang.VMClassLoader.nativeDefineClass (VMClassLoader.java)
at java.lang.VMClassLoader.defineClass (VMClassLoader.java:94)
at java.lang.ClassLoader.defineClass (ClassLoader.java:673)
at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:108)
at java.net.URLClassLoader.findClass (URLClassLoader.java:926)
at java.lang.ClassLoader.loadClass (ClassLoader.java:360)
at java.lang.ClassLoader$1.loadClass (ClassLoader.java:1285)
at java.lang.ClassLoader.loadClass (ClassLoader.java:304)
at java.lang.VirtualMachine.main (VirtualMachine.java:99)
[kirk:root]/home/kirk#
Code: Alles auswählen
The Eclipse executable launcher was unable to locate its
companion startup.jar file (in the same directory as the executable).
JVM terminated. Exit code=13
/usr/bin/java
-Xms40m
-Xmx256m
-jar /home/kirk/eclipse/./startup.jar
-os linux
-ws gtk
-arch x86
-launcher /home/kirk/eclipse/./eclipse
-name Eclipse
-showsplash 600
-exitdata 3e8006
-vm /usr/bin/java
-vmargs
-Xms40m
-Xmx256m
-jar /home/kirk/eclipse/./startup.jar
Liebe Gruesse,
Jakob