Top || Section Contents || Permuted Index
SavaJe OS 1.1.0

run(shell)


NAME

run — execute a process with a specified environment

SYNOPSIS

run [-bg] [-nocl] [-nosm] [-noverify] [-g] [name=value] app [args...]

DESCRIPTION

Start the Java application app from the shell. The application specified here should be either the name of a Java class (without the .class extension) that contains a main() method or the name of a jar file (with the .jar extension).

In the case of a jar file, the main() method should be located either in a class whose name is the same as the jar file name or in a class specified in the META-INF/MANIFEST file with a Main-Class: attribute.

At application run time, shell variables can be created or set by using name = value with the run command. These shell variables are in effect only for the life of the application being run. This is the equivalent of the Java command line idiom:

java -Dname=value MyClass

Options

-bg run the application in the background
-nocl use the system class loader rather than the application class loader
-nosm run the application without a security manager
-noverify do not verify the bytecode. This may be necessary for applications compiled with earlier versions of the JDK.
-g set the debug flag for the process

EXAMPLES

% run test.awt.Notepad

Start the test.awt.Notepad application.

% run -nosm http://blue/Hello.jar

Run the application packaged in Hello.jar from the http server blue with no security manager.

SEE ALSO

run_java(doc)
set(shell)


Oct. 30, 2001
Copyright © 2002 , SavaJe Technologies, Inc. All rights reserved.
Corrections, suggestions to: docs@savaje.com