Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I downloaded the bin file, and installed it but I haven't realized that I made the folder in the current directory. I would like to install in /usr/java.

  1. Can I now just copy paste it there.
  2. Or I need to re-install to desired location
  3. I installed JRE , is that ok or I need to install sdk
share|improve this question

1 Answer 1

up vote 1 down vote accepted

For development, you need the java development kit, jdk. Otherwise, the jre is fine.

It is quite possible to copy the jre folder to the /usr/java.
Make sure to add its location to the PATH variable.
Check where does java point to -> which java
Afterwards, check its target. E.g. ls -al /usr/bin/java

The chain should end up in your jre folder.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.