Archived

This forum has been archived. Please start a new discussion on GitHub.

chatDemo1.2.0 Compile Error

Dear Sir,

I have downloaded and unzip chatDemo1.2.0.zip to C:\icedev\ChatDemo-1.2.0 , installed additional C:\apache-ant-1.7.1, C:\Program Files\Java\ jdk1.6.0_16 , C:\Ice-3.3.1-ThirdParty-VC90 ...

then I set XP sp3 system environment variable like this ,
JAVA_HOME = C:\Program Files\Java\jdk1.6.0_16
PATH = C:\apache-ant-1.7.1\bin;%JAVA_HOME%\BIN


modify C:\icedev\ChatDemo-1.2.0\config\build.properties
#jgoodies.forms = /usr/share/java/forms-1.2.0.jar
#jgoodies.looks = /usr/share/java/looks-2.1.4.jar

jgoodies.forms = C:/Ice-3.3.1-ThirdParty-VC90/lib/forms-1.2.0.jar
jgoodies.looks = C:/Ice-3.3.1-ThirdParty-VC90/lib/looks-2.1.4.jar



then I opened Visual Studio 2005 Command Prompt,ty to do this
nmake /f Makefile.mak but failed,what is wrong,
Please give some advice,thanks a lot.
C:\icedev\ChatDemo-1.2.0> java -version
java version "1.6.0_16"
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode, sharing)

C:\icedev\ChatDemo-1.2.0> java -version
java version "1.6.0_16"
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode, sharing)

C:\icedev\ChatDemo-1.2.0>nmake /f Makefile.mak

Microsoft (R) Program Maintenance Utility Version 8.00.50727.762
Copyright (C) Microsoft Corporation.  All rights reserved.

"making all in server"
"making all in client"
"making all in cpp"
"making all in java"
        call ant -Dice.home=C:\Ice-3.3.1-VC90 -emacs
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre6\li
b\tools.jar
Buildfile: build.xml

config-init-warn:

config-init:

task-init:

init:

generate:
skipping Chat.ice
skipping Chat.ice
skipping ChatSession.ice

compile:
Compiling 39 source files to C:\icedev\ChatDemo-1.2.0\client\java\classes

BUILD FAILED
C:\icedev\ChatDemo-1.2.0\client\java\build.xml:42: Unable to find a javac compil
er;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
[COLOR="Red"]It is currently set to "C:\Program Files\Java\jre6"[/COLOR]

Total time: 0 seconds
NMAKE : fatal error U1077: 'call' : return code '0x1'
Stop.
NMAKE : fatal error U1077: 'for' : return code '0x1'
Stop.
NMAKE : fatal error U1077: 'for' : return code '0x1'
Stop.

