Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Java compiler
Java compiler
Hi, ive installed java on my debian sarge system, and it seems to work fine. But I cant seem to get the "javac" command to work, so that I can compile my java applications. Do I have to install a new package?
Re: Java compiler
Hi warydig, when it comes to setting up a Java environment under Linux there are a few options, but in my own opinion, only one decent option (Sun's or IBM's SDK).
There are a few open source Java compilers, namely; GCJ, and Jikes. For a Java Virtual Machine (runs the byte code) there are; GIJ and Kaffee, but each of the previously mentioned software do not fully implement the Java 2 specification. So, you'll have problems running Java programmes from Java Games, to Java desktop applications. Also both the compilers and interpreters (Virtual Machines) use pretty basic optimisation techniques when compared to Sun's and IBM's Java implementations.
So, I suggest you "apt get remove..." whatever Java stuff you've installed, and instead download Java 1.5 from Sun.
https://sdlc2d.sun.com/ECom/EComActionS ... CFEF710C50
Choose the "self-extracting" version, and
Move the directory to where ever you want it to go, and create a symbolic link to it, so "java" and "javac" are available to other programmes. In the example below I'm using "/export/bin/java-1.5" as the place where I've installed Java 1.5
Also, you make sure you set your browser up with Java support. I'm using Firefox, but for Mozilla or Opera its pretty much the same. Again, I've assumed you've installed Sun's Java in "/export/bin/java-1.5", so in your case change to the appropriate directory.
The last line looks for the file "libjavaplugin_oji.so" and installs it in /usr/lib/firefox/plugins/ but the plugins directory for your browser is most likely in a different place e.g "~/.mozilla/firefox/plugins" or few other places.
Anyways, hope this works.
There are a few open source Java compilers, namely; GCJ, and Jikes. For a Java Virtual Machine (runs the byte code) there are; GIJ and Kaffee, but each of the previously mentioned software do not fully implement the Java 2 specification. So, you'll have problems running Java programmes from Java Games, to Java desktop applications. Also both the compilers and interpreters (Virtual Machines) use pretty basic optimisation techniques when compared to Sun's and IBM's Java implementations.
So, I suggest you "apt get remove..." whatever Java stuff you've installed, and instead download Java 1.5 from Sun.
https://sdlc2d.sun.com/ECom/EComActionS ... CFEF710C50
Choose the "self-extracting" version, and
Code: Select all
chmod u+x jdk-1_5_0_09-linux-i586.bin
./jdk-1_5_0_09-linux-i586.bin
Code: Select all
su -
rm -f /usr/bin/java /usr/bin/javac
ln -s /export/bin/java-1.5/bin/java /usr/bin/java
ln -s /export/bin/java-1.5/bin/javac /usr/bin/javac
Code: Select all
cd /export/bin/java-1.5
find . -iname libjavaplugin_oji.so -exec cp {} /usr/lib/firefox/plugins/ \;
Anyways, hope this works.
warydig wrote:Hi, ive installed java on my debian sarge system, and it seems to work fine. But I cant seem to get the "javac" command to work, so that I can compile my java applications. Do I have to install a new package?
And if you want to turn the bin-file from Sun into a deb-package (which easily can be removed later), install the package java-package, then do:and then install the package:
Code: Select all
make-jpkg jdk-1_5_0_09-linux-i586.bin
Code: Select all
dpkg -i <deb-file>