class KJavaProcess

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

Definition#include <kjavaprocess.h>
InheritsQObject (kdecore)
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.

 KJavaProcess ()

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

KJavaProcess ()

[virtual]

void  startJava ()

Invoke the JVM.

void  stopJava ()

Stop the JVM (if it's running).

bool  isOK ()

bool  isRunning ()

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.

void  wroteData ()

[protected slot]

void  processExited ()

[protected slot]

void  receivedData ( KProcess *, char *, int )

[protected slot]

void  javaHasDied ()

[protected slot]

void  invokeJVM ()

[protected virtual]

void  killJVM ()

[protected virtual]

KProcess * javaProcess

[protected]

void  received ( const QString & )

[signal]