Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Running Java Executable from Designer Run Command Tool occuered error

WF143
7 - Meteor

Running the Java command line file error is the same as running the local CMD window. What is the reason? This is the first time I have used this tool. I am very unfamiliar with it. Is there any better way to run Java command line files?

 

 

SDYCQ_KMZL2[_R1@YGQSR9V.png

7 REPLIES 7
WilliamR
Alteryx
Alteryx

Hello,

can you translate the error in English?

So you have the same error using the standard command line?

 

Regards.

WF143
7 - Meteor

C:\Users\FannyWF\Desktop\testFlow>java -jar C:\Users\FannyWF\Desktop\testFlow\test.jar

'java'is not an internal or external command, nor is it a runnable program Or batch files.

C:\Users\FannyWF\Desktop\testFlow>pause

Press any key to continue....

 

 

Sorry, I forgot to translate. Thank you for your reply.
The local double-click bat file can run without error.

 

 

Or do you have a similar workflow for a successful Java executable? This problem has been bothering me for a day. It's really a headache.

WilliamR
Alteryx
Alteryx

Yes, read this post, it uses CoreNlp from Stanford with Java in command line: https://community.alteryx.com/t5/Data-Science-Blog/Comparing-Sentiment-Analysis-Algorithms/ba-p/1208...

If it answers to your question don't forget to mark this solution as accepted for other users to benefit from it.

Regards.

danilang
19 - Altair
19 - Altair

Hi @WF143 

 

The "is not recognized as an internal or external command, operable program or batch file." error is thrown when Windows can't find the executable, in your case "Java.exe".  This is usually because the path to your executable is not the %path% environment variable. 

 

Here are some things you can look at.

 

1.  When you run "java -jar C:\Users\FannyWF\Desktop\testFlow\test.jar" directly from the command line, do you run it from a custom command shell that setsup a temporary path? if so, create a batch file that does a Set command before Java and call that from the Run tool.

2. add the complete path to the Run command "C:\Program Files\Java\JDK 9.0.1\bin\Java.exe -jar C:\Users\FannyWF\Desktop\testFlow\test.jar"

3. if this runs, check your Windows environment variables and add to the path the %Path% variable.  Check out the second part of this article for instructions on how to do this.

 

 

Dan

WF143
7 - Meteor

Great. The second step is very effective. You can run the bat file. This is because I forgot to add the absolute path of jdk. I don't think it's necessary to consider this problem after configuring environment variables. I'm so foolish. Thank you very much, but a new problem has arisen.

 

 

Error: Run Command (5): The external program "C:\Users\FannyWF\Desktop\testFlow\run.bat" returned an error code: -1073741510

WF143
7 - Meteor

Thank you for your reply. These commands are very useful for beginners.

WF143
7 - Meteor

@danilang   

I found the reason. There are pause commands and exit commands in my bat file. When I delete them, there are no errors. Thanks again

Labels