April 30th, 2002, 06:05 PM
I made an applet that uses a class that I made..so when I put the applet into htlm how do I include the class that the applet is using....?
thanks for any help.
place ur class file and the applet file in the same directory...
yah, everything is in one folder duh,, you know in hmtl the applet tag contains the name of the main class.... but i have additional classes that the applet uses,,,
u dont have to include that class...it will be automatically included if the classpath is set....
class path? what is it and how do I do it?
thanks for any help
classpath is an variable that specifies the path where the JVM shud search for class files...
to set the classpath goto DOS prompt(if ur using windows) and type set classpath=%classpath%;C:\dir\subdir;
C:\dir\subdir >> is the path where ur class file exists...