Google Site SearchFN Site Search FN Blog Login FN Blog Login
Site Navigation:
 
 

TUTORIAL: Install Eclipse in FC1


Now the Java SDK is installed to /usr/java which is not in your path. Create a file called java.sh in /etc/profile.d/ with the following contents:

export JAVA_HOME="/usr/java/j2sdk1.4.2_03"
export JAVA_PATH="$JAVA_HOME"
export JDK_PATH="$JAVA_HOME"
export PATH="$PATH:$JAVA_HOME/bin"
Remember that the java directory can change according with the Java2SDK version you installed. Make the script executable:
$ sudo chmod +x /etc/profile.d/java.sh
You need to logout and login back to the changes to make effect or run:
$ source /etc/profile.d/java.sh
Make sure that you have access to java commands such as java and javac:
$ javac
Usage: javac  
where possible options include:
  -g                        Generate all debugging info
  -g:none                   Generate no debugging info
  -g:{lines,vars,source}    Generate only some debugging info
  -nowarn                   Generate no warnings
  -verbose                  Output messages about what the compiler is doing
  -deprecation              Output source locations where deprecated APIs are used
  -classpath <path>         Specify where to find user class files
  -sourcepath <path>        Specify where to find input source files
  -bootclasspath <path>     Override location of bootstrap class files
  -extdirs <dirs>           Override location of installed extensions
  -d <directory>            Specify where to place generated class files
  -encoding <encoding>      Specify character encoding used by source files
  -source <release>         Provide source compatibility with specified release
  -target <release>         Generate class files for specific VM version
  -help                     Print a synopsis of standard options