Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Juana Fisher   on Aug 07 In Java Category.

  
Question Answered By: Kerry Wright   on Aug 07

I have a JSP page containing a Applet & it works perfectly without any error.

scenario:-
1. I have a applet named MyApplet.class inside classj/com/applet
relative to my JSP page.

2. It's not inside contain a package (means i hv not used "package"
keyword in my applet, i just put it the sub-folders)

wht i have found is if you are not using package & using
CODE="com.applet.MyApplet", the Applet is not initializing. So try to
use the following syntax.

(or) put

package com.applet; // u put ur package name in first line of ur
applet,compile it & follow ur own system of initializing the applet.

even if it's not working plz tell me whether u r using package are not?


<HTML>
<HEAD><TITLE>Applet Demo</TITLE></HEAD>

<BODY>
<APPLET code="MyApplet.class" codebase="classj/com/applet"
width="500" height="100"></APPLET>
<BODY>
</HTML>

Share: 

 

This Question has 5 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on That @#$%!% codebase Or get search suggestion and latest updates.


Tagged: