Link to home
Create AccountLog in
Avatar of Ghyths
Ghyths

asked on

How to import java file - in a different directory

Hello Experts,

There is a java class in drive D:\java\shared\Shared.java, and it's a shared file and I need to keep it in drive D.
I'm working in drive C:\java\project\Main.java

so while I'm working on C:\java\project\Main.java I want to import D:\java\shared\Shared.java

how can I do that ?


Regards
G
ASKER CERTIFIED SOLUTION
Avatar of Peter Kwan
Peter Kwan
Flag of Hong Kong image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of Ghyths
Ghyths

ASKER

but there is a lot of other file, I import them from C:/java/MainLibarry
Would that effect it ?
That's OK.
Avatar of Ghyths

ASKER

I got the reference to a solutoin from pkwan.