There are two versions of java in my PC, and the defult one is java-1.5.0-sun.
I want to use java-6-sun because I am using the JAVA application //ContestAppletProd.jnlp//
from the TopCoder.
That's a really interesting web:
http://www.topcoder.com
Choose java 6, but there's error messages.
$update-java-alternatives -l
java-1.5.0-sun 53 /usr/lib/jvm/java-1.5.0-sun
java-6-sun 63 /usr/lib/jvm/java-6-sun
$sudo update-java-alternatives -s java-6-sun
update-alternatives: error: no alternatives for firefox-javaplugin.so.
update-alternatives: error: no alternatives for iceape-javaplugin.so.
update-alternatives: error: no alternatives for iceweasel-javaplugin.so.
update-alternatives: error: no alternatives for midbrowser-javaplugin.so.
update-alternatives: error: no alternatives for mozilla-firefox-javaplugin.so.
update-alternatives: error: no alternatives for mozilla-javaplugin.so.
update-alternatives: error: no alternatives for mozilla-snapshot-javaplugin.so.
update-alternatives: error: no alternatives for xulrunner-1.9-javaplugin.so.
update-alternatives: error: no alternatives for xulrunner-javaplugin.so.
update-alternatives: error: no alternatives for mozilla-javaplugin.so.
update-alternatives: error: no alternatives for xulrunner-1.9-javaplugin.so
Then install the plugins.
$sudo apt-get install sun-java6-plugin
$sudo update-java-alternatives -s java-6-sun
There's also some plugins I can't find.
But I found:
The defult app to open //ContestAppletProd.jnlp// is //Sun Java 5.0 Web Start//.
When I use it there comes out the error message:
com.topcoder.client.ui.UIManagerConfigurationException: The XML configuration for this UI is invalid at line 3 column 85.
at com.topcoder.client.ui.impl.XMLUIManager.create(Unknown Source)
at com.topcoder.client.ui.impl.XMLUIManager.create(Unknown Source)
at com.topcoder.client.contestApplet.ContestApplet.
at com.topcoder.client.contestApplet.runner.generic.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at com.sun.javaws.Launcher.executeApplication(Launcher.java:1200)
at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1147)
at com.sun.javaws.Launcher.continueLaunch(Launcher.java:990)
at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:519)
at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:219)
at com.sun.javaws.Launcher.run(Launcher.java:166)
at java.lang.Thread.run(Thread.java:595)
Caused by: com.topcoder.client.ui.UIManagerConfigurationException: The Swing defaults XML configuration is invalid at line 2 column 84.
at com.topcoder.client.ui.impl.XMLUIManager$ConfigurationContentHandler.startElement(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:533)
at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:220)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:322)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
... 15 more
Caused by: com.topcoder.client.ui.UIManagerConfigurationException: The Swing defaults XML configuration is invalid at line 2 column 84.
at com.topcoder.client.ui.impl.xml.swing.XMLSwingDefaults.set(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
... 25 more
Caused by: org.xml.sax.SAXParseException: Unknown element 'scheme'.
at com.topcoder.client.ui.impl.xml.swing.XMLSwingDefaults$SwingDefaultsHandler.startElement(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:533)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:330)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(XMLNSDocumentScannerImpl.java:779)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1794)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
... 30 more
And I must use the 6.0. After the java 6 installed, then can use the application //Sun Java 6 Web Start//
to open //ContestAppletProd.jnlp//.
all ok.
I can use the app and enjoy the c++ coding.
: )
No comments:
Post a Comment