i'm trying to build a Java applet and i'm having a major problem trying to set up my development environment because my applet has bugs in it but I can't fix them easilly because Java won't get the latest version of the applet. I've turned off caching in "Java Preferences.app".
I want to set it so that applet wil not be cached at all, as any bugs can easilly be ironed out.
I'm using the latest (on Leopard) XCode and Safari 4.
Thanx,
kenny
Applet Caching
SUMMARY:This new feature is activated
by including the new PARAM
NAME="cache_option" and PARAM
NAME="cache_archive" values in the tag
that specifies the use of Java Plug-in
as below: The cache_option attribute
can take one of three values:
No
Disable applet installation. Always
download the file from the web server.
Browser
Run applets from the browser cache
(default).
Plugin
Run applets from the new Java Plug-in
cache.
EDIT:
Caching Option
Steps to Turn off Java Applet Caching
Related
We are trying to download something from GE that uses Java to download when logging into the site. This is a windows 7 Professional PC. I have other computers that are able to do this successfully. Here is my order of operations:
Log into the site and select the file I want to download
Click download
It takes me to the page that says it will start in a few seconds but nothing happens. It is supposed to have a box that asks for Java to run.
I have reinstalled Java fresh and still nothing. Tried with multiple user accounts. Added the site to the list of exceptions in the firewalls and Java configuration. I have tried an earlier version of Java. This happens in Mozilla, Chrome and IE. I have made sure that the Java plugin shows up and is enabled. I just cant think of what I am missing. And since we are a contractor GE is not going to help us. Can anyone here think of anything?
Are you sure you have the Java plugin enabled? e.g. in Firefox, go to Settings, Plugins, and change Java Platform SE8 'Next Generation Java Plugin' to 'always activate'?
This sounds similar to the issues I had with Cisco WebVPN, Java-style. Once you have Java installed correctly and set as a plugin for any of the browsers you would like to use, see below.
Before you even start looking at browsers - if you think it is already set up correctly
Look at your Anti-Virus programs or anything else that could prevent it from working. McAfee Host Intrusion Protection is known to cause many Java programs to fail. Kapersky had issues, a while back, with Java on Windows (Java Applets not loading in Windows 8 ).
You must have a 64-bit browser to use 64-bit Java (also mentioned in the Chrome link below).
See below for any specific things that can be modified in the browser.
Chrome 43 is the more complicated browser to set up. They have a dedicated page with instructions.
How do I use Java with the Google Chrome browser?
Firefox 38 will prompt you.
In Internet Explorer 11, it's under Internet Options->Security. I recommend adding the hostname the applet is on as a Trusted Site (Select Trusted Sites and click the Sites button, then add the first part of the url). Click the Custom level button and make sure that Scripting of Java applets is not disabled.
If you still have problems with the applet:
Verify your Java version will work with the applet you are accessing
Verify the plugin is enabled for the browser through the Java Control Panel, which is available in Windows Control Panel, or on Mac/Linux, execute it from the JDK directory ($JAVA_HOME/ControlPanel ).
I ended up fixing the issue. I had to allow their UK site on the list for Java and enable the SSL 2.0 for HTTP in Java config as well
I try to get a local applet running on a local HTML page. I have put the file on the exception list as
file:///c:/work/test.html
I also tried simple things like
file://
I have checked that the Java configuration is from the same version as the Java plugin. The first version 1.8.0_25-b18 I took from the configuration tool and its button "Info". The other from the Java console. The plugin version is 11.25.2.18.
So far nothing worked. I always get an error message telling me (in German) that my security settings prevent the application of local applets.
What now?
Go to java settings in Control Panel -> Java -> Security Tab and make sure that Enable Java content in browser is on and your security level is not too high - that was a problem when I was testing the applet.
In addition to this as far as I know in Java 8 security settings requires applet to be signed., so no more unsigned and self signed, I am still on 7 + last time I had to do with applets was about a year ago.
I'm working on a little Java app and I'm currently putting the installer together. This checks for perquisites, such as Java being installed, and prompts the user to download anything that's required.
I need to set a requirement for the minimum Java version I support (I'm building with 7). Is there a simple way I can detect what this would be? So if I'm using any classes etc. not available in earlier versions. BTW I'm using IntelliJ.
I'm not sure if the entire 'system tray' complicates things, but..
For deploying Java desktop apps., the best option is usually to install the app. using Java Web Start. JWS works on Windows, OS X & *nix.
The best way to deploy a JWS app. or applet is to use the Deployment Toolkit Script. (That script will do the 'version checking').
I'm now testing an applet application which required to work on JAVA 1.6 & 1.7
However i got a lot of difficulties with SAFARI & JAVA versions in-compatibility.
The test is for safari 5:
i install jre-1.6.0_11 --> the applet loaded normally
i install jre-1.6.0.25 --> the applet does not shown, no message for what's going on?
Updated
i install jre-1.7.0_11 --> the applet loaded normally
i install jre-1.7.0.25 --> the applet does not shown, no message for what's going on?
It's great if you can share your experience of this proble! Please tell if you have any solution that can detect if java is working or not?
I had similar problem and it was a nightmare. Apple has been very strict with plug-ins like Java Applets and Flash due to security issues (specially after several Zero-day-attacks occurred this year here is an example).
There are two things you can do to avoid your applet being blocked by the web browser:
Do not use javascript interactivity;
Do not use access local system/file;
You asked:
What should i do if my plugin is installed & enabled, but java is not working?
You could create a javascript function to check if your applet was loaded (yes, it contradicts what I just said...). Here is an example:
How to wait for a Java applet to finish loading on Safari?
Finally, did you check java security levels?
Cheers,
Is it possible to embed an applet in HTML so that it will be displayed within the browser window yet launched through Java Web Start via a JNLP file instead of using the browser's Java plugin? If so, how is this done?
I've only been able to launch my applet in a standalone window, but disliking the user experience pop-ups create, I'd prefer that it be embedded in the browser window.
I'd like to use JWS instead of the plugin because I need to control my applet's maximum heap size, which I don't believe is possible with the browser plugin, at least not on Mac OS 10.5.
In-browser applets support JNLP deployment since 1.5 (or so). There's an example on how to do it here: http://java.sun.com/javase/6/docs/technotes/guides/jweb/deployment_advice.html
You're still using the Java plugin then, of course. It may or may not work to set the heap size.