Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Efficient way of distributing java application

843807Jan 23 2003 — edited Feb 21 2003
Hi,
I have a java application that I can startup using the command

java appName

Now I want to be able to distribute this application. I have a few questions for that:

1)
How can I check if Java Runtime Environment is already installed or not? If it is I want to skip step 2. I cannot do this from java for sure because I am not sure if JRE is available or not.

2)
Assuming that the client PC does not have java installed on it, how can I automate the installation of Java Runtime Environment and after that install the java application.

3)
Also is there anyway I can go around without having to type the following to start my app?
c:\>java appName


Thanks
-Chirag

Comments

morgalr

That is a lot of code to go through, so I am not.

Let me ask you this:  I see you have a portion that is marked as recursive, do you recursively call the loading of the images?  If you do therein is your problem.

RuGI:.

Have you tried to define your Layout at  level of the class as static attribute?
You only require one.


Each time you use a BufferedImage, after painting the image invokes flush


picture.flush();

picture = null;

---

RuGI

Max8090-JavaNet

Thanx for the answer.

Can you tell me, which lines are recursive?

It was not my intent to do a recursive call. If so, this could maybe the problem.

Max8090-JavaNet

Yes, but didn't help.

Max8090-JavaNet

The problem is solved. I don't use the class OverlayLayout anymore. The layout looks quite different, but now it works.

1 - 5
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Mar 21 2003
Added on Jan 23 2003
14 comments
365 views