How to use a provided .class file

Hello,

I have searched the archives and so far found nothing that would help me with this (newbie) problem:

I am taking the first Java course at my university and with one of the first assignments we get a .class file with all the

constructors and methods and so on. The assignment is to write a program that will create objects and use the methods within

that file.

I can write the program but when I "build and go" the project with the appropriate .class file in the same "src"- directory as the

.java program all I get is a bunch of "cannot find symbol errors". To me it appears as if the .class file cannot be found? There

should certainly not be any errors with the .class file.

I guess my question is: How can I use the .class-file with the program I am working on?

Thanks in advance,

Michael

[875 byte] By [MHirvonena] at [2007-10-2 11:39:46]
# 1
Oops, forgot to mention that I am using Xcode for Mac :-)
MHirvonena at 2007-7-13 5:30:44 > top of Java-index,Developer Tools,Java Compiler...
# 2
You said you put the class into the src. Maybe you should put it among the classes.
BIJ001a at 2007-7-13 5:30:44 > top of Java-index,Developer Tools,Java Compiler...
# 3
There are no other .class files to be found.Within the project folder there are the following subfolders:bin, build, lib and srcAll except build and src are empty.
MHirvonena at 2007-7-13 5:30:44 > top of Java-index,Developer Tools,Java Compiler...
# 4
Waht about packing the class into a jar and putting it under lib?
BIJ001a at 2007-7-13 5:30:44 > top of Java-index,Developer Tools,Java Compiler...
# 5
Thanks for the reply :-)Looks like the .class files need to be in the "bin" directory. Once there everything seems to work perfectly!Michael
MHirvonena at 2007-7-13 5:30:44 > top of Java-index,Developer Tools,Java Compiler...