FAQ Database Discussion Community


setting JAVA_HOME to the JDK location mac osx 10.9.5

java,osx,maven,java-home
I followed this thread to solve my problem, I have the same problem with a different version of JDK and for some reason it didn't work. I still get -bash: JAVA_HOME: command not found when I type JAVA_HOME to my terminal. I have JDK1.8.0.45 located at Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home which I can...

Set ANDROID_HOME environment variable in mac

android,environment-variables,java-home
I am new in developing native app using Salesforce SDK. I tried to create android project from command line using forcedroid tool but there is problem in setting environment variable named ANDROID_HOME. But i don't know how to set this variable. I am attaching screenshot to describe my problem correctly....

How to get JBoss 7.1.3 to use my $JAVA_HOME environment varaible?

jboss,environment-variables,jboss7.x,java-home
I'm using Mac 10.9.5 with JBoss 7.1.3.Final. I am launching JBoss through the termianl (bash shell), like so Daves-MacBook-Pro:core davea$ cd $JBOSS_HOME/bin Daves-MacBook-Pro:bin davea$ sudo sh standalone.sh Within the shell, I can see that $JAVA_HOME is defined ... Daves-MacBook-Pro:bin davea$ echo $JAVA_HOME /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home However, JBoss is not picking up this...

How to automatically set Maven compiler plugin based on $JAVA_HOME env variable?

environment-variables,maven-3,java-home,maven-compiler-plugin
I’m using Maven 3.2.3. I have a multi-module project and currently have my Maven compiler plugin set as such <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.1</version> <configuration> <source>1.6</source> <target>1.6</target> <compilerArgument>-proc:none</compilerArgument> <fork>true</fork> <!-- <debug>true</debug>...

Why is my JAVA_HOME variable that I setup not working?

android,environment-variables,java-home,system-variable
I'm trying to install and use Android Studio. However, when I run the program after installing, it gives me this error: I went into my control panel and added an Environment Variable under System variables that looks like this: I restarted my computer after making this, but it still doesn't...

JAVA_HOME not defined correctly

java,jasper-reports,jasperserver,java-home
I am attempting to update Jasper Reports Server, and having an issue with Java. It uses Tomcat to run java. I did not install java on this server, and I am not very familiar with java. Java was installed in a folder called /opt/jasperreports-server-cp-5.0.0/apache-tomcat/java/bin/. I do not believe Java was...

Could not load classfile

java,java-home
I am getting the below runtime exception when I try to run a Java program Exception in thread "main" java.lang.RuntimeException: Could not load classfile: java.util.concurrent.ConcurrentMap at soot.coffi.Util.resolveFromClassFile(Util.java:75) at soot.CoffiClassSource.resolve(CoffiClassSource.java:39) at soot.SootResolver.bringToHierarchy(SootResolver.java:215) at soot.SootResolver.bringToSignatures(SootResolver.java:239) at soot.SootResolver.bringToBodies(SootResolver.java:280) at...

mac os how to set java home correctly in the path

java,osx,java-home
I know this question has been asked a lot before but i did read and i will show you what i got. I will list the commands that i did in my OS X Yosemite 10.10.1 java -version java version "1.8.0_45" Java(TM) SE Runtime Environment (build 1.8.0_45-b14) Java HotSpot(TM) 64-Bit...

Cannot locate java installation error for logstash

java,path,logstash,java-home
I downloaded Logstash-1.5.0 on Windows 8.1 and tried to run it in the command prompt. First I checked the java version. Then changed the directory to logstash-1.5.0/bin then entered the command logstash -e 'input { stdin { } } output { elasticsearch { host => localhost } stdout { }...

How to use gradle properties in build.gradle

groovy,gradle,java-home
When I run this task: task tmpTask << { project.properties.each {println " $it"} } I see: org.gradle.java.home=/usr/lib/jvm/java-6-oracle But how to use this variable? I've tried both: task tmpTask << { println org.gradle.java.home println project.properties.org.gradle.java.home } But none of this works. First print gives error: Could not find property 'org' on...

Path for Weblogic Home& Java home for adding Oracle server in eclipse

eclipse,oracle,weblogic,settings,java-home
I had installed oracle weblogic tool for in my eclipse luna by simple drag and drop to my workspace from eclipse-marketplace..tool appers when i am going to add a new server in eclipse but Can anyone please tell what to put in Weblogic home and javaHome here .............................Do i have...