package javabook does not exist- error in JCreator

I am creating a program with JCreator.  The program code is mostly irrelevant to my question here, which is:  Upon compiling I get only 2 errors: 1) "package javabook does not exist" and 2) "cannot access MainWindow" ... what do i need to do to get this thing to compile correctly?  I know i need to do something with some sort of javabook.zip or javabook.jar file.  However i only have the latter in my knowing posession.  What's a jar file and what do i do with it?  I have "import javabook.*;" at the begginning of the code for the class.  

The basic code for what my program is is (most importantly) here: http://www.messiah.edu/acdept/depthome/mathsci/csc1812004-2005/Lab4/JavaProgs/BMIExample/Step4/BMICalculator.txt
and here: http://www.messiah.edu/acdept/depthome/mathsci/csc1812004-2005/Lab4/JavaProgs/BMIExample/Step4/BMICalculatorMain.txt

This whole instanciable class stuff very confusing, so hopefully that has nothing to do with this error.
ANY advice/teaching asap is greatly appreciated!  Thanks
LeftHandedPantsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

DrWarezzCommented:
Have you added the JAR file to the CLASSPATH variable?

If not:
R-Click 'My Computer' > Select 'Properties' > select the "Advanced" tab > click "Environment Variables" > Double click the "CLASSPATH" variable (under SYSTEM VARIABLES) > add this line to the END of it:

;c:\directory\filename.jar

(you need to include the semicolon (;) at the start of the line, and obviously, change the path to where ever the JAR file is).

Also, the PACKAGE here, is it within the correct folder, which is in the same DIR as the Java file you're trying to compile here?

gL,
[r.D]
0
sudhakar_koundinyaCommented:
>>import javabook.*

Is Javabook package is Jar File??

If so, Check if this Jar file is added in JCreator's class path

Regards
Sudhakar
0
petmagdyCommented:
download the javabook package from:

http://www.drcaffeine.com/files/javabookEd3.zip

and define a new library containing this jar in ur JCreator project libraries
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

sudhakar_koundinyaCommented:
To add  your Javabook package here is the procedure

1. Choose Project Settings from the Project menu.
2. The Project Settings dialogue box will be displayed.  
3. Select the tab ' Required Libraries '
4. Click on New and the Set Library dialgue box will be displayed
5. Click on the Add button to insert a path or package file.
6. Name the library and press the OK button.
7. The new library will now appear in the list.
8. Click on the checkbox and you will see that the paths of the library are added to the classpath.
9.  Click on the OK button to save the project settings.

Regards
Sudhakar
0
LeftHandedPantsAuthor Commented:
thank you VERY MUCH!  You have made me very happy for the moment.
0
sudhakar_koundinyaCommented:
Thanks

Glad, I helped you :-)

0
DrWarezzCommented:
Thank You :-)
0
petmagdyCommented:
welcome man
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Editors IDEs

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.