Hi, i have recently installed eclipse onto ubuntu, and after a few problems thought i had finally got it working, which of course was completley wrong.
I tried running an applet and got the following problem:
QuoteException in thread "main" java.lang.NoClassDefFoundError: sun.applet.AppletViewer
at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)
Caused by: java.lang.ClassNotFoundException: sun.applet.AppletViewer not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:/home/evilmonkey/workspace/LayoutManagerCWK/,file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
at java.net.URLClassLoader.findClass(java.lang.String) (/usr/lib/libgcj.so.6.0.0)
at java.lang.ClassLoader.loadClass(java.lang.String, boolean) (/usr/lib/libgcj.so.6.0.0)
at java.lang.ClassLoader.loadClass(java.lang.String) (/usr/lib/libgcj.so.6.0.0)
at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/libgcj.so.6.0.0)
at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)
So, after some messing around it seems i am not running the correct version of java, so i head to the java sun sight, get the latest version (.bin) file and have not managed to install it yet for the following reason:
Quoteevilmonkey@ubuntu:~$ fakeroot make-jpkg j2eesdk-1_4_03-linux.bin
Creating temporary directory: /tmp/make-jpkg.XXXXkjNOUB
Loading plugins: blackdown-j2re.sh blackdown-j2sdk.sh common.sh ibm-j2re.sh ibm-j2sdk.sh j2re.sh j2sdk-doc.sh j2sdk.sh j2se.sh sun-j2re.sh sun-j2sdk-doc.sh sun-j2sdk.sh
No matching plugin was found.
Removing temporary directory: done
i was using the following site: https://wiki.ubuntu.com/RestrictedFormats#head-0a52a913dd6107958d0de0b4110e9228200cb677
it does exactly the same for:
Quoteevilmonkey@ubuntu:~$ DEB_BUILD_GNU_TYPE=i386-linux fakeroot make-jpkg j2eesdk-1_4_03-linux.bin
Creating temporary directory: /tmp/make-jpkg.XXXXhloaup
Loading plugins: blackdown-j2re.sh blackdown-j2sdk.sh common.sh ibm-j2re.sh ibm-j2sdk.sh j2re.sh j2sdk-doc.sh j2sdk.sh j2se.sh sun-j2re.sh sun-j2sdk-doc.sh sun-j2sdk.sh
No matching plugin was found.
Removing temporary directory: done
at this point i am completley stuck and its getting really fustrating,
thankyou for any help
Forget the wiki, got to suns site and the download and instructions are there. Just installing the Desktop Java was i nightmare from the wiki for me. Went to suns site and it took minutes
Its painless to install via automatix or easy-ubuntu, the desktop plugin that is.
I thought Universe contained the dev environment? :dunno:
right, i managed to run the installation but it is not being used, and using the following commad: update-alternatives --config java i get the following results:
Quoteevilmonkey@ubuntu:~$ sudo update-alternatives --config java
There is only 1 program which provides java
(/usr/bin/java-sablevm). Nothing to configure.
Any help would be great
are you posting this question on ubuntuforums.org or asking on #ubuntu/irc.freenode.org?
Youd probably get a faster and better answer there. :thumbup: