About the applets that will be discontinued, I used netbeans java web start but it didn’t work with Chrome browser

Asked

Viewed 183 times

0

I really need to know the whole to use the java web start plugin free, because I know it has solution; What would be the best technique to launch applets in the browser Chrome?

I generated the Launch.html, test.jar, and test files in netbeans.jnlp. Still, nothing works on Chrome.

Follows:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<jnlp codebase="http://localhost:8080/hello" href="launch.jnlp" spec="1.0+">
<information>
    <title>appletJavaWS</title>
    <vendor>aline.gonzaga</vendor>
    <homepage href=""/>
    <description>appletJavaWS</description>
    <description kind="short">appletJavaWS</description>
</information>
<update check="background"/>
<security>
    <all-permissions/>
</security>
<resources>
  <j2se version="1.5+"/>
  <jar href="appletJavaWS.jar" main="true"/>
</resources>
    <application-desc main-class="Principal">
    </application-desc>
</jnlp>  

The Launch.html:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <title>Test page for launching the application via JNLP</title>
</head>
    <body>
        <h3>Test page for launching the application via JNLP</h3>
    <script src="http://java.com/js/deployJava.js"></script>
    <script>
        deployJava.createWebStartLaunchButton("launch.jnlp")
    </script>
    <!-- Or use the following link element to launch with the application -->
    <!--
    <a href="launch.jnlp">Launch the application</a>
    -->
    </body>
</html>

And the jar. Does anyone give me a light? Java web start is very new to me.

  • 1

    Chrome no longer supports NPAPI, which is the technology that java used for its plugin. Java web start actually downloads a file that runs external to the browser, so it is independent of the browser the user is using.

  • crossbrowser as I apply this to my applet?

  • Applet is not java web, they are different technologies in its execution. The applet is run by NPAPI, which has been discontinued in most browsers. Either you migrate to java web or javafx, or you run the risk of staying.

  • yes. That’s what I want to better understand I’m using java web start I did this mini test in netbeans. Everything a java web start needs to be launched in the browser I did but it doesn’t work on Chrome at all.

  • Do you know anything? If something is missing? I know applet is not a jws I just want to launch the applet through this technology.

  • 1

    On the console appears what error when you click on the link?

  • netbeans console error? I didn’t notice this because I generated some files and am running externally from netbeans I have deployed with the app’s Tomcat, ie I am running as localhost

  • Chrome browser console error, open the console on the page and then click the link =)

  • I’ll do it now. But stay there, don’t disappear no.

  • I got it! o/ let’s celebrate with me?

Show 5 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.