Solved

Tomcat 5.0 runtime error -- classpath too long?

Posted on 2006-07-10
1
867 Views
Last Modified: 2008-01-09
Hi,

I have a Tomcat 5.0 installed on an XP machine, but I have trouble to run a web application. It might be the classpath too long, but I'm not so sure. Error from the log:

java.io.IOException: CreateProcess: javac.exe -classpath "C:\Program Files\Documentum\shared\dfc.jar;C:\Program Files\Documentum\shared\dfcbase.jar;C:\Program Files\Documentum\shared\xtrim-api.jar;C:\Program Files\Documentum\shared\All-MB.jar;C:\Program Files\Documentum\shared\bsf.jar;C:\Program Files\Documentum\shared\log4j.jar;C:\Program Files\Documentum\shared\xalan.jar;C:\Program Files\Documentum\shared\xml-apis.jar;C:\Program Files\Documentum\shared\workflow.jar;C:\Program Files\Documentum\shared\subscription.jar;C:\Program Files\Documentum\shared\xforms.jar;C:\Program Files\Documentum\shared\XformsCommon.jar;C:\Program Files\Documentum\shared\commons-jxpath-1.1.jar;C:\Program Files\Documentum\shared\castor-0.9.5.2.jar;C:\Program Files\Documentum\shared\ci.jar;C:\Program Files\Documentum\shared\collaboration.jar;C:\Program Files\Documentum\shared\ctsTransform.jar;C:\Program Files\Documentum\shared\ctsTransformImpl.jar;C:\Program Files\Documentum\shared\bpmutil.jar;C:\Program Files\Documentum\shared\messageService.jar;C:\Prog”
      at java.lang.Win32Process.create(Native Method)
      at java.lang.Win32Process.<init>(Unknown Source)
...

Since I ddi not see all the jar files listed in classpath, I doubt it's related to classpath. But how can we shorten the classpath? It's big application.

Thanks a lot!

yzmao
0
Comment
Question by:yzmao
1 Comment
 
LVL 3

Accepted Solution

by:
anumalas earned 250 total points
ID: 17080591
Hi

There is one manual way to reduce the classpath lengh.

It is some what tricky.

Steps:

List what are all the jar files in your classpath.(write down on paper or any text file)

Use any Graphical user interface to create one final jar file with all jar's.

you can create jar with jar -cvf also  but you need to made changes to MANIFEST.MF file to make internal jar's available. Its a lenghty process.

So i suggest you to use any free ware to create big jar file with all your small jar files like xalan.jar,xml-apis.jar ect..

after that add that generated jar file to your classpath and remove all above listed jar fiels from class path.

Follwing link is one GUI based jar designer. Make use of that that will solve your problem

http://www.novell.com/documentation/extendas35/docs/help/books/ToolsJARBuilder.html

Hope this will help:)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Convert websphere application server default chained Certificates from 1024 to 2048 keysize or higher size and also you can change signatureAlgorithm . Please make sure Websphere Application Server fixpack 7.0.0.23 or Above. The following steps a…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now