Comments

  • bernard
    bernard Jupiter, FL
    Hi Stanley,

    Try to change JAVA_HOME to point to your JDK home directory. You may need to install the JDK on your machine first. Try 'javac' to see if it's installed and in your PATH.

    Best regards,
    Bernard
  • Dear Bernard,
    I checked JDK again.
    After I add environment user variables CLASSPATH=%JAVA_HOME%\lib,
    ChatDemoGUI.sln appear to develop with VS2010,
    So I install en_visual_studio_2010_professional_edition_beta_1_x86_dvd.
    Another error occurs like this ....
    Setting environment for using Microsoft Visual Studio 2005 x86 tools.
    
    C:\Program Files\Microsoft Visual Studio 8\VC>cd C:\icedev\ChatDemo-1.2.0
    
    C:\icedev\ChatDemo-1.2.0>nmake /f Makefile.mak
    
    Microsoft (R) Program Maintenance Utility Version 8.00.50727.762
    Copyright (C) Microsoft Corporation.  All rights reserved.
    
    "making all in server"
    "making all in client"
    "making all in cpp"
    "making all in java"
            call ant -Dice.home=C:\Ice-3.3.1-VC90 -emacs
    Buildfile: build.xml
    
    config-init-warn:
    
    config-init:
    
    task-init:
    
    init:
    
    generate:
    skipping Chat.ice
    skipping Chat.ice
    skipping ChatSession.ice
    
    compile:
    
    plain-jar:
    Deleting: C:\icedev\ChatDemo-1.2.0\lib\chatdemogui.mf
    
    pro-jar:
    
    all:
    
    BUILD SUCCESSFUL
    Total time: 7 seconds
    "making all in php"
    "making all in cs"
            cmd /c MSBuild ChatDemoGUI.sln /p:ICE_HOME=C:\Ice-3.3.1-VC90 /p:Configur
    ation=Debug /p:Platform="Any CPU"
    Microsoft (R) Build Engine Version 2.0.50727.3053
    [Microsoft .NET Framework, Version 2.0.50727.3082]
    Copyright (C) Microsoft Corporation 2005. All rights reserved.
    
    [COLOR="Red"]ChatDemoGUI.sln(1): Solution file error MSB5014: File format version is not reco
    gnized.  MSBuild can only read solution files between versions 7.0 and 9.0, incl
    usive.[/COLOR]
    
    
    NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.EXE' : return code '0x1'
    Stop.
    NMAKE : fatal error U1077: 'for' : return code '0x1'
    Stop.
    NMAKE : fatal error U1077: 'for' : return code '0x1'
    Stop.
    
    C:\icedev\ChatDemo-1.2.0>
    


    Best wishes,
    Min-hao Lee
    Industrial Technology Research Institute
  • xdm
    xdm La Coruña, Spain
    Hi Stanley,

    You should use Visual Studio 2008 to build ChatDemo-1.2.0, this is the only compiler we support on windows to build the demo, and this was the only we tested on windows.

    Bests,
    José
  • Dear José,

    Your comments are correct,it's a VS2008 solution.
    So I have tried compiler ChatDemoGUI.sln in VS2008.
    Rebuild All started: Project: ChatDemoGUI, Configuration: Debug Any CPU
    Compile complete -- 0 errors, 1 warnings
    ChatDemoGUI -> C:\icedev\ChatDemo-1.2.0\bin\ChatDemoGUI.exe
    ========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========


    Still encountered the same error message,
    Please help give suggestions, do some people come across the same problem?
    C:\icedev\ChatDemo-1.2.0>nmake /f makefile.mak
    
    Microsoft (R) Program Maintenance Utility Version 8.00.50727.762
    Copyright (C) Microsoft Corporation.  All rights reserved.
    
    "making all in server"
            del /q Chat.h Chat.cpp
    找不到 C:\icedev\ChatDemo-1.2.0\server\Chat.h
            "C:\Ice-3.3.1-VC90\bin\slice2cpp.exe" -I..\slice -I"C:\Ice-3.3.1-VC90\sl
    ice" ..\slice\Chat.ice
            del /q ChatSession.h ChatSession.cpp
    找不到 C:\icedev\ChatDemo-1.2.0\server\ChatSession.h
            "C:\Ice-3.3.1-VC90\bin\slice2cpp.exe" -I..\slice -I"C:\Ice-3.3.1-VC90\sl
    ice" ..\slice\ChatSession.ice
            del /q PollingChat.h PollingChat.cpp
    找不到 C:\icedev\ChatDemo-1.2.0\server\PollingChat.h
            "C:\Ice-3.3.1-VC90\bin\slice2cpp.exe" -I..\slice -I"C:\Ice-3.3.1-VC90\sl
    ice" ..\slice\PollingChat.ice
            cl.exe /c -I. -I"C:\Ice-3.3.1-VC90\include"  -nologo -W3 -WX -GR -EHsc -
    FD -D_CONSOLE -Zi -Gm -Od -D_DEBUG -MDd -RTC1 -DWIN32_LEAN_AND_MEAN  Chat.cpp Ch
    atSession.cpp PollingChat.cpp ChatUtils.cpp ChatSessionI.cpp ChatSessionManagerI
    .cpp PollingChatSessionI.cpp PollingChatSessionFactoryI.cpp ChatRoom.cpp ChatSer
    ver.cpp
    ChatServer.cpp
    ChatRoom.cpp
    PollingChatSessionFactoryI.cpp
    PollingChatSessionI.cpp
    ChatSessionManagerI.cpp
    ChatSessionI.cpp
    ChatUtils.cpp
    PollingChat.cpp
    ChatSession.cpp
    Chat.cpp
    Generating Code...
            link.exe /LIBPATH:"C:\Ice-3.3.1-VC90\lib"  /nologo /FIXED:no /debug /inc
    remental:yes /pdb:..\bin\chatserver.pdb  Chat.obj  ChatSession.obj  PollingChat.
    obj  ChatUtils.obj  ChatSessionI.obj  ChatSessionManagerI.obj  PollingChatSessio
    nI.obj  PollingChatSessionFactoryI.obj  ChatRoom.obj  ChatServer.obj /out:..\bin
    \chatserver.exe glacier2d.lib iced.lib iceutild.lib
       Embedding manifest using mt.exe
    "making all in client"
    "making all in cpp"
            del /q Chat.h Chat.cpp
    找不到 C:\icedev\ChatDemo-1.2.0\client\cpp\Chat.h
            "C:\Ice-3.3.1-VC90\bin\slice2cpp.exe" -I..\..\slice -I"C:\Ice-3.3.1-VC90
    \slice" ..\..\slice\Chat.ice
            del /q ChatSession.h ChatSession.cpp
    找不到 C:\icedev\ChatDemo-1.2.0\client\cpp\ChatSession.h
            "C:\Ice-3.3.1-VC90\bin\slice2cpp.exe" -I..\..\slice -I"C:\Ice-3.3.1-VC90
    \slice" ..\..\slice\ChatSession.ice
            del /q PollingChat.h PollingChat.cpp
    找不到 C:\icedev\ChatDemo-1.2.0\client\cpp\PollingChat.h
            "C:\Ice-3.3.1-VC90\bin\slice2cpp.exe" -I..\..\slice -I"C:\Ice-3.3.1-VC90
    \slice" ..\..\slice\PollingChat.ice
            cl.exe /c -I. -I"C:\Ice-3.3.1-VC90\include"  -nologo -W3 -WX -GR -EHsc -
    FD -D_CONSOLE -Zi -Gm -Od -D_DEBUG -MDd -RTC1 -DWIN32_LEAN_AND_MEAN  Chat.cpp Ch
    atUtils.cpp ChatSession.cpp Client.cpp
    Client.cpp
    ChatSession.cpp
    ChatUtils.cpp
    Chat.cpp
    Generating Code...
            link.exe /LIBPATH:"C:\Ice-3.3.1-VC90\lib"  /nologo /FIXED:no /debug /inc
    remental:yes /pdb:..\..\bin\chatgl2client.pdb  Chat.obj  ChatUtils.obj  ChatSess
    ion.obj  Client.obj /out:..\..\bin\chatgl2client.exe glacier2d.lib iced.lib iceu
    tild.lib
       Embedding manifest using mt.exe
            cl.exe /c -I. -I"C:\Ice-3.3.1-VC90\include"  -nologo -W3 -WX -GR -EHsc -
    FD -D_CONSOLE -Zi -Gm -Od -D_DEBUG -MDd -RTC1 -DWIN32_LEAN_AND_MEAN  PollingChat
    .cpp PollingClient.cpp
    PollingClient.cpp
    PollingChat.cpp
    Generating Code...
            link.exe /LIBPATH:"C:\Ice-3.3.1-VC90\lib"  /nologo /FIXED:no /debug /inc
    remental:yes /pdb:..\..\bin\chatpollclient.pdb  Chat.obj  PollingChat.obj  ChatU
    tils.obj  PollingClient.obj /out:..\..\bin\chatpollclient.exe iced.lib iceutild.
    lib
       Embedding manifest using mt.exe
    "making all in java"
            call ant -Dice.home=C:\Ice-3.3.1-VC90 -emacs
    Buildfile: build.xml
    
    config-init-warn:
    
    config-init:
    
    task-init:
    
    init:
    
    generate:
    Created dir: C:\icedev\ChatDemo-1.2.0\client\java\generated
    C:\Ice-3.3.1-VC90\bin\slice2java  --output-dir C:\icedev\ChatDemo-1.2.0\client\j
    ava\generated -IC:\icedev\ChatDemo-1.2.0\slice -IC:\Ice-3.3.1-VC90\slice C:\iced
    ev\ChatDemo-1.2.0\slice\Chat.ice C:\icedev\ChatDemo-1.2.0\slice\ChatSession.ice
    
    compile:
    Created dir: C:\icedev\ChatDemo-1.2.0\client\java\classes
    Compiling 39 source files to C:\icedev\ChatDemo-1.2.0\client\java\classes
    Note: C:\icedev\ChatDemo-1.2.0\client\java\src\ChatDemoGUI\Coordinator.java uses
     or overrides a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    
    plain-jar:
    Building jar: C:\icedev\ChatDemo-1.2.0\lib\ChatDemoGUI.jar
    Updating jar: C:\icedev\ChatDemo-1.2.0\lib\ChatDemoGUI.jar
    Updating jar: C:\icedev\ChatDemo-1.2.0\lib\ChatDemoGUI.jar
    Deleting: C:\icedev\ChatDemo-1.2.0\lib\chatdemogui.mf
    
    pro-jar:
    
    all:
    
    BUILD SUCCESSFUL
    Total time: 4 seconds
    "making all in php"
    "making all in cs"
            cmd /c MSBuild ChatDemoGUI.sln /p:ICE_HOME=C:\Ice-3.3.1-VC90 /p:Configur
    ation=Debug /p:Platform="Any CPU"
    Microsoft (R) Build Engine Version 2.0.50727.3053
    [Microsoft .NET Framework, Version 2.0.50727.3082]
    Copyright (C) Microsoft Corporation 2005. All rights reserved.
    
    [COLOR="Red"]ChatDemoGUI.sln(1): Solution file error MSB5014: File format version is not reco
    gnized.  MSBuild can only read solution files between versions 7.0 and 9.0, incl
    usive.[/COLOR]
    NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.EXE' : return code '0x1'
    Stop.
    NMAKE : fatal error U1077: 'for' : return code '0x1'
    Stop.
    NMAKE : fatal error U1077: 'for' : return code '0x1'
    Stop.
    
    C:\icedev\ChatDemo-1.2.0>
    
  • benoit
    benoit Rennes, France
    Hi,

    From this error, it looks like you're still using msbuild from Visual Studio 2005 instead of Visual Studio 2008, here's the version of msbuild you should see with Visual Studio 2008:
    C:\>msbuild
    Microsoft (R) Build Engine Version 3.5.30729.1
    [Microsoft .NET Framework, Version 2.0.50727.3082]
    Copyright (C) Microsoft Corporation 2007. All rights reserved.
    

    The easiest way to ensure that msbuild from VS2008 is in your PATH is to start a Visual Studio 2008 command prompt, in the Start menu: All Programs -> Microsoft Visual Studio 2008 -> Visual Studio Tools -> Visual Studio 2008 Command Prompt.

    Cheers,
    Benoit.
  • Hi Benoit,
    I changed using a Visual Studio 2008 command prompt.
    I also installed the following components,
    VS2008 SP1
    MSSQL2008std
    Visual Web Developer 2008 SP1
    Silverlight3_Tools

    And then compiled with another error,
              Considered "C:\Program Files\Microsoft SQL Server\100\SDK\Assemblies\
      System.Web.Silverlight.exe", but it didn't exist.
              Considered "C:\Program Files\Microsoft SQL Server\100\SDK\Assemblies\
      System.Web.Silverlight.dll", but it didn't exist.
              For SearchPath "{GAC}".
              Considered "System.Web.Silverlight, Version=2.0.5.0, Culture=neutral,
       PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL", which was not
      found in the GAC.
              For SearchPath "{RawFileName}".
              Considered treating "System.Web.Silverlight, Version=2.0.5.0, Culture
      =neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" as a f
      ile name, but it didn't exist.
              For SearchPath "bin\".
              Considered "bin\System.Web.Silverlight.exe", but it didn't exist.
              Considered "bin\System.Web.Silverlight.dll", but it didn't exist.
    CoreCompile:
    Skipping target "CoreCompile" because all output files are up-to-date with resp
    ect to the input files.
    CopyFilesToOutputDirectory:
      ChatDemoWeb -> C:\icedev\ChatDemo-1.2.0\client\sl\bridge\ChatDemoWeb\bin\Chat
      DemoWeb.dll
    C:\icedev\ChatDemo-1.2.0\client\sl\bridge\ChatDemo\ChatDemo.csproj(89,11): erro
    r MSB4019: The imported project "C:\Program Files\MSBuild\Microsoft\Silverlight
    \v2.0\Microsoft.Silverlight.CSharp.targets" was not found. Confirm that the pat
    h in the <Import> declaration is correct, and that the file exists on disk.
    Done Building Project "C:\icedev\ChatDemo-1.2.0\client\sl\bridge\ChatDemoWeb\Ch
    atDemoWeb.csproj" (default targets) -- FAILED.
    
    C:\icedev\ChatDemo-1.2.0\client\sl\bridge\ChatDemo\ChatDemo.csproj(89,11): erro
    r MSB4019: The imported project "C:\Program Files\MSBuild\Microsoft\Silverlight
    \v2.0\Microsoft.Silverlight.CSharp.targets" was not found. Confirm that the pat
    h in the <Import> declaration is correct, and that the file exists on disk.
    Done Building Project "C:\icedev\ChatDemo-1.2.0\client\sl\bridge\ChatDemo.sln"
    (default targets) -- FAILED.
    
    
    Build FAILED.
    
    "C:\icedev\ChatDemo-1.2.0\client\sl\bridge\ChatDemo.sln" (default target) (1) -
    >
    "C:\icedev\ChatDemo-1.2.0\client\sl\bridge\ChatDemoWeb\ChatDemoWeb.csproj" (def
    ault target) (2) ->
    (ResolveAssemblyReferences target) ->
      C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets : warning MS
    B3245: Could not resolve this reference. Could not locate the assembly "System.
    Web.Silverlight, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364
    e35, processorArchitecture=MSIL". Check to make sure the assembly exists on dis
    k. If this reference is required by your code, you may get compilation errors.
    
    
    "C:\icedev\ChatDemo-1.2.0\client\sl\bridge\ChatDemo.sln" (default target) (1) -
    >
    "C:\icedev\ChatDemo-1.2.0\client\sl\bridge\ChatDemoWeb\ChatDemoWeb.csproj" (def
    ault target) (2) ->
    (CopySilverlightApplications target) ->
      C:\icedev\ChatDemo-1.2.0\client\sl\bridge\ChatDemo\ChatDemo.csproj(89,11): er
    ror MSB4019: The imported project "C:\Program Files\MSBuild\Microsoft\Silverlig
    ht\v2.0\Microsoft.Silverlight.CSharp.targets" was not found. Confirm that the p
    ath in the <Import> declaration is correct, and that the file exists on disk.
    
    
    "C:\icedev\ChatDemo-1.2.0\client\sl\bridge\ChatDemo.sln" (default target) (1) -
    >
    (Build target) ->
      C:\icedev\ChatDemo-1.2.0\client\sl\bridge\ChatDemo\ChatDemo.csproj(89,11): er
    ror MSB4019: The imported project "C:\Program Files\MSBuild\Microsoft\Silverlig
    ht\v2.0\Microsoft.Silverlight.CSharp.targets" was not found. Confirm that the p
    ath in the <Import> declaration is correct, and that the file exists on disk.
    
        1 Warning(s)
        2 Error(s)
    
    Time Elapsed 00:00:01.48
    NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.EXE' : return code '0x1'
    Stop.
    NMAKE : fatal error U1077: 'for' : return code '0x1'
    Stop.
    NMAKE : fatal error U1077: 'for' : return code '0x1'
    Stop.
    NMAKE : fatal error U1077: 'for' : return code '0x1'
    Stop.
    
    C:\icedev\ChatDemo-1.2.0>
    


    Best wishes,
    Min-hao Lee
    Industrial Technology Research Institute
  • xdm
    xdm La Coruña, Spain
    Hi,

    ChatDemo 1.2.0 projects were created with Silverlight 2 tools, if you want to build across Silverlight 3, you need to update the ChatDemo projects to reference Silverlight 3 instead of Silverlight 2.

    To convert the projects to use Silverlight 3 tools, open the solution files in Visual Studio 2008 and it will show you a wizard that takes care of the updates. This is necessary for client/sl/bridge/ChatDemo.sln and client/sl/callback/ChatDemo.sln

    The next release of ChatDemo will be build with Silveright 3 tools by default.

    Cheers,
    José
  • Thanks for ZeroC's staff reply and help, ChatDemo has been correctly execute.

    Make sure using the visual studio 2008 command prompt.
    Finishing the installation and system variables as follow,

    ANT_HOME=C:\apache-ant-1.7.1
    CLASSPATH=%JAVA_HOME%\lib
    INCLUDE=C:\Ice-3.3.1\include;C:\Ice-3.3.1-VC90\include
    JAVA_HOME=C:\Program Files\Java\jdk1.6.0_16
    LIB=C:\Ice-3.3.1-VC90\lib
    PATH=C:\icedev\ChatDemo-1.2.0\bin;C:\IceSL-0.3.3\bin;C:\Ice-3.3.1-VC90\bin;%JAVA_HOME%\BIN;C:\apache-ant-1.7.1\bin