----------
From: agifford@mitre.org (Adam Gifford)
To: java-apache-users@list.working-dogs.com (Java Apache Users)
Subject: Symantec Cafe JVM
Date: Wed, Apr 7, 1999, 5:17 AM
If you are attempting to use the jvm included with Symantec Cafe, and
are havign problems, i would recommend installing sun's jdk. I spent
about 30 minutes with my boss trying to figure out why his jvm was
crashing, when it turned out that Symantec Cafe's java.exe doesn't use
the CLASSPATH variable. So if you use it and are having the problem of
the jvm crashing on startup not being able to find
org.apache.jserv.JServ (or whatever the class name is), this is probably
why.
My results were from Symantec Cafe 3.0 database edition.
|
This is a basic misunderstanding of how the VMs work. It's taken me about a
week to get JServ going on my system (Win95, Apache 1.3.4, Vis Cafe Pro 3.0a)
and now I'm a Java Expert. 8-)
Both the Sun and Symantec JVMs use the CLASSPATH environment variable when
-classpath is not used on the command line. But BOTH of them ALSO use an
INTERNAL classpath. Sun (1.1.8 at least) seems to APPEND its internal
classpath but Symantec seems to PREPEND it. As noted elsewhere, Symantec seems
to get this internal classpath from the sc.ini file.
The bottom line is that MOST Java VMs should work as long as -classpath is used
to invoke them. Unfortunately, the ApacheJServ.exe in the Win32 distribution
does not do this so it's fairly useless. Here is the command I use to start
JServ using the Symantec JVM:
e:\VisualCafe\Java\bin\java -classpath e:\VisualCafe\Java\Lib;e:\VisualCafe\Java\Lib\classes.zip;e:\VisualCafe\Java\Lib\jsdk.jar;"d:\Apache JServ\ApacheJServ.jar" org.apache.jserv.JServ conf\jserv.properties
From now on I'm blowing away the environmental CLASSPATH except for throwaway
utilities; apps will ALWAYS use -classpath.
Ray |