Solved

Java Libraries runtime vs compile time

Posted on 2011-03-03
2
511 Views
Last Modified: 2012-05-11
Hi,

I have an application that uses over 50 libs that are currently in the eclipse classpath for it.  I need to figure out which jars are actually compile time and which ones are runtime since the end product is going to change significantly if i can filter it out.

How do i do this process? say im looking at, say im looking at xalan-2.7.0.jar ... I dont know where it is used.  How do i make an assumption on if its runtime requirement or compile time?

Thanks
0
Comment
Question by:Squadless
2 Comments
 
LVL 92

Accepted Solution

by:
objects earned 250 total points
ID: 35031295
remove them all from your build path and add them back in as required to resolve the compile errors
theres no automated way
0
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 250 total points
ID: 35031303
You can determine the runtime requirement by using  -verbose:class as an argument to java.exe. Compile time should be discernible from your import statements
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

This is an explanation of a simple data model to help parse a JSON feed
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

762 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

18 Experts available now in Live!

Get 1:1 Help Now