
Server Side Java(tm) SDK
The javaw Launcher
Robert B. Denny - Version 0.3 (experimental)
Back to overview
The Java launcher program javaw.exe is a replacement for the
standard launcher java.exe. It contains special startup code
for interfacing between Windows CGI and the WebSite.WinCGI
class library we provide. The details of this are unimportant, however
there are two things about javaw that you heed to know:
- javaw starts up the Java environment with a
CLASSPATH that is independent of the system-wide
environment settings. We did this to prevent changes in your development
environment from affecting the operation of your server's Java programs
(assuming you are developing on the same system that your server is
running on). The CLASSPATH that javaw establishes is
controlled by a registry setting:
HKEY_LOCAL_MACHINE\Software\Denny\WebServer\CurrentVersion\CGI\
Java ClassPath:REG_SZ: runtime class
path
- If you turn on WebSite Pro's CGI/API tracing, javaw will
open a console window so you can see how the startup proceeds. It sends
the -v (verbose) option to the Java interpreter, allowing you
to see a trace of the class loading process, and any output from calls
to System.out.println() you may have added to your code for
debugging. In addition, the CGI temp files are left in the CGI temporary
directory (another server setting) so you can do post-mortem analysis of
failures, and save for use in regression tests of your Java web
applications.
Back to overview
Java and other Java-based names are trademarks of Sun
Microsystems, Inc., and refer to Sun's family of Java-branded
technologies.