15734212 SUNBT7076895 userland fails to build with jdk1.7
authorMike Sullivan <Mike.Sullivan@Oracle.COM>
Thu, 21 Feb 2013 10:32:47 -0800
changeset 1165 acf39745f10c
parent 1164 3485ba7dfe6b
child 1166 36691b5d318b
15734212 SUNBT7076895 userland fails to build with jdk1.7
components/ant/ant.p5m
components/beanshell/beanshell.p5m
components/berkeleydb/Makefile
components/junit/Makefile
components/memcached-java/memcached-java.p5m
components/swig/Makefile
components/tomcat/Makefile
components/visual-panels/apache/Makefile
components/visual-panels/core/Makefile
components/visual-panels/core/system-management-visual-panels-doc.p5m
components/visual-panels/coreadm/Makefile
components/visual-panels/examples/Makefile
components/visual-panels/firewall/Makefile
components/visual-panels/make-rules/Makefile.env
components/visual-panels/smf/Makefile
components/visual-panels/sysmon/Makefile
components/visual-panels/time/Makefile
components/visual-panels/usermgr/Makefile
components/visual-panels/zconsole/Makefile
make-rules/shared-macros.mk
--- a/components/ant/ant.p5m	Thu Feb 21 02:20:51 2013 -0800
+++ b/components/ant/ant.p5m	Thu Feb 21 10:32:47 2013 -0800
@@ -20,7 +20,7 @@
 #
 
 #
-# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
 #
 
 <transform file path=usr.*/man/.+ -> default mangler.man.stability volatile>
@@ -2791,7 +2791,10 @@
 file path=usr/share/doc/ant/manual/api/overview-summary.html
 file path=usr/share/doc/ant/manual/api/overview-tree.html
 file path=usr/share/doc/ant/manual/api/package-list
-file path=usr/share/doc/ant/manual/api/resources/inherit.gif
+file path=usr/share/doc/ant/manual/api/resources/background.gif
+file path=usr/share/doc/ant/manual/api/resources/tab.gif
+file path=usr/share/doc/ant/manual/api/resources/titlebar.gif
+file path=usr/share/doc/ant/manual/api/resources/titlebar_end.gif
 file path=usr/share/doc/ant/manual/api/serialized-form.html
 file path=usr/share/doc/ant/manual/api/stylesheet.css
 file path=usr/share/doc/ant/manual/base_task_classes.html
--- a/components/beanshell/beanshell.p5m	Thu Feb 21 02:20:51 2013 -0800
+++ b/components/beanshell/beanshell.p5m	Thu Feb 21 10:32:47 2013 -0800
@@ -18,7 +18,7 @@
 #
 # CDDL HEADER END
 #
-# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
 #
 
 <transform file path=usr.*/man/.+ -> default mangler.man.stability uncommitted>
@@ -244,7 +244,10 @@
 file path=usr/share/lib/java/javadoc/beanshell/overview-summary.html
 file path=usr/share/lib/java/javadoc/beanshell/overview-tree.html
 file path=usr/share/lib/java/javadoc/beanshell/package-list
-file path=usr/share/lib/java/javadoc/beanshell/resources/inherit.gif
+file path=usr/share/lib/java/javadoc/beanshell/resources/titlebar.gif
+file path=usr/share/lib/java/javadoc/beanshell/resources/background.gif
+file path=usr/share/lib/java/javadoc/beanshell/resources/tab.gif
+file path=usr/share/lib/java/javadoc/beanshell/resources/titlebar_end.gif
 file path=usr/share/lib/java/javadoc/beanshell/serialized-form.html
 file path=usr/share/lib/java/javadoc/beanshell/stylesheet.css
 file beansh.1 path=usr/share/man/man1/beansh.1
--- a/components/berkeleydb/Makefile	Thu Feb 21 02:20:51 2013 -0800
+++ b/components/berkeleydb/Makefile	Thu Feb 21 10:32:47 2013 -0800
@@ -20,11 +20,12 @@
 #
 
 #
-# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
 #
 
 include ../../make-rules/shared-macros.mk
 
+JAVA_HOME=$(JAVA6_HOME)
 PATH=$(SPRO_VROOT)/bin:$(JAVA_HOME)/bin:/usr/bin
 
 COMPONENT_NAME=		berkeleydb
--- a/components/junit/Makefile	Thu Feb 21 02:20:51 2013 -0800
+++ b/components/junit/Makefile	Thu Feb 21 10:32:47 2013 -0800
@@ -18,7 +18,7 @@
 #
 # CDDL HEADER END
 #
-# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
 #
 include ../../make-rules/shared-macros.mk
 
@@ -36,6 +36,7 @@
 include ../../make-rules/ant.mk
 include ../../make-rules/ips.mk
 
+JAVA_HOME=$(JAVA6_HOME)
 COMPONENT_BUILD_ARGS 	+= -Ddist=${PROTO_DIR}
 COMPONENT_BUILD_ARGS    += -Djavadocdir=${PROTO_DIR}
 COMPONENT_BUILD_TARGETS += dist
--- a/components/memcached-java/memcached-java.p5m	Thu Feb 21 02:20:51 2013 -0800
+++ b/components/memcached-java/memcached-java.p5m	Thu Feb 21 10:32:47 2013 -0800
@@ -19,7 +19,7 @@
 # CDDL HEADER END
 
 #
-# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
 #
 
 <transform dir file path=usr/share/lib/java/javadoc* -> default group other>
@@ -93,6 +93,9 @@
 file path=usr/share/lib/java/javadoc/memcached-java/api/index.html
 file path=usr/share/lib/java/javadoc/memcached-java/api/overview-tree.html
 file path=usr/share/lib/java/javadoc/memcached-java/api/package-list
-file path=usr/share/lib/java/javadoc/memcached-java/api/resources/inherit.gif
+file path=usr/share/lib/java/javadoc/memcached-java/api/resources/background.gif
+file path=usr/share/lib/java/javadoc/memcached-java/api/resources/tab.gif
+file path=usr/share/lib/java/javadoc/memcached-java/api/resources/titlebar.gif
+file path=usr/share/lib/java/javadoc/memcached-java/api/resources/titlebar_end.gif
 file path=usr/share/lib/java/javadoc/memcached-java/api/serialized-form.html
 file path=usr/share/lib/java/javadoc/memcached-java/api/stylesheet.css
--- a/components/swig/Makefile	Thu Feb 21 02:20:51 2013 -0800
+++ b/components/swig/Makefile	Thu Feb 21 10:32:47 2013 -0800
@@ -18,7 +18,7 @@
 #
 # CDDL HEADER END
 #
-# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
 #
 include ../../make-rules/shared-macros.mk
 
@@ -36,11 +36,15 @@
 include ../../make-rules/configure.mk
 include ../../make-rules/ips.mk
 
+PATH=$(SPRO_VROOT)/bin:$(JAVA_HOME)/bin:/usr/bin
+
 # This is needed because the community provided 'check' target is not viewpath aware
 COMPONENT_PRE_CONFIGURE_ACTION =      ($(CLONEY) $(SOURCE_DIR) $(@D))
 
+CONFIGURE_ENV += JAVA_HOME="$(JAVA_HOME)"
 CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS)"
 CONFIGURE_OPTIONS +=	CXXFLAGS="$(CXXFLAGS)"
+CONFIGURE_OPTIONS +=	--with-javaincl="$(JAVA_HOME)/include"
 
 # common targets
 build:		$(BUILD_32)
--- a/components/tomcat/Makefile	Thu Feb 21 02:20:51 2013 -0800
+++ b/components/tomcat/Makefile	Thu Feb 21 10:32:47 2013 -0800
@@ -20,7 +20,7 @@
 #
 
 #
-# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
 #
 
 include ../../make-rules/shared-macros.mk
@@ -54,6 +54,8 @@
 include ../../make-rules/ant.mk
 include ../../make-rules/ips.mk
 
+JAVA_HOME=$(JAVA6_HOME)
+COMPONENT_BUILD_ENV += JAVA_HOME="$(JAVA_HOME)"
 COMPONENT_BUILD_ARGS=-Dbase.path=$(BUILD_DIR_32) -Dtomcat.build=$(PROTO_DIR)
 COMPONENT_BUILD_TARGETS=download deploy
 
--- a/components/visual-panels/apache/Makefile	Thu Feb 21 02:20:51 2013 -0800
+++ b/components/visual-panels/apache/Makefile	Thu Feb 21 10:32:47 2013 -0800
@@ -19,7 +19,7 @@
 # CDDL HEADER END
 #
 #
-# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
 #
 
 include ../../../make-rules/shared-macros.mk
@@ -38,7 +38,7 @@
 COMPONENT_BUILD_ENV +=		ROOT=$(BUILD_DIR)/prototype/$(MACH)
 COMPONENT_BUILD_ENV +=		SRC=$(WS_COMPONENTS)/visual-panels
 COMPONENT_BUILD_ENV +=		WS_JAVA=$(BUILD_DIR_32)/java
-COMPONENT_BUILD_ENV +=		JAVA_HOME=/usr/java
+COMPONENT_BUILD_ENV +=		JAVA_HOME=$(JAVA_HOME)
 COMPONENT_BUILD_ENV +=		PATH=$(dir $(CC)):/usr/bin
 COMPONENT_BUILD_ENV +=		XGETTEXT=/usr/lib/intltool/gettext-tools/xgettext
 COMPONENT_BUILD_ENV +=		MACH32=$(MACH32)
--- a/components/visual-panels/core/Makefile	Thu Feb 21 02:20:51 2013 -0800
+++ b/components/visual-panels/core/Makefile	Thu Feb 21 10:32:47 2013 -0800
@@ -18,7 +18,7 @@
 #
 # CDDL HEADER END
 #
-# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
 #
 
 include ../../../make-rules/shared-macros.mk
@@ -37,7 +37,7 @@
 COMPONENT_BUILD_ENV +=		ROOT=$(PROTO_DIR)
 COMPONENT_BUILD_ENV +=		SRC=$(WS_COMPONENTS)/visual-panels
 COMPONENT_BUILD_ENV +=		WS_JAVA=$(BUILD_DIR_32)/java
-COMPONENT_BUILD_ENV +=		JAVA_HOME=/usr/java
+COMPONENT_BUILD_ENV +=		JAVA_HOME=$(JAVA_HOME)
 COMPONENT_BUILD_ENV +=		PATH=$(dir $(CC)):/usr/bin
 COMPONENT_BUILD_ENV +=		MACH32=$(MACH32)
 
--- a/components/visual-panels/core/system-management-visual-panels-doc.p5m	Thu Feb 21 02:20:51 2013 -0800
+++ b/components/visual-panels/core/system-management-visual-panels-doc.p5m	Thu Feb 21 10:32:47 2013 -0800
@@ -20,7 +20,7 @@
 #
 
 #
-# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
 #
 
 set name=info.classification value="org.opensolaris.category.2008:Applications/Configuration and Preferences"
@@ -142,7 +142,10 @@
 file path=usr/share/lib/java/javadoc/smf-old/overview-summary.html
 file path=usr/share/lib/java/javadoc/smf-old/overview-tree.html
 file path=usr/share/lib/java/javadoc/smf-old/package-list
-file path=usr/share/lib/java/javadoc/smf-old/resources/inherit.gif
+file path=usr/share/lib/java/javadoc/smf-old/resources/background.gif
+file path=usr/share/lib/java/javadoc/smf-old/resources/tab.gif
+file path=usr/share/lib/java/javadoc/smf-old/resources/titlebar.gif
+file path=usr/share/lib/java/javadoc/smf-old/resources/titlebar_end.gif
 file path=usr/share/lib/java/javadoc/smf-old/serialized-form.html
 file path=usr/share/lib/java/javadoc/smf-old/stylesheet.css
 file path=usr/share/lib/java/javadoc/vpanels-panel/allclasses-frame.html
@@ -479,7 +482,10 @@
 file path=usr/share/lib/java/javadoc/vpanels-panel/overview-summary.html
 file path=usr/share/lib/java/javadoc/vpanels-panel/overview-tree.html
 file path=usr/share/lib/java/javadoc/vpanels-panel/package-list
-file path=usr/share/lib/java/javadoc/vpanels-panel/resources/inherit.gif
+file path=usr/share/lib/java/javadoc/vpanels-panel/resources/background.gif
+file path=usr/share/lib/java/javadoc/vpanels-panel/resources/tab.gif
+file path=usr/share/lib/java/javadoc/vpanels-panel/resources/titlebar.gif
+file path=usr/share/lib/java/javadoc/vpanels-panel/resources/titlebar_end.gif
 file path=usr/share/lib/java/javadoc/vpanels-panel/serialized-form.html
 file path=usr/share/lib/java/javadoc/vpanels-panel/stylesheet.css
 file path=usr/share/lib/java/javadoc/vpanels-util/allclasses-frame.html
@@ -910,6 +916,9 @@
 file path=usr/share/lib/java/javadoc/vpanels-util/overview-summary.html
 file path=usr/share/lib/java/javadoc/vpanels-util/overview-tree.html
 file path=usr/share/lib/java/javadoc/vpanels-util/package-list
-file path=usr/share/lib/java/javadoc/vpanels-util/resources/inherit.gif
+file path=usr/share/lib/java/javadoc/vpanels-util/resources/background.gif
+file path=usr/share/lib/java/javadoc/vpanels-util/resources/tab.gif
+file path=usr/share/lib/java/javadoc/vpanels-util/resources/titlebar.gif
+file path=usr/share/lib/java/javadoc/vpanels-util/resources/titlebar_end.gif
 file path=usr/share/lib/java/javadoc/vpanels-util/serialized-form.html
 file path=usr/share/lib/java/javadoc/vpanels-util/stylesheet.css
--- a/components/visual-panels/coreadm/Makefile	Thu Feb 21 02:20:51 2013 -0800
+++ b/components/visual-panels/coreadm/Makefile	Thu Feb 21 10:32:47 2013 -0800
@@ -20,7 +20,7 @@
 #
 
 #
-# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
 #
 
 include ../../../make-rules/shared-macros.mk
@@ -39,7 +39,7 @@
 COMPONENT_BUILD_ENV +=		ROOT=$(BUILD_DIR)/prototype/$(MACH)
 COMPONENT_BUILD_ENV +=		SRC=$(WS_COMPONENTS)/visual-panels
 COMPONENT_BUILD_ENV +=		WS_JAVA=$(BUILD_DIR_32)/java
-COMPONENT_BUILD_ENV +=		JAVA_HOME=/usr/java
+COMPONENT_BUILD_ENV +=		JAVA_HOME=$(JAVA_HOME)
 COMPONENT_BUILD_ENV +=		PATH=$(dir $(CC)):/usr/bin
 COMPONENT_BUILD_ENV +=		XGETTEXT=/usr/lib/intltool/gettext-tools/xgettext
 COMPONENT_BUILD_ENV +=		MACH32=$(MACH32)
--- a/components/visual-panels/examples/Makefile	Thu Feb 21 02:20:51 2013 -0800
+++ b/components/visual-panels/examples/Makefile	Thu Feb 21 10:32:47 2013 -0800
@@ -20,7 +20,7 @@
 #
 
 #
-# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
 #
 
 include ../../../make-rules/shared-macros.mk
@@ -39,7 +39,7 @@
 COMPONENT_BUILD_ENV +=		ROOT=$(BUILD_DIR)/prototype/$(MACH)
 COMPONENT_BUILD_ENV +=		SRC=$(WS_COMPONENTS)/visual-panels
 COMPONENT_BUILD_ENV +=		WS_JAVA=$(BUILD_DIR_32)/java
-COMPONENT_BUILD_ENV +=		JAVA_HOME=/usr/java
+COMPONENT_BUILD_ENV +=		JAVA_HOME=$(JAVA_HOME)
 COMPONENT_BUILD_ENV +=		PATH=$(dir $(CC)):/usr/bin
 COMPONENT_BUILD_ENV +=		MACH32=$(MACH32)
 
--- a/components/visual-panels/firewall/Makefile	Thu Feb 21 02:20:51 2013 -0800
+++ b/components/visual-panels/firewall/Makefile	Thu Feb 21 10:32:47 2013 -0800
@@ -20,7 +20,7 @@
 #
 
 #
-# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
 #
 
 include ../../../make-rules/shared-macros.mk
@@ -39,7 +39,7 @@
 COMPONENT_BUILD_ENV +=		ROOT=$(BUILD_DIR)/prototype/$(MACH)
 COMPONENT_BUILD_ENV +=		SRC=$(WS_COMPONENTS)/visual-panels
 COMPONENT_BUILD_ENV +=		WS_JAVA=$(BUILD_DIR_32)/java
-COMPONENT_BUILD_ENV +=		JAVA_HOME=/usr/java
+COMPONENT_BUILD_ENV +=		JAVA_HOME=$(JAVA_HOME)
 COMPONENT_BUILD_ENV +=		PATH=$(dir $(CC)):/usr/bin
 COMPONENT_BUILD_ENV +=		XGETTEXT=/usr/lib/intltool/gettext-tools/xgettext
 COMPONENT_BUILD_ENV +=		MACH32=$(MACH32)
--- a/components/visual-panels/make-rules/Makefile.env	Thu Feb 21 02:20:51 2013 -0800
+++ b/components/visual-panels/make-rules/Makefile.env	Thu Feb 21 10:32:47 2013 -0800
@@ -20,7 +20,7 @@
 #
 
 #
-# Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
 #
 
 #
@@ -125,7 +125,7 @@
 INTLTOOL_MERGE = /usr/bin/intltool-merge
 
 # Set here explicitly to avoid compiling with newer class version
-JDK_HOME = /usr/jdk/instances/jdk1.6.0
+JDK_HOME = $(JAVA7_HOME)
 JAVA_HOME = $(JDK_HOME)
 
 JAVAC = $(JDK_HOME)/bin/javac
--- a/components/visual-panels/smf/Makefile	Thu Feb 21 02:20:51 2013 -0800
+++ b/components/visual-panels/smf/Makefile	Thu Feb 21 10:32:47 2013 -0800
@@ -20,7 +20,7 @@
 #
 
 #
-# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
 #
 
 include ../../../make-rules/shared-macros.mk
@@ -39,7 +39,7 @@
 COMPONENT_BUILD_ENV +=		ROOT=$(BUILD_DIR)/prototype/$(MACH)
 COMPONENT_BUILD_ENV +=		SRC=$(WS_COMPONENTS)/visual-panels
 COMPONENT_BUILD_ENV +=		WS_JAVA=$(BUILD_DIR_32)/java
-COMPONENT_BUILD_ENV +=		JAVA_HOME=/usr/java
+COMPONENT_BUILD_ENV +=		JAVA_HOME=$(JAVA_HOME)
 COMPONENT_BUILD_ENV +=		PATH=$(dir $(CC)):/usr/bin
 COMPONENT_BUILD_ENV +=		XGETTEXT=/usr/lib/intltool/gettext-tools/xgettext
 COMPONENT_BUILD_ENV +=		MACH32=$(MACH32)
--- a/components/visual-panels/sysmon/Makefile	Thu Feb 21 02:20:51 2013 -0800
+++ b/components/visual-panels/sysmon/Makefile	Thu Feb 21 10:32:47 2013 -0800
@@ -20,7 +20,7 @@
 #
 
 #
-# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
 #
 
 include ../../../make-rules/shared-macros.mk
@@ -39,7 +39,7 @@
 COMPONENT_BUILD_ENV +=		ROOT=$(BUILD_DIR)/prototype/$(MACH)
 COMPONENT_BUILD_ENV +=		SRC=$(WS_COMPONENTS)/visual-panels
 COMPONENT_BUILD_ENV +=		WS_JAVA=$(BUILD_DIR_32)/java
-COMPONENT_BUILD_ENV +=		JAVA_HOME=/usr/java
+COMPONENT_BUILD_ENV +=		JAVA_HOME=$(JAVA_HOME)
 COMPONENT_BUILD_ENV +=		PATH=$(dir $(CC)):/usr/bin
 COMPONENT_BUILD_ENV +=		XGETTEXT=/usr/lib/intltool/gettext-tools/xgettext
 COMPONENT_BUILD_ENV +=		MACH32=$(MACH32)
--- a/components/visual-panels/time/Makefile	Thu Feb 21 02:20:51 2013 -0800
+++ b/components/visual-panels/time/Makefile	Thu Feb 21 10:32:47 2013 -0800
@@ -20,7 +20,7 @@
 #
 
 #
-# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
 #
 
 include ../../../make-rules/shared-macros.mk
@@ -39,7 +39,7 @@
 COMPONENT_BUILD_ENV +=		ROOT=$(BUILD_DIR)/prototype/$(MACH)
 COMPONENT_BUILD_ENV +=		SRC=$(WS_COMPONENTS)/visual-panels
 COMPONENT_BUILD_ENV +=		WS_JAVA=$(BUILD_DIR_32)/java
-COMPONENT_BUILD_ENV +=		JAVA_HOME=/usr/java
+COMPONENT_BUILD_ENV +=		JAVA_HOME=$(JAVA_HOME)
 COMPONENT_BUILD_ENV +=		PATH=$(dir $(CC)):/usr/bin
 COMPONENT_BUILD_ENV +=		XGETTEXT=/usr/lib/intltool/gettext-tools/xgettext
 COMPONENT_BUILD_ENV +=		MACH32=$(MACH32)
--- a/components/visual-panels/usermgr/Makefile	Thu Feb 21 02:20:51 2013 -0800
+++ b/components/visual-panels/usermgr/Makefile	Thu Feb 21 10:32:47 2013 -0800
@@ -20,7 +20,7 @@
 #
 
 #
-# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
 #
 
 include ../../../make-rules/shared-macros.mk
@@ -39,7 +39,7 @@
 COMPONENT_BUILD_ENV +=		ROOT=$(BUILD_DIR)/prototype/$(MACH)
 COMPONENT_BUILD_ENV +=		SRC=$(WS_COMPONENTS)/visual-panels
 COMPONENT_BUILD_ENV +=		WS_JAVA=$(BUILD_DIR_32)/java
-COMPONENT_BUILD_ENV +=		JAVA_HOME=/usr/java
+COMPONENT_BUILD_ENV +=		JAVA_HOME=$(JAVA_HOME)
 COMPONENT_BUILD_ENV +=		PATH=$(dir $(CC)):/usr/bin
 COMPONENT_BUILD_ENV +=		XGETTEXT=/usr/lib/intltool/gettext-tools/xgettext
 COMPONENT_BUILD_ENV +=		MACH32=$(MACH32)
--- a/components/visual-panels/zconsole/Makefile	Thu Feb 21 02:20:51 2013 -0800
+++ b/components/visual-panels/zconsole/Makefile	Thu Feb 21 10:32:47 2013 -0800
@@ -20,7 +20,7 @@
 #
 
 #
-# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
 #
 
 include ../../../make-rules/shared-macros.mk
@@ -39,7 +39,7 @@
 COMPONENT_BUILD_ENV +=		ROOT=$(BUILD_DIR)/prototype/$(MACH)
 COMPONENT_BUILD_ENV +=		SRC=$(WS_COMPONENTS)/visual-panels
 COMPONENT_BUILD_ENV +=		WS_JAVA=$(BUILD_DIR_32)/java
-COMPONENT_BUILD_ENV +=		JAVA_HOME=/usr/java
+COMPONENT_BUILD_ENV +=		JAVA_HOME=$(JAVA_HOME)
 COMPONENT_BUILD_ENV +=		PATH=$(dir $(CC)):/usr/bin
 COMPONENT_BUILD_ENV +=		MACH32=$(MACH32)
 
--- a/make-rules/shared-macros.mk	Thu Feb 21 02:20:51 2013 -0800
+++ b/make-rules/shared-macros.mk	Thu Feb 21 10:32:47 2013 -0800
@@ -299,7 +299,9 @@
 PYTHON_LIB= /usr/lib/python$(PYTHON_VERSION)/vendor-packages
 PYTHON_DATA= $(PYTHON_LIB)
 
-JAVA_HOME =	/usr/jdk/instances/jdk1.6.0
+JAVA7_HOME =	/usr/jdk/instances/jdk1.7.0
+JAVA6_HOME =	/usr/jdk/instances/jdk1.6.0
+JAVA_HOME = $(JAVA7_HOME)
 
 # This is the default BUILD version of perl
 # Not necessarily the system's default version, i.e. /usr/bin/perl