Java Help

Frequently Asked Questions About Java Applets:

 When I try to view a Java Applet I only see a box with a red X in the corner. Why is this happening?  

There are four possible reasons for this result:

Cause #1:
The most likely reason for this behaviour is that you do not have Java installed on your computer.

Test your Java Virtual Machine (JVM)


You can download and install the Sun Java plug-in at this address:
http://java.com/en/index.jsp

Cause #2:
Another possible cause for this behaviour is that you do not have Java enabled on your computer.
To verify if this is the case, do the following in Internet Explorer:

Select the Tools Menu -> Internet Options -> Advanced Tab

Once you are in the Advanced Tab of the Internet Options dialogue box, scroll down to the setting for: Microsoft VM.
To enable the Microsoft VM check the "JIT compiler for virtual machine enabled" checkbox, this requires a restart of the browser, not the computer:

You can also optionally select the "Java console enabled" checkbox which will allow you to see any error messages that may be produced by the Microsoft VM.

Alternatively, if you have the Sun version of Java then find the Java (Sun) entry in the list and check the "Use Java 2 v(version number) for <applet>" checkbox, this requires a restart of the browser, not the computer:

If you do not see either of these options listed, then you do not have Java installed. Please refer to Cause #1 above.
Netscape and Opera ship with Java but it needs to be explicitly selected for installation during the browser installation.

Cause #3:
The third possibility is that you have both Microsoft and Sun's versions of Java installed and enabled on your computer and they are conflicting with one another.
To solve this issue, follow the steps in Cause #2 and select only one version of Java to use; Sun's or Microsoft's.

Cause #4:
The final possibility for this behaviour is that your version of Java may be corrupt.
To solve this issue, uninstall your current version of Java (if possible) and then download a new version from Sun following the instructions contained in Cause #1.

 I am trying to view a Java Applet but nothing happens. I know that my web browser is Java enabled. What could this be?  

Your web browser has a storage facility on your hard drive that stores graphics and text from web sites that you visit. This storage facility is called the cache, or Temporary Internet files. The reason web browsers have a cache is that it is quicker and easier to load images, applets, etc. from cache on your hard drive than downloading them again. Over time, your browser's cache gets full and the information gets outdated. This can cause problems with Java applets and can result in that Applets are freezing or not working at all. The solution to this is to clear cache and reload the page. If this does not work, try clearing your cache, closing your browser and then revisiting the page.

Internet Explorer 4.x or greater

1. Select Tools (or View if you are using IE 4.x), then click Internet Options.
2. Select the General Tab.
3. Click on the Delete Files button to clear the cache.
4. Remember to select the "delete all offline content" checkbox.

Netscape 4.x or greater

1. Select Edit, then click Preferences.
2. Select Advanced, then click Cache.
3. Click on Clear Memory Cache and Cle
ar Disk Cache buttons to clear the cache.

 If you suspect your Internet provider is blocking Java applets with a firewall or proxy  

If you suspect your Internet provider is blocking Java applets with a firewall or proxy (this is very common if you access the Internet from your school or office network, and not very common with commercial ISPs), ask your system administrator if this is the case and if so, ask if they'll change it. System administrators often block Java applets as a security precaution as they don't understand that Java applets are extremely safe and cannot modify anything on your computer. Another option is to set the firewall or proxy to trust Java applets on the BNL Training website (training.bnl.gov).

 Proxy setting error  



If your applet is not displaying properly and is showing a red X.


Applet with red X - load failed


Configuration check list


If your applet is not displaying properly, please check these additional configurations.
 

If you are unable to perform any of the steps above due to an error, please reinstall the JRE.

Download and installation instructions



Sun provides third-party contact information to help you find technical support. This contact information may change without notice. Sun does not guarantee the accuracy of this third-party contact information.

The third-party products discussed in this article are manufactured by companies independent of Sun. Sun makes no warranty, implied or otherwise, regarding the performance or reliability of these products.

 
 
None of these solutions helped me. What should I do?

Please contact training@bnl.gov. or Call the ITD Helpdesk for 24x7 support.