PDA

View Full Version : java SDK 1.4.1 from [url]www.sun.com[/url]



A. Jorge Garcia
12-14-2002, 10:46 PM
I started evaluating KNOPPIX iso's about a year ago with an eye toward using it to teach Java in AP Computer Science next year. At that time KNOPPIX was still not very user friendly (root access to use /mnt/floppy, etc) but it already showed a lot of promiss (2GB of apps due to on the fly decompression, auto detection, etc) so I kept my BigSlack Slackware Linux install to teach C++ (GCC g++).

Also, KNOPPIX had Java JRE (for the browser) but not SDK (software developers' kit). I suggested to Klaus to add it in and I thought he hadn't. I could only compile a console app (no applet for the web or graphics) with GCC's gcj.

Just for fun, I decided to write a HelloWorldApp.java (console app) and try javac. I was able to compile it to HelloWorldApp.class and interpret it with java HelloWorldApp. This much I was able to do with gcj, but now I used javac and everything worked.

OK, so I tried an applet. I wrote HelloWorld.java (an applet, not a console app) importing java.applet.* and java.awt.* just to see what would happen. Well, I compiled this file with javac HelloWorld.java and had no error (this never worked before) and got HelloWorld.class.

Now, I tried appletviewer HelloWorld.class and got a pile of errors, but eventually got the applet running. I then wrote a Hello.html file with the applet tag. When I clicked on Hello.html from the desktop folder, lo and behold, Konqueror ran it fine!

Did I miss something here? Did Klauss add the SDK without telling anyone? When did this happen? All I know is none of this applet stuff worked with the July iso, but I was using the november one today (v3.1-2002-11-08-EN) and it was glorious!

Thanx Klaus!

A. Jorge Garcia
12-25-2002, 09:05 PM
OOPs, I cannot compile applets with the Nov 2002 iso! A caring soul from the Netherlands remastered me a copy of the Oct 2002 iso where he added the SDK and mailed me a copy of his CD. I was using his when I got applets to work! Thanx Andrej.

Anyway, his CD is perfect for my Java class next year. I don't have the facilities to remaster my own KNOPPIX CD, I wish.... So the question is how do I make an iso out of his CD so I can make multiple copies?

Thanx,