我们可以在不升级整个Java 平台的情况下,将一些最新jar包放到某个路径下,覆盖Java平台自带的比较陈旧的相关包。
不过并不是Java平台的所有模块都可以被升级,只有两类模块可以被这样的方式升级:
1. 一类是被Java平台自带的,但是支持升级的包。
2. 一类是Java平台本来没有自带的,一些独立技术包。
升级支持的包:
endrorsed packages
javax.rmi.CORBA org.omg.CORBA org.omg.CORBA.DynAnyPackage org.omg.CORBA.ORBPackage org.omg.CORBA.portable org.omg.CORBA.TypeCodePackage org.omg.CORBA_2_3 org.omg.CORBA_2_3.portable org.omg.CosNaming org.omg.CosNaming.NamingContextExtPackage org.omg.CosNaming.NamingContextPackage org.omg.Dynamic org.omg.DynamicAny org.omg.DynamicAny.DynAnyFactoryPackage org.omg.DynamicAny.DynAnyPackage org.omg.IOP org.omg.IOP.CodecFactoryPackage org.omg.IOP.CodecPackage org.omg.Messaging org.omg.PortableInterceptor org.omg.PortableInterceptor.ORBInitInfoPackage org.omg.PortableServer org.omg.PortableServer.CurrentPackage org.omg.PortableServer.POAManagerPackage org.omg.PortableServer.POAPackage org.omg.PortableServer.portable org.omg.PortableServer.ServantLocatorPackage org.omg.SendingContext org.omg.stub.java.rmi org.w3c.dom org.xml.sax org.xml.sax.ext org.xml.sax.helpers
standardalong technologies
Java API for XML Processing (JAXP) , version 1.4
Java Architecture for XML Binding (JAXB) , version 2.0
Java API for XML-Based Web Services (JAX-WS) , version 2.0
Java Compiler API , version 1.0
Pluggable Annotation Processing API , version 1.0
Common Annotations for the Java Platform , version 1.0
Scripting for the Java Platform , version 1.0
SOAP with Attachments API for Java (SAAJ) , version 1.3
升级方法:
将要升级的包放在
在Java的jdk安装路径下 <JAVA_HOME>/lib/endorsed 下。
详细资料请参考: http://download.oracle.com/javase/6/docs/technotes/guides/standards/index.html