wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes error message, setting classpath in UNIX Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "error message, setting classpath in UNIX" Watch "error message, setting classpath in UNIX" New topic

error message, setting classpath in UNIX

Pip Vo

Joined: Jul 18, 2001
Posts: 12
I am getting this error message:
java StackApp
Exception in thread "main" java.lang.NoClassDefFoundError: StackApp
From previous messages on the forum, I figure I have to set
my classpath name to the directory my files are in.
Does anyone know how to do this in UNIX? Do I need to add
it to my .cshrc file? Please advise.
Thank you!
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
The classpath instructions for Solaris:
The installation instructions for unix (both solaris and linux) http://java.sun.com/docs/books/tutorial/getStarted/cupojava/unix.html

"JavaRanch, where the deer and the Certified play" - David O'Meara
It is sorta covered in the JavaRanch Style Guide.
subject: error message, setting classpath in UNIX