When I use TeamWare EAP(4206) to inspection code , I get this errors.

Can someone help me ? how to configure JDK?

18:13:56]: Starting up...done.
: Opening project...[18:14:29]: done.
: Initializing project...done.
: The JDK is not configured properly for this project. Inspection cannot proceed.
: 5.0 not found
: updating diff...[18:14:30]: Total: 0 (0 -424) Errors: 0 (0 -61)[18:14:30]: Inspection output:
D:\software\jdk5.0\bin\java.exe -Dteamcity.buildConfName=inspection -Djdk.1.5.home=D:\software\jdk5.0 -Dbuild.working.dir=D:\software\TeamCityAgent\4206\buildAgent3\work\Server\umail-tx1.8 -Dagent.name=Agent3 -Dbuild.number=228 -Dbuild.number.format= -Duser.language=zh -Duser.country=CN -Dos.version=5.1 -Duser.timezone=Asia/Shanghai -Dbuild.vcs.number.2=6232 -Dfile.encoding=GBK -Dagent.work.dir=D:\software\TeamCityAgent\4206\buildAgent3\work -Dfile.separator=\ -Dteamcity.projectName=umail-tx1.8 -Djdk.1.5.classpath=D:\software\jdk5.0\lib\db.jar;D:\software\jdk5.0\lib\tools.jar -Didea.no.jdk.check=true -Dos.arch=x86 -Djava.io.tmpdir=D:\software\TeamCityAgent\4206\buildAgent3\bin\..\temp\teamcity.tmp -Dbuild.vcs.number.1=6232 -Didea.plugins.path=D:\software\TeamCityAgent\4206\buildAgent3\plugins\idea\plugins -Duser.name=Administrator "-Dos.name=Windows XP" -Dteamcity.auth.password=84f8c9621aac07bfbddd74cfe545b1fa032b731d -Didea.build.agent.port=9090 -Didea.jars.nocopy=true -Didea.system.path=D:\software\TeamCityAgent\4206\buildAgent3\work\Server\umail-tx1.8\system -Didea.config.path=D:\software\TeamCityAgent\4206\buildAgent3\temp\teamcity.tmp\config -Dteamcity.auth.userId=TeamCityBuildId=5135 -Dteamcity.buildType.id=bt3 -Duser.variant= -Dsuccessful.build.number=2 -Dbuild.vcs.number.3=250 -Didea.home.path=D:\software\TeamCityAgent\4206\buildAgent3\plugins\idea "-Duser.home=C:\Documents and Settings\Administrator" -Didea.build.server.build.id=5135 -Dpath.separator=; -Dnewlocalvcs.disabled=true -Xmx512m -Xms256m -Xbootclasspath/p:D:\software\TeamCityAgent\4206\buildAgent3\plugins\idea\lib\boot.jar -classpath D:\software\jdk5.0\lib\tools.jar;D:\software\TeamCityAgent\4206\buildAgent3\plugins\idea\lib\bootstrap.jar;D:\software\TeamCityAgent\4206\buildAgent3\plugins\idea\lib\extensions.jar;D:\software\TeamCityAgent\4206\buildAgent3\plugins\idea\lib\openapi.jar;D:\software\TeamCityAgent\4206\buildAgent3\plugins\idea\lib\jdom.jar;D:\software\TeamCityAgent\4206\buildAgent3\plugins\idea\lib\log4j.jar com.intellij.idea.Main inspect D:\software\TeamCityAgent\4206\buildAgent3\work\Server\umail-tx1.8\umail-tx.ipr D:\software\TeamCityAgent\4206\buildAgent3\work\Server\umail-tx1.8\Inspection-1.xml D:\software\TeamCityAgent\4206\buildAgent3\temp\teamcity.tmp\inspection29416result -v3
: Build finished

1 comment

Hello,

It seems you have JDK with "5.0" name configured in your IDEA project, but it is not recognized by TeamCity.

Can you please go to the settings of this Build Configuration in the Administration area and open Inspection runner settings? What JDK's do you have in the "Project JDKs" section? Please Save the configuration forcibly to make TeamCity parse the ipr file. Please ensure "JDK Home" are specified correctly for all of them.

--
Best regards,

Yegor Yarko
Quality Assurance Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0

Please sign in to leave a comment.