Problem in loading an Applet Package by HTML file.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   sudhakar_Bathini
Posted On:   Monday, January 14, 2002 11:09 PM

Hi, I have created a package with a applet class(directedGraph.class) in it. I have set classpath properly. I have created another class (DijkstraAlgo.java) which inherits (extends) the directedGraph class in some other directory. When I compiled the DijkstraAlgo.java file, it compiled without any errors. My HTML file with Applet Tag is But when I run it using appletviewer, it is giving error that directedGraph.class is not found. It is not loading the package. What I want is Appletviewer has to search the CLASSPATH to search for the classes or it has to search for more than the present directory for classes. Can u suggest me the    More>>


Hi,
I have created a package with a applet class(directedGraph.class) in it.
I have set classpath properly. I have created another class (DijkstraAlgo.java)
which inherits (extends) the directedGraph class in some other
directory.

When I compiled the DijkstraAlgo.java file, it compiled without any errors.
My HTML file with Applet Tag is


But when I run it using appletviewer, it is giving error that
directedGraph.class is not found.
It is not loading the package.

What I want is Appletviewer has to
search the CLASSPATH to search for the classes or it has to search for more than the present directory for classes.


Can u suggest me the solution to solve this problem.
-Sudhakar

   <<Less

Re: Problem in loading an Applet Package by HTML file.

Posted By:   sam_pitroda  
Posted On:   Tuesday, January 15, 2002 06:31 PM

you can create a jar file and have both classes in that jar. Then specify that jar fine in "archieve"
tag.
About | Sitemap | Contact