tag:blogger.com,1999:blog-6133363959081933104.post880287370991710804..comments2023-04-26T16:26:30.439+02:00Comments on Big Al's Blog: Setting JAVA_HOME on UbuntuAllan Lykke Christensenhttp://www.blogger.com/profile/00646797647221121520noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-6133363959081933104.post-67699955396406693862009-05-24T15:19:39.286+02:002009-05-24T15:19:39.286+02:00Thank you for the tips!
I believe there is also a...Thank you for the tips!<br /><br />I believe there is also a file /etc/environment where you can set environmental variables - you can add JAVA_HOME variable there too.<br /><br />If you just want to quickly reconfigure your java environment on ubuntu, note that there is also a command 'update-java-alternatives' (that works well at least with the java platforms installed via package system):<br /><br />http://blogs.sun.com/pc/entry/easy_way_to_set_yourjoshishttp://blogs.sun.com/joshisnoreply@blogger.comtag:blogger.com,1999:blog-6133363959081933104.post-57347560142957465022009-01-03T14:21:00.000+01:002009-01-03T14:21:00.000+01:00That's right. Actually on Ubuntu Linux, this is al...That's right. Actually on Ubuntu Linux, this is already in /etc/profile by default.Allan Lykke Christensenhttps://www.blogger.com/profile/00646797647221121520noreply@blogger.comtag:blogger.com,1999:blog-6133363959081933104.post-17723727147300884182009-01-03T12:16:00.000+01:002009-01-03T12:16:00.000+01:00Nice tip, but it's also worth noting that your /et...Nice tip, but it's also worth noting that your /etc/profile must explicitly run the scripts in /etc/profile.d/<BR/><BR/>At the end of my /etc/profile I put; <BR/><I><BR/>for script in /etc/profile.d/*.sh ; do<BR/> if [ -r $script ] ; then<BR/> . $script<BR/> fi<BR/>done<BR/></I>Stephenhttps://www.blogger.com/profile/06166023503610953768noreply@blogger.com