import problem

Hi,

i created a SceduleJob class file in a directory.I created another java file in sam edirectoryI tried to import that class file.But i am getting the following error

ApplicationWatch.java:4: '.' expected

import ScheduleJob;

SceduleJob class is also public....what am i doin wrong?

Thanks

Vivek

[342 byte] By [vivek.shankara] at [2007-10-2 6:24:57]
# 1
You cannot import things from the default package (i.e. no package) and you don't have to,there imported by default.Its a bad idea in general to put things in the default package.
IanSchneidera at 2007-7-16 13:26:48 > top of Java-index,Java Essentials,New To Java...
# 2
Hi , But when I dont import also I am getting error "Connot Resolve sysmbol" when i call the another inthe same folder.....how cant it bve resolved...ThanksVivek
vivek.shankara at 2007-7-16 13:26:48 > top of Java-index,Java Essentials,New To Java...
# 3
i assume neither class has a package line at the top of the file?
dmbdmba at 2007-7-16 13:26:48 > top of Java-index,Java Essentials,New To Java...
# 4
Probably your classpath is set wrong.Make sure you do not have the CLASSPATH environment variable set, or explicitly include the current directory in the classpath.javac -classpath . MySourceFile.java(note the "." which indicates the current directory)
jesperdja at 2007-7-16 13:26:48 > top of Java-index,Java Essentials,New To Java...
# 5
yes neither has a package statement on top.....they r in sma efolder but are not getting automatically imported...thanks!vivek
vivek.shankara at 2007-7-16 13:26:48 > top of Java-index,Java Essentials,New To Java...