Is it possible to get a Java browser of a web browser without using an applet?

We have an old Java applet that we want to promote in a newer version of Java (5 or 6), but until today we have always supported people using Java virtual machines in version 1.1 (especially for those still using Microsoft VM)

As part of the update, we would like to be able to serve the web page for people using outdated virtual machines that tell them which versions we support and where they can be downloaded. Ideally, we want to do this without first having to service the Java 1.1 applet to determine the version of the JVM.

Answers to one of the following (with possible code examples):

Question 1: is it possible to define the JVM in a script on the server using the information from the HTTP headers?

Question 2: is it possible to determine information on the client using only JavaScript?

+3
source share
4 answers

I think the deployment toolkit can do what you want.

Use the runApplet () function in deployJava to provide a minimal Java Runtime Environment on the client computer before running the applet.

+1
source

Q1: no

Q2: yes, but I do not know how portable is:

<html><head><title>Test</title>
</head><body>
<script type="text/javascript">
document.writeln('<table border="1">');
for (var i = 0; i < navigator.plugins.length; i++) {
  document.writeln("<tr>");
  document.writeln("<td>" + navigator.plugins[i].name + "<\/td>");
  document.writeln("<td>" + navigator.plugins[i].description + "<\/td>");
  document.writeln("<td>" + navigator.plugins[i].filename + "<\/td>");
  document.writeln("<\/tr>");
}
document.writeln("<\/table>");
</script>
</body></html>

, . , , , java, ...

+1

.

. 1x1 1.1, , 1.5.

1.1. .

+1

Source: https://habr.com/ru/post/1702842/


All Articles