Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2007

Tip: Looking for answers? Try searching our database.

ClassLoader and browser

Thread view: 
stef - 07 Jul 2007 23:21 GMT
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.