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 / First Aid / January 2006

Tip: Looking for answers? Try searching our database.

Java at Windows Startup

Thread view: 
grazertourer@gmail.com - 04 Jan 2006 07:19 GMT
Hi!
Is it possible to start the JRE at the windows login (startup
shortcut?)? Our Intranet uses Java Applets and it is really annoying to
wait until the JRE has started.

Martin
Andrew Thompson - 04 Jan 2006 08:23 GMT
> Hi!
> Is it possible to start the JRE at the windows login (startup
> shortcut?)?

Sure.

> ..Our Intranet

You simply create a new shortcut in the start-up folder
that points to an HTML document that contains an applet.

Alternately, you might start a JWS application or applet,
though I don't know if that will make the browser VM
start-up faster.

>..uses Java Applets and it is really annoying to
> wait until the JRE has started.

OTOH, the end user might find a web page (or JWS application)
popping up every time they start-up, to be irritating.  Probably
more so than waiting a few moments when an applet is actually
needed.

How long does the user have to wait to see a simple applet on-screen?
Are you talking 0.5 seconds?  2 seconds?  10 seconds?

Signature

Andrew Thompson
physci, javasaver, 1point1c, lensescapes - athompson.info/andrew

grazertourer@gmail.com - 04 Jan 2006 09:00 GMT
> You simply create a new shortcut in the start-up folder
> that points to an HTML document that contains an applet.

I had this idea too, but I'm not very satisfied with it. I think that
the VM of the Browser will stop after a certain period if it is not
used.

> OTOH, the end user might find a web page (or JWS application)
> popping up every time they start-up, to be irritating.  Probably
> more so than waiting a few moments when an applet is actually
> needed.

"Few moments" is a very flexible term ;) because....

> How long does the user have to wait to see a simple applet on-screen?
> Are you talking 0.5 seconds?  2 seconds?  10 seconds?

Between 10 seconds and 2 min!

Martin
Stefan Schulz - 04 Jan 2006 09:31 GMT
> > How long does the user have to wait to see a simple applet on-screen?
> > Are you talking 0.5 seconds?  2 seconds?  10 seconds?
>
> Between 10 seconds and 2 min!

Your problem is not the JVM, so much is for sure. I can imagine that
the download of the jar files takes quite a bit of time (in which case,
you might want to make them available locally), but other then that, i
would need to know more about just what is going on to offer further
helpful comment
grazertourer@gmail.com - 04 Jan 2006 10:15 GMT
> Your problem is not the JVM, so much is for sure. I can imagine that
> the download of the jar files takes quite a bit of time (in which case,
> you might want to make them available locally), but other then that, i
> would need to know more about just what is going on to offer further
> helpful comment

I'm using JRE Version 1.5.0_03. The Applet is stored within the local
network, so it should load quite fast.

Please have a look at
http://www.ids-scheer.com/us/escor062005/html/index_flex.htm?model=medb989d3-fe4
5-446a-bd52-e19d8490b8e7_nav.htm

It shows you some models similar to our Intranet sites - please give me
some feedback about the response times (33sec at my PC. java is already
running)

technical example:
3 html pages. every page contains the same applet (500kB ) but it's
called with different parameters. Does this make any sense? If it would
be just 1 html page, the browser would not have to reload the whole
500kB every time, I guess. Why not simply pass the parameters to the
applet instead of loading a new page containing the same applet?

br,
Martin
grazertourer@gmail.com - 04 Jan 2006 10:15 GMT
> Your problem is not the JVM, so much is for sure. I can imagine that
> the download of the jar files takes quite a bit of time (in which case,
> you might want to make them available locally), but other then that, i
> would need to know more about just what is going on to offer further
> helpful comment

I'm using JRE Version 1.5.0_03. The Applet is stored within the local
network, so it should load quite fast.

Please have a look at
http://www.ids-scheer.com/us/escor062005/html/index_flex.htm?model=medb989d3-fe4
5-446a-bd52-e19d8490b8e7_nav.htm

It shows you some models similar to our Intranet sites - please give me
some feedback about the response times (33sec at my PC. java is already
running)

technical example:
3 html pages. every page contains the same applet (500kB ) but it's
called with different parameters. Does this make any sense? If it would
be just 1 html page, the browser would not have to reload the whole
500kB every time, I guess. Why not simply pass the parameters to the
applet instead of loading a new page containing the same applet?

br,
Martin
Andrew Thompson - 04 Jan 2006 10:58 GMT
>>Your problem is not the JVM, so much is for sure. I can imagine that
>>the download of the jar files takes quite a bit of time (in which case,
>>you might want to make them available locally),

[1]

>>.. but other then that, i
>>would need to know more about just what is going on to offer further
[quoted text clipped - 8 lines]
> some feedback about the response times (33sec at my PC. java is already
> running)

That is a very poor example of anything, given the complexity of the
frames based page, and the prompt about an invalid certificate.

> technical example:
> 3 html pages. every page contains the same applet (500kB )

Again, a 500Kb applet is hardly a small download, the download off
the *internet* of 500Kb of code would take most connections longer
than it would take the JVM to be loaded and started.

How long does it take for this one to appear?
<http://java.com/en/download/help/testvm.xml>

It takes less than three seconds here, before you see Duke dancing.

> ..Why not simply pass the parameters to the
> applet instead of loading a new page containing the same applet?

[ Are you asking us, or talking out loud? ]

[1]  If you are indeed referring to a 500Kb applet (also with
a probably complicated GUI), there are strategies you can take
to ease user angst.  But let's nail down where the time is being
spent.  Like Stephan, I cannot accept it is JVM start-up time,
unless there is something seriously broken in your browsers,
the HTML page, or the applet.

Signature

Andrew Thompson
physci, javasaver, 1point1c, lensescapes - athompson.info/andrew

grazertourer@gmail.com - 04 Jan 2006 13:05 GMT
I found the problem! It's the proxy....

When I bypass the proxy everything works fine!

Thank you all! :)
Andrew Thompson - 04 Jan 2006 13:17 GMT
> I found the problem! It's the proxy....
>
> When I bypass the proxy everything works fine!

Excellent!  Glad you discovered and fixed the real cause
of the problem.   :-)

Signature

Andrew Thompson
physci, javasaver, 1point1c, lensescapes - athompson.info/andrew



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



©2008 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.