1: open a terminal;
2: type "vi ~/.profile";
3: Find a line like:
"export PATH=/opt/local/bin:/opt/local/sbin:$PATH"...
4: Add the path of your java home:
"export PATH=/opt/local/bin:/opt/local/sbin:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin:$PATH"
5: Save and quit.
2: type "vi ~/.profile";
3: Find a line like:
"export PATH=/opt/local/bin:/opt/local/sbin:$PATH"...
4: Add the path of your java home:
"export PATH=/opt/local/bin:/opt/local/sbin:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin:$PATH"
5: Save and quit.
Aucun commentaire:
Enregistrer un commentaire