• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

reg applets

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
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
<applet codebase="http//anotherserver.com/folder" code="yrapplet" widht=100 hright=100>
No matter where your HTML is, it will get the applet called 'yrapplet' from the path specified in codebase
hope this helps
Ranch Hand
Posts: 347
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Fire me boy! Cool, soothing, shameless self promotion:
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic