This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Hands On Software Engineering with Python and have Brian Allbey on-line!
See this thread for details.
Win a copy of Hands On Software Engineering with Python this week in the Jython/Python forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

Need Urgent Help  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greetings folks. I have recently undertaken an incomplete project in Java and in order to obtain the required files, I have downloaded the following components into my PC (I am using Xp, by the way):

--J2SE Development Kit 5.0 (With netBeans IDE 4.0 Beta 2)
--Java Media Framework 2.1.1e

After having completed the installation process, I tried typing in "java.exe" in the command prompt for a test. However, the below are the messages I have received:

"Error opening registry key 'Software\JavaSoft\Java Runtime Environment' "
"Error: could not find java.dll"
"Error: could not find Java 2 Runtime Environment"

Additionally, when I happen to run the portion of the project that has been completed, I come across the following message:

"Error: could not find Java 2 Runtime Environment"

I would be very grateful if any of you could render me his/her assistance. I am stuck at this point and am supposed to make progress until a specified time frame. The above mentioned hindrance has been costing me a lot of time. Any help will be deeply appreciated.

Best Regards,
Vahid Isabeigi
 
pie sneak
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This may not have been the best forum of javaranch for this post.

Java in General may be better.

My only suggestion is to reinstall. I don't recommend playing around with registration keys on a computer you use for work unless you know exactly what to change.
 
Ranch Hand
Posts: 1272
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are running a recent version of Windows, uninstall your Java stuff, then run System Restore to go back to a day before you installed Java, then reinstall Java and try java.exe again.

If that doesn't work, re-download Java and try the whole thing again, going back as far as you can in System Restore.

If that doesn't work, you may have to reinstall Windows. Ask your company's Windows System Administration group.
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd recommend uninstalling every JRE and JDK from your machine, restarting, then installing whatever JDK/JRE you want.

If that doesn't work, there might be an environment variable or two (e.g. PATH and JAVA_HOME) that could use adjusting. If you'd like help setting those, just ask.

If that doesn't work, post again and I'd be glad to point out the documentation on Windows registry settings used by the JRE. (At the moment, I don't recall where they are, but I can find them.)
 
The two armies met. But instead of battle, they decided to eat some pie and contemplate this tiny ad:
Programmatically Create PDF Using Free Spire.PDF with Java
https://coderanch.com/wiki/703735/Programmatically-Create-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!