你想想,你的本地机上有Jbuilder里面的jar包,客户用你的applet时,他们有吗?
你需要将Jbuilder里面的jar包与你的applet类打成包才行.

解决方案 »

  1.   

    jar cvf <yourapplet>.jar <yourclass>.class <yourlib>.jar
      

  2.   

    还是用JB7的自动打包省事
    在tools-————ach*******wizid里(嗬嗬,记不清了)
      

  3.   

    wiazid--------achive wiazid...我也记不清了
      

  4.   

    new==>Enterprise=>EAR
    然后把你的文件加进去!
      

  5.   

    唉,碰到这样的老兄,真是...
    <html>
    <head><title> Test </title>
    <body>
       <H1> Test </H1>
    <applet
       archive = "<your_jar>.jar" 
       codebase = "../classes/com/../"
       code     = "<your_class>.class"
       width    = "900"
       height   = "700"
       hspace   = "10"
       vspace   = "10"
       align    = "middle">
      <param name = "str"  value = "This is a test">
    </applet>
    </body>
    </html>
      

  6.   

    建议装个jbuilder一切事情都解决了:)
      

  7.   

    helpall,你看我的方法对吗?先打包:
    jar cvf aa.jar Login.class dx.jar
    其中dx.jar是Jbuilder带的,因为我用到里面的com.borland.dx.sql.dataset.*等类。然后:<html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=GBK">
    <title>
    HTML Test Page
    </title>
    </head>
    <body>
    <applet
       archive = "aa.jar" 
       codebase = "."
       code     = "Login.class"
       width    = "900"
       height   = "700"
       hspace   = "10"
       vspace   = "10"
       align    = "middle">
      <param name = "str"  value = "This is a test">
    </applet></body>
    </html>但IE还是提示我找不到java.lang.NoClassDefFoundError: com/borland/dx/dataset/ReadWriteRow请帮帮忙啊!!!!
      

  8.   

    1.先把dx.jar解开到一个目录abc
    2.将Login.class放到相应的目录abc
    3.jar cvf aa.jar -C abc??(具体语法查一查)
    用jar tvf aa.jar检查,需要看到:
    <size> <timestamp> Login.class
    <size> <timestamp> com/
    <size> <timestamp> com/borland/
    <size> <timestamp> com/borland/dx
    ...
      

  9.   

    我按你说的做了,jar cvf cc.jar -c abc/
    但用jar tvf aa.jar检查,好象四 abc/com/等有一个疑问?把login.class和dx.jar的内容打包在一起后,那我在
    html里面的调用applet的<codebase = >应该填什么路径呢????我用的是codebase = ".",行吗?我把打包好的aa.jar和html放在一个目录下的目前我现在用IE打开还是不行
      

  10.   

    呵呵,终于解决了!我直接用Jbuilder的打包功能,JBuilder直接把用到它的包加进去了!不过还是很感谢楼上的,我会给你加分的。不过目前又出现了别的问题:就是我在applet里面用到了jdbc连数据库。
    现在出的错误就是找不到sql driver,怎么办啊
      

  11.   

    唉, 我的"jar cvf aa.jar -C abc??"是打问号的啊.
    cd abc
    c:\abc>jar cvf c:\aa.jar .(注意这个小点啊,可不是一般的句号噢)
      

  12.   

    哎!先结帖吧,不过我的数据库问题还是没解决错误是See com.borland.dx.dataset.DataSetException error code:  BASE+66com.borland.dx.dataset.DataSetException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket. at com.borland.dx.dataset.DataSetException.a(Unknown Source) at com.borland.dx.dataset.DataSetException.throwException(Unknown Source) at com.borland.dx.dataset.DataSetException.SQLException(Unknown Source) at com.borland.dx.sql.dataset.Database.openConnection(Unknown Source) at com.borland.dx.sql.dataset.Database.createPreparedStatement(Unknown Source) at com.borland.dx.sql.dataset.o.a(Unknown Source) at com.borland.dx.sql.dataset.o.d(Unknown Source) at com.borland.dx.sql.dataset.o.f(Unknown Source) at com.borland.dx.sql.dataset.QueryProvider.e(Unknown Source) at com.borland.dx.sql.dataset.JdbcProvider.provideData(Unknown Source) at com.borland.dx.dataset.StorageDataSet.a(Unknown Source) at com.borland.dx.dataset.DataSet.a(Unknown Source) at com.borland.dx.dataset.DataSet.open(Unknown Source) at com.borland.dbswing.JdbTable.bindDataSet(JdbTable.java:2701) at com.borland.dbswing.JdbTable.addNotify(JdbTable.java:2685) at java.awt.Container.addImpl(Container.java:621) at javax.swing.JViewport.setView(JViewport.java:945) at javax.swing.JViewport.addImpl(JViewport.java:307) at java.awt.Container.add(Container.java:490) at TaskManage.jbInit(TaskManage.java:184) at TaskManage.init(TaskManage.java:67) at sun.applet.AppletPanel.run(AppletPanel.java:341) at java.lang.Thread.run(Thread.java:536)Chained exception:java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket. at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source) at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source) at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source) at com.microsoft.jdbc.sqlserver.tds.TDSConnection.<init>(Unknown Source) at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source) at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source) at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source) at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source) at java.sql.DriverManager.getConnection(DriverManager.java:512) at java.sql.DriverManager.getConnection(DriverManager.java:171) at com.borland.dx.sql.dataset.Database.openConnection(Unknown Source) at com.borland.dx.sql.dataset.Database.createPreparedStatement(Unknown Source) at com.borland.dx.sql.dataset.o.a(Unknown Source) at com.borland.dx.sql.dataset.o.d(Unknown Source) at com.borland.dx.sql.dataset.o.f(Unknown Source) at com.borland.dx.sql.dataset.QueryProvider.e(Unknown Source) at com.borland.dx.sql.dataset.JdbcProvider.provideData(Unknown Source) at com.borland.dx.dataset.StorageDataSet.a(Unknown Source) at com.borland.dx.dataset.DataSet.a(Unknown Source) at com.borland.dx.dataset.DataSet.open(Unknown Source) at com.borland.dbswing.JdbTable.bindDataSet(JdbTable.java:2701) at com.borland.dbswing.JdbTable.addNotify(JdbTable.java:2685) at java.awt.Container.addImpl(Container.java:621) at javax.swing.JViewport.setView(JViewport.java:945) at javax.swing.JViewport.addImpl(JViewport.java:307) at java.awt.Container.add(Container.java:490) at TaskManage.jbInit(TaskManage.java:184) at TaskManage.init(TaskManage.java:67) at sun.applet.AppletPanel.run(AppletPanel.java:341) at java.lang.Thread.run(Thread.java:536)有人知道就请到另一个问题里帮我解决
    http://expert.csdn.net/Expert/topic/1756/1756614.xml?temp=.721615