Hi all,
I'm very new to
Java or any programming for that matter. So currently trying to teach myslef using a book called Java First Contact.
Have got to the chapter3 exercises. Tryin to build a program that uses a class file that came on a disk with the book. I've loaded the files on the disk into the directory of the file I'm building. Following the books instructions I've written this staement at the top of my file:
import classes.bytecode.*;
Which I believe tells the compiler to look in a subdirectory called classes then one called bytecodes. In the bytecodes directory is the class file i want to use.
I've also set the classpath to look in this directory by writting
C:\ set classpath=JavaFC;classes;bytecode
However when trying to compile my file I get the message
Exception in
thread "main" java.lang.NoClassDefFoundError: FirstExercise/jav
What do I need to do to get my file to compile?