Monday, 7 October 2013

Export variable Java Linux! I see the light!

Why you don't find java or javac command in my terminal? I suppose  you have installed it, then because you don't find it? Maybe some malignant entities into your computer has removed java or maybe not.....where is the light in all of this?

It is simple! YOU MUST EXPORT JAVA_HOME! Java has an home? cool! 

Let's do it!

(This process set permantely your java variable into your computer)

  1. Open terminal in linux.
  2. If you don't know where is java is located, write in terminal: whereis java. A possible set of results can be:
    Save path that ending with ..../bin/java
  3. Now, write in your console: sudo nano /etc/profile and write at finsh of file these line:
    and instead of /home/lorenzo/Documenti/jdk1.7.0_25/bin insert the path, without the final words /java, that you have saved it before.
  4. Hit ctrl+o and press enter and hit ctrl+x.
  5. Write in console source /etc/profile 
  6. And work is complete!
FINISH HIM! (ehmm take out MortalKombat...)

No comments:

Post a Comment