The Artima Developer Community
Sponsored Link

Java Buzz Forum
Using nested JARs in your Apps

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Marc Logemann

Posts: 594
Nickname: loge
Registered: Sep, 2002

Marc Logemann is founder of www.logentis.de a Java consultancy
Using nested JARs in your Apps Posted: Nov 30, 2004 7:16 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Marc Logemann.
Original Post: Using nested JARs in your Apps
Feed Title: Marc's Java Blog
Feed URL: http://www.logemann.org/day/index_java.xml
Feed Description: Java related topics for all major areas. So you will see J2ME, J2SE and J2EE issues here.
Latest Java Buzz Posts
Latest Java Buzz Posts by Marc Logemann
Latest Posts From Marc's Java Blog

Advertisement

I stumbled over this a few times in my java career and i think thousands others too, which you can see on forums.java.com easily by searching for "JAR AND MANIFEST". The problem: You cant nest supporting JARs or better, 3rd party JARs inside your Application JAR. The result is the usage of native installers to unzip the supporting JARs to some location and reference them via MANIFEST (for J2SE apps of course). So the dream of a single JAR which can easily be started via "java -jar MyJar.jar" will remain a dream most of the times. (Despite of programs which are only playing tools and which dont need any external JARs).

Now i recently found this project called ONE-JAR. Simon went the hard way in writing an own classloader bootstrapping nested JARs and created an own format to express the resource locations inside nested JARs. Its all explained very well on IBMs java developerworks portal.

I have not tried it yet but i will give it a chance the next time i encounter this problem, right now i am doing mainly Webstart stuff, where you dont have any installation issues at all, but if you want to deploy J2SE the tradional way, it might be an interessting option.

Read: Using nested JARs in your Apps

Topic: An Architect's opinion on Linux Desktops Previous Topic   Next Topic Topic: Myer-Briggs profiling…

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use