CLR Runtime version from CLR header - clr

when i use dumpbin \clrheader to one assembly,
i found following content-
Since i complied under .net4.5,How the CLR verion would be 2.05?
Dump of file SampleApp.exe
File Type: EXECUTABLE IMAGE
clr Header:
48 cb
2.05 runtime version
2080 [ 668] RVA [size] of MetaData Directory
20003 flags
IL Only
32-Bit Required
32-Bit Preferred
6000001 entry point token
0 [ 0] RVA [size] of Resources Directory
0 [ 0] RVA [size] of StrongNameSignature Directory
0 [ 0] RVA [size] of CodeManagerTable Directory
0 [ 0] RVA [size] of VTableFixups Directory
0 [ 0] RVA [size] of ExportAddressTableJumps Directory
0 [ 0] RVA [size] of ManagedNativeHeader Directory
Summary
2000 .reloc
2000 .rsrc
2000 .text

Because what's referred to as the "runtime version" by this tool is not actually the runtime version and has little to do with it. It's a misnomer. You cannot use dumpbin to print the actual runtime version. Instead, you can use ildasm which refers to the runtime version as the "metadata version." You can find the metadata version in the manifest of the assembly. For .NET 4.x, the runtime version is 4.0.30319.

Related

pkg_rules problems on Windows 10

I want to use rules_pkg
I have the following setup: Windows 10 x64 (Version 2004, Bazel 3.7.0, Visual Studio 16 2019, MSYS2 x86_64)
My minimal setup looks like this:
WORKSPACE.bazel
load("#bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
# rules_pkg
http_archive(
name = "rules_pkg",
sha256 = "6b5969a7acd7b60c02f816773b06fcf32fbe8ba0c7919ccdc2df4f8fb923804a",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.3.0/rules_pkg-0.3.0.tar.gz",
"https://github.com/bazelbuild/rules_pkg/releases/download/0.3.0/rules_pkg-0.3.0.tar.gz",
],
)
BUILD.bazel
load("#bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar")
cc_binary(
name = "HelloWorld",
srcs = ["main.cpp"],
)
pkg_tar(
name = "deploy_HelloWorld",
srcs = [
":HelloWorld",
],
extension = "tar.gz",
)
main.cpp
#include <iostream>
int main() {
std::cout << "Hello World!" << std::endl;
}
When I try to build i.e. bazel build //... I get:
PS G:\dev\BazelDemos\HelloWorld> bazel build //...
INFO: Analyzed 2 targets (20 packages loaded, 143 targets configured).
INFO: Found 2 targets...
ERROR: G:/dev/bazeldemos/helloworld/BUILD.bazel:8:8: PackageTar deploy_HelloWorld.tar.gz failed (Exit 9009): build_tar.exe failed: error executing command bazel-out/host/bin/external/bazel_tools/tools/build_defs/pkg/build_tar.exe --flagfile bazel-out/x64_windows-fastbuild/bin/deploy_HelloWorld.args
INFO: Elapsed time: 0.642s, Critical Path: 0.29s
INFO: 8 processes: 7 internal, 1 local.
FAILED: Build did NOT complete successfully
I can build without problems on two other Windows 10 machines with the same/similar setup. Any ideas?
More details to setup:
Path containes C:\msys64\usr\bin. BAZEL_SH is set to C:\msys64\usr\bin\bash.exe.
Python3 was not installed in not in my Path variable. Exit 9009 refers usually to an error triggered by a batch script that fails to call a specific command.

Unable to link C runtime library (libcmt.lib) using lld-link.exe (Windows)

