Re: Reducing jar dependencies?



On 18 Oct 2005 09:25:06 -0700, pelakh@xxxxxxxxx wrote or quoted :

>I would like to partition the app into 3 jars (client, server and a
>shared jar for the classes used in the RMI interface). Is there a tool
>that would help me visualize the different class-class dependency and
>assist me in finding the cleanest way to perform this split?

look into ant genjar. See http://mindprod.com/jgloss/genjar.html

What you can do is tell genjar the root class for the client and
server jars and it will collect all the dependent classes.

All you need do then is see what is common (jar -t ) sort diff and
split them off into a third jar.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
.



Relevant Pages

  • Re: EXecuting jar file
    ... running a "Executable JAR file " returned by server after deploying ... What it does is invoke application logic when you access the server via its defined port, e.g., 8080. ... The application server takes care of invoking logic contained in its deployed JARs, or more precisely, its EARs and WARs. ...
    (comp.lang.java.programmer)
  • Re: Netbeans, the classes in lib directory are not available
    ... "Andrew Thompson" wrote in message ... > Various people have noted that the server container ... It sounds like he's having a NetBeans classpath issue. ... JARs must be mounted in NetBeans to be on the project classpath. ...
    (comp.lang.java.help)
  • Re: J2EE JBoss und Sun AppServer
    ... Denn, beim JBoss reicht es, die JARs und WARs auf den Server zu kopieren ...
    (de.comp.lang.java)
  • Jarsigner newbie question
    ... We're using Oracle Jinitiator to load forms/reports. ... One of the jars that gets loaded has to be signed to the server. ...
    (comp.lang.java.programmer)
  • Jarsigner newbie question
    ... We're using Oracle Jinitiator to load forms/reports. ... One of the jars that gets loaded has to be signed to the server. ...
    (comp.lang.java.help)