Solved

problem in Applet embedding in HTML page

Posted on 2006-07-14
7
276 Views
Last Modified: 2010-03-31
hai,
         i have some problem in the applet. I have a account in myjavaserver.com website. the account name is deeppra. I uploaded my applet program to this path to the server
/chat/Chat.java
in the Chat.java contains in the pakage deeppra.chat
then i created a html file to put the applet, but i gives error message like "Class not found"

this is the code i put in the html file to include the applet
<applet code="deeppra.chat.Chat" width=800 height=400></applet>

Then i saved the file in the root directory as
/Chat.html

Tell me whats the problem
0
Comment
Question by:deeppra
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 10

Expert Comment

by:mukundha_expert
ID: 17113248
>>pakage deeppra.chat

if thats your package, your class should be in --> deeppra/chat/Chat.java
0
 
LVL 92

Accepted Solution

by:
objects earned 25 total points
ID: 17113287
you need to load your class file on the server, not your java file
and it should be the directory mentioned by mukundha_expert

/deeppra/chat/Chat.class
0
 
LVL 5

Author Comment

by:deeppra
ID: 17113347
yea i put all the files there
u can access the site with this url
ftp.myjavaserver.com
username:deeppra
pass:pradeep_


you can go there and see the things, there will be many files but u have all these files inside the chat folder.. u have all the code, class file and html file there

Thanks
0
 
LVL 4

Assisted Solution

by:Meritor
Meritor earned 25 total points
ID: 17113495
You must have put the class file in WEB-INF/classes directory or the .jar file in WEB-INF/lib directory
If you put your files over there, your html cannot get any applet because it has private access.
You have to put that class file or .jar file to any public access area. i.e. outside of WEB-INF directory.
0
 
LVL 10

Expert Comment

by:mukundha_expert
ID: 17119735
ya it should be class file,

place your class like this and try,

web-app
            --->html --------------------> index.html
                         --------------------> deepra --> chat --> Chat.class
            --->WEB-INF    

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This video teaches viewers about errors in exception handling.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question