Programmers learn & share
0 votes
168 views

Problem :

I am getting bellow error while checking java SE version

error: could not find java.dll error: could not find java se runtime environment.

by (6.9k points)  
edited by | 168 views

2 Answers

0 votes

Solution:

Steps to resolve this issue:

  1. Open the Run window:

  2. Open registry window:

  3. Go to: \HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\

  4. If  your JRE is not present inside JavaSoft, then please create new Key and give the name Java Runtime Environment.

  5. Create "CurrenVersion" for Java Runtime Environment string key and give appropriate version as value as shown below:

    JRE regedit entry

  6. Now Create a new subkey of 1.8.

  7. Create a string key for 1.8 with name JavaHome with the value of JRE home as shown below:

    JRE regedit entry 2

Further Readings:

https://github.com/payara/Payara/issues/879

by (36.1k points)  
edited by
0 votes

When the user try to open the .jar file through command prompt, then you can encounter the following error;

Error: Could not find Java SE Runtime Environment.

Factors:

  • Corrupted Registry
  • Missing java path in your environment variables
  • Java installation folder being removed

Example:

We can encounter this issue when we try to update Java SE to the latest version. We previously have 32 bit java installation and when we run 64 bits java installer, then our java path changed.

Solution:

For fixing this error, requires addressing one of the above problem that appropriate according to solution.

Just follow the following steps to make workable through the command prompt.

  • Delete all the previous versions of java. If the java folder remains in “C:/Program Files/…’, then delete it.
  • Clean up your registry.
  • Go to the start menu and run again.
  • Type “Regedit” in the edit file.
  • Go to  HKEY_LOCAK_MACHINE/Software/Microsoft/Windows/CurrentVersion/Uninstall.
  • Under this uninstall folder you can find many registry entries with curly brackets.
  • Click on the edit tab and then Find tab.
  • Must highlight the uninstall folder before performing a search for a particular registry.
  • Enter the version string as value to find corresponding registry entry to be deleted.
  • When you find registry entry, highlight that key and then right-click, choose delete.
  • After confirmation of delete click on Yes.

 

ago by (1.4k points)  
2,187 questions
2,514 answers
59 comments
241 users