• Post Reply Bookmark Topic Watch Topic
  • New Topic

Error on Unix system  RSS feed

 
jason adam
Chicken Farmer ()
Ranch Hand
Posts: 1932
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was told by someone I work with that they are getting the following error on a Unix box (I believe it's Sun, if it isnt it's HP-UX) when they fire up "java" (they could be talking about a servlet, I'm not clear on what they mean by firing up java):
Unable to initialize threads: cannot find class java/lan/Thread

This looks like a simple path problem, but since I don't have all the details, and I've never dealt with Java apps on Unix, I wasn't sure. Of course, it shouldn't be in java/lan/Thread, but instead Java/lang/Thread.
Does this look familiar to anyone? If so, where I can point the Unix admin to fix it?
Thanks!
Jason
 
George Brown
Ranch Hand
Posts: 919
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the lava/lan/Thread was a typo by the person filing the problem report it sounds to me like a problem with the classpath. For example, on an HP box with Java 2 installed this is the start of my classpath (java is installed in /opt/java1.2):
/opt/java1.2/lib/tools.jar:/opt/java1.2/jre/lib/rt.jar:...
When java is executed should find Thread in the java packages in the rt.jar archive.
HTH
[This message has been edited by George Brown (edited September 28, 2001).]
 
jason adam
Chicken Farmer ()
Ranch Hand
Posts: 1932
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks! Since I haven't been able to either look at the code, or if, like you said, the person typoed the report but the error really says java.lang, I'm not sure which way to go. Your suggestions reinforce my original thinking, but now I know what .zip to make sure is in the classpath!
One thing I need to find out is what version of Java is being ran. Would the path change based on what version?
Thanks
Jason
 
George Brown
Ranch Hand
Posts: 919
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if the version is broadly sdk 1.2 the classpath should be much the same, but it will be different if it's an earlier version - such as jdk 1.1.7
I haven't got the sdk 1.3 installed on an HP box yet so I don't know whether the classpath changes for that.
 
jason adam
Chicken Farmer ()
Ranch Hand
Posts: 1932
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They're running 1.1.6. Still haven't seen the error, but I'm thinking he just messed up on the problem report.
/opt/java-1.1.6/jdk1.1.6 is the install path. Haven't gotten hold of their classpath yet. So should I be checking to make sure /opt/java-1.1.6/jdk1.1.6/jre/lib/rt.jar is in the classpath?
Thanks
Jason
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!