[loest] JAVA_HOME: noget er galt med hva ?

Looop
Antal: 1062
Tilmeldt:
30-10-2008
User is offline
[loest] JAVA_HOME: noget er galt med hva ?

Jeg sidder paa en OpenSUSE 13.1 og skal havde defineret min JAVA_HOME path.
Hvilket jeg har gjort saaledes:

JAVA_HOME=/usr/java/jdk1.8.0_11/
export PATH=$JAVA_HOME/bin/:$PATH

Men naar jeg sa har koert

source ~/.bash_profile

Men proever jeg at brygge et java projekt med WAF faar jeg

JAVA_HOME does not seem to be set properly
(complete log in /home/tools/Downloads/fifi-java/build/linux/config.log)

Nogen som kan give mig et input til at loese det ?

./looop


Kresten Kjaer
Kresten Kjaer's picture
Antal: 342
Tilmeldt:
16-09-1991
User is offline
Hvad siger # env | grep

Hvad siger
# env | grep JAVA_HOME

---
Miracle.dk - we dare, share & care.


Looop
Looop's picture
Antal: 1062
Tilmeldt:
30-10-2008
User is offline
#1 #env | grep

#1

#env | grep JAVA_HOME
JAVA_HOME=/usr/java/jdk1.8.0_11/

./looop


Kresten Kjaer
Kresten Kjaer's picture
Antal: 342
Tilmeldt:
16-09-1991
User is offline
kresten@localhost 
kresten@localhost  ~/tmp/fifi-java   master  export JAVA_HOME=/home/kresten/Applications/java/jdk/jdk1.8.0_11 && PATH=/home/kresten/Applications/java/jdk/jdk1.8.0_11:$PATH && ./waf configure
Setting top to                           : /home/kresten/tmp/fifi-java
Setting out to                           : /home/kresten/tmp/fifi-java/build/linux
Checking for program 'git'               : ['/usr/bin/git']
Resolve dependency sak                   : /home/kresten/tmp/fifi-java/bundle_dependencies/sak-1bdcea/10.4.0
Resolve dependency waf-tools             : /home/kresten/tmp/fifi-java/bundle_dependencies/waf-tools-a5b14c/2.33.0
Resolve dependency fifi                  : /home/kresten/tmp/fifi-java/bundle_dependencies/fifi-8960fd/11.0.0
Resolve dependency platform              : /home/kresten/tmp/fifi-java/bundle_dependencies/platform-bccd32/1.0.0
Resolve dependency gtest                 : /home/kresten/tmp/fifi-java/bundle_dependencies/gtest-4ed968/2.1.3
Resolve dependency cpuid                 : /home/kresten/tmp/fifi-java/bundle_dependencies/cpuid-4d8071/3.1.0
Resolve dependency boost                 : /home/kresten/tmp/fifi-java/bundle_dependencies/boost-11f274/1.4.1
Using the mkspec:                        : cxx_default
Checking for 'g++' (C++ compiler)        : /usr/bin/g++
Checking for library pthread             : yes
Checking for program 'javac'             : ['/home/kresten/Applications/java/jdk/jdk1.8.0_11/bin/javac']
Checking for program 'java'              : ['/home/kresten/Applications/java/jdk/jdk1.8.0_11/bin/java']
Checking for program 'jar'               : ['/home/kresten/Applications/java/jdk/jdk1.8.0_11/bin/jar']
Checking for program 'javadoc'           : ['/home/kresten/Applications/java/jdk/jdk1.8.0_11/bin/javadoc']
Checking for header jni.h                : yes
Checking for program 'swig'              : ['/usr/bin/swig']
Checking for swig version                : (2, 0, 11)
'configure' finished successfully (5.474s)
kresten@localhost  ~/tmp/fifi-java   master  export JAVA_HOME=/home/kresten/Applications/java/jdk/jdk1.8.0_11 && PATH=/home/kresten/Applications/java/jdk/jdk1.8.0_11:$PATH && ./waf build  
[....]
'build' finished successfully (12.440s)

---
Miracle.dk - we dare, share & care.


frogmaster
frogmaster's picture
Antal: 3582
Tilmeldt:
20-05-2010
User is offline
PATH til OpenJDK skal

PATH til OpenJDK skal formentlig stå øverst i ~/.bash_profile. Du kan kontrollere, hvilken der køres med:

which java

Prøv at ændre "export PATH" til at stå øverst:

export PATH=/usr/java/jdk1.8.0_11/bin:$PATH


mrbrown79
Antal: 470
Tilmeldt:
12-01-2010
User is offline
Den sidste slash kan skabe

Den sidste slash kan skabe problemer

Brug:
JAVA_HOME=/usr/java/jdk1.8.0_11


Looop
Looop's picture
Antal: 1062
Tilmeldt:
30-10-2008
User is offline
Tak det prøves i morgen :)

Tak det prøves i morgen :)

./looop


Looop
Looop's picture
Antal: 1062
Tilmeldt:
30-10-2008
User is offline
Tak alle at fjern / loest

Tak alle at fjern / loest problemet

./looop