Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Pack200 & Lazy download compatible? NoClassDefFoundError

 
Jeff Gent
Ranch Hand
Posts: 44
Eclipse IDE IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So I've been using Lazy downloads for a while now without issue, but I'm needing to reduce my application size. What appears to be a great solution to my problem is Pack200.

I add this to my jnlp file.
<property name="jnlp.packEnabled" value="true"/>

I then .pack.gz all my jar files and all is good, except for what appears to be my "lazy" downloads.
When the application starts, I'm getting a NoClassDefFoundError on those lazy jars. If I remove the download="lazy", all works good.

Can I not have packEnabled and lazy downloads? What's the secret JavaRanch - I know you guys will know. :-)
 
Jeff Gent
Ranch Hand
Posts: 44
Eclipse IDE IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bump - Anyone?
 
Martin Vajsar
Sheriff
Posts: 3752
62
Chrome Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've done a little search for Pack200 Lazy download webstart and these links that have come out seem interesting:

http://autoplot.org/wiki/images/TS-1319.pdf
http://oss.org.cn/ossdocs/java/se/jdk6/docs/guide/javaws/developersguide/faq.html

However, I don't have any experience with that, and I'm not sure this is relevant to the version you're using. But it might be worth a try.
 
Jeff Gent
Ranch Hand
Posts: 44
Eclipse IDE IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've seen a few things like these documents, even direct jnlp files, that suggest packing and lazy, but I can't get them to work together. They talk about the technologies, but never show you how to do it or discuss any conflicts.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic