Basic question about command invocation

S

Sathyaish

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?
 
U

Uwe Plonus

Sathyaish said:
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?

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top