I'm writing a language using LLVM. I'd like to avoid having to package clang and simply use the LLVM tools (ex. lld, lld-link). I've been trying to invoke the printf function from my simple IR code (testinput.ll):
; ModuleID = 'Test2'
source_filename = "entry"
#str_0 = private unnamed_addr constant [13 x i8] c"Hello world!\00"
declare i32 #printf(i8*, ...)
define i32 #main() {
entry:
%anonymous_10 = call i32 (i8*, ...) #printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* #str_0, i32 0, i32 0))
ret i32 1234
}
But I keep receiving errors no matter what I try:
$ clang-cl -fuse-ld=lld-link testinput.ll "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\lib\spectre\x64\libcmt.lib"
Note: I've chosen the link randomly "... spectre\x64\libcmt.lib ..." by simply searching for libcmt.lib on the system.
Error:
C:\Program Files\LLVM\bin\lld-link: warning: libcmt.lib(loadcfg.obj): undefined symbol: __enclave_config
error: link failed
clang-cl.exe: error: linker command failed with exit code 1 (use -v to see invocation)
I'm using Windows 10 (x64) with LLVM 5.0. Interestingly, using link.exe (Windows' VS tools' linker) everything works fine (which is what clang uses under the hood in my case).
I've read in this article:
... As I wrote earlier, __enclave_config is a variable that is filled in by the linker, but you have to use the VC linker, and a linker new enough to be able to automatically fill it in. ...
I believe the problem here is libcmt.lib and the lld-link linker. Is the lld-link version (LLVM 5.0) incompatible with the libcmt.lib that I'm using, is that the problem?
Edit: I've managed to track down what clang does behind the scenes, and have found it using the following command:
lld-link -out:a.exe -defaultlib:libcmt "-libpath:C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\lib\\x64" "-libpath:C:\\Program Files (x86)\\Windows Kits\\10\\Lib\\10.0.17763.0\\ucrt\\x64" "-libpath:C:\\Program Files (x86)\\Windows Kits\\10\\Lib\\10.0.17763.0\\um\\x64" -nologo "test.obj"
Clearly it's using lld-link, and it's working. However, strangely enough, it only compiles without errors if the input object file was compiled to .LL (LLVM IR) using clang (maybe using -fuse-ld=lld -v options?).
What's weird about this, is that upon inspection of the output .LL file from clang (test.ll) the full, source code (in IR) definitions of printf (and some other *printf functions used by it) is present (in the output .LL file).
So, somehow it's getting the definitions of printf itself inside the output .LL, IR code file.
As far as I know, you can't just $ llc libcmt.lib testinput.ll? That'd be the linker's job... (llc accepts only one positional argument)
The error that I'm getting once I try the same lld-link command and arguments with my testinput.ll file (not outputted from clang) is the following:
lld-link: error: <root>: undefined symbol: _mainCRTStartup
lld-link: error: undefined symbol: _printf
Turns out, it was much much more simple than I anticipated. Maybe if the errors were at least somewhat helpful, I could have avoided all this confusion...
I've figured it out by comparing clang's output LL file, and noticed a curious line at the beginning:
target triple = "x86_64-pc-windows-msvc"
Once I added it to my testinput.ll file, everything worked flawlessly with lld-link. Hurray!

Error 13 error C1083: Cannot open include file: 'cudnn.h': No such file or directory ...\caffe\util\cudnn.hpp 5 1 convert_imageset

When I compile caffe for windows (64bit, release, vs 2013, nvidia 750, opencv 3.1,cuDNN version 5.1), I got the following error
"Error 13 error C1083: Cannot open include file: 'cudnn.h': No such
file or directory ...\caffe\util\cudnn.hpp 5 1 convert_imageset".
I set everything like what mentioned in this video.
I search for this error in github issues link this and this
if I use version 4 of cuDNN and OpenCV 2.4I got:
========== Rebuild All: 15 succeeded, 1 failed, 0 skipped ==========
However, I got error:
Error 1 error MSB3073: The command
""...\caffe-master\windows\scripts\BinplaceCudaDependencies‌​.cmd"
"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.5\bin"
"...\cuda" false true "...\caffe-master\windows..\Build\x64\Release\"
:VCEnd" exited with code 1. C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.ta‌​rgets
132 5 libcaffe
Extract the cuDNN archive to a directory of your choice, referred to below as installpath. Then follow the platform-specific instructions as follows:
Add installpath to the PATH environment variable.
In your Visual Studio project properties, add installpath to the Include Directories and Library Directories lists and add cudnn.lib to Linker->Input->Additional Dependencies.

DNX Error when running webapplication, ideas?

