• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 539
  • Last Modified:

Java Libraries runtime vs compile time

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
Squadless
Asked:
Squadless
2 Solutions
 
objectsCommented:
remove them all from your build path and add them back in as required to resolve the compile errors
theres no automated way
0
 
CEHJCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now