You are not logged in.

#1 2015-07-30 09:42:56

dancer69
Banned
Registered: 2011-08-05
Posts: 66

[SOLVED]error: JAVA_HOME enviroment variable is not set

I just installed griffon from aur and I get the above error.
archlinux-java status command outputs this:

java-7-jdk (default)
  java-7-jre/jre
  java-8-openjdk

I checked the /etc/profile.d/ folder and there is no .sh file for jdk, only for jre
I created the file with these contents:

export PATH=${PATH}:/usr/lib/jvm/java-7-jdk/bin

and also I run archlinux-java fix, but I still get this error. Do I need something more?

Last edited by dancer69 (2015-07-31 17:22:16)

Offline

#2 2015-07-30 19:37:09

twelveeighty
Member
Registered: 2011-09-04
Posts: 1,456

Re: [SOLVED]error: JAVA_HOME enviroment variable is not set

You will need to set JAVA_HOME, not the PATH.

I recommend against setting JAVA_HOME in your profile, but set it either just before you launch griffon, effective only for that session, or find out if you can pass JAVA_HOME as part of a launch parameter.  Some tools are specific to which JRE you need to run it against and setting JAVA_HOME will set it for all apps.

Offline

#3 2015-07-31 17:21:52

dancer69
Banned
Registered: 2011-08-05
Posts: 66

Re: [SOLVED]error: JAVA_HOME enviroment variable is not set

You have right thanks.

Offline

Board footer

Powered by FluxBB