• Register
search
Log In
0 votes
186 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.

6.9k points
edited by

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

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.

 

3.9k points

Related questions

0 votes
1 answer 67 views
67 views
Problem : I am getting bellow error while running my program and unable to figure out what the solution would be a fatal error has been detected by the java runtime environment:
asked Nov 5, 2019 peterlaw 6.9k points
0 votes
2 answers 134 views
134 views
Problem : I am getting the bellow error: Error: Registry key 'Software\JavaSoft\Java Runtime Environment'\CurrentVersion' has value '1.8', but '1.7' is required.
asked Oct 31, 2019 peterlaw 6.9k points
0 votes
1 answer 97 views
97 views
Problem : When I run my Java code in Eclipse, I get the bellow error message there is insufficient memory for the java runtime environment to continue
asked Oct 23, 2019 peterlaw 6.9k points
0 votes
1 answer 410 views
410 views
Problem : When I run the apache tomcat7.0.56 in Eclipse, I get below error Error: Could not find or load main class org.apache.catalina.startup.Bootstrap How can I fix the above problem?
asked Jan 18 jwilliam 3.9k points
0 votes
2 answers 129 views
129 views
Problem : I am stuck with following Maven issue. Error: could not find or load main class org.codehaus.plexus.classworlds.launcher.launcher My Maven was working fine till last week after that I do not know what went wrong with it now it gives me the error I have tried replacing ... Java(TM) SE Runtime Environment (build 1.7.0_75-b13) Java HotSpot(TM) 64-Bit Server VM (build 24.75-b04, mixed mode)
asked Nov 24, 2019 alecxe 7.5k points