Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
outlinh1. true
outlinh1. true
1printablefalse
2stylh1. none
3indent20px

I need to pass arguments to a Java class. Where do I enter the arguments?

Basically there are three ways to do this:

Using environment variables

See our "How can I add environment variables?" article.

From the command line / in batch using the '-d' prefix

When I invoke the java code from a DOS prompt, I use something like:

Code Block

 java -XX:MaxPermSize=512m -Xmx1024m -cp c:\myclasspath com.bphx.vse.runtime.JobRunner -c config.dat PROGRAMA @RUN_IMMEDIATE=Y

Where -c config.dat PROGRAMA @RUN_IMMEDIATE=Y are the arguments that I pass into the Java class.

To be completed ....

By building a Java bridge

To be completed ....