Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jps not working

Tags:

I have installed java-1.6.0-openjdk-devel.

$java -version  java version "1.6.0_24"  OpenJDK Runtime Environment (IcedTea6 1.11.3) (rhel-1.48.1.11.3.el6_2-x86_64)  OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode) 

when typing jps into command prompt

$jps  -bash: jps: command not found 

I do not believe it is an openjdk error because I have used it around 6 months back on the same system and it worked fine. Also, it works fine on my laptop.

like image 985
Phelodas Avatar asked Jul 02 '12 00:07

Phelodas


People also ask

How to run jps command in linux?

The jps command uses the java launcher to find the class name and arguments passed to the main method. If the target JVM is started with a custom launcher, the class name (or JAR file name) and the arguments to the main method will not be available.

What is Hadoop JPS?

When you run Hadoop on any machine, you can look at the specific processes of Hadoop through one of the utilities provided by Java called the JPS (Java Virtual Machine Process Status) tool.


1 Answers

You just have to put $JAVA_HOME/bin in your $PATH variable.

like image 186
Anupam Bagchi Avatar answered Nov 10 '22 08:11

Anupam Bagchi