i just installed a new empty ASP.NET 5 WebApplication and got this error when running the app via IISExpress. Any idea what the problem is?
Could not load file or assembly 'dnx.clr.managed' or one of its
dependencies. The system cannot find the file specified. Description:
An unhandled exception occurred during the execution of the current
web request. Please review the stack trace for more information about
the error and where it originated in the code. Exception Details:
System.IO.FileNotFoundException: Could not load file or assembly
'dnx.clr.managed' or one of its dependencies. The system cannot find
the file specified. Source Error: An unhandled exception was generated
during the execution of the current web request. Information regarding
the origin and location of the exception can be identified using the
exception stack trace below. Assembly Load Trace: The following
information can be helpful to determine why the assembly
'dnx.clr.managed' could not be loaded.
=== Pre-bind state information === LOG: DisplayName = dnx.clr.managed (Partial) WRN: Partial binding information was supplied for an
assembly: WRN: Assembly Name: dnx.clr.managed | Domain ID: 3 WRN: A
partial bind occurs when only part of the assembly display name is
provided. WRN: This might result in the binder loading an incorrect
assembly. WRN: It is recommended to provide a fully specified textual
identity for the assembly, WRN: that consists of the simple name,
version, culture, and public key token. WRN: See whitepaper
http://go.microsoft.com/fwlink/?LinkId=109270 for more information and
common solutions to this issue. LOG: Appbase =
file:///C:/Users/Admin/.dnx/runtimes/dnx-clr-win-x86.1.0.0-beta7/bin
LOG: Initial PrivatePath = NULL Calling assembly : (Unknown).
=== LOG: This bind starts in default load context. LOG: Configuration file C:\Program Files (x86)\IIS Express\iisexpress.exe.config does not
exist. LOG: No application configuration file found. LOG: Using host
configuration file:
C:\Users\Admin\Documents\IISExpress\config\aspnet.config LOG: Using
machine configuration file from
C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Policy not being applied to reference at this time (private,
custom, partial, or location-based assembly bind). LOG: Attempting
download of new URL
file:///C:/Users/Admin/.dnx/runtimes/dnx-clr-win-x86.1.0.0-beta7/bin/dnx.clr.managed.DLL.
LOG: Attempting download of new URL
file:///C:/Users/Admin/.dnx/runtimes/dnx-clr-win-x86.1.0.0-beta7/bin/dnx.clr.managed/dnx.clr.managed.DLL.
LOG: Attempting download of new URL
file:///C:/Users/Admin/.dnx/runtimes/dnx-clr-win-x86.1.0.0-beta7/bin/dnx.clr.managed.EXE.
LOG: Attempting download of new URL
file:///C:/Users/Admin/.dnx/runtimes/dnx-clr-win-x86.1.0.0-beta7/bin/dnx.clr.managed/dnx.clr.managed.EXE.
Here is my project.json
{
"webroot": "wwwroot",
"version": "1.0.0-*",
"dependencies": {
"Microsoft.AspNet.Server.IIS": "1.0.0-beta6",
"Microsoft.AspNet.Server.WebListener": "1.0.0-beta6"
},
"commands": {
"web": "Microsoft.AspNet.Hosting --config hosting.ini"
},
"frameworks": {
"dnx451": { },
"dnxcore50": { }
},
"publishExclude": [
"node_modules",
"bower_components",
"**.xproj",
"**.user",
"**.vspscc"
],
"exclude": [
"wwwroot",
"node_modules",
"bower_components"
]
}
Dnx versions installed
1.0.0-beta5 clr x64 C:\Users\Admin\.dnx\runtimes
1.0.0-beta5 clr x86 C:\Users\Admin\.dnx\runtimes
1.0.0-beta5 coreclr x64 C:\Users\Admin\.dnx\runtimes
1.0.0-beta5 coreclr x86 C:\Users\Admin\.dnx\runtimes
1.0.0-beta6 clr x64 C:\Users\Admin\.dnx\runtimes
1.0.0-beta6 clr x86 C:\Users\Admin\.dnx\runtimes
1.0.0-beta6 coreclr x64 C:\Users\Admin\.dnx\runtimes
1.0.0-beta6 coreclr x86 C:\Users\Admin\.dnx\runtimes
* 1.0.0-beta7 clr x86 C:\Users\Admin\.dnx\runtimes
1.0.0-rc1-update1 clr x86 C:\Users\Admin\.dnx\runtimes
1.0.0-rc1-update1 coreclr x86 C:\Users\Admin\.dnx\runtimes
1.0.0-rc2-16249 clr x86 C:\Users\Admin\.dnx\runtimes
You declare dependencies on beta6 but use dnx beta7, you should update your dependencies to last stable release 1.0.0-rc1-update1 and use it.
Set also the alias default on 1.0.0-rc1-update1:
dnvm commands
dnvm alias default 1.0.0-rc1-update1 -a x86 -r clr
dnvm use default
Microsoft.AspNet.Server.IIS doesn't exist for rc1, replace it by Microsoft.AspNet.IISPlatformHandler
project.json
"dependencies": {
"Microsoft.AspNet.IISPlatformHandler": "1.0.0-rc1-final",
"Microsoft.AspNet.Server.WebListener": "1.0.0-rc1-final"
},
You might also uninstall old beta versions and update dnvm to the latest stable version.

