Solved

Tomcat 5.0 runtime error -- classpath too long?

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
IT Department Standard document 2 52
SmarterMail Migration 3 134
Fisheye tool 2 125
VMWare environment audit 8 129
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 …
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

738 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