Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Unable to initialize threads: cannot find class java/lang/Thread

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all.
I installed Oracle 8i in windows 2000 advanced server. after that I setup jdk1.4.2.10 and run HelloWorld.java but had error:
Unable to initialize threads: cannot find class java/lang/Thread.
Here are environment variables
CLASSPATH=C:\j2sdk1.4.2_10\jre\lib\rt.jar.
JAVAHOME=C:\j2sdk1.4.2_10
please tell me how to fix it.
Thanks in advance!!
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's a nasty habit of Oracle that they install a Java 1.3 JRE besides the Oracle software. So most likely your Java configuration is messed up by the installation of the Oracle software.

Edit the PATH environment variable and remove the path to the JRE that's included with Oracle.

You do not need to have C:\j2sdk1.4.2_10\jre\lib\rt.jar in the CLASSPATH.

Setting the environment variable JAVAHOME doesn't do anything. Some programs use JAVA_HOME (note: with underscore) but the JDK and JRE itself don't use that environment variable.
[ October 16, 2006: Message edited by: Jesper Young ]
 
He got surgery to replace his foot with a pig. He said it was because of this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic