Lunarpages Web Hosting Forum

Author Topic: Quickie: How to import a *.java class file  (Read 1071 times)

Offline Saurabh

  • Galactic Royalty
  • *****
  • Posts: 270
  • ITnauts.com
    • Random.ITnauts.com
Quickie: How to import a *.java class file
« on: March 04, 2004, 06:03:56 AM »
:oops:
I had fogot with time on how to import customised class files
[code]import java.io.*;
code]
I want to import  an   *.java file that contains my own customised classes into another *.java file

Offline Saurabh

  • Galactic Royalty
  • *****
  • Posts: 270
  • ITnauts.com
    • Random.ITnauts.com
Quickie: How to import a *.java class file
« Reply #1 on: March 04, 2004, 09:44:26 PM »
Really  :?  I am.

Offline hamburger

  • hamburglar
  • Master Jedi
  • *****
  • Posts: 1462
  • I used to be Human....2.0b
Quickie: How to import a *.java class file
« Reply #2 on: March 04, 2004, 10:59:29 PM »
Code: [Select]

import  className;

the java file which contains the class should be in the same directory(or further down in the directory structure) or you might need to set the class path.
If your uploading to a webserver make sure to upload the .class file and not .java

Offline Saurabh

  • Galactic Royalty
  • *****
  • Posts: 270
  • ITnauts.com
    • Random.ITnauts.com
Quickie: How to import a *.java class file
« Reply #3 on: March 05, 2004, 02:32:54 AM »
Thankyou