Author Topic: Java sun sdk 1.4 installation on ubuntu breezy  (Read 2438 times)

Java sun sdk 1.4 installation on ubuntu breezy
on: March 29, 2006, 20:49:53 PM
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:

Quote
Exception 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:

Quote
evilmonkey@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:

Quote
evilmonkey@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

Re:Java sun sdk 1.4 installation on ubuntu breezy
Reply #1 on: March 29, 2006, 21:01:33 PM
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

Java sun sdk 1.4 installation on ubuntu breezy
Reply #2 on: March 29, 2006, 21:45:53 PM
Its painless to install via automatix or easy-ubuntu, the desktop plugin that is.

I thought Universe contained the dev environment? :dunno:

Re:Java sun sdk 1.4 installation on ubuntu breezy
Reply #3 on: March 30, 2006, 18:02:55 PM
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:

Quote
evilmonkey@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

Java sun sdk 1.4 installation on ubuntu breezy
Reply #4 on: March 30, 2006, 18:07:37 PM
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:


0 Members and 1 Guest are viewing this topic.