Excuse me bosses, why my computer JDK must be configured to run like this? Or any other methods are not to be able to run, only compiled. Class files? (and, in the path must be written in the path) for big solutions,
CodePudding user response:
static bamboo ~ response: morning, we refer to the original poster ~ excuse me bosses, why my computer JDK must be configured to run like this? Or any other methods are not to be able to run, only compiled. Class files? (and, in the path must be written in the path) for big solutions, Compile just the jre, execution requires JDK libraries, the need of system source in the JDK CodePudding user response:
Why do you want to configure the path, the path is going to tell you the operating system when executing the command in your configuration path to look for an executable Program, if you don't configure, you execute the Java version - there will be not internal orders, of course you can also switch to your configuration path on the execution, such as you type CD C: \ Program Files \ Java \ jdk1.8.0 _161 \ bin, and then you can use the same bin. Exe executable programs, the path is your Windows operating system defined, has nothing to do with Java Upstairs classmate is wrong, compile not with jre, is under the bin directory of the JDK javac. Exe, running environment is jre (Java runtime environment) CodePudding user response:
reference thin black camel died on the second floor response: why do you want to configure the path, the path is going to tell you the operating system when executing the command configuration in your path to look for an executable Program, if you don't configure, you execute the Java version - there will be not internal orders, of course, you can also switch to your configuration path execution, for example, if you type CD C: \ Program Files \ Java \ jdk1.8.0 _161 \ bin, and then you can use the same bin. Exe executable programs, the path is your Windows operating system defined, has nothing to do with Java Upstairs classmate is wrong, compile not with jre, is under the bin directory of the JDK javac. Exe, running environment is jre (Java runtime environment) If I just according to the original poster speculation, but according to your talk, problem again, did not write the Path he compiled again? Cannot perform javac CodePudding user response:
I haven't installed with a Java was tested, the JDK installation path in automatic part will import the executable program below: The jre is able to use, and in the JDK javac compiler can't use, so it won't appear the original poster said can compile can't run, Should be run cannot compile, JDK execution path needs to add, I got the original poster fool, CodePudding user response:
reference qq_39936465 reply: 3/f Quote: reference thin black camel died on the second floor response: Why do you want to configure the path, the path is going to tell you the operating system when executing the command in your configuration path to look for an executable Program, if you don't configure, you execute the Java version - there will be not internal orders, of course you can also switch to your configuration path on the execution, such as you type CD C: \ Program Files \ Java \ jdk1.8.0 _161 \ bin, and then you can use the same bin. Exe executable programs, the path is your Windows operating system defined, has nothing to do with Java Upstairs classmate is wrong, compile not with jre, is under the bin directory of the JDK javac. Exe, running environment is jre (Java runtime environment) If I just according to the original poster speculation, but according to your talk, problem again, did not write the Path he compiled again? Cannot perform javac No malicious slander you mean, I just correct the mistakes in your answer, lest others produce erroneous zone in the process of learning, don't blame CodePudding user response:
Was a sophomore, behind always forgot to reply, the reason actually is related to the Windows file system, the Path is put bin file command set, call other incude, lib files according to the situation of the software to fill in, such as if the missing documents will appear after the above problems, CodePudding user response:
And the path above is only one of the reason is that the line system file lost, to quote,