Java has Failed us too

I use right click on desktop and navigate to create document then prog and then java, I save it on my Desktop and this is what I get…

What version of Parrot are you running? (include version, edition, and architecture)
Linux parrot 4.18.0-parrot8-amd64 #1 SMP Parrot 4.18.6-1parrot8 (2018-09-07) x86_64 GNU/Linux (parrot security stable current)
What method did you use to install Parrot? (Debian Standard / Debian GTK / parrot-experimental)
Debian GTK
Configured to multiboot with other systems? (yes / no)
no, Just The best OS in the world!
If there are any similar issues or solutions, link to them below:
maybe another programming language will fail us… Who knows? I think the java $PATH is Broken …
If there are any error messages or relevant logs, post them below:
└──╼ $java
Error: Could not find or load main class
Caused by: java.lang.ClassNotFoundException:

I think you are doing it wrong.

You need to use javac first. Also your file name will have to match the class name.

java HelloWorld

thank you I think it will work now @KidKlown