Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / April 2004

Tip: Looking for answers? Try searching our database.

s: Batchscript =?ISO-8859-15?Q?f=FCr?= Java unter Linux

Thread view: 
Ralf Geiger - 17 Apr 2004 20:30 GMT
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?).

Hat einer von Euch einen batch-Script oder ähnliches für Java, was den
Aufruf der wichtigsten Befehle (javac, java, javadoc etc.) erleichtert?

ciao
 Ralf
Christophe Vanfleteren - 17 Apr 2004 20:46 GMT
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



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.