Git Product home page Git Product logo

Comments (5)

shannah avatar shannah commented on August 29, 2024

from jdeploy.

thatsIch avatar thatsIch commented on August 29, 2024

If I would have not have npm on my path, I could not even install/run jdeploy.

λ npm link
C:\Users\thatsIch\AppData\Roaming\npm\sublime-rainmeter-image-smoother -> C:\Users\thatsIch\AppData\Roaming\npm\node_modules\sublime-rainmeter-image-smoother\jdeploy-bundle\jdeploy.js
C:\Users\thatsIch\AppData\Roaming\npm\node_modules\sublime-rainmeter-image-smoother -> D:\Work\Rainmeter\RainmeterImageSmoother

jdeploy init works, install not:

λ jdeploy install
Executing copy rule CopyRule{dir=target, includes=[sublime-rainmeter-image-smoother-1.3.0-jar-with-dependencies.jar], excludes=null}
target\archive-tmp does not match any patterns.
target\classes does not match any patterns.
target\generated-sources does not match any patterns.
target\maven-archiver does not match any patterns.
target\maven-status does not match any patterns.
target\sublime-rainmeter-image-smoother-1.3.0-jar-with-dependencies.jar does not match any patterns.
target\sublime-rainmeter-image-smoother-1.3.0.jar does not match any patterns.
target\test-classes does not match any patterns.
Exception in thread "main" java.lang.RuntimeException: java.io.IOException: Cannot run program "npm": CreateProcess error=2, Das System kann die angegebene Datei nicht finden
        at ca.weblite.jdeploy.JDeploy.main(JDeploy.java:1252)
Caused by: java.io.IOException: Cannot run program "npm": CreateProcess error=2, Das System kann die angegebene Datei nicht finden
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
        at ca.weblite.jdeploy.JDeploy.install(JDeploy.java:1146)
        at ca.weblite.jdeploy.JDeploy.main(JDeploy.java:1239)
Caused by: java.io.IOException: CreateProcess error=2, Das System kann die angegebene Datei nicht finden
        at java.lang.ProcessImpl.create(Native Method)
        at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)
        at java.lang.ProcessImpl.start(ProcessImpl.java:137)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
        ... 2 more

Why is

 Executing copy rule CopyRule{dir=target, includes=[sublime-rainmeter-image-smoother-1.3.0-jar-with-dependencies.jar], excludes=null}

not matching with

target\sublime-rainmeter-image-smoother-1.3.0-jar-with-dependencies.jar does not match any patterns.

is this a windows issue using \?

from jdeploy.

shannah avatar shannah commented on August 29, 2024

from jdeploy.

thatsIch avatar thatsIch commented on August 29, 2024

I found the problem

http://stackoverflow.com/questions/40503074/how-to-run-npm-command-in-java-using-process-builder

€:
you are just susing "npm", "link" which will fail on windows because the ProcessBuilder will not use the path extensions (upon npm it will add extensions and tries to execute them like .bat or .cmd)

€€:
I just tried it with npm.cmd and it works in a toy project

from jdeploy.

shannah avatar shannah commented on August 29, 2024

Thanks. I have fixed this issue and tested/verified on my Windows 10 box. I have updated it on NPM. Version 1.0.18 includes the fix. You should update your jdeploy with

npm update -g jdeploy

from jdeploy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.