Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Necessary and sufficient conditions to run Java applets and JWS applications in browser?

I have already asked this and was heavily downvoted. Unfortunately, I still can't solve it. I don't know what I do, but sooner or later I loose an ability to run java applets and java web start applications in all browsers.

Here is an example what is happening.

I am opening page with applets http://csis.pace.edu/~bergin/Java/applets.htm and getting the following picture:

enter image description here

with signs plugins were blocked. I am trying to unblock

enter image description here

which causes another dialog

enter image description here

after OK I have another

enter image description here

next

enter image description here

if clicked

enter image description here

And so on.

Applet doesn't run.

After dancing with PATHes, Java updates and so one, once I can have applet run. But sooner or later I will stuck in this position again.

I would like to know, is it possible to exclude this situation in principle?

I mean I don't want to disable security at all, but I mean that in case my explicit permission everything should run. Is it possible to do that?

UPDATE

First of all, I don't understand, why can't I run applet on outdated java if I want?

I am a human and robots should obey me! :)

Suppose I wish to debug my applet on old version of java, why not?

Second, there is no information about what version it thinks I have and what version it wants?

Without this information it is possible that there is just a bug in version detection mechanism.

I have multiple versions of Java in Program Files since I am a Java developer. Then how can I know which one it uses?

UPDATE 2

I have updated my Java from 1.8.0_20 to 1.8.0_25 and now situation have changed, but applets are sill impossible to run.

The proof I have "latest" java:

enter image description here

The proof I have added the site above to exclusions list:

enter image description here

The effect of applet run:

enter image description here

(applet not runs)

Clicking details result:

enter image description here

(no any details in fact)

So, what to do?

UPDATE 3

This site is not working: http://ssd.jpl.nasa.gov/sbdb.cgi?sstr=2012VP113;orb=1;cov=0;log=0;cad=0#orb

(show orbit diagram)

Reloading/restarting browser does not help.

like image 983
Suzan Cioc Avatar asked Nov 20 '14 20:11

Suzan Cioc


1 Answers

I looked at your html source and realized you're using the .class file directly instead of wrapping it in a jar file. This is what you have:

<applet code="GSort.class" width=700 height=400>

I think applets no longer work when using .class files directly due to new security requirements. They have to be wrapped in jar files because you need to add some security settings to the meta-inf folder of the jar file. Here is how oracle recommends deploying an applet:

https://docs.oracle.com/javase/tutorial/deployment/applet/deployingApplet.html

Edit: I tried again with adding the site url to the Java security exception list and this time I got it to work! It looks like chrome stays in memory after exiting so changing Java security doesn't affect it unless you shut down chrome completely and restart it. Easiest way is to use Internet Explorer. Try it with Internet Explorer and it should work (assuming that you still have the site added under java security exception list).

like image 97
Saeid Nourian Avatar answered Oct 18 '22 03:10

Saeid Nourian