DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2005
    Posts
    1

    smth wrong with starting applet

    hi
    I've got a problem with starting my applet.
    The html code :
    Code:
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
    <title>krzywe Lissalious'a</title>
    <base  href="file:///E:\nauka\javaPOO\projs\krzyweL\classes\">
    </head>
    <body>
    <applet codebase=".krzywel" code="krzywel.LissApl.class" name="TestApplet" width="400" height="500" hspace="0" vspace="0" align="middle"></applet>
    </body>
    </html>
    In Netscape 7.2 the following information appears : Applet TestApplet notinited, whereas Internet Explorer shows: java.lang.ClassNotFoundException: krzywel.LissApl.class, what can be wrong?

    I'm viewing the applet with JBuilder (using its tools) and everything is ok, but when I am trying to start the html file by clicking on it, it doesn't work properly :/ (and thiat messages appears in a browsers).
    ->Maybe my browsers runs different java version than this implemented in JBuilder?
    I wanted to check the java version installed in my os , so I've wrote in a cmd prompt window a line: java -version, and the answer was that the name java is not recognized , ...but my browsers works with applets seted in internet.
    Can anyone put this all together?

  2. #2
    Join Date
    Aug 2003
    Posts
    313
    Take a look at this:
    http://ww2.cs.fsu.edu/~steele/XHTML/appletObject.html
    I would recommend using the XHTML standard and use the strict dtd.

    It looks like your code attribute should not have a .class on the end of it. Also, your codebase attribute looks a little odd with teh leading . but it might be right depending on what your directory structure looks like.

    Hope this helps.
    ~evlich

Similar Threads

  1. JavaMail applet problem
    By Tataroz T. in forum Java
    Replies: 1
    Last Post: 10-20-2005, 06:19 AM
  2. Replies: 3
    Last Post: 08-23-2001, 11:01 AM
  3. applet and thread problems
    By aneesha in forum Java
    Replies: 0
    Last Post: 05-06-2000, 10:38 PM
  4. Applet and thread problems
    By Aneesha in forum Java
    Replies: 0
    Last Post: 05-06-2000, 10:36 PM
  5. Replies: 0
    Last Post: 03-28-2000, 01:52 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links