• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

reg applets

 
iamharee
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am have just started with java applets.
I have a doubt.I want my class file and html file(which makes use of the class file) to be in different drive on the same machine(or else on different machine).
Now i want to run the applet which makes use of the class file(both being in different locations).I would be glad if somebody provides me the solution
by
hariharan
 
Tanveer Rameez
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
I think you use the codebase variable to hold the address of the server/folder i.e.the full path to the folder containing the applet. The code variable will hold the applet class name
[code]
<applet codebase="http//anotherserver.com/folder" code="yrapplet" widht=100 hright=100>
</applet>
[coe]
No matter where your HTML is, it will get the applet called 'yrapplet' from the path specified in codebase
hope this helps
bye
Tanveer
 
Stephanie Grasson
Ranch Hand
Posts: 347
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hariharan,
Please be sure to register with a proper name.
"iamharee" does not follow the conventions.
See here for details: http://www.javaranch.com/name.jsp
If you do not register properly, your account will be disabled.
I would hate to see that happen.
Thank you.
Stephanie
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic