You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

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:

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

  • No labels