I want to create a Python app in Azure App Service. The code involves module language-check, which requires Java. I am wondering how I could install Java in Azure App Service. Thanks!
-
My answer has been updated, creating a webapp and choosing linux will solve your problem. If you choose windows, there will be an error of installing language_check without permission (found during webjob testing).buymeacoffee– buymeacoffee2020-12-23 06:34:23 +00:00Commented Dec 23, 2020 at 6:34
1 Answer
UPDATE
It is recommended to choose linux platform to create web app.
Run below command in webssh.
Step 1. apt-get update
Step 2. apt-get install openjdk-8-jdk
Step 3. java -version
Step 4. pip install language_check
After trying, I found in windows webapp that although the webapp contains a java environment, when executing tool = language_check.LanguageTool('en-US'), an error language_check.JavaError: can't find Java will be reported.
In windows webapp.
When you create a webapp, no matter what language environment you choose, when the creation is complete, in the azure web app, all language environments are included by default.
Suppose you create a webapp based on the node language of windows, then you can create virtual applications in other languages such as java, .net, python etc., all of which are supported, which I have tested.
6 Comments
Docker Container to create a webapp.pip install language_check manually. In windows, I also try to run the command, but failed.

