Re: This is my first post...
Quote:
Originally posted by FillYourBrain
...from a linux machine.
disclaimer: this does not mean that I'm joining the legion of the undead who want to destroy microsoft at all costs.
Maybe not, but at least you have seen that there are alternatives to Microsoft, and that isn't the easiest thing to know about because Microsoft is the first thing we ever know, and for most of us it is the only thing we ever know. When you say something bad about Microsoft, many believe that you are damning computers in general. They think that if you take away Microsoft, than there will be no such thing as computers.
Mandrake 9.0 instructions for installing Java2.
1) Bookmark (instructions page):
< http://java.sun.com/j2se/1.4.1/jre/install-linux.html >
2) Now go to < http://java.sun.com/j2se/1.4/download.html >
- See: Linux RPM in self extracting file.
- Open your shell and type (mkdir: Java2sdk)
- Download the SDK, not the JRE to this new directory.
- Return to bookmarked instruction page.
- Scroll down to 'Installation of RPM File' near the bottom of the page.
- In the shell, in the new directory type (ls) and make sure the download is there. It should say (j2sdk-1_4_0_02-linux-i586-rpm.bin).
- Type (chmod a+x j2sdk-1_4_0_02-linux-i586-rpm.bin).
- Type (./j2sdk-1_4_0_02-linux-i586-rpm.bin). Note the period.
- Type (ls) and notice that there are two files now, and they are not the same, one ends in .rpm, the other ends in .rpm.bin.
- Type (su) and enter your root password.
- Type (rpm -iv j2sdk-1_4_0_02-fcs-linux-i586.rpm).
- J2E is installed, but now you must add the plugin to your web browser so that you can display web pages in Java2.
- Remain as root and type (ln -s /usr/java/j2sdk1.4.0_02/jre/plugin/i386/ns610/libjavaplugin_oji.so /usr/lib/mozilla-1.1/plugins/).Creates a symbolic link. Note the space in there that doesn't show on this stupid message board.
- Exit as root and than exit as user.
It's all done. Pick up a book and write your java apps, except since the paths to (/usr/java/j2sdk1.4.0_02/jre/bin/) are not part of the $PATH, than you have to type the fully qualified name to compile your files and run them, for example (/usr/java/j2sdk1.4.0_02/jre/bin/javac myprog.java) compiles your java application, and (/usr/java/j2sdk1.4.0_02/jre/bin/java myprog) runs the java application. All the executables are in (/usr/java/j2sdk1.4.0_02/jre/bin/) get it? It would be easier to add that to your system PATH. This also holds true on Microsoft versions. Try writing a java appliation on Linux, than taking the exact same code (download J2E SDK on MS Windows just unzip the download and done) run that code on MS Windows. Now you know the power!
BTW to add Macromedia Flash to your Linux browsers go to (www.shockwave.com). A pile of popups will appear. Download the rpm as user. Unzip it with: (rpm -ivh filename.rpm). Than copy (cp) or cut and paste (mv) the ShockwaveFlash.class and the libjavaplugin_oji.so files to the mozilla plugin path (
/usr/lib/mozilla-1.1/plugins/). Now shockwave works on your browsers (the best browser is Galeon).
Note, to make life easier: when entering a filename or pathname, enter the first couple letters and press the tab key. That will expand the filename for you. It speeds things up.