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 / General / February 2007

Tip: Looking for answers? Try searching our database.

Basic question about command invocation

Thread view: 
Sathyaish - 19 Feb 2007 17:05 GMT
I am new to Java so please be gentle. I confess not having read
through some basic stuff yet, although I am doing my best sifting
through the racks and piles of documents I have.

In the invocation below:

@java -classpath ../lib/hsqldb.jar org.hsqldb.Server %1 %2 %3 %4 %5 %6
%7 %8 %9

are the %x mnemonics for some entry points in the Server class?

I understand the above invocation as:

1. Call the java.exe file to execute Server.class which resides in org/
hsqldb/
2. For this call, set the classpath, i.e. look for .class and .jar
files in parentOfCurrentDir/lib/hsqldb.jar

What I do not understand is the % symbols. Are they ordinals for entry
points like invoking dll entry points in C?
Uwe Plonus - 19 Feb 2007 17:14 GMT
> I am new to Java so please be gentle. I confess not having read
> through some basic stuff yet, although I am doing my best sifting
[quoted text clipped - 16 lines]
> What I do not understand is the % symbols. Are they ordinals for entry
> points like invoking dll entry points in C?

The Parameters %1 to %9 are from the shell script (or batch file) to
pass parameters from the command line where the shell script is called
to the java programm. They do not have anything to do with java.

Uwe


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



©2009 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.