VTK/Tutorials/JavaEnvironmentSetup: Difference between revisions

From KitwarePublic
< VTK‎ | Tutorials
Jump to navigationJump to search
No edit summary
No edit summary
Line 3: Line 3:


* Add /opt/java/jre/lib/i386 and /opt/java/jre/lib/i386/xawt to LD_LIBRARY_PATH (in ~/.bashrc)
* Add /opt/java/jre/lib/i386 and /opt/java/jre/lib/i386/xawt to LD_LIBRARY_PATH (in ~/.bashrc)
* Add
* In your ~/.bashrc, add
  export JAVA_HOME=/opt/java
  export JAVA_HOME=/opt/java
to ~/.bashrc
export JAVA_INCLUDE_PATH=/opt/java/include
 
export JAVA_INCLUDE_PATH2=/opt/java/include/linux
* Add /opt/java/include and /opt/java/include/linux to CPLUS_INCLUDE_PATH
 
* Use the following CMake settings:
** JAVA_AWT_INCLUDE_PATH            /opt/java/include                           
** JAVA_AWT_LIBRARY                /opt/java/jre/lib/i386/libjawt.so           
** JAVA_INCLUDE_PATH               /opt/java/include                          
** JAVA_INCLUDE_PATH2               /opt/java/include/linux                    
** JAVA_JVM_LIBRARY                /opt/java/jre/lib/i386/client/libjvm.so     
** Java_JAR_EXECUTABLE        /opt/java/bin/jar                           
** Java_JAVAC_EXECUTABLE            /opt/java/bin/javac                         
** Java_JAVA_EXECUTABLE            /opt/java/bin/java

Revision as of 12:59, 18 May 2010

(Throughout the following we will assume it is installed in /opt/java, though you can install it wherever you please)

  • Add /opt/java/jre/lib/i386 and /opt/java/jre/lib/i386/xawt to LD_LIBRARY_PATH (in ~/.bashrc)
  • In your ~/.bashrc, add
export JAVA_HOME=/opt/java
export JAVA_INCLUDE_PATH=/opt/java/include
export JAVA_INCLUDE_PATH2=/opt/java/include/linux