Running Diagnostic Examples

Thalia L t.lapommeray at gmail.com
Sat Oct 29 23:14:52 UTC 2022


Ran into an issue trying to run diagnostic examples, file in the readme
(located at *test/langtools/tools/javac/diags/README.examples.txt*) states




*    RunExamples can be run standalone and as a jtreg test, in which case
it    generates a simple plain text report. In addition, the
langtools/make/build.xml    file has a target "diags-examples" that uses
RunExamples to create an HTML    report containing the output from all the
examples.*

but there is no file called langtools/make/build.xml however there is a
file *make/langtools/diags-examples.xml *which is the only one with a
diags-examples target
it says to run like this* ant -f langtools/make/run-examples.xml
-Dlangtools.jdk.home=<JDK>*

There is no
*run-examples.xml.*
When trying to run the command *cd make &&  ant -f
langtools/diags-examples.xml
-Dlangtools.jdk.home=../build/macosx-aarch64-server-release/jdk/, I get
this error*



Buildfile:
/Users/thalial/Desktop/source/jdk/make/langtools/diags-examples.xml

-def-check:

-check-langtools.jdk.home:

-prepare-build:
    [mkdir] Created dir:
/Users/thalial/Desktop/source/jdk/make/build/langtools/modules
    [mkdir] Created dir:
/Users/thalial/Desktop/source/jdk/make/build/langtools/toolclasses
    [mkdir] Created dir:
/Users/thalial/Desktop/source/jdk/make/build/langtools/gensrc
    [mkdir] Created dir:
/Users/thalial/Desktop/source/jdk/make/build/langtools/bin
    [mkdir] Created dir:
/Users/thalial/Desktop/source/jdk/make/build/langtools/prevsrc

-def-pparse:

BUILD FAILED
/Users/thalial/Desktop/source/jdk/make/langtools/build.xml:285:
/Users/thalial/Desktop/source/jdk/make/make/langtools/tools/propertiesparser
does not exist.

Total time: 0 seconds

Any advice on this issue?

-- 
- Thalia La Pommeray

“understate and overprove..."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/compiler-dev/attachments/20221029/5152285b/attachment-0001.htm>


More information about the compiler-dev mailing list