Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Unable to configure java worker. Could not find JAVA_HOME app setting." in the C# Azure Function v2 #2765

Closed
JunyiYi opened this issue Apr 30, 2018 · 6 comments

Comments

@JunyiYi
Copy link

JunyiYi commented Apr 30, 2018

Investigative information

Please provide the following:

  • Function App version: 2.0-beta
  • Function App language: C#

Repro steps

  1. Create Azure Function v2 in Visual Studio 2017
  2. Select C# language

Expected behavior

I can start writing a Functions app using C#.

Actual behavior

Error messages show in the console:

  • "Unable to configure java worker. Could not find JAVA_HOME app setting."
  • "Could not configure language worker Java."

Known workarounds

  • Add JAVA_HOME to system variables and restart computer.

Related information

@m-demydiuk noticed that azure function works with this error in the console. So this red error doesn't break function on the local machine. But I am afraid it may cause any problems in other environments.

Before this customer goes live, he needs to know, why this error occurs. He does not use java worker, he does not use durable functions lib and also he does not use Java in this project. So why this occurs?

@pragnagopa
Copy link
Member

We have fixed the host to not show error message if Java_home is not set and there are not java fucntions.
Closing this as Dup of #2668

@FlippieCoetser
Copy link

I noticed this issue is closed, but I still experience the same problem after installing the latest version of Visual Studio (15.8.7) and Azure Functions and Web Jobs Tools (15.8.5023.0). Is there a permanent fix available for this issue?

@JohnReeson
Copy link

@FlippieCoetser Latest version of Azure Functions and Web Jobs Tools is 15.10.2046.0. After update, check whether you can see latest CLI and host version when debugging project.

Azure Functions Core Tools (2.1.748 Commit hash: 5db20665cf0c11bedaffc96d81c9baef7456acb3)
Function Runtime Version: 2.0.12134.0

@petrce
Copy link

petrce commented Oct 24, 2018

I have latest version installed but still can see this error:
Unable to configure java worker. Could not find JAVA_HOME app setting.
Could not configure language worker Java.

Azure Functions and Web Jobs Tools 15.10.2046.0 Azure Functions Core Tools (2.1.748 Commit hash: 5db20665cf0c11bedaffc96d81c9baef7456acb3) Function Runtime Version: 2.0.12134.0

@petrce
Copy link

petrce commented Oct 24, 2018

ok fixed with this trick:
https://github.com/Azure/azure-functions-vs-build-sdk/wiki/How-to-manually-update-the-Azure-Functions-Core-Tools
but I think latest Azure Functions and Web Jobs Tools are broken

@JohnReeson
Copy link

@petrce Probably related to this tracking issue.

@Azure Azure locked as resolved and limited conversation to collaborators Jan 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants