Solved

Tomcat 5.0 runtime error -- classpath too long?

Posted on 2006-07-10
1
874 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Veeam gives away 10 full conference passes

Veeam is a VMworld 2017 US & Europe Platinum Sponsor. Enter the raffle to get the full conference pass. Pass includes the admission to all general and breakout sessions, VMware Hands-On Labs, Solutions Exchange, exclusive giveaways and the great VMworld Customer Appreciation Part

Question has a verified solution.

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

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 …
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

627 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