question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

func new is not working for java

See original GitHub issue

Probably, Java looks not supported for CoreTools, however, the experience looks misleading.

a$ func init
Select a number for worker runtime:
1. dotnet
2. dotnet (isolated process)
3. node
4. python
5. java
6. powershell
7. custom
Choose option: 5
java
Writing .gitignore
Writing host.json
Writing local.settings.json
Writing /home/ushio/Code/Project/Lima/CoreTools/java/.vscode/extensions.json
$ func new
Select a number for language:Select a number for template:Worker runtime 'java' is not a valid worker for a template.

If it is not available, we can cross out the 5. java. For java, we usually, maven plugin.

func init equivalent.

$ mvn archetype:generate -DarchetypeGroupId=com.microsoft.azure -DarchetypeArtifactId=azure-functions-archetype -DjavaVersion=8

func new equivalent.

$ mvn azure-functions:add
[INFO] Step 2 of 4: Select function template
Choose from below options as template for new function 
0. HttpTrigger
1. BlobTrigger
2. QueueTrigger
3. TimerTrigger
4. EventGridTrigger
5. EventHubTrigger
6. CosmosDBTrigger
7. ServiceBusQueueTrigger
8. ServiceBusTopicTrigger

It also doesn’t include Kafka Trigger it is on going, however, I don’t know the ETA of RabbitMQ. RabbitMQ has separate repo. FYI: https://github.com/microsoft/azure-maven-plugins/issues/1423

@pragnagopa

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
TsuyoshiUshiocommented, Apr 20, 2021
0reactions
pragnagopacommented, Apr 20, 2021

closing this as dup

Read more comments on GitHub >

github_iconTop Results From Across the Web

func new not working for JavaScript app · Issue #1700
When the core tools tries to download the extension bundle for the first time, the download is only partially successful. Putting the core...
Read more >
Azure Function in Java does not work locally
I started receiving this error after installing the latest versions of IDEA IntelliJ w/ Azure Toolkit for IntelliJ plugin, & Azure Core Tools...
Read more >
Create a Java function in Azure using Visual Studio Code
Learn how to create a Java function, then publish the local project to serverless hosting in Azure Functions using the Azure Functions ......
Read more >
How to run Java in an Azure Function | Azure Tips & Tricks
In this edition of Azure Tips and Tricks, learn how to run Java in an Azure Function. For more tips and tricks, ...
Read more >
AWS Lambda function logging in Java
This page describes how to view Lambda function metrics using Amazon CloudWatch for the Java runtime.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found