Solved

Tomcat 5.0 runtime error -- classpath too long?

Posted on 2006-07-10
1
870 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
What do I need to install on Windows 2008 server to be able to create an Oracle ODBC connection 8 418
Tivoli 2 127
Problem to run application 1 73
Powershell -whatif question 4 71
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 …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

830 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