Ask Your Question
0

Fedora 17 running java return no such file or directory

asked 2012-12-06 04:49:47 -0500

Aravindhan gravatar image

I have installed jdk 1.6 in fedora 17 and set the path and java home relatively ..

When i compile the code using javac it get compiled when i run it it returns

bash: /usr/bin/java: No such file or directory What problem is this and how should i overcome this

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-12-06 06:12:59 -0500

chinosoliard gravatar image

Try with the command:

sudo /usr/sbin/alternatives --install /usr/bin/java java /usr/java/default/bin/java 20000

Or verify the installation directory with the command: sudo alternatives --config java

This last, show a list of the alternatives for Java. You can select another one.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-12-06 04:49:47 -0500

Seen: 826 times

Last updated: Dec 06 '12