Java Applets not working in IE9 - java

Is there any script or code that solves this problem?
Simply I have an image player in my web site which does not work in IE9. I know there is a solution (Java Applet Not Working (Blank) in IE9) which remove the problem, but if a user have not sufficient knowledge of how Windows works, or the web site is just play on outdoor screens, it need to be fixed with code by developer. Here is my website: http://www.interactivity.com.au/
Do you know any solution on Windows?

Since in a nutshell, the reason they're not working is that they're being blocked by a security feature, by definition there's no way for your applet to get around it. If there was, then it'd be a bug in the filter, and if such a way was found, you'd expect the filter to then be fixed to prevent it.
Add a link on your site to a set of instructions on how to fix the problem.

Related

Wiki on a Stick - can it work on Chrome?

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.

Start external program, but keep application in foreground

I'm writing an RSS reader desktop application in Java with Swing (odd choice, I know) that needs to start the web browser of the user's choice (suppose it's Firefox). I use runtime.exec("firefox -new-window $url"). This starts a new window of Firefox which appears in the foreground.
When I click a link in the application, I want to start Firefox but keep my application on the top (so I can open several links and then go back to them). Is there a way to do this? Preferably it should work with any browser (any program) and start it maximized but not in the foreground, though I'd settle for other solutions like starting minimized or using some command line arguments of Firefox (I haven't found any for this purpose).
It's kind of funny - all the questions about this I've found is people having the opposite problem, and also I've written a similar application several years back in C# which works as intended. I vaguely remember having the same problem, but looking at the sources now, I don't see what was the solution - it seems like it simply starts the browser with no extra stuff.
I got it. The reason why I could not find the right answer was that I was asking the wrong question. The solution has actually nothing to do with launching programs. All that is necessary is to set .setAlwaysOnTop(true); on the main JFrame.

Get client windows username

Can i get the username of the currently looged in person using applets. If yes, how can i use the applet in my dynamic web project?
I know in I.E we can do like this
var objUserInfo = new ActiveXObject("WScript.network");
document.write(objUserInfo.ComputerName+"<br>");
document.write(objUserInfo.UserDomain+"<br>");
document.write(objUserInfo.UserName+"<br>");
var uname = objUserInfo.UserName;
alert(uname);
but i want it using applet so that it will work in any browser.
Be aware that this is in fact an attempt to circumvent the browser security.
look at the answer to this similar (but not excactly the same) question.
http://www.coderanch.com/t/243316/Applets/java/windows-NT-login-applet
ActiveX will not run properly in Chrome / Firefox.
Javascript won't (due to security reasons) allow you to get that information from the operating system.
Flash is cross browser, and can be used for this, but it is difficult to get around chromes sandbox.
so my best suggestion is java.
Here is a similar question that is answered on why you can't without an applet.
https://security.stackexchange.com/questions/36728/can-your-windows-or-linux-username-be-exposed-to-websites
And the provided link from an answer to another similar question points to a java solution, but there are limits to the success:
http://www.rgagnon.com/javadetails/java-0441.html
However I think you should start from there, and then post a solution here when it works ;)
See the problem here is that when the applet tries to interact with local resources the browser must allow it, or block it..
Security settings in IE, may prevent that if set to high, and Chromes sandbox may block it if you do it wrong. I don't know of problems with Firefox or Safari, but I guess you'll find them when testing...
Good luck.

Logout flow in play! framework 2.0, java

I ran into this problem yesterday and haven't been able to find a solution to it.
Once a user logs out how do I prevent them from hitting the back button and loading the cached, previous page?
I ran into this post and read the suggested article, but I'm unsure if any of these suggestions are the correct way to handle this problem.
I even ran the sample apps from Play! notably the Forms app and it has the same problem. I thought their apps would at least show how to handle this.
Any help would be appreciated. Thanks.
You can disable the cache in the response's header (no-cache or must revalidate) for every page that needs to check the credentials.

Stop Chrome from trying to always update Java and Silverlight when running applets/plugins?

We have recently added a Silverlight based plugin (Plupload) that works great except for one issue:
If you try to use it in Chrome your browser will popup with the message "Silverlight was blocked because it is out of date".
I appreciate Google trying to force users to update (which they otherwise never ever do) but this has single handedly tripled our customer support load. Does anybody know of a way to force it to run in Chrome via Javascript/Html code?
We have seen the same issue with many sites using Java applets. As Oracle constantly has minor updates it seems near impossible to stay "up to date" so effectively you asked to upgrade 9/10 times.

Categories