The Artima Developer Community
Sponsored Link

Java Answers Forum
How to run an Applet?

3 replies on 1 page. Most recent reply: May 1, 2002 6:24 AM by Kishori Sharan

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 3 replies on 1 page
Diane Tang

Posts: 6
Nickname: yiju
Registered: Apr, 2002

How to run an Applet? Posted: Apr 26, 2002 9:24 AM
Reply to this message Reply
Advertisement
I cannot figure out what's wrong. The follows are the
steps:

1.I wrote a few packages and put them in one directory.
(ie: C:\plot\package1.class,package2.class..)

2.The applet's main class file is in another directory,
(ie: C:\projects\ver6\)
In the applet program, it also does the importing
package like "import Plot.*

3:Set up classpath like "set classpath=.;c:\" in
autoexec.bat

4:Compiled the applet successfully

5:Run the applet from the folder of C:\projects\ver6 in
IE browser

The problem happened because the browser cannot find
the package located in C:\Plot. I'm so desparated, please help!


Thomas SMETS

Posts: 307
Nickname: tsmets
Registered: Apr, 2002

Re: How to run an Applet? Posted: Apr 29, 2002 12:18 AM
Reply to this message Reply
Use the CODEBASE to indicate to your applet where the code to download is !

You might jar everything up, rather ?

Rgds,

Thomas,

Vikram.G.S.

Posts: 16
Nickname: vidhi
Registered: Apr, 2002

Re: How to run an Applet? Posted: May 1, 2002 5:33 AM
Reply to this message Reply
All u have to do is set the codebase attribute in applet tag correctly.
else u can have all the class in jar file and u use it in your applet tag.

Kishori Sharan

Posts: 211
Nickname: kishori
Registered: Feb, 2002

Re: How to run an Applet? Posted: May 1, 2002 6:24 AM
Reply to this message Reply
Hello Diane,
I think you have tried too much to run your applet and could not get it run. Please send me (kishori_sharan@yahoo.com) all you .java and .html files, your folder setup and then requirements. I will post/send you complete solution.

Thanks
Kishori

Flat View: This topic has 3 replies on 1 page
Topic: to  Thomas SMETS Previous Topic   Next Topic Topic: Telnet protocol

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use