You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@grails.apache.org by "jamesfredley (via GitHub)" <gi...@apache.org> on 2025/11/06 16:45:33 UTC

[I] grails-cli: java.lang.System::loadLibrary has been called by org.fusesource.hawtjni.runtime.Library in Java 25 [grails-core]

jamesfredley opened a new issue, #15216:
URL: https://github.com/apache/grails-core/issues/15216

   ### Issue description
   
   In Java 25
   
   ```
   ./grailsw
   Updating Grails wrapper, allowed versions to update to are [RELEASE]...
   ...  81% (20.73 MiB/s)
   ...Moving remotely downloaded jar to: C:\Users\james\.grails\wrapper\7.0.1\grails-cli-7.0.1-all.jar
   Updated wrapper to version: 7.0.1
   WARNING: A restricted method in java.lang.System has been called
   WARNING: java.lang.System::loadLibrary has been called by org.fusesource.hawtjni.runtime.Library in an unnamed module (file:/C:/Users/james/.grails/wrapper/7.0.1/grails-cli-7.0.1-all.jar)
   WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
   WARNING: Restricted methods will be blocked in a future release unless native access is enabled
   | Starting interactive mode...
   | Enter a command name to run. Use TAB for completion:
   grails> 
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@grails.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] grails-cli: java.lang.System::loadLibrary has been called by org.fusesource.hawtjni.runtime.Library in Java 25 [grails-core]

Posted by "jdaugherty (via GitHub)" <gi...@apache.org>.
jdaugherty closed issue #15216: grails-cli: java.lang.System::loadLibrary has been called by org.fusesource.hawtjni.runtime.Library in Java 25
URL: https://github.com/apache/grails-core/issues/15216


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@grails.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] grails-cli: java.lang.System::loadLibrary has been called by org.fusesource.hawtjni.runtime.Library in Java 25 [grails-core]

Posted by "jamesfredley (via GitHub)" <gi...@apache.org>.
jamesfredley commented on issue #15216:
URL: https://github.com/apache/grails-core/issues/15216#issuecomment-3774188931

   This one is waiting on a new version of org.fusesource.hawtjni to resolve.  


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@grails.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] grails-cli: java.lang.System::loadLibrary has been called by org.fusesource.hawtjni.runtime.Library in Java 25 [grails-core]

Posted by "jamesfredley (via GitHub)" <gi...@apache.org>.
jamesfredley commented on issue #15216:
URL: https://github.com/apache/grails-core/issues/15216#issuecomment-3929811156

   ```
   tasks.withType(JavaExec).configureEach {
       // java 25 workaround - https://github.com/apache/grails-core/issues/15216
       jvmArgs '--enable-native-access=ALL-UNNAMED'
       // workaround https://github.com/apache/grails-core/issues/15343
       jvmArgs '--add-opens=java.base/sun.misc=ALL-UNNAMED'
   }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@grails.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] grails-cli: java.lang.System::loadLibrary has been called by org.fusesource.hawtjni.runtime.Library in Java 25 [grails-core]

Posted by "sanjana2505006 (via GitHub)" <gi...@apache.org>.
sanjana2505006 commented on issue #15216:
URL: https://github.com/apache/grails-core/issues/15216#issuecomment-3774167458

   Hello @jamesfredley, I’m interested in helping with this issue and wanted to confirm the intended approach before starting.
   Is the goal here to update the Grails CLI to explicitly enable native access (for example, via --enable-native-access=ALL-UNNAMED), or is there a preferred longer-term solution such as adjusting or replacing the hawtjni usage?
   
   Also, should the fix target the CLI startup / wrapper configuration, or is there a specific module where you’d like this handled?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@grails.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] grails-cli: java.lang.System::loadLibrary has been called by org.fusesource.hawtjni.runtime.Library in Java 25 [grails-core]

Posted by "sanjana2505006 (via GitHub)" <gi...@apache.org>.
sanjana2505006 commented on issue #15216:
URL: https://github.com/apache/grails-core/issues/15216#issuecomment-3774242170

   Got it, thank you for the clarification. I’ll hold off on this one for now.
   Happy to help test or follow up once a compatible hawtjni version is available.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@grails.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org