How to fix eclipse problems

dym7219 注册会员
2023-02-28 12:16
  • You can refer to the answer to this question to see if it helps you. https://ask.csdn.net/questions/7579136 < / font > < / a > < / li > < li > you also can refer to this article: Eclipse Chinese tutorial and problem solving
  • How to write your first Java application in Eclipse Write code with command line parameters in Eclipse Some of these may solve your problem. You can read the following carefully or in the jump source blog:
  • First write an application in Eclipse like this:

    public class CommandLine{ 
    	public static void main(String[]args){ 
    		for(int i=0;i<args.length;i++){ 

    main The args argument of the tempcodeKey1 function is a command line argument that allows data to be passed while the program is running. The type of the command line argument is an array of strings( String[] ). When running through Eclipse, you need to configure the run parameters and add the command line parameter values to be passed in.


    The way to run the above program is slightly different from normal applications.
    (1) Click the start icon of the menu bar, select the option Run Configuration , then select Java Application , select the option New Configuration from the right menu, and create a new Java application run configuration named CommandLine .
    (2) Modify the configuration of CommandLine . Select the main 0 option on the Arguments TAB and enter the command line parameters there.
    (3) Click the main 1 button to run the program.

dick0514 注册会员
2023-02-28 12:16

the reference answer GPT ᴼ ᴾ ᴱ ᴺ ᴬ ᴵ < br / > if you search in the Eclipse Java virtual machine appear the following error message: "The Java Virtual machine was not found after searching for the following location" may have one of the following reasons:

1. Java JDK is not installed correctly: Eclipse requires the Java virtual machine in the Java Development Kit(JDK). Make sure that the JDK is installed and that the path to the JDK is added to your system's environment variables.

2. Eclipse configuration error: Eclipse may not be configured correctly, causing it to find the JDK. You can try reconfiguring the JDK's path in Eclipse by selecting Window -> in Eclipse; Preferences -> Java -> Installed JREs.

3. Incorrect operating system configuration: In some cases, the operating system may not recognize the path to the JDK correctly, causing Eclipse to find the JDK. You can try reinstalling the JDK and making sure its path is correctly added to your system's environment variables.

4. JDK version incompatibility: Eclipse may require a specific version of the JDK to work properly. Check the documentation for the version of Eclipse you are using to see which version of the JDK it requires, and ensure that the appropriate version is installed.

In general, if you get an error message while searching for a Java virtual machine in Eclipse, it is recommended that you check that the JDK is installed correctly and added to your system's environment variables, and that the path to the JDK is configured correctly in Eclipse. If you still can't resolve the problem, try reinstalling the JDK or changing the JDK version.

ebanban208 注册会员
2023-02-28 12:16

Here's my eclipse jdk:


About the Author

Question Info

Publish Time
2023-02-28 12:16
Update Time
2023-02-28 12:16