Howdi there, rancher colleagues!
I wanted to try new things, & one of those things is seein' how does swing components look in a MAC/OS environment.
But I have encountered some problems because I don't quite know how to
set the classpath.
I'm using the terminal, and I was
able actually to compile some classes by using javac and attaching to it the directory where the
.java file is. something like:
javac /Users/jc/Desktop/BeatBox.java and well, as a result I got the
.class file(s)
But when I tried this:
java /Users/jc/Desktop/BeatBox It doesn't work, and I get the classic error: Exception in
thread "main" java.lang.NoClassDefFoundError: BeatBox
How can I execute a Java Program in a Mac/os environment?(use java)
What is the command to see the current CLASSPATH in Mac/Os? I hope someone could answer these questions. I really want to get started in MAC.
Sincerely,
Jose