Revision [1681]

Last edited on 2011-01-27 18:41:50 by DavidPriest [sp.]
Additions:
This command simulates the equivalent call to "java" command line.
Deletions:
This command simulates the equivilent call to "java" command line.


Revision [1368]

Edited on 2010-05-09 06:03:28 by DavidLee [sp.]
Additions:
java -X... -D... classname, application parameters
Deletions:
> Java -X... -D... classname, application parameters


Revision [1367]

Edited on 2010-05-09 05:53:07 by DavePawson [Added caveat about no jvm params]
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]]


Revision [1361]

Edited on 2010-05-08 08:13:05 by DavidLee [Added caveat about no jvm params]
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
Deletions:
jcall -cp $cp org.test.MyClass arg1 arg2 arg3


Revision [1217]

Edited on 2010-02-15 09:57:39 by DavidLee [Added caveat about no jvm params]
Additions:
jcall [-cp,-classpath classpath ] classname [args]
Deletions:
jcall [-cp|-classpath classpath ] classname [args]


Revision [1216]

Edited on 2010-02-15 09:57:22 by DavidLee [Added caveat about no jvm params]
Additions:
||-cp,-classpath classpath||Uses the specified classpath in the classloader for calling the specified class.
Deletions:
||-cp classpath
-classpath classpath|| Uses the specified classpath in the classloader for calling the specified class.


Revision [1008]

Edited on 2009-11-25 11:24:16 by DavidLee [Added caveat about no jvm params]
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.||
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.||


Revision [1007]

Edited on 2009-11-25 11:24:01 by DavidLee [Added caveat about no jvm params]
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]]
Deletions:
-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
$ cp=(lib/*.jar)
$ jcall -cp $cp org.test.MyClass arg1 arg2 arg3


Revision [779]

Edited on 2009-09-16 07:59:40 by DavidLee [Added caveat about no jvm params]
Deletions:
[[CommandsInternal]]


Revision [535]

Edited on 2009-05-18 14:55:31 by DavidLee [Added caveat about no jvm params]
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
%%
Deletions:
jcall classname [args]


Revision [351]

Edited on 2009-01-03 07:10:50 by DavidLee [Added caveat about no jvm params]
Additions:
[[CommandsInternal]]


Revision [281]

The oldest known version of this page was created on 2008-10-08 10:34:50 by DavidLee [Added caveat about no jvm params]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki