你先做个普通的html页,看看它能不能访问!

解决方案 »

  1.   

    看JAVA 的applet程序,就必须安装JRE。没有别的办法了!:)
      

  2.   

    如果你的applet只是使用了awt,并且没有对本地资源操作的话,那基本上不需要jre;如果你使用了swing或者对本地资源有操作的话,就必须安装jre了。
      

  3.   

    对了。。我的程序用到了swing组件了啊下个jre 多大啊。。
    还有我从sun主页看到它用来在html里放applet 的,如下
    <HTML>
      <HEAD>
        <TITLE>A Clock (1.6)</TITLE>
      </HEAD>
      <BODY>
        <h1>A Clock (1.6)</h1>
        <hr>
        <!--"CONVERTED_APPLET"-->
    <!-- HTML CONVERTER -->
    <OBJECT 
        classid="clsid:CAFEEFAC-0014-0000-0000-ABCDEFFEDCBA"
        WIDTH = 170 HEIGHT = 150  
        codebase="http://java.sun.com/products/plugin/autodl/jinstall-1_4_0-win.cab#Version=1,4,0,0">
        <PARAM NAME = CODE VALUE = "Clock.class" >    <PARAM NAME="type" VALUE="application/x-java-applet;jpi-version=1.4">
        <PARAM NAME="scriptable" VALUE="false">    <COMMENT>
    <EMBED 
                type="application/x-java-applet;jpi-version=1.4" 
                CODE = "Clock.class"
                WIDTH = 170
                HEIGHT = 150  
        scriptable=false 
        pluginspage="http://java.sun.com/products/plugin/index.html#download">
            <NOEMBED>
    alt="Your browser understands the &lt;APPLET&gt; tag but isn't running the applet, for some reason."
          Your browser is completely ignoring the &lt;APPLET&gt; tag!
    </NOEMBED>
    </EMBED>
        </COMMENT>
    </OBJECT><!--
    <APPLET CODE = "Clock.class" WIDTH = 170 HEIGHT = 150>
    alt="Your browser understands the &lt;APPLET&gt; tag but isn't running the applet, for some reason."
          Your browser is completely ignoring the &lt;APPLET&gt; tag!</APPLET>
    -->
    <!--"END_CONVERTED_APPLET"-->      <p>
            The clock applet now has three parameters; the background
            color (bgcolor), the main foreground color (the hands and
            dial) (fgcolor1) and the secondary foreground color (the
            seconds hand and numbers) (fgcolor2).  These three parameters
            are hexadecimal RGB numbers (like the ones used for the body
            bgcolor tag in HTML).  For example:
          <p>
            &lt;applet code="Clock.class" width=170 height=150&gt;<br>
            &lt;param name=bgcolor  value="000000"&gt;<br>
            &lt;param name=fgcolor1 value="ff0000"&gt;<br>
            &lt;param name=fgcolor2 value="ff00ff"&gt;<br>
            &lt;/applet&gt;<p>
            would give you a black background, a red dial and hands, and purple numbers.
          <p>
            For those who don't convert to hexadecimal easily, here are some common
            values:
          <ul>
            <li>black = 000000
            <li>blue = 0000ff
            <li>cyan = 00ffff
            <li>darkGray = 404040
            <li>gray = 808080
            <li>green = 00ff00
            <li>lightGray = c0c0c0
            <li>magenta = ff00ff
            <li>orange = ffc800
            <li>pink = ffafaf
            <li>red = ff0000
            <li>white = ffffff
            <li>yellow = ffff00
          </ul>
          <hr>
          <a href="Clock.java">The source</a>.
      </BODY>
    </HTML>
    看不懂啊。。
      

  4.   

    还有。。听说applet可以弄成什么active x控件什么的,还有着方面的工具。有这回事吗?
    有,,,工具哪儿有down啊谢谢啊
      

  5.   

    别人看到我的applet是写text.class没有找到?那时为什么难道这和用swing有关马?