Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

JRE Question

Posted on 2002-07-24
17
311 Views
Last Modified: 2013-11-23
What is the minimum set of JRE files I need to distribute to allow a small application to run on other Windows machines, where do I get them from, and what does the recipient need to do to install at their end?
0
Comment
Question by:afterburner
  • 6
  • 5
  • 3
  • +1
17 Comments
 
LVL 2

Expert Comment

by:s_lavie
ID: 7173808
It doesn't seem wise to install less than JRE on a machine. You never know which classes you realy need, until you need them at run time.
The best, I think, is  to install a full JRE, which can be download from sun's web site, for free.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 7173888
I sympathise with your plight. Something should be done about the monolithic nature of the runtime. There was, at some point, an online petition or comments site, probably somewhere at Sun, where one could register disapproval of the size of this stuff.
No favours are being done to Java by requiring a runtime download that is so massive in relation to an application that might run on it. Why should a company download several megabytes of runtime when they can get a small C/C++ programme to do the same job in a few K? (OK I *can* think of a least one reason, but it/they are decreasingly compelling as the runtime is increasing in size).

I can give you a few pointers as to how to go about this, but it won't be anthing other than a bore!

Deciding what classes to run your app is the easy bit. If you compile it with the verbose switch, it'll tell you what classes are loaded by it.

As for the other bits, you'll have to do something like start with a Java-free box and then do a comparison on the system files and the registry. Don't overlook hidden files.

If you *do* do this, please share it with the rest of us.
There could be licensing issues with distributing a custom runtime of course...
0
 
LVL 92

Expert Comment

by:objects
ID: 7173956
Pretty sure distributing only part of the JRE is a breach of the licensing.

If you only use 1.1 classes then you can simply run it using the MS JVM, removing the need to install the JRE.
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 

Author Comment

by:afterburner
ID: 7173964
Holy Moses.

s lavie:

I looked there but couldn't see anything for Windows, only Solaris.

CEHJ:

I had a feeling it was going to be like that. Great answer though. I made small start with copying the Java.exe over to a J-free box, and the Java.DLL. I tried registering the DLL but that failed with cant load library message. Hung my head in despair and foresaw long road ahead as you describe. Pondered to myself that the runtime for applets must be different from that for apps. but wasn't sure. Kicked myself for not knowing such basic facts already.

Finished off that round of desperation with coup de grace that even if I did send complete JRE to recipient, I couldn't see any setup.exe or install.exe in the JRE on my machine, so came to conclusion that this idea too must be the wrong one.(??)

If I do do any work on it, will undoubtedly share; but identifying best starting point difficult.
0
 

Author Comment

by:afterburner
ID: 7173967
objects:

how do I do that? (ms jvm)
0
 
LVL 2

Expert Comment

by:s_lavie
ID: 7173971
> I looked there but couldn't see anything for Windows, only Solaris.
Looked where? and trying to find what (a JRE)?
0
 
LVL 92

Accepted Solution

by:
objects earned 30 total points
ID: 7173976
jview.exe
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 7173979
objects - maybe some mass license-breaking will be a step towards stopping Sun shooting themselves in the foot on the client side :-)

btw Do you know where the MS classes are on Win 2K?

afterburner - objects could be adding value to my answer here!
0
 
LVL 92

Expert Comment

by:objects
ID: 7173987
> Do you know where the MS classes are on Win 2K?

winnt\java\packages
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 7173989
Cheers!
0
 

Author Comment

by:afterburner
ID: 7174008
>Looked where? and trying to find what (a JRE)?
Sun. Yes.
0
 
LVL 2

Expert Comment

by:s_lavie
ID: 7174021
0
 

Author Comment

by:afterburner
ID: 7174069
>jview.exe

Dos window flashed up with some (looked like) error help in it. What does it do?
0
 
LVL 92

Expert Comment

by:objects
ID: 7175904
It's a JVM, same as java.exe from Sun.
0
 

Author Comment

by:afterburner
ID: 7177082
Thanks all; thanx objects;

EE is the best place ever.

aftrbrnr
0
 
LVL 92

Expert Comment

by:objects
ID: 7178662
:-)

http://www.objects.com.au/staff/mick
Brainbench MVP for Java 1
http://www.brainbench.com

PS.

> EE is the best place ever.

You need to get out more :-)
0
 

Author Comment

by:afterburner
ID: 7179513
> You need to get out more :-)

It's precisely because of my profligacy that I dont know as much as I should. LOL.

0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ForLoop Example 3 52
Unhandled exception type Exception 18 42
add projects t working set in maven 2 17
learn programming 8 32
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question