Duplicate :
|
|
Duplicate :
|
|
Duplicate :
|
|
Relates :
|
|
Relates :
|
FULL PRODUCT VERSION : java version "1.5.0_05" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05) Java HotSpot(TM) Client VM (build 1.5.0_05-b05, mixed mode, sharing) ADDITIONAL OS VERSION INFORMATION : Microsoft Windows [Version 5.2.3790] EXTRA RELEVANT SYSTEM CONFIGURATION : 2.0GHz Pentium M processor 1GB physical memory Internet Explorer 6.0.3790.1830 A DESCRIPTION OF THE PROBLEM : When Java Plugin is configured with -Xmx parameter set to some number larger than half of the system's physical memory, java plugin will not start in Internet Explorer. It pops up a message box that says "The Java Runtime Environment cannot be loaded". On my machine, -Xmx750m does the trick. The problem seems to be independent of the version of Windows operating system. It's also reproducible on Windows 2000 and XP. It happens with both the <APPLET> tag and with the <OBJECT> tag. STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : Open Java 1.5 control panel and switch to Java tab. Open "Java Applet Runtime Settings" by clicking on "View" button. In the last field (Java Runtime Parameters) enter "-Xmx512m", where "512" should be replaced by 3/4 of the system physical memory size. Also enable "<APPLET> tag support" for Internet Explorer. Apply settings. Open internet explorer and navigate to any web page that contains an applet. EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - Applet runs and its user interface is visible. ACTUAL - The place where the Applet would be on the HTML page is blank with a little icon in top left corner, which represents missing control. An error message dialog is displayed by Java Plugin. ERROR MESSAGES/STACK TRACES THAT OCCUR : Error message box has the title "Java(TM) Plug-in Fatal Error", and the message is "The Java Runtime Environment cannot be loaded". REPRODUCIBILITY : This bug can be reproduced always. ---------- BEGIN SOURCE ---------- HTML page that calls up the applet. ------------------------------------------------- <HTML> <HEAD> <TITLE> Test Applet </TITLE> </HEAD> <BODY> <APPLET width=400 height=250> <PARAM NAME="codebase" VALUE="."> <PARAM NAME="code" VALUE="testapplet.TestApplet.class"> <PARAM NAME="name" VALUE="Test Applet"> </APPLET> </BODY> </HTML> ------------------------------------------------- Even though the actual TestApplet.class doesn' t have to be available to see the problem, below is java code for this Applet. ------------------------------------------------- package testapplet; import java.applet.Applet; import javax.swing.JLabel; public class TestApplet extends Applet { public TestApplet() { add(new JLabel("Applet's Running")); } } ---------- END SOURCE ---------- CUSTOMER SUBMITTED WORKAROUND : Maximum possible value for -Xmx must be determined by trial and error for each individual machine.
|