Я пытаюсь заставить Java Web Start работать с приложением, используя подключаемый модуль Web Start для Eclipse (http://webstart.sourceforge.net/).) , произошла ошибка с ошибкой приложения: «Неожиданное исключение: java.util.NoSuchElementException.
Отображается файл запуска:
<?xml version="1.0" encoding="UTF-8"?>
<jnlp
codebase="file:/C:/Documents and Settings/10boyedevi/Desktop/School/AP Computer Science/Eclipse Workspace/ACSLLand/localhost/club/" href="file:/C:/Documents and Settings/10boyedevi/Desktop/School/AP Computer Science/Eclipse Workspace/ACSLLand/localhost/club/_local_club.jnlp">
<information>
<title>ACSLLand</title>
<vendor>AP Comp Sci 2009-2010</vendor>
<description kind="default">A game.</description>
</information>
<security>
<all-permissions/>
</security>
<resources arch="x86" os="Windows">
<j2se version="1.3+"/>
<jar href="ASCLLand.jar" main="true"/>
</resources>
<application-desc main-class="ascllandgame.ASCLLand"/>
</jnlp>
и трассировка стека исключений:
java.util.NoSuchElementException
at java.util.Scanner.throwFor(Unknown Source)
at java.util.Scanner.next(Unknown Source)
at ascllandgame.ASCLLand.main(ASCLLand.java:16)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)