jps: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory

I got the above error when tried to get the output of jps command.

solution : It happens when we point to wrong version of jdk.

$ sudo update-alternatives –config jps

select the correct the version of jdk from the output displayed. and try again. problem should be solved.

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