Unable to find a javac compiler

Hi,

Since installing b99 of Mustang onto my machine and updating TeamCity to EAP 1611, the build is failing with the following error:

Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK

The JAVA_HOME environment variable is pointing at the correct JDK (1.5). If I run the BuildAgent from the batch file, it works fine. This error only occurs when the BuildAgent is running as a service.

Any ideas?

Thanks
Tony

Message was edited by:
Tony Johnson

8 comments
Comment actions Permalink

Anyone? Bueller... Bueller?

0
Comment actions Permalink

Found this in the log.

INFO - er.agent.runner.PropertyFinder - Took value for target.jdk.home from env.JAVA_HOME, value: C:\tools\jdk\jdk1.5.0_08\
INFO - agent.runner.JavaProgramRunner - Found JDK above JRE. Use JDK at C:\tools\jdk
INFO - agent.runner.JavaProgramRunner - Target java VM does not exist: C:\tools\jdk\bin\java.exe

What is the sense in "Found JDK above JRE" and then mangling the java.exe path?

0
Comment actions Permalink

Tony Johnson wrote:

Found this in the log.

INFO - er.agent.runner.PropertyFinder - Took value for target.jdk.home from env.JAVA_HOME, value: C:\tools\jdk\jdk1.5.0_08\
INFO - agent.runner.JavaProgramRunner - Found JDK above JRE. Use JDK at C:\tools\jdk
INFO - agent.runner.JavaProgramRunner - Target java VM does not exist: C:\tools\jdk\bin\java.exe

What is the sense in "Found JDK above JRE" and then mangling the java.exe path?


Hmm. Well, it's my bug. To workaround, rename c:\tools\jdk\jdk1.5.0_08\ to something like
c:\tools\java\jdk1.5.0_08\ .
Will be fixed in the next EAP.

Thanks!
KIR



--
Kirill Maximov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

Has this been fixed in the release?

It has just happened again, although I didn't uninstall the Build Agent. I just let it update automatically.

Thanks
Tony

0
Comment actions Permalink

Yes, I've fixed it.

0
Comment actions Permalink

Tony Johnson wrote:

Has this been fixed in the release?

It has just happened again, although I didn't uninstall the Build Agent. I just let it update automatically.


Could you please try to reinstall agent from scratch and if the problem persist,
create a request with logs. Probably I did something wrong.

KIR


--
Kirill Maximov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

Yes, an uninstall and reinstall fixed the problem.

Thanks.

0
Comment actions Permalink

Yep. Appears fixed.

0

Please sign in to leave a comment.