Solved

Tomcat 5.0 runtime error -- classpath too long?

Posted on 2006-07-10
1
862 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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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 …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

763 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

12 Experts available now in Live!

Get 1:1 Help Now