当前位置: 代码迷 >> J2SE >> 来,研究了很长时间了。快风了。
  详细解决方案

来,研究了很长时间了。快风了。

热度:285   发布时间:2016-04-24 17:10:32.0
各位大哥来救命啊,研究了很长时间了。快风了。。。
我安装了mapobjects   java   版安装目录下有个教学的例子
C:\ESRI\MOJ22\Samples\Tutorial\tutorial.html
运行的时候出错
载入:找不到类   TutorialApplet。
java.lang.ClassNotFoundException:   TutorialApplet
at   sun.applet.AppletClassLoader.findClass(Unknown   Source)
at   java.lang.ClassLoader.loadClass(Unknown   Source)
at   sun.applet.AppletClassLoader.loadClass(Unknown   Source)
at   java.lang.ClassLoader.loadClass(Unknown   Source)
at   sun.applet.AppletClassLoader.loadCode(Unknown   Source)
at   sun.applet.AppletPanel.createApplet(Unknown   Source)
at   sun.plugin.AppletViewer.createApplet(Unknown   Source)
at   sun.applet.AppletPanel.runLoader(Unknown   Source)
at   sun.applet.AppletPanel.run(Unknown   Source)
at   java.lang.Thread.run(Unknown   Source)
Caused   by:   java.io.FileNotFoundException:   C:\ESRI\MOJ22\Samples\Tutorial\TutorialApplet.class   (系统找不到指定的文件。)
at   java.io.FileInputStream.open(Native   Method)
at   java.io.FileInputStream. <init> (Unknown   Source)
at   java.io.FileInputStream. <init> (Unknown   Source)
at   sun.net.www.protocol.file.FileURLConnection.connect(Unknown   Source)
at   sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown   Source)
at   sun.applet.AppletClassLoader.getBytes(Unknown   Source)
at   sun.applet.AppletClassLoader.access$100(Unknown   Source)
at   sun.applet.AppletClassLoader$1.run(Unknown   Source)
at   java.security.AccessController.doPrivileged(Native   Method)
...   10   more
Exception   in   thread   "Thread-4 "   java.lang.NullPointerException
at   sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown   Source)
at   sun.plugin.AppletViewer.showAppletException(Unknown   Source)
at   sun.applet.AppletPanel.runLoader(Unknown   Source)
at   sun.applet.AppletPanel.run(Unknown   Source)
at   java.lang.Thread.run(Unknown   Source)
java.lang.NullPointerException
at   sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown   Source)
at   sun.plugin.AppletViewer.showAppletStatus(Unknown   Source)
at   sun.applet.AppletPanel.run(Unknown   Source)
at   java.lang.Thread.run(Unknown   Source)
Exception   in   thread   "thread   applet-TutorialApplet "   java.lang.NullPointerException
at   sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown   Source)
at   sun.plugin.AppletViewer.showAppletException(Unknown   Source)
at   sun.applet.AppletPanel.run(Unknown   Source)
at   java.lang.Thread.run(Unknown   Source)
在C:\ESRI\MOJ22\Samples\Tutorial\Source\com\esri\tutorial\TutorialApplet.java
原文件在这目录下
tutorial.html代码
<!DOCTYPE   HTML   PUBLIC   "-//W3C//DTD   HTML   3.2//EN ">
<html>
<head>
<title> Main   Frame </title>
<SCRIPT   LANGUAGE= "JavaScript "   TYPE= "text/javascript ">
window.resizeTo(970,700);

</SCRIPT>
</head>
<body   bgcolor= "Silver "   LEFTMARGIN=0   TOPMARGIN=0   RIGHTMARGIN=0>
<table   border= "1 "   width= "100% "   height= "100% "   cellspacing= "1 ">
<tr>
<td   width= "100% "   height= "100% ">
       
  相关解决方案