diff --git a/jdk/src/share/demo/java2d/J2DBench/Makefile b/jdk/src/share/demo/java2d/J2DBench/Makefile
index ece84b7ea66..6082d3330f5 100644
--- a/jdk/src/share/demo/java2d/J2DBench/Makefile
+++ b/jdk/src/share/demo/java2d/J2DBench/Makefile
@@ -72,6 +72,7 @@ J2DANALYZER_CLASSES = \
J2DBENCH_RESOURCES = \
$(CLASSES)/j2dbench/tests/iio/images \
+ $(CLASSES)/j2dbench/tests/cmm/images \
$(CLASSES)/j2dbench/tests/text/textdata
SCM_DIRs = .hg .svn CVS RCS SCCS Codemgr_wsdata deleted_files
@@ -101,6 +102,10 @@ $(CLASSES)/j2dbench/tests/text/textdata: $(RESOURCES)/textdata
cp -r $< $@
cd $@ && rm -rf $(SCM_DIRs)
+$(CLASSES)/j2dbench/tests/cmm/images: $(RESOURCES)/cmm_images
+ cp -r $< $@
+ cd $@ && rm -rf $(SCM_DIRs)
+
$(CLASSES)/j2dbench.manifest:
echo "Main-Class: j2dbench.J2DBench" > $@
@@ -115,7 +120,7 @@ $(CLASSES):
mkdirs: $(DIST) $(CLASSES)
$(CLASSES)/j2dbench/%.class: $(SOURCEPATH)/j2dbench/%.java
- javac -source 1.2 -target 1.2 -d $(CLASSES) -sourcepath $(SOURCEPATH) $<
+ javac -g:none -source 1.6 -target 1.6 -d $(CLASSES) -sourcepath $(SOURCEPATH) $<
clean:
rm -rf $(CLASSES)
diff --git a/jdk/src/share/demo/java2d/J2DBench/README b/jdk/src/share/demo/java2d/J2DBench/README
index c3d5a36a53f..09e214ee203 100644
--- a/jdk/src/share/demo/java2d/J2DBench/README
+++ b/jdk/src/share/demo/java2d/J2DBench/README
@@ -19,10 +19,9 @@ from the results files generated by the J2DBench runs.
Minimum requirements
-----------------------------------------------------------------------
-The benchmark requires at least jdk1.4 to compile and
-at least jdk1.2** to run.
-
-** Note: the goal is to make the benchmark run on 1.1.x as well.
+The benchmark requires at least jdk1.4 to compile and run. Note that
+source/target is set to 1.6 in the makefile and build.xml, because of
+support in jdk 9 compiler.
-----------------------------------------------------------------------
How To Compile
@@ -125,7 +124,7 @@ choosing the options and benchmarks to run.
After the options file is created, start J2DBench in batch mode to run
the benchmarks for the default pipeline:
-#> java -jar dest/J2DBench.jar -batch -loadopts options/default.opt \
+#> java -jar dist/J2DBench.jar -batch -loadopts options/default.opt \
-saveres default.res -title "Rendering - Default ppl" \
-desc "Rendering tests with the default pipeline"
@@ -136,13 +135,13 @@ file and save the result in default.res file.
"Run Tests" in the J2DBench dialog)
Now run the benchmark with opengl pipeline:
-#> java -Dsun.java2d.opengl=True -jar dest/J2DBench.jar -batch \
+#> java -Dsun.java2d.opengl=True -jar dist/J2DBench.jar -batch \
-loadopts options/default.opt \
-saveres opengl.res -title "Rendering - OpenGL" \
-desc "Rendering tests with OpenGL pipeline"
Now let's analyze the results using J2DAnalyzer:
-#> java -jar dest/J2DAnalyzer.jar default.res opengl.res
+#> java -jar dist/J2DAnalyzer.jar default.res opengl.res
Note that you can compare more than two sets of results, see
J2DAnalyzer's help page.
diff --git a/jdk/src/share/demo/java2d/J2DBench/build.xml b/jdk/src/share/demo/java2d/J2DBench/build.xml
index c2af9ec6007..3ae3bc186aa 100644
--- a/jdk/src/share/demo/java2d/J2DBench/build.xml
+++ b/jdk/src/share/demo/java2d/J2DBench/build.xml
@@ -49,7 +49,7 @@
-
+