Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2005

Tip: Looking for answers? Try searching our database.

Launch java app (jar) from c++

Thread view: 
carsten.marx@gmail.com - 02 Nov 2005 13:31 GMT
Hello,
i a little newbie to C++. So sorry for some stupid questions.

The following scenario:
We have a java application running on 200 pcs in a network enviroment.
If a user starts the app the complete jre has to be loaded from a
mounted network volume. This took about 20 to 40 sec. We cannot change
this...
So currently i'm trying to write a splash screen which is showing the
user that something is going on.
The splash screen is implemented. Now my question. Is there an easy way
to lauch a jar as a process from c++ in that way that the splash screen
waits until the java app is started?
Are ther tutorials in the web available?

Thanks for any help.

Regards,
Carsten
University of Konstanz
Andrew Thompson - 02 Nov 2005 13:48 GMT
> The following scenario:
> We have a java application running on 200 pcs in a network enviroment.
> If a user starts the app the complete jre has to be loaded from a
> mounted network volume. This took about 20 to 40 sec. We cannot change
> this...

This description screams 'Webstart' to me.

It can ensure the end user has the necessary Java installed then
reference it off the client file-system (for much quicker
subsequent start-up).

> So currently i'm trying to write a splash screen which is showing the
> user that something is going on.

And you can include a splash image, though it will be largely
redundant here because ..
a) the splash does not show the first time (e generic
splash is used)
b) second and subsequent start-ups should be quite fast.

HTH
Roedy Green - 02 Nov 2005 14:54 GMT
>Is there an easy way
>to lauch a jar as a process from c++ in that way that the splash screen
>waits until the java app is started?

If you are familiar with C exec, the launch part is a one liner.

if you try to launch a jar or jnlp, you must launch a command
processor. If you launch java.exe make sure to include the .exe.

See http://mindprod.com/jgloss/javawebstart.html#CD
for a C++ launcher  called Setup.exe I wrote for launching Java from
CD. It is considerably more complicated than you need. Just strip out
the irrelevancies.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

Alun Harford - 02 Nov 2005 15:25 GMT
> Hello,
> i a little newbie to C++. So sorry for some stupid questions.
[quoted text clipped - 6 lines]
> So currently i'm trying to write a splash screen which is showing the
> user that something is going on.

webstart

Alun Harford


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.