• 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 ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

reg applets

 
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
 
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
 
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
 
Fire me boy! Cool, soothing, shameless self promotion:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic