I have seen quite a few posts and tutorials on how to embed Java applets onto a web page, but most are either going with the obsolete <applet> tags or suggesting Java Web Start.
I have tried <embed> tag and <object> tag. None have worked. I would prefer not to go with Java Web Start, but is it the only option nowadays in order to view the applet on chrome? If I were to go with it, does the code have to be changed into a Java web application?
I admit that I am a beginner. Feel free to point out if I misunderstood the situation.
Helpful comments and tips are appreciated.
Code I tried.
<embed archive="Redemption.jar" code="StartingPoint.class" width="200" height="200"type="application/x-java-applet;version=1.6" pluginspage="http://java.sun.com/javase/downloads/ea.jsp"/>
Unfortunately Java applet no longer works in any of the browsers.
Chrome was the first browser that stopped allowing Java applets. It used to work in Firefox but even Firefox stopped it a year ago.
Here Mozilla explains why it dropped support for Java applets:
https://support.mozilla.org/en-US/kb/npapi-plugins
Beginning in Firefox version 52 released March 7, 2017, installed
NPAPI plugins are no longer supported in Firefox, except for Adobe
Flash. Some of the plugins that will no longer load in Firefox, even
though they may be installed on your computer, include Java, Microsoft
Silverlight and Adobe Acrobat.
Why did browsers stopped supporting plugins such as Java Applet?
Because they make your browsing slower, less secure and more likely
to crash.
Related
21st century.
Apache Pivot web site.
Latest release July 04, 2017, Pivot 2.0.5
Demos page: https://pivot.apache.org/demos/
Clicking any demo causes the following banner appear:
I tried in Chrome, Firefox and Opera.
If click More info it passes you to java download page: https://java.com/en/download/win10.jsp
How to fix?
I don't want to download and install latest JRE. I have JDK/JRE version installed and satisfied by it. I want it to run.
That message is telling you that the page is trying to run a Java applet (that's what the Java plug-in does).
If you want to run a Java applet, you'll have to use an obsolete (or minor brand) browser, which obviously one doesn't recommend.
Chrome and Firefox have both dropped support for the Java plug-in (and support for NPAPI plugins in general, although they've whitelisted Flash for a little while), and Edge never had it. Reasons for this vary depending on who you ask and when you ask them, but essentially A) The Java plug-in had a long history of security issues, B) Supporting the underlying NPAPI is a non-trivial technical debt that browser vendors no longer want to carry, C) Now that the web has matured a great deal, with native video, animation, etc., the need for NPAPI-style plugins is greatly reduced.
A signed Java applet will run in IE11 if you tell your Java installation to allow it (on the Java configuration applet's Security tab). I have no idea whether an unsigned one will. I hope not.
Otherwise, you can't run the Java applet. Because this is the 21st century. :-)
If you inspect the page Apache pivot uses Applet: org.apache.pivot.wtk.BrowserApplicationContext$HostApplet with signed jar as pivot-core-2.0.5.signed.jar.
It calls runApplet and fails on check:
if(document.readyState=="complete"){
clearInterval(B);h()}},15);
k("[runApplet()] Java Plug-in is not supported by this browser");return
}
The support of Applet technology is down due to security issues. see great explanation in superuser site.
I've been using "Wiki on a Stick" for several years and have a few wikis that are full of info (and would be a pain to try to move onto something else). A year or two ago the editing features stopped working on all browsers aside from IE, apparently due to how those browsers handle Java or something.
However, I really hate using IE, so I was trying again to see if I could get it to work on Chrome. When I try it on Chrome, the error message reads: "The TiddlySaver Java applet was not available. Please check that the TiddlySaver.jar is in the same directory as this WoaS and that you have enabled Java permissions for it."
It IS in the same directory, so it sounds like all I need to do is "enable Java permissions for it"... but HOW do I do that?
Thanks.
I am afraid I have some bad news for you. Chrome (and practically all other non-legacy browsers) do no longer support the NPAPI, the technology behind Java "applets". So the applet will never run again. Especially not in Chrome.
The most recent activity in WoaS was more than five years ago, the board and mailing list died, so I doubt there will be an updated version anytime soon.
But I have learnt from the documentation, that the wiki's content is stored in a well-formated XHTML-File; so the parsing/extraction of your content shouldn't be that hard. But this is just from an outside perspective, I did not look into the product any further.
My advice would be to migrate you data as fast as possible, java applet technologie is a dead end.
My corporate web application is using Java applet to access users file system. There is no way for us to replace it with anything else for now.
How do I enable Java in Microsoft Edge?
As other folks have mentioned, Java, ActiveX, Silverlight, Browser Helper Objects (BHOs) and other plugins are not supported in Microsoft Edge. Most modern browsers are moving away from plugins and toward standard HTML5 controls and technologies.
If you must continue to use the Java plugin in a corporate web app, consider adding the site to an Enterprise Mode site list. This will automatically prompt the user to open in IE.
You cannot open Java Applets (nor any other NPAPI plugin) in Microsoft Edge - they aren't supported and won't be added in the future.
Further you should be aware that in the next release of Google Chrome (v45 - due September 2015) NPAPI plugins will also no longer be supported.
Work-arounds
There are a couple of things that you can do:
Use Internet Explorer 11
You will find that in Windows 10 you will already have Internet Explorer 11 installed. IE 11 continues to support NPAPI (incl Java Applets).
IE11 is squirrelled away (c:\program files\internet explorer\iexplore.exe). Just pin this exe to your task bar for easy access.
Use FireFox
You can also install and use a Firefox 32-bit Extended Support Release in Win10. Firefox have disabled NPAPI by default, but this can be overridden. This will only be supported until early 2018.
Edge has dropped all support for plugins. This means that Java, ActiveX, Silverlight, and other plugins are no longer supported. For this reason Microsoft has included Internet Explorer 11, which does support these plugins, with non-mobile versions of Windows 10. If you are running Windows 10 and need plugin support Edge is not an option, but IE 11 is.
About this, java declares that on Windows 10, Edge browser does not support plugins, so it will NOT run java.
(see https://www.java.com/it/download/win10.jsp --> only visible with edge in win10)
It also reports a notice: java is not officially supported yet in Windows 10.
(see https://www.java.com/it/download/faq/win10_faq.xml)
IE11 do accept Java according to the link below :
http://windows.microsoft.com/en-us/internet-explorer/install-java#ie=ie-11
And firefox also intended to remove NPAPI by the end of 2016 according to :
https://blog.mozilla.org/futurereleases/2015/10/08/npapi-plugins-in-firefox/
That Java Applets are not working in modern browsers is known but there is a quick workaround which is activate the Microsoft Compatibility Mode. This mode can be activated in your Edge browser and you can select to open the pages on the IE compatibility mode, and in this fashion the ActivX and Java and so works as in IE11.
M Edge in IE mode supports the following Internet Explorer functionality:
All document modes and enterprise modes
ActiveX controls (such as Java or Silverlight)
As refs:
https://query.prod.cms.rt.microsoft.com/cms/api/am/binary/RWEHMs
I hope you are doing well.
You can download add edge extension on MS edge browser that will allow you to run java applet.
You can try the extension called : CheerpJ Applet Runner
Recently security vulnerabilities were discovered in the Java Plug-In1. As a protection for the end user, Java in most browsers was disabled promptly. What do the 'Java disabled' warnings look like?
Does the blocking of applets also affect Java Web Start apps. (they are launched from a link in a web page) aimed at desktop use?
Security vulnerability in the Oracle Java Plug-In. For more details see:
The JRE 1.7 Vulnerability Q&A at SO.
Oracle Security Alert for CVE-2013-0422
The Java™ SE Development Kit 7, Update 11 (JDK 7u11) release notes - the version in which the vulnerability was fixed.
What do the 'Java disabled' warnings look like?
This is how Oracle's test Java page appears now. It is an embedded applet.
FireFox
Chrome
Message in yellow bar at top of browser:
Java(TM) was blocked because it is out of date. Update plug-in... Run this time - learn more x
Shown in place of applet, and on right click produces menu..
Note re version 1.7.0_11
Java version 1.7.0_11 that fixes the bug, mentioned in the last link in the question, does not enable the browsers again. Those warnings above were seen despite that this info. can be seen after enabling the plug-in for either browser..
It might indicate that the Oracle fix for the bug is to permanently load applets in this 'prompted for every one' way. That might not be a bad thing.
Does the blocking of applets also affect JWS apps?
No it does not. Just applets (and applets embedded using JWS).
Here is how you might see a JWS app. deployed using deployJava.js which (checks for the JRE and) shows an icon like this (without prompt - if installed).
If launching (for example) the JavaFX 1.2 demo. - Powerful UI Capabilities With Node-Based Controls I see the icon for launching the JWS app. At the same (security vulnerability) time I still see that warning on the applet mentioned above.
Note that the Java FX demo. does itself have security risks/prompts for 'application components that might indicate a security concern' from 'mixing signed & unsigned code'.
I noticed that the launching of Java applets using deployJava.js seems to have stopped working on some Mac browsers. Safari and FF still work, but Opera and Chrome send the user to Java installation page, as if the plugin was not found.
Take for example this. If you click the launch button in Opera, it sends you to a Java installation page. Any ideas on how to fix this?
I ended up checking User-Agent HTTP header for "Opera" and in this case using standard tag. For any other browser I use deploy deployJava.js as currently served by Sun.
I know that there are modified versions of deployJava.js (e.g. this one used by Atlassian JIRA) which correctly start the applet in Opera instead of sending the user to Java installation page. But in my case, this approach caused ClassLoader issues (truncated classes) with Opera as I was using applets packaged into several jar files (main + 3rd party jars). had no such problems, even with Opera (which has buggy Java support as Sun claims).
Strangely, I had no issues with standard deployJava.js with Chrome (checked on Linux and Mac Snow Leopard).
As an alternative, could you offer a plain link to the .jnlp?
From the "Deploying a Java Web Start Application", "If you are not sure whether your end users will have the JavaScript interpreter enabled in their browsers, you can deploy the Java Web Start application directly by creating a link to the JNLP file..."