Solved

Java Libraries runtime vs compile time

Posted on 2011-03-03
2
524 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
[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
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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

In this post we will learn different types of Android Layout and some basics of an Android App.
What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This video teaches viewers about errors in exception handling.
Suggested Courses

623 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