Where is my Java compiler located

Hi,

I'm trying to compile a quickstart in JBoss developer studio running of an JBoss EAP server locally installed in windows.  HelloWorld quickstart worked I then tried one which has no interface but included an arquillian test.  I ran the project as a Maven build, the message I got back in the studio console is:

  Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project jboss-bean-validation: Compilation failure
Unable to locate the Javac Compiler in:
C:\Program Files\Java\jre1.8.0_45\..\lib\tools.jar
Please ensure you are using JDK 1.4 or above and
not a JRE (the com.sun.tools.javac.Main class is required).
In most cases you can change the location of your Java
installation by setting the JAVA_HOME environment variable.
-> [Help 1]

First off, what do the 2 dots mean in the path for the java path? Does it mean that from jre.1.8.0_45 you go up a level and then move to the lib folder and use the tools.jar?

I wonder what got set to come up with that?  I have  $JAVA_HOME set to  C:\Program Files\Java\jre1.8.0_31 and javac is located in the bin folder underneath this (messing with this doesn't let the JBoss developer studio fire up).

I do have the following C:\Program Files\Java\jre1.8.0_45\ but I can't find a javac.exe file in the bin folder here, (lots of other similar-sounding files).

How can I found out what has sent Maven to this location to look for the java compiler?

Thanks,
TerribleTonyHAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dpearsonCommented:
First off, what do the 2 dots mean in the path for the java path? Does it mean that from jre.1.8.0_45 you go up a level and then move to the lib folder and use the tools.jar?
Yes

I have  $JAVA_HOME set to  C:\Program Files\Java\jre1.8.0_31 and javac is located in the bin folder underneath this (messing with this doesn't let the JBoss developer studio fire up).
This sounds potentially wrong.  The JRE is the runtime for Java and generally does not include the Java compiler javac.  You usually should have this in a JDK folder, with "jdk" in its name.  If you have a JRE folder that contains a compiler it sounds like a mix of software.

In any case, the other value to look at is the PATH.  Make sure your Java bin folder is also on the Windows path ahead of any other Javas.

Doug
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
TerribleTonyHAuthor Commented:
My mistake it is actually C:\Program Files\Java\jdk1.8.0_31 and not jre.  The other folder is C:\Program Files\Java\jre1.8.0_45

Looking around the developer studio, I've found a templates area in Maven which has tools.jar set to the following:

$${java.home}/../lib/tools.jar

This could mean that Maven is taking java.home to mean the runtime location, but I've no idea where.  

Time to read a selection of manuals :-(

Thanks,
0
TerribleTonyHAuthor Commented:
Answered the question.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.