java.lang.NoClassDefFoundError while running ant target

I have a ant build file that has a java compile target.
The same eclipse distribution works fine and runs other ant build files successfully.
In this particular workspace though; when I run the ant target it fails with the following errors:
[javac] C:\MyProject\scripts\build.xml:119: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 1 source file to C:\MyProject\build
[javac] Compiling 9 source files to C:\MyProject\build
[javac] java.lang.NoClassDefFoundError: com/sun/tools/javac/Main
[javac] Exception in thread "main" Could not find the main class: com.sun.tools.javac.Main. Program will exit.
BUILD FAILED
I have also tried running the build file from command prompt and see the same issue.
Does this point to any obvious problem.
The eclipse has ant path set and I have checked it points to right locations with in eclipse.
I have also verified that the tools.jar is also included in the project path.
System Info:
System info:
Windows 7 Enterprise edition, 64 bit
JDK 1.6b35
ANT 1.8.3
Any advice would help.
============================================================================
As per request by #MickJ I am also adding the output when running the build target with diagnostics option (I added -diagnostics to the any build run configuration in eclipse)
------- Ant diagnostics report -------
Apache Ant(TM) version 1.8.2 compiled on December 20 2010
-------------------------------------------
Implementation Version
-------------------------------------------
core tasks : 1.8.2 in file:/C:/ToolBox/apps/dumps/Eclipse3.7/plugins/org.apache.ant_1.8.2.v20120109-1030/lib/ant.jar
-------------------------------------------
ANT PROPERTIES
-------------------------------------------
ant.version: Apache Ant(TM) version 1.8.2 compiled on December 20 2010
ant.java.version: 1.6
Is this the Apache Harmony VM? no
Is this the Kaffe VM? no
Is this gij/gcj? no
ant.core.lib: C:\ToolBox\apps\dumps\Eclipse3.7\plugins\org.apache.ant_1.8.2.v20120109-1030\lib\ant.jar
ant.home: C:\ToolBox\apps\dumps\Eclipse3.7\plugins\org.apache.ant_1.8.2.v20120109-1030
-------------------------------------------
ANT_HOME/lib jar listing
-------------------------------------------
ant.home: C:\ToolBox\apps\dumps\Eclipse3.7\plugins\org.apache.ant_1.8.2.v20120109-1030
ant-antlr.jar (5989 bytes)
ant-apache-bcel.jar (9097 bytes)
ant-apache-bsf.jar (4249 bytes)
ant-apache-log4j.jar (3361 bytes)
ant-apache-oro.jar (40276 bytes)
ant-apache-regexp.jar (4106 bytes)
ant-apache-resolver.jar (4418 bytes)
ant-apache-xalan2.jar (2633 bytes)
ant-commons-logging.jar (4207 bytes)
ant-commons-net.jar (85302 bytes)
ant-jai.jar (22684 bytes)
ant-javamail.jar (8167 bytes)
ant-jdepend.jar (8477 bytes)
ant-jmf.jar (7093 bytes)
ant-jsch.jar (40320 bytes)
ant-junit.jar (101811 bytes)
ant-junit4.jar (7517 bytes)
ant-launcher.jar (12567 bytes)
ant-netrexx.jar (10656 bytes)
ant-swing.jar (7847 bytes)
ant-testutil.jar (15576 bytes)
ant.jar (1927228 bytes)
-------------------------------------------
USER_HOME/.ant/lib jar listing
-------------------------------------------
user.home: C:\Users\oo018c
No such directory.
-------------------------------------------
Tasks availability
-------------------------------------------
image : Missing dependency javax.media.jai.PlanarImage
sshexec : Missing dependency com.jcraft.jsch.Logger
wlrun : Not Available (the implementation class is not present)
scp : Missing dependency com.jcraft.jsch.Logger
stlist : Not Available (the implementation class is not present)
sshsession : Missing dependency com.jcraft.jsch.Logger
starteam : Not Available (the implementation class is not present)
stlabel : Not Available (the implementation class is not present)
jdepend : Missing dependency jdepend.xmlui.JDepend
stcheckin : Not Available (the implementation class is not present)
stcheckout : Not Available (the implementation class is not present)
ejbc : Not Available (the implementation class is not present)
wlstop : Not Available (the implementation class is not present)
ddcreator : Not Available (the implementation class is not present)
A task being missing/unavailable should only matter if you are trying to use it
-------------------------------------------
org.apache.env.Which diagnostics
-------------------------------------------
Not available.
Download it at http://xml.apache.org/commons/
-------------------------------------------
XML Parser information
-------------------------------------------
XML Parser : com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl
XML Parser Location: unknown
Namespace-aware parser : com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser
Namespace-aware parser Location: unknown
-------------------------------------------
XSLT Processor information
-------------------------------------------
XSLT Processor : com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl
XSLT Processor Location: unknown
-------------------------------------------
System properties
-------------------------------------------
java.runtime.name : Java(TM) SE Runtime Environment
sun.boot.library.path : C:\Program Files\Java\jdk1.6.0_37\jre\bin
java.vm.version : 20.12-b01
ant.library.dir : C:\ToolBox\apps\dumps\Eclipse3.7\plugins\org.apache.ant_1.8.2.v20120109-1030\lib
java.vm.vendor : Sun Microsystems Inc.
java.vendor.url : http://java.sun.com/
path.separator : ;
java.vm.name : Java HotSpot(TM) 64-Bit Server VM
file.encoding.pkg : sun.io
user.country : US
sun.java.launcher : SUN_STANDARD
sun.os.patch.level : Service Pack 1
java.vm.specification.name : Java Virtual Machine Specification
user.dir : C:\ToolBox\work\ClearCase\oo018c_toolbox_test_data\vobs\toolbox_test_data\Projects\TestFixtures\scripts
java.runtime.version : 1.6.0_37-b06
java.awt.graphicsenv : sun.awt.Win32GraphicsEnvironment
java.endorsed.dirs : C:\Program Files\Java\jdk1.6.0_37\jre\lib\endorsed
os.arch : amd64
java.io.tmpdir : C:\Users\oo018c\AppData\Local\Temp\
line.separator :
java.vm.specification.vendor : Sun Microsystems Inc.
user.variant :
os.name : Windows 7
ant.home : C:\ToolBox\apps\dumps\Eclipse3.7\plugins\org.apache.ant_1.8.2.v20120109-1030
sun.jnu.encoding : Cp1252
java.library.path : C:\Windows\system32;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\oracle\11gR2client64bit\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Gemalto\Classic Client\BIN;C:\Program Files (x86)\Gemalto\Classic Client\BIN;C:\Program Files (x86)\Common Files\ACD Systems\EN;C:\Program Files (x86)\Common Files\ACD Systems;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\Adobe\Adobe PDF iFilter 9 for 64-bit platforms\bin\;C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin;C:\Program Files (x86)\IBM\RationalSDLC\common;C:\oracle\11gR2client32bit\bin\;C:\Program Files\Java\jdk1.6.0_37\bin;C:\Program Files (x86)\Git\cmd;C:\Program Files (x86)\Git\bin;C:\ToolBox\apps\dumps\mongodb-2.0.4\bin;C:\ToolBox\apps\dumps\scala-2.9.2\bin;C:\ToolBox\apps\dumps\Ant1.8.3\bin;C:\ToolBox\apps\dumps\apache-maven-3.0.4\bin;C:\ToolBox\apps\dumps\ccrccli_8.0.0.2;C:\ToolBox\apps\dumps\apache-tomcat-6.0.20\bin;C:\ToolBox\apps\dumps\Eclipse-TPTP-AgentControllerWinEM64T-4.7.2\plugins\org.eclipse.tptp.javaprofiler;C:\ToolBox\apps\dumps\Eclipse-TPTP-AgentControllerWinEM64T-4.7.2\bin;c:\cygwin\bin;c:\cygwin\usr\bin;.;C:\ToolBox\apps\dumps\Eclipse3.7\configuration\org.eclipse.osgi\bundles\778\1\.cp
java.specification.name : Java Platform API Specification
java.class.version : 50.0
sun.management.compiler : HotSpot 64-Bit Tiered Compilers
os.version : 6.1
user.home : C:\Users\oo018c
user.timezone : America/Los_Angeles
java.awt.printerjob : sun.awt.windows.WPrinterJob
file.encoding : UTF-8
java.specification.version : 1.6
user.name : oo018c
java.class.path : C:\ToolBox\apps\dumps\Eclipse3.7\plugins\org.apache.ant_1.8.2.v20120109-1030\lib\ant-antlr.jar;C:\ToolBox\apps\dumps\Eclipse3.7\plugins\org.apache.ant_1.8.2.v20120109-1030\lib\ant-apache-bcel.jar;C:\ToolBox\apps\dumps\Eclipse3.7\plugins\org.apache.ant_1.8.2.v20120109-1030\lib\ant-apache-bsf.jar;C:\ToolBox\apps\dumps\Eclipse3.7\plugins\org.apache.ant_1.8.2.v20120109-1030\lib\ant-apache-log4j.jar;C:\ToolBox\apps\dumps\Eclipse3.7\plugins\org.apache.ant_1.8.2.v20120109-1030\lib\ant-apache-oro.jar;C:\ToolBox\apps\dumps\Eclipse3.7\plugins\org.apache.ant_1.8.2.v20120109-1030\lib\ant-apache-regexp.jar;C:\ToolBox\apps\dumps\Eclipse3.7\plugins\org.apache.ant_1.8.2.v20120109-1030\lib\ant-apache-resolver.jar;C:\ToolBox\apps\dumps\Eclipse3.7\plugins\org.apache.ant_1.8.2.v20120109-1030\lib\ant-apache-xalan2.jar;C:\ToolBox\apps\dumps\Eclipse3.7\plugins\org.apache.ant_1.8.2.v20120109-1030\lib\ant-commons-logging.jar;C:\ToolBox\apps\dumps\Eclipse3.7\plugins\org.apache.ant_1.8.2.v20120109-1030\lib\ant-commons-net.jar;C:\ToolBox\apps\dumps\Eclipse3.7\plugins\org.apache.ant_1.8.2.v20120109-1030\lib\ant-jai.jar;C:\ToolBox\apps\dumps\Eclipse3.7\plugins\org.apache.ant_1.8.2.v20120109-1030\lib\ant-javamail.jar;C:\ToolBox\apps\dumps\Eclipse3.7\plugins\org.apache.ant_1.8.2.v20120109-1030\lib\ant-jdepend.jar;C:\ToolBox\apps\dumps\Eclipse3.7\plugins\org.apache.ant_1.8.2.v20120109-1030\lib\ant-jmf.jar;C:\ToolBox\apps\dumps\Eclipse3.7\plugins\org.apache.ant_1.8.2.v20120109-1030\lib\ant-jsch.jar;C:\ToolBox\apps\dumps\Eclipse3.7\plugins\org.apache.ant_1.8.2.v20120109-1030\lib\ant-junit.jar;C:\ToolBox\apps\dumps\Eclipse3.7\plugins\org.apache.ant_1.8.2.v20120109-1030\lib\ant-junit4.jar;C:\ToolBox\apps\dumps\Eclipse3.7\plugins\org.apache.ant_1.8.2.v20120109-1030\lib\ant-launcher.jar;C:\ToolBox\apps\dumps\Eclipse3.7\plugins\org.apache.ant_1.8.2.v20120109-1030\lib\ant-netrexx.jar;C:\ToolBox\apps\dumps\Eclipse3.7\plugins\org.apache.ant_1.8.2.v20120109-1030\lib\ant-swing.jar;C:\ToolBox\apps\dumps\Eclipse3.7\plugins\org.apache.ant_1.8.2.v20120109-1030\lib\ant-testutil.jar;C:\ToolBox\apps\dumps\Eclipse3.7\plugins\org.apache.ant_1.8.2.v20120109-1030\lib\ant.jar;C:\ToolBox\apps\dumps\Eclipse3.7\configuration\org.eclipse.osgi\bundles\182\1\.cp\lib\antdebug.jar;C:\ToolBox\apps\dumps\Eclipse3.7\configuration\org.eclipse.osgi\bundles\182\1\.cp\lib\remote.jar;C:\ToolBox\apps\dumps\Eclipse3.7\configuration\org.eclipse.osgi\bundles\183\1\.cp\lib\remoteAnt.jar;C:\Program Files\Java\jdk1.6.0_37\lib\tools.jar;C:\ToolBox\apps\dumps\Eclipse3.7\plugins\org.eclipse.swt.win32.win32.x86_64_3.7.2.v3740f.jar
java.vm.specification.version : 1.0
sun.arch.data.model : 64
java.home : C:\Program Files\Java\jdk1.6.0_37\jre
sun.java.command : org.eclipse.ant.internal.launching.remote.InternalAntRunner -diagnostics -Dorg.eclipse.ant.core.ANT_PROCESS_ID=1364337380010 -Declipse.connect.port=51250 -Declipse.pdebuild.home=/C:/ToolBox/apps/dumps/Eclipse3.7/plugins/org.eclipse.pde.build_3.7.0.v20111116-2009/./ -Declipse.pdebuild.scripts=/C:/ToolBox/apps/dumps/Eclipse3.7/plugins/org.eclipse.pde.build_3.7.0.v20111116-2009/scripts/ -Declipse.pdebuild.templates=/C:/ToolBox/apps/dumps/Eclipse3.7/plugins/org.eclipse.pde.build_3.7.0.v20111116-2009/templates/ -Dant.home=C:\ToolBox\apps\dumps\Eclipse3.7\plugins\org.apache.ant_1.8.2.v20120109-1030 -logger org.eclipse.ant.internal.launching.remote.logger.RemoteAntBuildLogger -inputhandler org.eclipse.ant.internal.ui.antsupport.inputhandler.ProxyInputHandler -buildfile C:\ToolBox\work\ClearCase\oo018c_toolbox_test_data\vobs\toolbox_test_data\Projects\TestFixtures\scripts\build.xml CC.compile
java.specification.vendor : Sun Microsystems Inc.
user.language : en
awt.toolkit : sun.awt.windows.WToolkit
java.vm.info : mixed mode
java.version : 1.6.0_37
java.ext.dirs : C:\Program Files\Java\jdk1.6.0_37\jre\lib\ext;C:\Windows\Sun\Java\lib\ext
sun.boot.class.path : C:\Program Files\Java\jdk1.6.0_37\jre\lib\resources.jar;C:\Program Files\Java\jdk1.6.0_37\jre\lib\rt.jar;C:\Program Files\Java\jdk1.6.0_37\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.6.0_37\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.6.0_37\jre\lib\jce.jar;C:\Program Files\Java\jdk1.6.0_37\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.6.0_37\jre\lib\modules\jdk.boot.jar;C:\Program Files\Java\jdk1.6.0_37\jre\classes
java.vendor : Sun Microsystems Inc.
file.separator : \
java.vendor.url.bug : http://java.sun.com/cgi-bin/bugreport.cgi
sun.cpu.endian : little
sun.io.unicode.encoding : UnicodeLittle
sun.desktop : windows
sun.cpu.isalist : amd64
-------------------------------------------
Temp dir
-------------------------------------------
Temp dir is C:\Users\oo018c\AppData\Local\Temp\
Temp dir is writeable
Temp dir alignment with system clock is 33 ms
-------------------------------------------
Locale information
-------------------------------------------
Timezone Pacific Standard Time offset=-25200000
-------------------------------------------
Proxy information
-------------------------------------------
Java1.5+ proxy settings:
Direct connection
Total time: 1 second
Can you try adding your J2SE - jdk/bin directory path to system 'path' variable. Go to 'my computer' -> right click -> properties -> advanced -> environment variables -> system variables -> path and append a semicolon followed by your jdk bin path. Or else make sure ant.bat is setting the correct java home to a jdk.
Can you double check to make sure your 'JAVA_HOME' is set to "C:\Program Files\Java\jdk1.6.0_37".
Go to 'my computer' -> right click -> properties -> advanced -> environment variables -> system variables -> (If JAVA_HOME is not already there then 'new' else pick JAVA_HOME) and set the value to 'C:\Program Files\Java\jdk1.6.0_37'(no quotes).
Now close and start a fresh console and try running your ant script.
Alternatively you could just fire the following in the console before starting your ant script:
set JAVA_HOME=C:\Progra~1\Java\jdk1.6.0_37

Resources