The phenomena are as follows:
Error: Command failed: java -jar "/var/task/node_modules/easy-pdf-merge/jar/pdfbox.jar" PDFMerger "samplepdf1.pdf" "samplepdf2.pdf" "merged.pdf"
/bin/sh: java: command not found
at ChildProcess.exithandler (child_process.js:294:12)
at ChildProcess.emit (events.js:198:13)
at maybeClose (internal/child_process.js:982:16)
at Socket.stream.socket.on (internal/child_process.js:389:11)
at Socket.emit (events.js:198:13)
at Pipe._handle.close (net.js:607:12)
killed: false,
code: 127,
signal: null,
cmd:
'java -jar "/var/task/node_modules/easy-pdf-merge/jar/pdfbox.jar" PDFMerger "samplepdf1.pdf" "samplepdf2.pdf" "merged.pdf"' }
Solution: java: command not found
, install jdk to solve it, or configure the green version of jdk to environment variables
Read More:
- [Solved] Mac Maven Command Error: zsh: command not found
- Linux: How to Solve jdk11+easy poi Export Excel Error
- Executing Maven command error: Java_HOME is not defined correctly executing maven
- [Solved] Hbase-shell 2.x Error: Unhandled Java exception: java.lang.IncompatibleClassChangeError: Found class jline.Terminal…
- [Solved] Scala error: type mismatch; found : java.util.List[?0] required: java.util.List[B]
- Java Processbuilder Calls the command error: CreateProcess error = 2
- Run hadoop fs -put Command Error: java.io.IOException: Got error, status message , ack with firstBadLink
- [Solved] No validator could be found for constraint ‘javax.validation.constraints.NotBlank’ validating type ‘java.lang.String’
- [Solved] Could not find resource COM / atguigu / Dao / studentdao.xm, the mapper file for storing SQL statements could not be found and an error occurred
- Springboot startup error: err config is disabled command (Redis Disables Config command)
- [Solved] IDEA java compile error: Error:java: Compilation failed: internal java compiler error
- [Solved] IDEA error: sun.security.pkcs not found
- [How to Solve] Invalid bound statement (not found)
- [Solved] Error: (3, 31) Java: package jdk.nashorn.internal.ir does not exist
- [Solved] Project Error: Could not found sun.misc.BASE64Encoder
- keytool error: java.lang.Exception: Input not an X.509 certificate
- Java Error | Error:java: Compilation failed: internal java compiler error
- Not showing null elements JAVA [How to Solve]
- How to Solve Mybatis error: invalid bound statement (not found)
- [Solved] java: Internal error in the mapping processor: java.lang.NullPointerException