for example i type jmap
in terminal, it will show:
The program 'jmap' can be found in the following packages:
* openjdk-6-jdk
* openjdk-7-jdk
Try: apt-get install <selected package>
root@CNS-ETNEXUS1:/usr/lib/jvm# The program 'jmap' can be found in the following packages:
No command 'The' found, did you mean:
Command 'the' from package 'the' (universe)
The: command not found
type jstack
is the similar result,.
i follow this askubuntu link to install java7, but when i receive this machine, some one already install some openjdk, i guess that's why has the openjdk option.
how to fix it? i do not want to use absolute path every time.
echo $PATH
/usr/local/rvm/gems/jruby-1.7.4/bin:/usr/local/rvm/gems/jruby-1.7.4@global/bin:/usr/local/rvm/rubies/jruby-1.7.4/bin:/usr/local/rvm/bin:/usr/share/centrifydc/sbin:/usr/share/centrifydc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/rvm/bin:/usr/local/rvm/bin
tks.