United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6579273 JVMTI index.html is missing in ${JAVA_HOME}/demo/jvmti and demo/management
JDK-6579273 : JVMTI index.html is missing in ${JAVA_HOME}/demo/jvmti and demo/management

Details
Type:
Bug
Submit Date:
2007-07-11
Status:
Resolved
Updated Date:
2010-04-02
Project Name:
JDK
Resolved Date:
2008-02-12
Component:
core-svc
OS:
generic
Sub-Component:
tools
CPU:
other
Priority:
P4
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:
6u10 (b12)

Related Reports
Backport:
Duplicate:

Sub Tasks

Description
The index.html file for the JVMTI demos is missing from Java 6 releases.

The file contains essential information for using the JVMTI demos, and is still referenced in other files in the Java 6 JVMTI demo tree. For example, the file

   $JAVA_HOME/demo/jvmti/gctest/README.txt

contains the following text:

   "See ${JAVA_HOME}/demo/jvmti/index.html for help running and
    building agents".

The file is present in 5.0 releases, so we presume this is a simple packaging error that needs to be corrected for future Java 6 releases.

                                    

Comments
WORK AROUND

None.
                                     
2007-07-11
EVALUATION

The file disappeared in 6.0-b28, most probably after the fix for 5070715 when fastdebug builds were introduced. Dispatching this change request to the build team.
                                     
2007-07-16
EVALUATION

The copy of the index file was part of the build rule, when separated as a separate rule the dependency was missed.
See suggested fix.
                                     
2008-01-11
SUGGESTED FIX

######### File: j2se/make/mkdemo/jvmti/Makefile

------- Makefile -------
*** /tmp/sccs.TjaOby    Fri Jan 11 13:07:32 2008
--- Makefile    Fri Jan 11 13:00:41 2008
***************
*** 30,36 ****
  all build clean clobber::
        $(SUBDIRS-loop)
  
! all build :: $(ABS_OUTPUTDIR)/demo/jvmti
  
  $(ABS_OUTPUTDIR)/demo/jvmti/index.html: $(SHARE_SRC)/demo/jvmti/index.html
        $(install-file)
--- 30,36 ----
  all build clean clobber::
        $(SUBDIRS-loop)
  
! all build :: $(ABS_OUTPUTDIR)/demo/jvmti $(ABS_OUTPUTDIR)/demo/jvmti/index.html
  
  $(ABS_OUTPUTDIR)/demo/jvmti/index.html: $(SHARE_SRC)/demo/jvmti/index.html
        $(install-file)
                                     
2008-01-11
EVALUATION

Also demo/management/index.html file was missing, added that change to this bug too. See suggested fix.
                                     
2008-01-15
SUGGESTED FIX

j2se/make/mkdemo/management/Makefile

--- 1.10 ---
6579273: JVMTI index.html is missing in ${JAVA_HOME}/demo/jvmti 

*** 1,7 ****
  #
! # @(#)Makefile  1.9 05/11/17
  #
  # Copyright 2006 Sun Microsystems, Inc. All rights reserved.
  # SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  #
  
--- 1,7 ----
  #
! # @(#)Makefile  1.10 08/01/14
  #
  # Copyright 2006 Sun Microsystems, Inc. All rights reserved.
  # SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  #
  
*** 19,28 ****
            MemoryMonitor  \
            JTop
  all build clean clobber::
          $(SUBDIRS-loop)
  
! all build :: $(ABS_OUTPUTDIR)/demo/management
  
  $(ABS_OUTPUTDIR)/demo/management/index.html: $(SHARE_SRC)/demo/management/index.html
          $(install-file)
  
--- 19,28 ----
            MemoryMonitor  \
            JTop
  all build clean clobber::
          $(SUBDIRS-loop)
  
! all build :: $(ABS_OUTPUTDIR)/demo/management $(ABS_OUTPUTDIR)/demo/management/index.html
  
  $(ABS_OUTPUTDIR)/demo/management/index.html: $(SHARE_SRC)/demo/management/index.html
          $(install-file)
                                     
2008-01-15



Hardware and Software, Engineered to Work Together