简体   繁体   English

如何更新oracle的JVM?

[英]HOWTO Update oracle's JVM?

I'm trying to solve problem with xml validation in oracle jvm 我正在尝试在oracle jvm中解决xml验证问题

And found another examples of doing that: 并找到了另一个这样做的例子:

SAXParserFactory factory = SAXParserFactory.newInstance(); SAXParserFactory factory = SAXParserFactory.newInstance(); factory.setValidating(false); factory.setValidating(假); factory.setNamespaceAware(true); factory.setNamespaceAware(真);

SchemaFactory schemaFactory = 
    SchemaFactory.newInstance("http://www.w3.org/2001/XMLSchema");

factory.setSchema(schemaFactory.newSchema(
    new Source[] {new StreamSource("contacts.xsd")}));

SAXParser parser = factory.newSAXParser();

XMLReader reader = parser.getXMLReader();
reader.setErrorHandler(new SimpleErrorHandler());
reader.parse(new InputSource("document.xml"));

But it seems to me that this example expecting to use newer version of Java therefore some methods and classes are absent in my JVM. 但在我看来,这个例子期望使用更新版本的Java,因此我的JVM中不存在某些方法和类。 They are SchemaFactory class and setSchema method of SAXParserFactory class. 它们是SAXParserFactory类的SchemaFactory类和setSchema方法。 I want to update, but I didn't found on oracle's tech support forums that it is posssible at all. 我想更新,但我没有在oracle的技术支持论坛上发现它是可行的。

If you mean the JVM that runs inside Oracle, it is directly tied to the version of Oracle that is in use. 如果您指的是在Oracle内部运行的JVM,则它直接与正在使用的Oracle版本相关联。 The only way to get a newer JVM is to upgrade Oracle. 获得更新的JVM的唯一方法是升级Oracle。 Although perhaps if enough people submit enhancement requests they will backport a newer JVM to older versions. 虽然如果有足够多的人提交增强请求,他们可能会将较新的JVM向后移植到旧版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM