Questions tagged [java-home]

JAVA_HOME is an environment variable which should point to the root directory of the JDK installation.

JAVA_HOME is an environment variable which indicates the directory where the Java Development Kit (JDK) software is installed.

Setting JAVA_HOME depends on the operating system:

UNIX

  • Korn and bash shells:

    export JAVA_HOME=jdk-install-dir
    
    export PATH=$JAVA_HOME/bin:$PATH
    
  • Bourne shell:

    JAVA_HOME=jdk-install-dir
    
    export JAVA_HOME
    
    PATH=$JAVA_HOME/bin:$PATH
    
    export PATH
    
  • C shell:

    setenv JAVA_HOME jdk-install-dir
    
    setenv PATH $JAVA_HOME/bin:$PATH
    
    export PATH=$JAVA_HOME/bin:$PATH
    

Windows

  1. Right click My Computer > Properties > Advanced system settings
  2. On the Advanced tab, select Environment Variables..., and then add/edit JAVA_HOME to point to where the JDK software is located, for example, C:\Program Files\Java\jdk1.8.0_60.

or

  1. Go to Control Panel\All Control Panel Items\User Accounts using Explorer
  2. Click on Change my environment variables
  3. Add/edit the JAVA_HOME variable to point to where the JDK software is located
613 questions
0
votes
1 answer

Wowza installer continue asking for JAVA_HOME but it is specified

I have installation issue with Wowza Streaming Engine. I'm continue to get the following error: --------------------------- Java JDK or Java Server JRE Required --------------------------- A JAVA_HOME environment variable pointing at a Java JDK or…
Mando
  • 11,414
  • 17
  • 86
  • 167
0
votes
0 answers

No such file or directory when Installing Play 2.2.2 in OS X

When trying to install play 2.2.2 and running it, an error apperas: /Users/NoePodesta/play-2.2.0/play: line 70: /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/bin/java: No such file or directory What is wrong here?? I have already set this in…
0
votes
2 answers

which java command should return custom java installation path

I have jdk installed under "/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java" When i do a "which java", it returns "/usr/bin/java" But, I want which java to return…
ufdeveloper
  • 387
  • 6
  • 19
0
votes
2 answers

installing hadoop 2.3 on mac osx

i used the following tutorials to install hadoop on macos: Hadoop Tutorial 1, Hadoop Tutorial 2 when i trie to format the namenode i get the following error: hdfs namenode -format Error: Could not find or load main class…
Gerald
  • 133
  • 4
  • 9
0
votes
2 answers

Problems running Mahout and Hadoop

I'm new at Mahout and Hadoop. I've successfully installed Hadoop Cluster with 3 machines, and the cluster is running fine, and I just installed Mahout on the Main namenode for "testing purposes", and I followed the instructions of installation and…
0
votes
2 answers

JAVA_HOME NOT SET WHEN INSTALL Storm

I want to install Storm in my own machine(Ubuntu 12.04 LTS) and I follow the instructions in https://github.com/nathanmarz/storm/wiki/Installing-native-dependencies. When I installing jzmq, I firstly successfully perform the command sudo…
Chelsea Wang
  • 599
  • 2
  • 5
  • 19
0
votes
1 answer

Can't install CloudBees SDK onto Windows 8

I seem to have some problems initialising the CloudBees SDK locally to be able to run a simple application. I've downloaded the SDK, added the required paths; everything ok up to the point where I am trying to execute the bees run command from my…
0
votes
1 answer

Not able to configure hadoop

I am not able to configure hadoop for stand alone operation. When i am doing cp conf/*.xml input, i am getting these errors: cp: cannot create regular file input/capacity-scheduler.xml': Permission denied cp: cannot create regular…
user861938
  • 83
  • 1
  • 11
0
votes
2 answers

Not sure if JAVA_HOME is set

I have installed Maven on Ubuntu 12.04. The following is the output when I do $ mvn --version Listening for transport dt_socket at address: 8787 Apache Maven 3.0.4 Maven home: /usr/share/maven Java version: 1.6.0_38, vendor: Sun Microsystems…
Gaurav Agarwal
  • 18,754
  • 29
  • 105
  • 166
0
votes
1 answer

Why NetBeans' environment variable does not confirm to the system's setting?

I have set JAVA_HOME environment variable in .bashrc like this: export JAVA_HOME='/opt/Oracle/jdk1.7.0_25' And I am sure that it's properly set: $ echo $JAVA_HOME /opt/Oracle/jdk1.7.0_25 But when I am using NetBeans to start my Google App Engine…
Yishu Fang
  • 9,448
  • 21
  • 65
  • 102
0
votes
3 answers

How to know JAVA_HOME value?

How can I know the value of JAVA_HOME variable on Ubuntu Server? I tried with echo $JAVA_HOME but I read a white line.
Safari
  • 11,437
  • 24
  • 91
  • 191
0
votes
2 answers

CodenameOne :"Path to javac not found" error

I start working with CodenameOne tool for multiplatform mobile dev. When I created "hello world" app and tried to build an .apk android file, I received [echo] Error! Path to Javac not found! [echo] Make sure the JAVA_HOME enviroment…
Rikki Tikki Tavi
  • 3,089
  • 5
  • 43
  • 81
0
votes
1 answer

JAVA_HOME and e(fx)clipse on OS X

I installed the e(fx)clipse plugin on OS X Mountain Lion. When I startup eclipse I get the following error message: You are not running your eclipse instance with Java7 or Java8. The JavaFX tooling is disabled because of this. Make Java7/8 the…
kinnla
  • 411
  • 4
  • 13
0
votes
1 answer

JAVA_HOME error when running PIG

After I set JAVA_HOME in my environment, I got this when running PIG: ubuntu@XXXXXX:~/pig/pig-0.11.1/bin$ export JAVA_HOME=/usr/lib/jvm/java-6-sun ubuntu@ip-10-117-89-198:~/pig/pig-0.11.1/bin$ ./pig Exception in thread "main" java.io.IOException:…
0
votes
1 answer

Maven cannot find tools.jar w/ proper JAVA_HOME

I am having some trouble building a Maven project on my Windows machine. I have set my JAVA_HOME environment variable and Maven finds it. Here are come results from a few executions: 'which mvn' /cygdrive/c/Program…