You must set the PATH variable to include C:\jdk1.3\jre\bin\hotspot Then compile cl -GX /GR -IC:\jdk1.3\include -IC:\jdk1.3\include\win32 InvokeHello.cpp C:\jdk1.3\lib\jvm.lib (Edit the batch file for your environment).