Skip to content

How to set Java environment path in Ubuntu 19.04 "Disco Dingo"? #15

@tango4567

Description

@tango4567

Set environment variables as follows for Linux user sudo is important don't forget to use sudo.

Step 1: sudo su
Step 2: which jvm
If you have java installed in your machine then you will get the following result:
jvm: /usr/lib/jvm
then ls for residing files.
Find the path of Java

Step 3: gedit /etc/profile or you can use nano as editor
OR
Step 4: gedit /etc/environment or you can usenano as editor

Step 5. JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64/bin/"
Step 6. source /etc/environment

work in progress

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions