Open teddyxlandlee opened 1 year ago
If a specific vendor is to be enforced, it should be microsoft, since this is what Mojang ships with the game by default.
~~However, it is possible to only specify the implementation, not the vendor. I will make a PR with that.~~
EDIT: seems like gradle only allows switching between "any" and "openJ9" :/
EDIT: seems like gradle only allows switching between "any" and "openJ9" :/
You're thinking JvmImplementation
, which can be J9
or VENDOR_SPECIFIC
. Specifying the vendor uses the line in the initial issue, and can be set to any number of different things - and will get correctly resolved so long as the foojay settings plugin is applied. To set it to microsoft, you'd use:
java.toolchain.vendor = JvmVendorSpec.MICROSOFT
That said - the real solution here is to avoid needing a full decomp/recomp cycle to set up the local environment!
You're thinking JvmImplementation, which can be J9 or VENDOR_SPECIFIC
Yes, exactly what I said. Gradle does not currently allow specifying HOTSPOT
or not OpenJ9
as JvmImplementation.
the real solution here is to avoid needing a full decomp/recomp cycle to set up the local environment!
that is true, but in absence of someone making that PR, the quickest 'fix' is to at least provide a better error message.
It allows specifying "openj9" or "whatever" for implementation, yes, but it also allows specifying vendor - so just specify Microsoft as the vendor and you'll get their openjdk - the "vendor specific" implementation for Microsoft is hotspot
I am an IBM Semeru user and when I tried to
./gradlew build
the MDK I stuck atneoFormRecompile
, where the compiler failed to find thejdk.jfr
package.Since all Neo projects need to do the recompile process, the toolchain vendor should be restricted, at least out of the
J9
implementation, to prevent beginners stuck at the same point as me.What I tried to do is to remove all the caches and then add a line in
build.gradle
:and it worked.
Many Thanks.