search
HomeCommon Problemjavac is not recognized as an internal or external command or an operable program. How to solve the problem?

javac is not an internal or external command and is not an operable program. Solution: 1. First, download the latest version of JDK from the official website and install it; 2. Configure the system environment variables and add the path of jdk installation in the path. ;3. Enter the computer command line interface, enter "java -v" and the version number will appear.

javac is not recognized as an internal or external command or an operable program. How to solve the problem?

Operating system for this tutorial: Windows 10 system, Java 19.0.1 version, Dell G3 computer.

The error javac is not an internal or external command, nor an operable program or batch file occurs when using java. The solution is:

1. First download the latest version of JDK .

You can go to http://java.sun.com/javase/downloads/index.jsp to download the latest version JDK1.6. I installed it in "c:\Program Files\Java\jdk1.6.0_10" (use this as an example).

2. Configure after installation.

Right-click "My Computer", open "Properties", and select "Environment Variables" in "Advanced". In the newly opened interface, the system variables need to set three properties. The path attribute already exists on computers that have not installed JDK.

屏幕截图 2023-06-08 165035.png

①. Click "New" in "System Variables", then write "java_home" in the variable name,

Write the installation just now in the variable value Path "c:\ProgramFiles\Java\jdk1.6.0_10".

②. Find the path in the system variable and click Edit.

The meaning of path is that the system can recognize the java command in any path.

Add variable value ";c:\Program Files\Java\jdk1.6.0_10\bin;c:\Program Files\Java\jdk1.6.0_10\jre\bin".

③. Click "New" in the system variable, and then write "classpath" in the variable name.

The meaning of this variable is the path of java loading class (bin or lib). The java command can only recognize the class if it is in the classpath.

The value is "C:\Program Files\Java\jdk1.6.0_10\lib\dt.jar;C:\Program Files\Java\jdk1.6.0_10\lib\tools.jar"

3. Verify whether the installation is successful.

Click "Start"->"Run", enter "cmd", enter the command line interface, enter "java -version", if the installation is successful, the system displays java version "1.6. 0_10"....(different version numbers vary)

The above is the detailed content of javac is not recognized as an internal or external command or an operable program. How to solve the problem?. 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
通过命令行在 Mac 上启用低功耗模式通过命令行在 Mac 上启用低功耗模式Apr 14, 2023 pm 12:13 PM

对于不熟悉的人来说,低功耗模式会减少 Mac 的能源使用,可能会延长电池寿命,但会暂时牺牲性能,但它的处理得很好,对于大多数用户来说,他们不会注意到任何特别的退化。如果您是 Mac 笔记本电脑用户,并试图从 MacBook Pro 或 Air 中获得尽可能长的电池寿命,那么这是一种非常有用的模式。从命令行启用 Mac 低功耗模式从终端,在任何 Mac 笔记本电脑上键入以下命令字符串:sudo pmset -a lowpowermode 1按 sudo 的要求按回车键并输入管理员密码进行身份验证。

Linux系统中的常用命令和快捷方式Linux系统中的常用命令和快捷方式Jun 18, 2023 am 08:46 AM

随着Linux操作系统的广泛应用,越来越多的人开始需要学习和了解Linux系统中的基本命令和快捷方式。在本文中,我们将介绍一些常用的Linux命令和快捷方式,帮助初学者了解Linux系统,提高工作效率。常用命令1.1ls命令ls命令是Linux中最常用的命令之一。它主要用于列出当前目录下的文件和子目录。常用的选项有:-l:以长格式显示文件信息,包括文件类型

如何通过Linux命令行工具进行日志聚合和统计?如何通过Linux命令行工具进行日志聚合和统计?Jul 30, 2023 pm 10:07 PM

如何通过Linux命令行工具进行日志聚合和统计?在管理和维护Linux系统时,日志记录是非常重要的一项工作。通过日志可以查看系统运行情况、排查问题以及进行性能分析。而对于大规模的系统,日志的数量往往非常庞大,如何高效地对日志进行聚合和统计,成为了运维人员面临的一个挑战。在Linux系统中,我们可以利用命令行工具来进行日志聚合和统计。下面将介绍几个常用的命令行

如何利用MySQL和C++开发一个基于命令行的图书管理系统如何利用MySQL和C++开发一个基于命令行的图书管理系统Sep 20, 2023 pm 01:48 PM

如何利用MySQL和C++开发一个基于命令行的图书管理系统概要:在本文中,我们将介绍如何使用MySQL和C++开发一个简单的基于命令行的图书管理系统。我们将涵盖从数据库设计到C++代码实现的整个过程,并提供具体的代码示例。介绍:图书管理系统是一个常见的应用程序,用于管理图书馆或个人的图书收藏。通过使用MySQL作为数据库和C++作为编程语言,我们可以方便地实

javac不是内部或外部命令也不是可运行的程序怎么解决javac不是内部或外部命令也不是可运行的程序怎么解决Jun 08, 2023 pm 04:54 PM

javac不是内部或外部命令也不是可运行的程序的解决方法: 1、首先官网下载JDK的最新版本并安装;2、进行系统环境变量配置,在path中添加jdk安装的路径;3、进入电脑命令行界面,输入“java -v”出现版本号即可。

详解如何增加Linux安全组端口(命令行方式)详解如何增加Linux安全组端口(命令行方式)Jan 29, 2023 pm 04:51 PM

本篇文章给大家带来了关于Linux的相关知识,其中主要介绍了以 Centos7.x 为例,怎么使用命令行方式来增加Linux的安全组端口,下面一起来看一下,希望对大家有帮助。

如何使用ThinkPHP6的命令行工具如何使用ThinkPHP6的命令行工具Jun 21, 2023 pm 05:53 PM

如何使用ThinkPHP6的命令行工具ThinkPHP6是一款开源的PHP框架,它具有丰富的功能和易于使用的特性。其中,命令行工具是ThinkPHP6的一个重要功能,在开发过程中可以提高开发效率和便捷性。本文将介绍如何使用ThinkPHP6的命令行工具。安装ThinkPHP6首先,需要安装ThinkPHP6。可以通过composer命令安装:composer

测试MySQL连接的高并发性能应如何在命令行进行?测试MySQL连接的高并发性能应如何在命令行进行?Jun 30, 2023 pm 07:25 PM

如何在命令行中测试MySQL连接的高并发性能?随着互联网应用的不断普及,数据库的高并发性能成为了很多需求的关注点之一。而MySQL作为一个流行的开源数据库,其高并发性能也是被广泛关注的。在测试MySQL连接的高并发性能之前,我们需要先明确一些概念和准备工作:并发连接:指的是同时有多个客户端与数据库建立连接,并且这些连接同时进行数据库操作。连接数限制:MySQ

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

Repo: How To Revive Teammates
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.