aspose file tools*
The moose likes Tomcat and the fly likes Enviroment Variable Max Size Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Enviroment Variable Max Size" Watch "Enviroment Variable Max Size" New topic
Author

Enviroment Variable Max Size

smercmu
Greenhorn

Joined: Feb 25, 2002
Posts: 20
Hi there...
I have encountered a problem with Windows 98 running Tomcat 4.1. When Setting the classpath I have several jars I need to include (such as catalina.jar and others). Other than re-jaring several of them together is there a way around the max string size for enviroment variables in Windows 98. Please note that this is not the same problem as running out of enviroment space, rather it seems an enviroment variable has a max size limit of somewhere around 1024 or so.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15629
    
  15

I've never noticed such a limit, but any environment variable that gets over 1-2000 characters is pretty awkwards anyways.
Are you sure you're not overdoing the CLASSPATH info anyway? Tomcat builds its own internal classpaths, so you don't need to explicitly specify each and every class directory and jar file.


Customer surveys are for companies who didn't pay proper attention to begin with.
smercmu
Greenhorn

Joined: Feb 25, 2002
Posts: 20
I totally agree, I am sticking way too much into the classpath variable. Unfortunatly thats the only way I could figure out how to get tomcat to run. I have had it running fine using win2k by just adding catalina.jar.... but here is the error I get doing the EXACT same thing using win98 (I don't have a lot of experience with tomcat, only BEA, so any suggestions/ideas would be helpful):
java.lang.NoClassDefFoundError: org/apache/tomcat/util/log/SystemLogHandler
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:1590)
at java.lang.Class.getConstructor0(Class.java:1762)
at java.lang.Class.newInstance0(Class.java:276)
at java.lang.Class.newInstance(Class.java:259)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:179)
Exception in thread "main"
And I am using the following classpath set:

rem Set standard CLASSPATH
SET CLASSPATH1=.
SET CLASSPATH=%CLASSPATH%;%JAVA_HOME%\src.jar
REM SET CLASSPATH=%CLASSPATH%;%JAVA_HOME%\dt.jar
REM SET CLASSPATH=%CLASSPATH%;%JAVA_HOME%\htmlconverter.jar
SET CLASSPATH=%CLASSPATH%;%JAVA_HOME%\lib\tools.jar
SET CLASSPATH=%CLASSPATH%;%J2EE_HOME%\lib\j2ee.jar
SET CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\server\lib\catalina.jar
SET CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\common\lib
SET CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\server\lib
SET CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\server\classes
SET CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\server\lib\catalina.jar
SET CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\common\lib\struts.jar

From what I can tell, the server/lib and common/lib contains the jars that would prevent this error. So I tried to put them in the classpath and it got too long! HELP!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Enviroment Variable Max Size
 
Similar Threads
Export automatically...
Which apache for windows
Can someone pls give me the URL for Tomcat
JVM eating more and more memory in our server
java has encountered an error and needs to close