Fedora javac command prompt [javac: Command not found...], fedorajavac

Source: Internet
Author: User

Fedora javac command prompt [javac: Command not found...], fedorajavac

[Joy @ localhost ~] $ Java-version

Openjdk version "1.8.0 _ 91"

OpenJDK Runtime Environment (build 1.8.0 _ 91-b14)
OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode)

[Root @ localhost joy] # javac Hello. java
Bash: javac: Command not found...
Similar commands: 'java'

Javac prompt: The command is not found. Jdk is not installed. You only need to follow the steps below to install it! So Easy!

[Root @ localhost joy] # dnf install java

------ Wait... enter Y to install ...--------------

[Root @ localhost joy] # java

---- The usage of java will be prompted.

[Root @ localhost joy] # dnf install java * jdk * devel

[Root @ localhost joy] # javac

---- The javac usage will be prompted, indicating that the operation is successful.

Result:

[Root @ localhost gitdemo. git] # javac Hello. java
[Root @ localhost gitdemo. git] # java Hello
Hello World!

Reference: http://tieba.baidu.com/p/3877291318

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.