• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to reduce the size of j2sdk?

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have finished an application under tomcat, and I just want it published with j2sdk in a single package.
But, you know, the j2sdk is rather too big to ship. I suppose the j2sdk maybe can be simpled just carrying some .dll files and some .jar packages plus some configure files etc. I say, I'm not just using jre, 'cause I have to have some extra thing included.
Did anyone here have some methods/experiments to reduce it?
Thanks, //bow.
[ February 19, 2004: Message edited by: Chris Chen ]
 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I say, I'm not just using jre, 'cause I have to have some extra thing included.
What extra things do you need? You may be able to identify specific jar files to add to the JRE.
 
Ranch Hand
Posts: 1923
Scala Postgres Database Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes - what extra thing is this?
The compiler?
It is usable from inside the jre, as far as I know.
To ship the j2sdk is prohibited - you know?
What can you cut off:
J2SDK - JRE = JDIFF
JDIFF - NEEDED = OFFCUT
J2SDK - OFFCUT = WHAT_YOU_WANT.
As long as you keep the things secret, you need, we can only guess.
The docs.
Parts of the rt.lib (Would you like to sort single packages out?)
Do you need jar, javaw, javadoc, native2ascii, jarsigner?
There are other, seldom used libs too.
Can't you define it the other way round: Shipping the jre plus something?
 
Chris Chen
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks very much. //bow
Things looks fine now. I really do not need the full jdk, I have supposed that the tomcat server should have jdk installed. Having try it, I know I just need the jre, adding some .jar files.
Now, here's the other question:
Is it prohibited to ship the jre?
 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Doesnt the full sdk also include NetBeans?
Removing that would save a lot of space I think.
 
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The full J2SDK 1.4.2 for Win32 is roughly 43.5MB. - edit - this is the version without Netbeans, Netbeans cobundled version is 92.5MB.
The JRE 1.4.2 comes to 14.5MB.
Hardly too much to distribute, given the size of your complete product if that includes Tomcat and assorted libraries as well as your own code (as for all that you'd likely need a CD anyhow giving ample space).
DO make sure you have permission from Sun to redistribute, as there are limitations.
From the J2SDK 1.4.2_03 license:


License to Distribute Software. Subject to the terms and conditions of this Agreement, including, but not limited to the Java Technology Restrictions of these Supplemental Terms, Sun grants you a non-exclusive, non-transferable, limited license without fees to reproduce and distribute the Software, provided that (i) you distribute the Software complete and unmodified (unless otherwise specified in the applicable README file) and only bundled as part of, and for the sole purpose of running, your Programs, (ii) the Programs add significant and primary functionality to the Software, (iii) you do not distribute additional software intended to replace any component(s) of the Software (unless otherwise specified in the applicable README file), (iv) you do not remove or alter any proprietary legends or notices contained in the Software, (v) you only distribute the Software subject to a license agreement that protects Sun's interests consistent with the terms contained in this Agreement, and (vi) you agree to defend and indemnify Sun and its licensors from and against any damages, costs, liabilities, settlement amounts and/or expenses (including attorneys' fees) incurred in connection with any claim, lawsuit or action by any third party that arises or results from the use or distribution of any and all Programs and/or Software.


Check especially the parts I marked in bold.
You may specifically NOT remove parts of the distribution to cut it down in size, but you may redistribute the J2SDK as a whole entity if it is required to run your application (Sun ain't stupid, they want people to have it whether through them direct or otherwise after all, but they do want everyone to have a complete version)!
Mind that you have to distribute the installer which you can of course call from your own installer.
[ February 20, 2004: Message edited by: Jeroen Wenting ]
 
Chris Chen
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Many thanks to all.
Jeroen Wenting�s reply remind me to read the license of jre.
That's what I want to see:


License to Distribute Software. Subject to the terms
and conditions of this Agreement, including, but not limited
to Section 4 (Java Technology Restrictions) of these
Supplemental Terms, Sun grants you a non-exclusive,
non-transferable, limited license to reproduce and
distribute the Software, provided that (i) you distribute
the Software complete and unmodified (unless otherwise
specified in the applicable README file) and only bundled as
part of, and for the sole purpose of running, your Programs,
(ii) the Programs add significant and primary functionality
to the Software, (iii) you do not distribute additional
software intended to replace any component(s) of the
Software (unless otherwise specified in the applicable
README file), (iv) you do not remove or alter any
proprietary legends or notices contained in the Software,
(v) you only distribute the Software subject to a license
agreement that protects Sun's interests consistent with the
terms contained in this Agreement, and (vi) you agree to
defend and indemnify Sun and its licensors from and against
any damages, costs, liabilities, settlement amounts and/or
expenses (including attorneys' fees) incurred in connection
with any claim, lawsuit or action by any third party that
arises or results from the use or distribution of any and
all Programs and/or Software. (vi) include the following
statement as part of product documentation (whether hard
copy or electronic), as a part of a copyright page or
proprietary rights notice page, in an "About" box or in any
other form reasonably designed to make the statement visible
to users of the Software: "This product includes code
licensed from RSA Security, Inc.", and (vii) include the
statement, "Some portions licensed from IBM are available at
http://oss.software.ibm.com/icu4j/".


[ February 20, 2004: Message edited by: Chris Chen ]
 
Stefan Wagner
Ranch Hand
Posts: 1923
Scala Postgres Database Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you sure about j2sdk?
As far as I know, you may distribute the JRE, but not the J2SDK this way.
That's enough to ship your applications, but gives SUN the possibility to count the developer-downloads.
As a special note:
When downloading the j2sdk-1.4.2-beta-xy, it was even prohibited to ship this beta-JRE. I guess to avoid customers complaining about beta-errors.
I have never found a magazine, which included the newest J2SDK, so that makes me even more sure, that you may NOT ship a J2SDK.
 
Ranch Hand
Posts: 1608
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Since you appear to have duplicated part of the JRE when you quoted the accompanying licence, it appears you are now in violation of that licence, since you did not post the entire JRE with it.
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Stefan, my quote is from the J2SDK license. For betas things are different of course, after all they're experimental releases.
Tony, quoting parts of textfiles in a context like this is covered under "fair use". Cracking open a software distribution and distributing only parts which together make up a somewhat functional whole is not.
 
Tony Morris
Ranch Hand
Posts: 1608
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't see a "fair use" section !?
 
Chris Chen
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you all.
Well, I have distributed the entire JRE. Is it still violation of that licence?
 
Ranch Hand
Posts: 585
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Tony Morris:
I don't see a "fair use" section !?


"Fair use" refers to copyright laws.
 
Cob is sand, clay and sometimes straw. This tiny ad is made of cob:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic