community
cancel
Showing results for 
Search instead for 
Did you mean: 

Alteryx designer Discussions

Find answers, ask questions, and share expertise about Alteryx Designer.
Upgrade Alteryx Designer in 10 Steps

Debating whether or not to upgrade to the latest version of Alteryx Designer?

LEARN MORE
SOLVED

Running Java Executable from Designer Run Command Tool occuered error

Meteoroid

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

Alteryx
Alteryx

Hello,

can you translate the error in English?

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

 

Regards.

Meteoroid

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.

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.

Highlighted
Magnetar

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

Meteoroid

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

Meteoroid

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

Meteoroid

@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