Hi all,
I have trawled through the new groups and archives
for a solution, I have exhausted extensive volumes of documentation on
setting the CLASSPATH and env configuration and still no joy.
I assume that this is a config problem and not
a system problem (unless you know better), as I can run the demo's that come as
*.jar for example
# java -jar Notepad.jar
works perfectly.
However running the following code
/*
* HelloWorld.java
*/
public class HelloWorld {
public static void main (String[]
args){
System.out.println("hello
world");
}
}
Falls flat on it's face, I initially thought that
it was a bug with the 1.3.1 blackdown ppc dist, but I have replicated the
problem on both my win2k (sun 1.3.1) and redhat machines (blackdown 1.3.1 and
1.2.2)
Test systems:
Redhat 7.1(i686), Yellowdog(ppc:G4), and
win2k(i686)
JDK 1.2.2 (blackdown) and 1.3 (sun)
Env settings (set in /etc/profile) no local
settings(excludes default Redhat7.1/YD2.1 config)
JAVA_HOME = /usr/local/jdk1.2.2
PATH= $PATH:$JAVA_HOME/bin
(both exported)
There is no CLASSPATH setting, although I have
tried CLASSPATH =<dir of HelloWorld.class>:.
I admit that I'm new to java, and don't really have
a clue about setting it up(or at least I didn't 3 days ago), but I need to get
this working ASAP and this has cost me 3 days already.
I would really appreciate some help with this.
Thanks J
|
- Re: Unusual "java.lang.NoClassDefFoundError" Jay Bennie
- Re: Unusual "java.lang.NoClassDefFoundError" Oktay Akbal