java-8-oracle and java-7-oracle and I'm able to swtich between them using
- Code: Select all
sudo update-alternatives --config java
switching to Java 7 and calling java -version I do get
- Code: Select all
java version "1.7.0_80"
Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)
However that did not seem to change the JAVA_HOME variable and so when executing
- Code: Select all
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug
I get
- Code: Select all
-- Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) (Required is at least version "1.7")
CMake Error at CMakeLists.txt:208 (message):
A Java installation is required. Set the JAVA_HOME environment variable to
explicitly specify the Java installation directory.
So I set JAVA_HOME in /etc/environment so the line looks like this
- Code: Select all
JAVA_HOME="/usr/lib/java-*"
I also tried
- Code: Select all
JAVA_HOME="/usr/lib/java-7-oracle"
if I source it and then echo $JAVA_HOME it gives me that path but I still get the same error. What is it going to take to get this setup so I can start actually working with it? I've done more troubleshooting just rrying to get JCEF to build than I have developing.