Ralf wrote:
Hallo Leute,
> hab hier ein kleines Problem. Und zwar habe ich hier das JavaSDK auf mein
> Linux neu aufgespielt. Um nun ein Code zu compilieren muß ich erst den
> kompletten Pfad für Javac eingeben. Kenne mich leider nicht in Perl aus
> (die Batch-Scripts sind doch in Perl geschrieben, oder?).
Not necessarily, you can write scripts in lots of languages (bash, perl,
python, csh, ...).
But I've never heard of scripts to make using the regular java commands
easier. I don't quite see how they could do that too.
You don't need to use the full path for java/javac everytime, just make sure
they are in your PATH. You can add an entry like this in your
~/.bash_profile file:
export PATH="/dir/that/contains/javac;$PATH";
or put that as the last line in your /etc/profile if you want to set this
systemwide.
> Hat einer von Euch einen batch-Script oder ähnliches für Java, was den
> Aufruf der wichtigsten Befehle (javac, java, javadoc etc.) erleichtert?
You should also look at Ant (http://ant.apache.org/) to make building java
apps on the command line easier. It has somewhat of a learning curve, but
once you get used to it, you'll find it much faster to work with.

Signature
Kind regards,
Christophe Vanfleteren