VTK/Tutorials/JavaEnvironmentSetup: Difference between revisions

From KitwarePublic
< VTK‎ | Tutorials
Jump to navigationJump to search
No edit summary
No edit summary
Line 6: Line 6:
  export JAVA_HOME=/opt/java
  export JAVA_HOME=/opt/java
to ~/.bashrc
to ~/.bashrc
* Add /opt/java/include and /opt/java/include/linux to CPLUS_INCLUDE_PATH


* Use the following CMake settings:
* Use the following CMake settings:

Revision as of 23:47, 17 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)
  • Add
export JAVA_HOME=/opt/java

to ~/.bashrc

  • Add /opt/java/include and /opt/java/include/linux to CPLUS_INCLUDE_PATH
  • Use the following CMake settings: