"Jvm.cfg cannot find" solution when executing java command or Eclipse launcher

Source: Internet
Author: User

I. Background of the problem

Yesterday when the debug code, suddenly found unable to start the program. Each time you start the program, the following error is reported: (After returning home to reproduce the problem.) Found different computers, under the Lib folder is not the same, should be related to the hardware of the JDK installation, and want to see the solution, please skip to the Red Word section

Ii. Solutions

Encounter this problem, first go to Baidu a bit, probably have the following several methods

1, in C:\Windows\, delete the Java.exe program (tried, found that there is no Java program in my directory, skip)

2, in C:\Windows\System32 Delete this directory of Java, JAVAW, javaws three programs. (found below, also does not exist in this directory)

3. Create a new program folder to ignore Windows warnings. (This is not a specific step, listen to the name is also very complex, skip)

4. Re-install system (directly ignore)

5. The problem is because uninstalling the JDK incorrectly causes the registry to have problems and needs to clean up the registry. (Skip, I did not uninstall the JDK, but also for the company's cloud operating system registry, do not want to move casually)

Looked again, there is no feasible way, the last detailed look at the next pop-up dialog box:

The title is the JVM startup issue and the content is not available for this file.

Since the company's applications are all self-contained JRE (don't ask me why), so go ahead and see if the file below this path exists. Discovery does not exist after looking for the application that was downloaded before, used for validation, found to be there. From Oracle's official download of the JDK is also some (digression, the first two days of the Android infringement, Oracle lost, I really do not know what the Oracle win will cause social reaction). Compare the contents of these several jvm.cfg files, are the same. Directly from the folder in the jdk under the jvm.cfg, copy a copy to the Eclipse boot environment under the JRE. Start Eclipse and find that the problem is resolved.

Iii. contents of the document

I looked over it. The introduction to this document is mainly about setting up the JVM startup mode.

Specific content can follow this article:

Http://www.cnblogs.com/fsjohnhuang/p/4270505.html

"Jvm.cfg cannot be found" solution

when executing java command or Eclipse launcher

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.