jhipster / generator-jhipster

JHipster is a development platform to quickly generate, develop, & deploy modern web applications & microservice architectures.
https://www.jhipster.tech
Apache License 2.0
21.47k stars 4.02k forks source link

When I am running jhipster gateway appliaction by using ./mvnw I am unable to run #21231

Closed sachi7038 closed 1 year ago

sachi7038 commented 1 year ago

Hi Team, I created one jhipster-gateway application, I am using open jdk 11, spring boot 2.73, and UI angular. when I am running mvn spring-boot: run it is working fine. But if I am running mvnw at that time I am getting below error

[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.7.3:run (default-cli) on project smbweb: Could not exec java: Cannot run program "C:\Program Files\JAVA\jdk\bin\java.exe" (in the directory "C:\Users\SachchidaNandSingh\git\smbweb"): CreateProcess error=206, The filename or extension is too long -> [Help 1]

I am unable to run the application using "mvnw" command

Please suggest me , how I can go ahead.

Related issues
Suggest a Fix
JHipster Version(s) 7.4.0
JHipster configuration
Entity configuration(s) entityName.json files generated in the .jhipster directory
Browsers and Operating System
gmarziou commented 1 year ago

Well your path is too long for java and Windows, this is not due to JHipster.

You could try to move your project to a shorter path like C:\Projects\smbweb

sachi7038 commented 1 year ago

Thanks for your reply, i tried but still i am facing same issue.

gmarziou commented 1 year ago

Duplicate of #18136 and #8878, you might find some hints looking at these issues. Maybe you could you try to move your maven local repository to another place because it impacts the length of the classpath and it's located under your home directory which is long because your user name SachchidaNandSingh. I'm surprised you did not encounter other issues with this long name earlier in your carreer.