JRE6不能兼容以前版本的Applet

来源:互联网 发布:arp断网攻击软件 编辑:程序博客网 时间:2024/06/01 10:48

<script type="text/javascript"><!-- google_ad_client = "pub-1992382271196226";/* 728x90, 创建于 08-3-9 */google_ad_slot = "1653402536";google_ad_width = 728;google_ad_height = 90;// --></script><script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script>

 

一个遗留的项目用到了Applet,而且是在jdk1.4的环境下开发运行的,用户在jre1.4和jre5上运行一切正常。但是将jre升级到6就出现问题了。而这个原因很可能是因为jre6采用了新的plug-in策略,这个策略是默认选中的。如果将其取消则采用以前的plug-in策略,这个时候一切就ok了。具体地可以参看官方文档。

----------------------------------------------------------以下转载自sun官方文档---------------

What is next-generation Java Plug-in and how can i switch between the old Java plug-in and new Java plug-in?


This article applies to:
  • Platform(s): Windows 2000, Windows XP, Vista
  • Browser(s): Internet Explorer 6.x, Internet Explorer 7.x, Netscape 7, Mozilla 1.4+, Firefox
  • Java version(s): 6.0

Java 6 Update 10 (6u10)includes a brand-new implementation of the Java Plug-in, which is usedby default as long as you are using Firefox 3 or Internet Explorer.Applets instead of being executed in a Java Virtual Machine (JVM)instance embedded in the web browser's process, are run in separate JVMinstances which are launched by the plug-in's code. As a result thenext-generation plug-in runs applets outside of the browser in one ormore separate processes. Applets still appear inside of the web browserwindow, but now it is possible to use different Java versions andconfigurations to run different applets.

A new implementation of the Java Plug-In features:
  • Better Windows Vista support.
  • Improved reliability.
  • Improved user experience.
  • Improved Java/JavaScript communications.
  • Built-in JNLP support.
Switching between the old Java Plug-in and next-generation Java Plug-in
The new Java Plug-in is enabled by default. However if there are issuesrunning applets with the new Java Plug-in, the user can switch to theold Java plug-in without any manual manipulation of the windowsregistry and moving files.
Steps to switch between Java Plug-ins
  1. Click Start.
  2. Click Control Panel.
  3. Double click on Java Control Panel.
  4. Click Advance tab in Java Control Panel.
  5. Scroll to Java Plug-in entry.
  6. Uncheck the check box for Enable next-generation Java Plug-in.
  7. Click Ok and restart the system.

 

<script type="text/javascript"><!-- google_ad_client = "pub-1992382271196226";/* 728x15, 创建于 08-9-3 */google_ad_slot = "9127232582";google_ad_width = 728;google_ad_height = 15;// --></script><script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script>