Java and Ant with Visual Studio Compiler
Posted by Administrator in ich über die welt, it technologies, me live, misc, office, tags: c++/VS, flash, java/eclipseAlthough JAVA_HOME is pointing to the JDK, the problem with the ant task javac is that the javac command in tools.jar in %JDK%/lib is not found. Either copy tools.jar or do some registry change.
http://forums.sun.com/thread.jspa?threadID=556816
CPP Compiletask in Ant involves following settings (XML Code):
Visual Studio Environment Variables
Problems involving environment variables with the command line Visual Studio Compiler cl.exe can be found here. These must be set:
vs2005 c:\program files\microsoft visual studio 8\
psdk c:\program files\microsoft platform sdk\
First, go to vs2005 install path c:\program files\microsoft visual studio 8\vc, run vcvarsall.bat to set environment variable; then c:\program files\microsoft platform sdk\, run setenv command: eg: setenv /SRV32 /DEBUG. I use it to make the program work properly.
Using C:\Programme\Microsoft Visual Studio 8\VC\vcvarsall.bat adds the following to the PATH Var
c:\Programme\Microsoft Visual Studio 8\Common7\IDE
c:\Programme\Microsoft Visual Studio 8\VC\BIN
c:\Programme\Microsoft Visual Studio 8\Common7\Tools
c:\Programme\Microsoft Visual Studio 8\Common7\Tools\bin
c:\Programme\Microsoft Visual Studio 8\VC\PlatformSDK\bin
c:\Programme\Microsoft Visual Studio 8\SDK\v2.0\bin
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
c:\Programme\Microsoft Visual Studio 8\VC\VCPackages
Entries (RSS)
dasd