javac not working on my centos7 install
hi guys,
installed jdk on my centos7 box
but when i type javac i get:
bash: javac: command not found...
Similar command is: 'java'
and when i go whereis javac i get:
/opt/jdk1.8.0_91/bin/javac
i added the above to my path:
]$ echo $PATH
/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/home/wbrandt/.local/bin:/home/wbrandt/bin:/opt/jdk1.8.0_91/bin/javac
dont think its a path thing
when i:
[wbrandt@localhost bin]$ javac
bash: javac: command not found...
Similar command is: 'java'
[wbrandt@localhost bin]$ ./javac
bash: ./javac: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
the above is when im in the opt directory:
/opt/jdk1.8.0_91/bin/
why cant it work?
also if i need it to run everytime do i need to add it to another config file?
tanks
Last edited by sigint-ninja; 07-10-2016 at 05:17 AM.
|