search
HomeJavaJavagetting Startedjavac cannot run after configuring jdk in win10

javac cannot run after configuring jdk in win10

Nov 19, 2019 am 10:37 AM
javacjdkwin10Can not operate

javac cannot run after configuring jdk in win10

An environment variable is an object with a specific name in the operating system, which contains information that will be used by one or more applications. For example, the path environment variable in Windows and DOS operating systems, when the system is asked to run a program without telling it the full path where the program is located, the system should not only search for the program in the current directory, but also go to the path specified in path. . Users can better run processes by setting environment variables.

When configuring jdk environment variables in win10, the most common problems we encounter are as follows.​​​​

java can run, java -version is also OK, but javac cannot run.

This kind of problem is generally caused by incorrect configuration of environment variables in win10.

Solution:

This computer->right-click properties->advanced properties

javac cannot run after configuring jdk in win10

Reconfigure your environment variables OK.

CLASSPATH variable

.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;

JAVA_HOME variable selects the path of the local jdk (the upper directory of bin).

Note:

Path variable, be sure to write the absolute path name, do not write the relative path name, write the bin directory of the local jdk and the bin directory of jre in jdk , this win10 is very good, just write it directly, use different variables to replace one variable, it is awkward to add a semicolon in the middle, add a semicolon in the middle, capitalization, whether there is a semicolon or not can cause the program to fail to run.

javac cannot run after configuring jdk in win10

Recommended tutorial: Getting started with java development

The above is the detailed content of javac cannot run after configuring jdk in win10. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Chat Commands and How to Use Them
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.