×

Loading...

Topic

This topic has been archived. It cannot be replied.
  • 工作学习 / IT技术讨论 / Help me, I have cooked up a applet and put it in my www root directory, but when I run it in html file, it tell me that Load:class *** not found. What can I do , thanks
    • Your browser failed to download Applet code.
      What server are you using? If you tell us that, maybe some of us can help. Different server have different structures.
      • You are so kind ,jabber, you always answer my question so quickly. My server is IIS, and the applet is used to access sql server by jdbc-odbc.
        • Since your Applet accesses the DB using sql, you need make sun's jdbc-odbc driver (It is really a jdbc driver) downloadable as well.
          Your design here is not good. Applet should be lightweight--- as small as possible. Because you use Applet to access DB, you have to download jdbc-odbc driver, too. As such, your Applet is very fat. In such a case, if you just do demo, it is OK. If you do development, probably you have to re-archtect the design. One possible solution is
          introduce a plug-in servlet engine (for instance, Tomcat, free) and use a DB servlet to access the DB. Please let me know your situation, in particular, what your boss's idea is.
          • Thans Jabber, my solution, please com in.
            I just do this for pratice. In windows DNA it usally make a data access layer (component) to do data work, your advice is like that approch, am I right? Servlet is definitely ok. Can I employ JavaBean, CORBA to do that? What's your advice to forward the data retrived from database to applet. I mean how to accepet the recordset in applet and how to send the recordset in servlet.
            BTY, I ran the applet on that very server I developed it on, why that error hint still appear? it means that IIS have no capability to play the role of java web server? It seems that you are very keen on Tomcat, how do you think about Java web Server? because I only have that one in hand.
            • Java Web Server is old now
              本文发表在 rolia.net 枫下论坛Yes, I think you need use Servlets.. You need a 3-tier architecture. Once you use servlet, you may get rid of Applet. We had better try to avoid applets. Of course, it is another thing if we do exercises.

              1) JavaBean cannot be used independnetly here. You may use Javabean in JSP. If you
              choose do so, you need write a DBBean to encapsulate all the JDBC code.

              2) I don't see any necessities to use CORBA here. It is an overkill.

              3) I began to learn servlet by using Java Web Server. Since Apache foundation launched its Tomcat project, Sun has ceased to develop its JWS. Now JWS is obsolete. It does not support newer Servlet and JSP API.

              4) I suggest two options: a) download JRUN
              and conenct it to IIS ( I have ever done so); b) download tomcat and connect it to IIS. Both are worth trying.

              5) Please go to Java Console and check the exception stack trace, to see which class your Applet is missing. You may also post error message here.

              6) please search "fly_eagle" here. he met similar problem to yours. My discusssion with him may help you.更多精彩文章及讨论,请光临枫下论坛 rolia.net
          • how about oracle8i on linux?
            I want to know how can I access oracle db through jdbc?
            • Write your Java code using JDBC to access Oracle.
            • Please look into the jdbc subfolder in your Oracle installation directory, there are some good exampels. In addition, browse Oracle documentaion.
    • Hi, buddy, do you know because of the reason of security, an applet is now allowed to access DB through JDBC-ODBC driver!
      • Eric, few people know all things.
        • Jabber, sorry, I did not want to mislead others, but I was too careless.
      • Oh, My! I should have writen "an applet is NOT allowed ...." but I .......
    • If you could not load your class, your browser might have been old version that do not support your newer imported Java classes.