As I don't see bun in your activated functions
Appwrite CLI not showing Java runtime instance
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 2: Process
cloud
Ooh I thought it's self-hosted
Rank 2: Process
cli takes proejcts from cloud console
The cloud support a limited list of runtimes till the production release.
If you want to have runtimes like Java then you'll need to create your Appwrite instance and self-host it.
Rank 2: Process
I have self-hosted it but cli is going to the cloud console one
Gotcha
What OS you're using?
Rank 2: Process
Ubuntu on WSL2
Good
Edit the ~/.appwrite/prefs.json file
Remove all the content or backup by renaming it.
Then relogin using the Appwrite CLI to your self-hosted instance, then you'll have the option to create a Java function.
Rank 2: Process
cool. I'll try
Rank 2: Process
yup it worked. Thanks for the help

Rank 2: Process
in order to run the java file, i need to deploy the function right
Rank 2: Process
?
What you mean?
You've created the function using appwrite init function?
Rank 2: Process
yea
Rank 2: Process
i need to run the Main.java file
Then edit the Main.java file and use the appwrite deploy function to upload it when you done
If you want to test it and run it locally I would recommend look here on Appwrite is running that file.
Rank 2: Process
cool
Rank 2: Process
I edited Main.java file and on running appwrite deploy function, it shows Success deployed 0 functions
You need to select the function using the spacebar then hit enter
Rank 2: Process
ugh my bad