Hello,
When it "meet" then <applet> tag in html code, could you tell me how a
browser do to "find" all the classes needed by the applet itself.
In my case, I run Firefox 2.0.0.4 under XP, with Java 5.
I have no CLASSPATH defined at all, no JAVA_HOME, nothing...
So I wrote a simple JTextPane swing applet, I call the .class into
html page.
I drag & drop this page into my browser and... everything work
fine !!!
(I know I could set ARCHIVE tag to add .jar file, but...)
Thanks for your help
Roedy Green - 07 Jul 2007 23:55 GMT
>When it "meet" then <applet> tag in html code, could you tell me how a
>browser do to "find" all the classes needed by the applet itself.
>In my case, I run Firefox 2.0.0.4 under XP, with Java 5.
>I have no CLASSPATH defined at all, no JAVA_HOME, nothing...
Use Wassup to discover what system properties that control the
classpath. Basically it will be the same directory as where the HTML
file containing the <applet came from.
See http://mindprod.com/applets/wassup.html
Nearly always you don't have raw class files, you have a jar. The
archive URL can fetch the jar from anywhere. This makes it much more
flexible. You can invoke the Applet from anywhere on your website.
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com