Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Can not run the project on Spring Source Tool Suite. #123

Open
vosybac opened this issue Apr 26, 2020 · 4 comments
Open

Can not run the project on Spring Source Tool Suite. #123

vosybac opened this issue Apr 26, 2020 · 4 comments
Assignees

Comments

@vosybac
Copy link

vosybac commented Apr 26, 2020

I am newbie of Spring and ReactJs.
I have learned Spring and ReactJs but haven't integrated them together.
I can not run the project on Sprint Source Tool Suite.
Please help.
Thanks in advance!

@dsyer
Copy link

dsyer commented Apr 28, 2020

I don't know anything about React. I cloned the repo and ran mvn install in the basic sample, then imported it into STS. Ran the main method and went to localhost:8080 in the browser. All 200 OK as far as I can see. I don't really know what it was supposed to do, but it shows a table of employees (actually only one). Seems like it works to me?

@vosybac
Copy link
Author

vosybac commented Apr 28, 2020

I got this error when ran mvn install

[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.6:npm (npm install) on project react-and-spring-data-rest-basic: Failed to run task: 'npm install' failed. java.io.IOException: Cannot run program "C:\Users\B\Desktop\SpringProjects\tut-react-and-spring-data-rest-master\tut-react-and-spring-data-rest-master\basic\target\node\node.exe" (in directory "C:\Users\B\Desktop\SpringProjects\tut-react-and-spring-data-rest-master\tut-react-and-spring-data-rest-master\basic"): CreateProcess error=193, %1 is not a valid Win32 application -> [Help 1]
[ERROR]

@Buzzardo
Copy link
Contributor

Do you have Cygwin? If so, does it run correctly if you try it on Cygwin?

@dsyer
Copy link

dsyer commented Apr 29, 2020

I think the mvnw.* scripts were old and mouldy. I replaced them with fresh downloads from start.spring.io. Maybe it works now (on the command line at least)?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants