class KJavaProcess

A class for invoking a Java VM. More...

Definition#include <kjavaprocess.h>
InheritsQObject (qt)
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Signals

Protected Methods

Protected Slots

Protected Members


Detailed Description

This class is a general tool for invoking a Java interpreter. It allows you to specifiy some of the standard options that should be understood by all JVMs, and in future will also ensure that QtAWT is used instead of the system default toolkit.

<H3>Change Log</H3>


 $Log: kjavaprocess.h,v $
 Revision 1.4  1999/12/14 19:56:59  rich
 Many fixes, see changelog

 Revision 1.3  1999/11/12 01:22:34  rich
 Now trys adding a / to the code base if the class loader could not find the applet class file. Fixed applet start/stop

 Revision 1.2  1999/10/09 18:10:53  rich
 Const QString fixes

 Revision 1.1.1.1  1999/07/22 17:28:07  rich
 This is a current snapshot of my work on adding Java support
 to KDE. Applets now work!


 KJavaProcess ()

Create a process object, the process is NOT invoked at this point.

void  startJava ()

Invoke the JVM.

void  stopJava ()

Stop the JVM (if it's running).

void  setJVMPath ( const QString path )

Used to specify the location of the JVM.

void  setJVMVersion ( int major, int minor = 0, int patch = 0 )

Used to decide the parameter names for JVM stack size etc.

void  setHTTPProxy ( const QString host, int port )

The HTTP proxy.

void  setFTPProxy ( const QString host, int port )

The FTP proxy.

void  setSystemProperty ( const QString name, const QString value )

Set system properties by adding -D<I>name</I>=<I>value</I> to the java command line.

void  setMainClass ( const QString clazzName )

The class to be called when startJava() is called.

void  setExtraArgs ( const QString args )

Extra flags passed to the JVM.

void  setClassArgs ( const QString classArgs )

Arguments passed to the main class.

void  send ( const QString command )

Send a string to the standard input (System.in) of the JVM.