jps Java not recognize

when installing Sun JDK, insstead of open JDK, sometimes when we type ‘jps’ in terminal, it can not be recognize as a command, so we have to add this following line in .bashrc file

alias jps='$JAVA_HOME/bin/jps | grep -v sun.tools.jps.Jps'

.bashrc file can be opened by using this command

$ nano ~/.bashrc

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s