You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Ixf1nity (via GitHub)" <gi...@apache.org> on 2023/01/28 13:45:02 UTC

[GitHub] [maven-mvnd] Ixf1nity opened a new issue, #781: Exception in thread "main" java.lang.IllegalStateException

Ixf1nity opened a new issue, #781:
URL: https://github.com/apache/maven-mvnd/issues/781

   ```C:\Users\Hp\.jdks\corretto-17.0.4\bin>mvnd
   Exception in thread "main" java.lang.IllegalStateException: Could not get value for Environment.JAVA_HOME from any of the following sources: value: java.home, property java.home in C:\Users\Hp\.jdks\corretto-17.0.4\bin\.mvn\mvnd.properties, property java.home in C:\Users\Hp\.m2\mvnd.properties, property java.home in C:\Program Files\mvndaemon\maven-mvnd-0.8.2-windows-amd64\conf\mvnd.properties, system property java.home, environment variable JAVA_HOME
           at org.mvndaemon.mvnd.client.DaemonParameters$EnvValue.couldNotgetValue(DaemonParameters.java:615)
           at org.mvndaemon.mvnd.client.DaemonParameters$EnvValue.lambda$orFail$8(DaemonParameters.java:592)
           at org.mvndaemon.mvnd.client.DaemonParameters$EnvValue.get(DaemonParameters.java:625)
           at org.mvndaemon.mvnd.client.DaemonParameters$EnvValue.asPath(DaemonParameters.java:648)
           at org.mvndaemon.mvnd.client.DaemonParameters.javaHome(DaemonParameters.java:141)
           at org.mvndaemon.mvnd.client.DaemonConnector.connect(DaemonConnector.java:98)
           at org.mvndaemon.mvnd.client.DefaultClient.execute(DefaultClient.java:310)
           at org.mvndaemon.mvnd.client.DefaultClient.main(DefaultClient.java:144)```
   
   Please help me.


-- 
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: issues-unsubscribe@maven.apache.org.apache.org

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


[GitHub] [maven-mvnd] gnodet closed issue #781: Exception in thread "main" java.lang.IllegalStateException

Posted by "gnodet (via GitHub)" <gi...@apache.org>.
gnodet closed issue #781: Exception in thread "main" java.lang.IllegalStateException
URL: https://github.com/apache/maven-mvnd/issues/781


-- 
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: issues-unsubscribe@maven.apache.org

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


[GitHub] [maven-mvnd] gnodet commented on issue #781: Exception in thread "main" java.lang.IllegalStateException

Posted by "gnodet (via GitHub)" <gi...@apache.org>.
gnodet commented on issue #781:
URL: https://github.com/apache/maven-mvnd/issues/781#issuecomment-1407410324

   You need to set the `JAVA_HOME` environment variable before launching `mvnd`.
   This has been enhanced and now `mvnd` can also discover the `JAVA_HOME` by running the `java` command.


-- 
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: issues-unsubscribe@maven.apache.org

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