Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6454057

JTop demo is built with errors on Windows-i586

XMLWordPrintable

    • generic
    • windows

      While running a build on Windows (i586), AWT-team members experience the following problem that cause us to comment the JTop line in the make/mkdemo/management/Makefile.

      ENVIRONMENT:
      Windows 2000 Prof, MSVS7.1, MKS Toolkit 8.5

      BUILD SCRIPT:
      ** BUILD.WIN32.devtools.cmd ************************
      @echo off
      set ALT_BOOTDIR=J:/re/jdk/6.0/promoted/latest/binaries/windows-i586
      set ALT_HOTSPOT=J:/re/jdk/6.0/promoted/latest/binaries/windows-i586
      set ALT_HOTSPOT_CLIENT_PATH=%ALT_HOTSPOT%/jre/bin/client
      set ALT_HOTSPOT_SERVER_PATH=%ALT_HOTSPOT%/jre/bin/server
      set ALT_HOTSPOT_LIB_PATH=%ALT_HOTSPOT%/lib
      set ALT_MSVS=C:/MSVS71
      set ALT_COMPILER_PATH=%ALT_MSVS%/VC7/Bin
      set ALT_MSDEVTOOLS_PATH=%ALT_MSVS%/Common7/Tools/Bin
      call %ALT_COMPILER_PATH%/vcvars32.bat
      gmake %*
      ****************************************************
       

      ERROR REPORTED:
      ****************************************************
      J:/re/jdk/6.0/promoted/latest/binaries/windows-i586/bin/javac -J-XX:ThreadStackS
      ize=768 -J-client -J-Xmx256m -J-Xms128m -d ../../../../build/windows-i586/tmp/su
      n/demo/management/JTop/JTop/classes ../../../../src/share/demo/management/JTop/J
      Top.java ../../../../src/share/demo/management/JTop/JTopPlugin.java
      ..\..\..\..\src\share\demo\management\JTop\JTopPlugin.java:53: package com.sun.t
      ools.jconsole does not exist
      import com.sun.tools.jconsole.JConsolePlugin;
                                   ^
      ..\..\..\..\src\share\demo\management\JTop\JTopPlugin.java:54: package com.sun.t
      ools.jconsole does not exist
      import com.sun.tools.jconsole.JConsoleContext;
                                   ^
      ..\..\..\..\src\share\demo\management\JTop\JTopPlugin.java:55: package com.sun.t
      ools.jconsole.JConsoleContext does not exist
      import com.sun.tools.jconsole.JConsoleContext.ConnectionState;
                                                   ^
      ..\..\..\..\src\share\demo\management\JTop\JTopPlugin.java:66: cannot find symbo
      l
      symbol: class JConsolePlugin
      public class JTopPlugin extends JConsolePlugin implements PropertyChangeListener

                                      ^
      ..\..\..\..\src\share\demo\management\JTop\JTopPlugin.java:73: cannot find symbo
      l
      symbol : method addContextPropertyChangeListener(JTopPlugin)
      location: class JTopPlugin
              addContextPropertyChangeListener(this);
              ^
      ..\..\..\..\src\share\demo\management\JTop\JTopPlugin.java:83: cannot find symbo
      l
      symbol : method getContext()
      location: class JTopPlugin
                      getContext().getMBeanServerConnection());
                      ^
      ..\..\..\..\src\share\demo\management\JTop\JTopPlugin.java:112: cannot find symb
      ol
      symbol : variable JConsoleContext
      location: class JTopPlugin
              if (prop == JConsoleContext.CONNECTION_STATE_PROPERTY) {
                          ^
      ..\..\..\..\src\share\demo\management\JTop\JTopPlugin.java:113: cannot find symb
      ol
      symbol : class ConnectionState
      location: class JTopPlugin
                  ConnectionState oldState = (ConnectionState)ev.getOldValue();
                  ^
      ..\..\..\..\src\share\demo\management\JTop\JTopPlugin.java:113: cannot find symb
      ol
      symbol : class ConnectionState
      location: class JTopPlugin
                  ConnectionState oldState = (ConnectionState)ev.getOldValue();
                                              ^
      ..\..\..\..\src\share\demo\management\JTop\JTopPlugin.java:114: cannot find symb
      ol
      symbol : class ConnectionState
      location: class JTopPlugin
                  ConnectionState newState = (ConnectionState)ev.getNewValue();
                  ^
      ..\..\..\..\src\share\demo\management\JTop\JTopPlugin.java:114: cannot find symb
      ol
      symbol : class ConnectionState
      location: class JTopPlugin
                  ConnectionState newState = (ConnectionState)ev.getNewValue();
                                              ^
      ..\..\..\..\src\share\demo\management\JTop\JTopPlugin.java:119: cannot find symb
      ol
      symbol : variable ConnectionState
      location: class JTopPlugin
                  if (newState == ConnectionState.CONNECTED && jtop != null) {
                                  ^
      ..\..\..\..\src\share\demo\management\JTop\JTopPlugin.java:121: cannot find symb
      ol
      symbol : method getContext()
      location: class JTopPlugin
                          getContext().getMBeanServerConnection());
                          ^
      Note: ..\..\..\..\src\share\demo\management\JTop\JTop.java uses unchecked or uns
      afe operations.
      Note: Recompile with -Xlint:unchecked for details.
      13 errors
      gmake[1]: *** [build] Error 1
      gmake[1]: Leaving directory `Z:/ap203012/m7/make/mkdemo/management/JTop'
      gmake: *** [all] Error 1
      ****************************************************
      The problem was reproduced again. Details:
      ENVIRONMENT:
      * Windows XP
      * Cygwin (latest with 'make' downgraded to ver. 3.80)

      SOURCES:
      Latest JDK7 sources.

      BUILD SCRIPT:
      *********************************
      #!/bin/bash
      export LC_ALL=C
      export LANG=C
      export MY_COMPILER=/cygdrive/c/Progra~1/MID05A~1
      export ALT_COMPILER_PATH=$MY_COMPILER/VC/bin
      #export ALT_BOOTDIR=/cygdrive/c/Progra~1/Java/jdk1.5.0_09
      export ALT_BOOTDIR=/java/java/6/latest
      export ALT_UNICOWS_LIB_PATH=/java/devtools/windows/MSLU
      export CLASSPATH=""
      export ALT_HOTSPOT_CLIENT_PATH=$ALT_BOOTDIR/jre/bin/client
      export ALT_HOTSPOT_SERVER_PATH=$ALT_BOOTDIR/jre/bin/server
      export ALT_HOTSPOT_LIB_PATH=$ALT_BOOTDIR/lib
      export MY_SDK_PATH="c:\Progra~1\MIC977~1"
      export MY_DXSDK_PATH="c:\Progra~1\MI146F~1"
      $MY_COMPILER/VC/bin/vcvars32.bat
      export INCLUDE="${INCLUDE}$MY_SDK_PATH\Include\mfc;$MY_SDK_PATH\Include;$MY_DXSDK_PATH\Include;"
      export LIB="${LIB}$MY_SDK_PATH\lib;$MY_DXSDK_PATH\Lib\\x86;"
      export PATH=/bin:$MY_COMPILER/VC/bin:$PATH
      export USE_ONLY_BOOTDIR_TOOLS=true
      make $* >build-w32.log 2>&1
      *********************************

      ERROR MESSAGE:
      src/share/demo/management/JTop/JTopPlugin.java:53: package com.sun.tools.jconsole does not exist.

      ALT_BOOTDIR may point to either JDK5u9 or to JDK6b102. The problem arises with both of them.

            vjayaramsunw Vijayan Jayaraman (Inactive)
            anthony Anthony Petrov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: