Applets will not load with JVM 1.5.x

  • Thread starter Gilbert Ostlethwaite
  • Start date
G

Gilbert Ostlethwaite

Hi

I'm supporting a web-site that uses a java applet. When any client
connects using either Microsofts JVM or Sun <= 1.4x in their browser
there is no problem and everything works correctly. However, if the
client is using Sun JVM 1.5.x in IE (I haven't tested other browsers
yet), the applet will not load.

I've discovered that by adding the line
"grant {permission java.net.SocketPermission "xxx.xxx.xx.xx", "connect,
resolve";}; to the runtime java.policy file on the client PC, the
applet will load.

Since I find it hard to believe that I now have to advise all potential
clients that they have to alter the contents of their java.policy
(assuming that any of them will actually understand what I'm on about)
I'm sure that I'm missing something on either the server side or in the
HTML that actually loads the applet.
The question is what?

Regards
 
K

KiLVaiDeN

Gilbert said:
Hi

I'm supporting a web-site that uses a java applet. When any client
connects using either Microsofts JVM or Sun <= 1.4x in their browser
there is no problem and everything works correctly. However, if the
client is using Sun JVM 1.5.x in IE (I haven't tested other browsers
yet), the applet will not load.

I've discovered that by adding the line
"grant {permission java.net.SocketPermission "xxx.xxx.xx.xx", "connect,
resolve";}; to the runtime java.policy file on the client PC, the
applet will load.

Since I find it hard to believe that I now have to advise all potential
clients that they have to alter the contents of their java.policy
(assuming that any of them will actually understand what I'm on about)
I'm sure that I'm missing something on either the server side or in the
HTML that actually loads the applet.
The question is what?

Regards

Hello,

I believe you must sign your applet, here is a tutorial on how to do it
:
http://www-personal.umich.edu/~lsiden/tutorials/signed-applet/signed-applet.html

I hope it solves your problem.

Cheers,
K
 
A

Andrew Thompson

Gilbert Ostlethwaite wrote:
....
I'm supporting a web-site that uses a java applet.
....
The web's a big place. Care to share an URL,
or would you just like us to guess randomly?

Andrew T.
 
A

Andrew Thompson

Gilbert said:

Good start, but..
If you see the login box then the applet has loaded successfully.

...I was almost tempted to add* - to my original suggestion..

'..and please do *not* point us to a page that
involves frames (or pop-ups or flash) or log-ins.

If it is in such a complex page, strip it out into
simple, valid stand-alone test-page of its own
(if you are half serious about getting my help
on this problem).

You might even find, that process itself
ends with a working applet.'

Is it a signed applet? (Will I see a dialog asking
me to accept/trust the code?)

* ..but why waste the words? ;-)

Andrew T.
 
G

Gilbert Ostlethwaite

'..and please do *not* point us to a page that
involves frames (or pop-ups or flash) or log-ins.

This is a third party solution that I have no control over & the login
is the first screen of the applet.

Anyway, it appears that in Sun JVM's >= 1.5 the "use Browser Settings"
option in the Network options of the Java configuration doesn't work
properly. Specifically the JVM appears not to automatically pick up
proxy server settings from IE6 (Firefox automatically picks up proxy
settings and the JVM gets these from Firefox, Opera requires the proxy
to be configured directly anyway). If you manually configure your proxy
server in the Java config tool in Control Panel then everything works.

Next question, is does anyone know why Suns JVM fails to detect the
proxy settings from IE6 (IE6 auto detects proxies)

Regards
 
D

Dag Sunde

Gilbert Ostlethwaite said:
Doh!
http://www.brakebros.co.uk

If you see the login box then the applet has loaded successfully.
The applet (Login) loads and shows perfectly without any errors
in both IE 6 anf FF for me, with:
Java Plug-in 1.5.0_06
Using JRE version 1.5.0_06 Java HotSpot(TM) Client VM
 
A

Andy Dingley

Gilbert said:

An OT answer for your Java question, but that is one of the worst web
sites I've seen in ages. You just _can't_ throw the user a java applet
on the first page and lock the whole site out if they don't get past
it. It's just not reasonable web design.
 
G

Gilbert Ostlethwaite

An OT answer for your Java question, but that is one of the worst web
sites I've seen in ages. You just _can't_ throw the user a java applet
on the first page and lock the whole site out if they don't get past
it. It's just not reasonable web design.

If you check my original post ... I only support it :)

Regards
 
A

Andrew Thompson

Dag said:
The applet (Login) ..

Ohhh... That USER ID / PASSWORD thing with the white
blinking caret is the applet? I missed that bit.

In an case, it loads, I get 'Applet Jj started' in the status line,
no messages in the console, for Java Plug-in 1.5.0_08 in
IE 6.

...What was the question, again?
(Sub) "Applets will not load with JVM 1.5.x"

Uhh. OK.

So we have three tests on two PC's with two
different browser types and two different Java
1.5 versions that all load the applet successfully.
Maybe the problem is the specific box that
cannot load it.

Andrew T.
 
D

Dag Sunde

Andrew Thompson said:
Ohhh... That USER ID / PASSWORD thing with the white
blinking caret is the applet? I missed that bit.

LOL...
Yes... Here's the src=".." for the frame that contains it...
http://www.brakebros.co.uk/ipscgibin/$APPLETS.exe?BGCOLOR=294F38&FGCOLOR=FFFFFF&TEXTCOLOR=FCE693"

In an case, it loads, I get 'Applet Jj started' in the status line,
no messages in the console, for Java Plug-in 1.5.0_08 in
IE 6.

..What was the question, again?
(Sub) "Applets will not load with JVM 1.5.x"

Uhh. OK.

So we have three tests on two PC's with two
different browser types and two different Java
1.5 versions that all load the applet successfully.
Maybe the problem is the specific box that
cannot load it.

Obviously he discovered that 1.5.x have some problems with
auto-discovering proxy settings thru IE 6.

I don't use any proxies, so it was probably the reason it worked for me.
 
A

Andrew Thompson

Dag said:
"Andrew Thompson" <[email protected]> skrev i melding ...

Obviously he discovered that 1.5.x have some problems with
auto-discovering proxy settings thru IE 6.

I don't use any proxies, so it was probably the reason it worked for me.

Aaah.. finally an explanation, so simple even I
can understand it. ;-)

A.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top