Back

[SOLVED] How to add Java Runtime?

  • 0
  • Functions
  • Web
Elizabeth Barco
12 Jul, 2023, 23:30

Hello, I want to make a function in the java/ folder. By default the runtime options don't include Java. I have looked at https://github.com/appwrite/appwrite/discussions/4826#discussioncomment-4338536 to use Java. But I get an error:

=> ERROR [examples 2/2] COPY examples.jar examples.jar 0.0s

after doing: docker compose up -d

I will provide the screenshot on how I changed the env. file and the terminal.

TL;DR
User wants to add Java Runtime but gets an error during the process. They are advised to run the command in the correct folder and fix an extra space in the environment variable. According to a response, the issue has been resolved.
Drake
12 Jul, 2023, 23:33

umm it looks like you're running docker compose up -d in the wrong folder. You should be running it in the appwrite folder where your docker-compose.yml and the .env file you modified is.

Also, you have an extra space in your runtimes environment variable.

Elizabeth Barco
12 Jul, 2023, 23:44

Thank you Steven it worked

Drake
12 Jul, 2023, 23:47

[SOLVED] How to add Java Runtime?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more