Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie help... importing classes

Status
Not open for further replies.

Biscuits

Technical User
Aug 15, 2002
5
US
Hi all,

im new to java and am currently working my way thru a 'dummies' style book... in one of the exercises, it requires you to import 'java.util.calender' class but i cant find it and javac keeps going nuts cause it cant find the Calender class...im using JRE v1.3 (which the same book uses too apparently)... can anyone help me on this one?

Cheers,
biscuits @hotmail.com
 
The class name ist java.util.Calender not java.util.calender Java classnames (and other identifiers) are case sensitive!
 
Unfortunatly I already tried that. My program at the moment looks like this:

import java.util.Calender;
import java.util.calender;
Class Dave {
}

and both lines javac spits out an error at the calender keyword saying it cannot resolve the symbol. Where java.util.calender located and am i meant to specify a path to it??

Thanks again,
biscuits @hotmail.com
 
you've spelt calendar wrong try
import java.util.Calendar;
 
ah! dodgy spelling strikes again! boy do i feel silly :) thanks for the help.

biscuits @hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top