You can add one of the Java path to PATH variable using the following command.
export PATH=$PATH:/usr/java/jre1.6.0_24/bin/
You can add this line to .bashrc file in your home directory. Adding this to .bashrc will ensure everytime you open bash it will be PATH variable is updated.
More Related Contents:
- How to execute bash command with sudo privileges in Java?
- Java exec() does not return expected result of pipes’ connected commands
- Rename Duplicate file name to another name in multiple folders [closed]
- Java using much more memory than heap size (or size correctly Docker memory limit)
- Hadoop “Unable to load native-hadoop library for your platform” warning
- Running jmap getting Unable to open socket file
- Run a Java Application as a Service on Linux
- How to set JAVA_HOME in Linux for all users
- Growing resident memory usage (RSS) of Java Process
- Docker: Combine multiple images
- Classpath does not work under linux
- How to download older google play services?
- Technically what is the main difference between Oracle JDK and OpenJDK? [duplicate]
- Can’t find/install libXtst.so.6?
- Do line endings differ between Windows and Linux? [closed]
- Distinguishing between Java threads and OS threads?
- Running a JAR file without directly calling `java`
- How to compile dynamic library for a JNI application on linux?
- Running Bash commands in Java
- eclipse/tomcat: deploy doesn’t work any more (ClassNotFoundException)
- How to execute bash script using karate and fail if script fails
- Change file owner group under Linux with java.nio.Files
- Gradle finds wrong JAVA_HOME even though it’s correctly set
- Java Can’t connect to X11 window server using ‘localhost:10.0’ as the value of the DISPLAY variable
- How to deal with LinkageErrors in Java?
- How to open a command terminal in Linux?
- How can I make this JButton visible? When I have progressive scan background JWindow()?
- How do I run a spring boot executable jar in a Production environment?
- How to increase maximum number of JVM threads (Linux 64bit)
- How to know whether enough memory is free to deploy a new application on a Linux machine?