Thread: hmmm....

    #1
  1. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2002
    Posts
    254
    Rep Power
    13

    Question hmmm....


    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.
  2. #2
  3. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2002
    Location
    India
    Posts
    7
    Rep Power
    0
    place ur class file and the applet file in the same directory...
  4. #3
  5. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2002
    Posts
    254
    Rep Power
    13
    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,,,
  6. #4
  7. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2002
    Location
    India
    Posts
    7
    Rep Power
    0
    u dont have to include that class...it will be automatically included if the classpath is set....
  8. #5
  9. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2002
    Posts
    254
    Rep Power
    13
    class path? what is it and how do I do it?

    thanks for any help
  10. #6
  11. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2002
    Location
    India
    Posts
    7
    Rep Power
    0
    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...

IMN logo majestic logo threadwatch logo seochat tools logo