Discussion:
Java compiler error on Unix machines
(too old to reply)
Noureen Syed
2004-07-10 22:35:16 UTC
Permalink
I keep getting the following error when I try to compile my java files:

Exception in thread "main" java.lang.NoClassDefFoundError:
com/sun/tools/javac/Main
Is this something I need to fix on my end or is it the Unix machines?

ns.
Dan Heidinga
2004-07-11 00:20:43 UTC
Permalink
Hi,

Thats actually the unix environment - someone foobar'd a couple of the
systems by deleting the jar file that holds all of the standard java
libraries. I know that both Moore and Booth are foobar'd. How they
managed to do this, I don't know - yah for poorly configured unix
environments!

Regards,
Dan
%NAME%
2004-07-11 01:07:56 UTC
Permalink
So does any machine work for now?

Thanks.
Post by Dan Heidinga
Hi,
Thats actually the unix environment - someone foobar'd a couple of the
systems by deleting the jar file that holds all of the standard java
libraries. I know that both Moore and Booth are foobar'd. How they
managed to do this, I don't know - yah for poorly configured unix
environments!
Regards,
Dan
James Schofield
2004-07-11 02:39:50 UTC
Permalink
ohm and ampere both work. Most of the others do too.

James
Post by %NAME%
So does any machine work for now?
Thanks.
Post by Dan Heidinga
Hi,
Thats actually the unix environment - someone foobar'd a couple of the
systems by deleting the jar file that holds all of the standard java
libraries. I know that both Moore and Booth are foobar'd. How they
managed to do this, I don't know - yah for poorly configured unix
environments!
Regards,
Dan
Jason Pang
2004-07-11 05:33:43 UTC
Permalink
Hi,
I don't think it was machines being foobared by "someone" - more like
simply being really poorly configured.

Let me elaborate:
Some machines have Java 1.3.1 installed; some have 1.4.2.

The machines that have Java 1.4 (which, incidentally, contain
a function that I'd like to use) won't work -- because the Java 1.4
compiler is trying to use Java 1.3 libraries!

To check your machine, run

java -version

If you see anything other than 1.3.1 (or similar), run for another server.

(Why this is the case, I don't know. I thought they used xhier to ensure
that software packages were consistent across servers!)

I use morse:
[***@morse ~ ]$ java -version
java version "1.3.1_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_02-b02)
Java HotSpot(TM) Client VM (build 1.3.1_02-b02, mixed mode)

Also, I'm surprised you discovered the problem now rather than at the
start of the term. Assuming you were consistently using the same server,
you should have found that there was a problem right at the start of the
term for the assignments requiring Java compilation (i.e. use of javac)

Jason

(And if you see a server with J 1.4.2 on it and works I'd like to know :) )
Troy Mark Gonsalves
2004-07-12 14:53:35 UTC
Permalink
Actually, ampere uses 1.2.2...very old school...but at least it works.
What would possess someone to muck which the config so close to end of
term is anybody's guess...I suggest that all out you complain through
whatever channels you have available...this sort of thing shouldn't happen
during a course.

Troy

P.S. I believe 'foobar' is spelled fubar in this case...
Post by Jason Pang
Hi,
I don't think it was machines being foobared by "someone" - more like
simply being really poorly configured.
Some machines have Java 1.3.1 installed; some have 1.4.2.
The machines that have Java 1.4 (which, incidentally, contain
a function that I'd like to use) won't work -- because the Java 1.4
compiler is trying to use Java 1.3 libraries!
To check your machine, run
java -version
If you see anything other than 1.3.1 (or similar), run for another server.
(Why this is the case, I don't know. I thought they used xhier to ensure
that software packages were consistent across servers!)
java version "1.3.1_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_02-b02)
Java HotSpot(TM) Client VM (build 1.3.1_02-b02, mixed mode)
Also, I'm surprised you discovered the problem now rather than at the
start of the term. Assuming you were consistently using the same server,
you should have found that there was a problem right at the start of the
term for the assignments requiring Java compilation (i.e. use of javac)
Jason
(And if you see a server with J 1.4.2 on it and works I'd like to know :) )
Tiuley Alguindigue
2004-07-13 17:55:52 UTC
Permalink
ampere has been updated to Java JDK 1.4.2

We are working on installing Java JDK 1.4.2 in all the sunee machines.
This problem should be fixed once this installation process is completed.

If you have any problems with the Unix Java environment you should
contact Bernie Roehl - ***@ece.uwaterloo.ca.

Thanks,
Tiuley Alguindigue
Post by Troy Mark Gonsalves
Actually, ampere uses 1.2.2...very old school...but at least it works.
What would possess someone to muck which the config so close to end of
term is anybody's guess...I suggest that all out you complain through
whatever channels you have available...this sort of thing shouldn't happen
during a course.
Troy
P.S. I believe 'foobar' is spelled fubar in this case...
Post by Jason Pang
Hi,
I don't think it was machines being foobared by "someone" - more like
simply being really poorly configured.
Some machines have Java 1.3.1 installed; some have 1.4.2.
The machines that have Java 1.4 (which, incidentally, contain
a function that I'd like to use) won't work -- because the Java 1.4
compiler is trying to use Java 1.3 libraries!
To check your machine, run
java -version
If you see anything other than 1.3.1 (or similar), run for another server.
(Why this is the case, I don't know. I thought they used xhier to ensure
that software packages were consistent across servers!)
java version "1.3.1_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_02-b02)
Java HotSpot(TM) Client VM (build 1.3.1_02-b02, mixed mode)
Also, I'm surprised you discovered the problem now rather than at the
start of the term. Assuming you were consistently using the same server,
you should have found that there was a problem right at the start of the
term for the assignments requiring Java compilation (i.e. use of javac)
Jason
(And if you see a server with J 1.4.2 on it and works I'd like to know :) )
Tiuley Alguindigue
2004-07-13 18:34:06 UTC
Permalink
ampere has been updated to Java JDK 1.4.2

We are working on installing Java JDK 1.4.2 in all the sunee machines.
This problem should be fixed once this installation process is completed.

If you have any problems with the Unix Java environment you should
contact Bernie Roehl - ***@ece.uwaterloo.ca.

Thanks,
Tiuley Alguindigue
Post by Troy Mark Gonsalves
Actually, ampere uses 1.2.2...very old school...but at least it works.
What would possess someone to muck which the config so close to end of
term is anybody's guess...I suggest that all out you complain through
whatever channels you have available...this sort of thing shouldn't happen
during a course.
Troy
P.S. I believe 'foobar' is spelled fubar in this case...
Post by Jason Pang
Hi,
I don't think it was machines being foobared by "someone" - more like
simply being really poorly configured.
Some machines have Java 1.3.1 installed; some have 1.4.2.
The machines that have Java 1.4 (which, incidentally, contain
a function that I'd like to use) won't work -- because the Java 1.4
compiler is trying to use Java 1.3 libraries!
To check your machine, run
java -version
If you see anything other than 1.3.1 (or similar), run for another server.
(Why this is the case, I don't know. I thought they used xhier to ensure
that software packages were consistent across servers!)
java version "1.3.1_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_02-b02)
Java HotSpot(TM) Client VM (build 1.3.1_02-b02, mixed mode)
Also, I'm surprised you discovered the problem now rather than at the
start of the term. Assuming you were consistently using the same server,
you should have found that there was a problem right at the start of the
term for the assignments requiring Java compilation (i.e. use of javac)
Jason
(And if you see a server with J 1.4.2 on it and works I'd like to know :) )
Continue reading on narkive:
Loading...