Additions:
This command simulates the equivalent call to "java" command line.
Deletions:
Additions:
java -X... -D... classname, application parameters
Deletions:
Additions:
===Options to the Java virtual machine===
Sometimes when you call up a Java application you need to pass parameters not to the program, but to the Java Virtual machine. The format for this is generally
> Java -X... -D... classname, application parameters
the -X and -D parameters are not available to the jcall command. If that is what you need, use the java command, i.e. call out to the operating system, see [[BasicUsage]]
Sometimes when you call up a Java application you need to pass parameters not to the program, but to the Java Virtual machine. The format for this is generally
> Java -X... -D... classname, application parameters
the -X and -D parameters are not available to the jcall command. If that is what you need, use the java command, i.e. call out to the operating system, see [[BasicUsage]]
Additions:
====Notes on classpath====
If the classpath is more then one string it should be in a sequence variable or expression.
To pass this expression as a sequence you need to wrap it with {} to keep it from being expanded into seperate arguments.
jcall -cp {$cp} org.test.MyClass arg1 arg2 arg3
If the classpath is more then one string it should be in a sequence variable or expression.
To pass this expression as a sequence you need to wrap it with {} to keep it from being expanded into seperate arguments.
jcall -cp {$cp} org.test.MyClass arg1 arg2 arg3
Deletions:
Additions:
jcall [-cp,-classpath classpath ] classname [args]
Deletions:
Additions:
||-cp,-classpath classpath||Uses the specified classpath in the classloader for calling the specified class.
Deletions:
-classpath classpath|| Uses the specified classpath in the classloader for calling the specified class.
Additions:
-classpath classpath|| Uses the specified classpath in the classloader for calling the specified class.
The classpath is expected to be a single string or sequence of strings.||
The classpath is expected to be a single string or sequence of strings.||
Deletions:
Additions:
===Options===
||-cp classpath
-classpath classpath|| Uses the specified classpath in the classloader for calling the specified class. The classpath is expected to be a single string or sequence of strings.||
====Examples====
cp=(lib/*.jar)
jcall -cp $cp org.test.MyClass arg1 arg2 arg3
[[Commands]]
||-cp classpath
-classpath classpath|| Uses the specified classpath in the classloader for calling the specified class. The classpath is expected to be a single string or sequence of strings.||
====Examples====
cp=(lib/*.jar)
jcall -cp $cp org.test.MyClass arg1 arg2 arg3
[[Commands]]
Deletions:
-classpath classpath Uses the specified classpath in the classloader for calling the specified class. The classpath is expected to be a single string or sequence of strings.l
$ cp=(lib/*.jar)
$ jcall -cp $cp org.test.MyClass arg1 arg2 arg3
Deletions:
Additions:
jcall [-cp|-classpath classpath ] classname [args]
-cp classpath
-classpath classpath Uses the specified classpath in the classloader for calling the specified class. The classpath is expected to be a single string or sequence of strings.l
Example
%%
$ cp=(lib/*.jar)
$ jcall -cp $cp org.test.MyClass arg1 arg2 arg3
%%
-cp classpath
-classpath classpath Uses the specified classpath in the classloader for calling the specified class. The classpath is expected to be a single string or sequence of strings.l
Example
%%
$ cp=(lib/*.jar)
$ jcall -cp $cp org.test.MyClass arg1 arg2 arg3
%%
Deletions:
Additions:
[[CommandsInternal]]