atlassian.com wrote:Stage 1. Locate Install Directory
If you already know the install path for the Java or Software Development Kit, go to Stage 2. Otherwise, find the install path by following these instructions:
1. Unless you changed the install path for the Java Developement Kit during installation, it will be in a directory under C:Program FilesJava. Using Explorer, open the directory C:Program FilesJava
2. Inside that path will be one or more subdirectories such as jdk1.5.0_08. If you just installed the Java Development Kit, it will be installed to the newest directory, which you can find by sorting by date. For example, it may be installed in C:Program FilesJavajdk1.5.0_08. This is the install path.
Stage 2. Apply Setting
Once you have identified the JDK install path:
1. Right click on the My Computer icon on your desktop and select properties
2. Click the Advanced Tab
3. Click the Environment Variables button
4. Under System Variable, click New
5. Enter the variable name as JAVA_HOME
6. Enter the variable value as the install path for the Development Kit
7. Click OK
8. Click Apply Changes
This diagram shows setting the JAVA_HOME variable to an install path of c:/j2sdk1.4.2
user@localhost:~$ java -version
java version "1.5.0"
gij (GNU libgcj) version 4.2.4 (Ubuntu 4.2.4-1ubuntu3)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
user@localhost:~# java -version
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) Server VM (build 10.0-b23, mixed mode)
user@localhost:~# apt-get remove libgcj-common
Users browsing this forum: No registered users and 7 guests