Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Distributable libraries?

Reply
Thread Tools

Distributable libraries?

 
 
Steve Sobol
Guest
Posts: n/a
 
      11-15-2004
Is there a set of distributable libraries I can package with my Java
application that will allow it to run, instead of requiring people to install a
JVM? (Much like you can distribute the Visual Basic runtime DLL to allow people
to use your compiled VB app)

I'm thinking perhaps jvm.dll or libjvm.so along with a handful of other
libraries - can this be done? Does Sun approve of doing something like this?

--
JustThe.net Internet & New Media Services, http://JustThe.net/
Steven J. Sobol, Geek In Charge / 888.480.4NET (463 /
PGP Key available from your friendly local key server (0xE3AE35ED)
Apple Valley, California Nothing scares me anymore. I have three kids.
 
Reply With Quote
 
 
 
 
Chris Smith
Guest
Posts: n/a
 
      11-15-2004
Steve Sobol wrote:
> Is there a set of distributable libraries I can package with my Java
> application that will allow it to run, instead of requiring people to install a
> JVM? (Much like you can distribute the Visual Basic runtime DLL to allow people
> to use your compiled VB app)
>
> I'm thinking perhaps jvm.dll or libjvm.so along with a handful of other
> libraries - can this be done? Does Sun approve of doing something like this?


The JRE is redistributable, and there is a README.TXT file in the JRE
listing those pieces that can be excluded. The remaining pieces must be
redistributed as a part of the complete JRE. You are not required to
run the JRE installer, and the JRE will work without the installer
having been run.

If it's important to you, though, that the files be only ".dll" or
".so" files, then you're out of luck.

--
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
 
Reply With Quote
 
 
 
 
Steve Sobol
Guest
Posts: n/a
 
      11-15-2004
Chris Smith wrote:
> The JRE is redistributable, and there is a README.TXT file in the JRE
> listing those pieces that can be excluded. The remaining pieces must be
> redistributed as a part of the complete JRE. You are not required to
> run the JRE installer, and the JRE will work without the installer
> having been run.
>
> If it's important to you, though, that the files be only ".dll" or
> ".so" files, then you're out of luck.


No... I just really would prefer not to have to distribute the command-line
executables and some other unecessary stuff; this is a project where I'd build
an executable that loaded the JVM and app using the Invocation API, and I don't
want to have to bundle 10-15 MB worth of extra stuff with the app. I'll check
the README - thank you.

--
JustThe.net Internet & New Media Services, http://JustThe.net/
Steven J. Sobol, Geek In Charge / 888.480.4NET (463 /
PGP Key available from your friendly local key server (0xE3AE35ED)
Apple Valley, California Nothing scares me anymore. I have three kids.
 
Reply With Quote
 
Steve Sobol
Guest
Posts: n/a
 
      11-15-2004
Steve Sobol wrote:
> Chris Smith wrote:
>
>> The JRE is redistributable, and there is a README.TXT file in the JRE
>> listing those pieces that can be excluded. The remaining pieces must
>> be redistributed as a part of the complete JRE. You are not required
>> to run the JRE installer, and the JRE will work without the installer
>> having been run.
>>
>> If it's important to you, though, that the files be only ".dll" or
>> ".so" files, then you're out of luck.

>
>
> No... I just really would prefer not to have to distribute the
> command-line executables and some other unecessary stuff; this is a
> project where I'd build an executable that loaded the JVM and app using
> the Invocation API, and I don't want to have to bundle 10-15 MB worth of
> extra stuff with the app. I'll check the README - thank you.


Ack. The *entire* 1.4.2 JRE is 40MB. And there are only a few items that Sun
says are optional.

*shudder*


--
JustThe.net Internet & New Media Services, http://JustThe.net/
Steven J. Sobol, Geek In Charge / 888.480.4NET (463 /
PGP Key available from your friendly local key server (0xE3AE35ED)
Apple Valley, California Nothing scares me anymore. I have three kids.
 
Reply With Quote
 
Mark Thornton
Guest
Posts: n/a
 
      11-15-2004
Steve Sobol wrote:
> Chris Smith wrote:
>
>> The JRE is redistributable, and there is a README.TXT file in the JRE
>> listing those pieces that can be excluded. The remaining pieces must
>> be redistributed as a part of the complete JRE. You are not required
>> to run the JRE installer, and the JRE will work without the installer
>> having been run.
>>
>> If it's important to you, though, that the files be only ".dll" or
>> ".so" files, then you're out of luck.

>
>
> No... I just really would prefer not to have to distribute the
> command-line executables and some other unecessary stuff; this is a
> project where I'd build an executable that loaded the JVM and app using
> the Invocation API, and I don't want to have to bundle 10-15 MB worth of
> extra stuff with the app. I'll check the README - thank you.
>


The command line executables are only just over 1MB (unpacked) in total
for 1.5, so there isn't really a lot to be saved there. The big items
are in the lib directory.

Mark Thornton
 
Reply With Quote
 
Chris Smith
Guest
Posts: n/a
 
      11-15-2004
Steve Sobol wrote:
> Ack. The *entire* 1.4.2 JRE is 40MB. And there are only a few items that Sun
> says are optional.


Make sure that (unless you need otherwise) you're getting the Windows-
only version. MindIQ distributes an application with the 1.4.2 JRE, and
the entire resulting file is about 30 MB in size; the JRE is probably
about 67% of that.

--
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
 
Reply With Quote
 
Eric Sosman
Guest
Posts: n/a
 
      11-15-2004
Steve Sobol wrote:
>
> Ack. The *entire* 1.4.2 JRE is 40MB. And there are only a few items that Sun
> says are optional.


What are you measuring (or, how are you measuring it)?
From the download page for 1.4.2_06, the download sizes are

Windows 14.96 MB
Linux 13.24
Solaris SPARC 14.08 (+ 4.47 for 64-bit)
Solaris x86 12.48

None of these is anywhere near 40MB, and the total of all
four (five) is 54.76 (59.23), also not convincingly close
to 40MB.

(Disclaimer: Just because I'm writing about Sun stuff
from a sun.com address, don't assume I speak for Sun.
"The Secretary will disavow all knowledge," as 'tis said.)

--


 
Reply With Quote
 
Andrew Thompson
Guest
Posts: n/a
 
      11-15-2004
On Mon, 15 Nov 2004 15:08:50 -0500, Eric Sosman wrote:

> Steve Sobol wrote:
>>
>> Ack. The *entire* 1.4.2 JRE is 40MB. And there are only a few items that Sun
>> says are optional.

>
> What are you measuring (or, how are you measuring it)?
> From the download page for 1.4.2_06, the download sizes are
>
> Windows 14.96 MB


That reminds me. The download comes zipped and compressed,
rt.jar on the file system is zipped but uncompressed.

HTH

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane
 
Reply With Quote
 
Steve Sobol
Guest
Posts: n/a
 
      11-15-2004
Eric Sosman wrote:
> Steve Sobol wrote:
>
>>Ack. The *entire* 1.4.2 JRE is 40MB. And there are only a few items that Sun
>>says are optional.

>
>
> What are you measuring (or, how are you measuring it)?


Mmmm, I'm not sure why my program directory (c:\program
files\java\j2re1.4.2_03) has 40MB of stuff in it. I did, in fact, download the
Windows 1.4.2_06 JRE just earlier today and it is only 15MB.

rt.jar (in this installation) counts for about 25MB of that 40MB total.

--
JustThe.net Internet & New Media Services, http://JustThe.net/
Steven J. Sobol, Geek In Charge / 888.480.4NET (463 /
PGP Key available from your friendly local key server (0xE3AE35ED)
Apple Valley, California Nothing scares me anymore. I have three kids.
 
Reply With Quote
 
Steve Sobol
Guest
Posts: n/a
 
      11-15-2004
Steve Sobol wrote:

> rt.jar (in this installation) counts for about 25MB of that 40MB total.


OK, so the reason is that it is stored uncompressed.

Can I unarchive it and re-archive it using Winzip on its "maximum compression"
setting? Will this cause any problems other than slower access to rt.jar?

Or, another solution:

I created a blank ZIP file using Winzip, and using maximum compression, and put
a copy of rt.jar into it. The ZIP ends up being about 6MB. How about setting up
an installer that unzips rt.jar at install time?

--
JustThe.net Internet & New Media Services, http://JustThe.net/
Steven J. Sobol, Geek In Charge / 888.480.4NET (463 /
PGP Key available from your friendly local key server (0xE3AE35ED)
Apple Valley, California Nothing scares me anymore. I have three kids.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Are makepy-generated COM wrapper classes distributable? gundlach Python 1 08-05-2008 01:54 PM
Create A Distributable Ruby Program With Minimal Install Wesley Rishel Ruby 5 04-01-2008 12:15 AM
Distributable asp.net web site configuration tool John ASP .Net 1 08-27-2006 01:13 AM
Distributable asp.net web site configuration tool John ASP .Net Security 1 08-27-2006 01:13 AM
How to build a distributable Solaris binary for Ruby 1.8? Venkat Ruby 6 08-12-2003 03:32 AM



Advertisments