Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Linux by (18.4k points)
I installed the JDK using an apt-get install, but I don't know where the JDK folder is. I need to set my path for that. Does anyone have the clue on this location?

1 Answer

0 votes
by (36.8k points)

This depends a bit on your package system ... if the java command works, you can type 

readlink -f $(which java) 

to find your location of a java command. On the OpenSUSE system I'm on now it returns as below:

/usr/lib64/jvm/java-1.6.0-openjdk-1.6.0/jre/bin/java

Come and join Linux training to gain great knowledge. 

Do check out the video below

 

 

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Browse Categories

...