#Hello World Not Working
1 messages ยท Page 1 of 1 (latest)
While you are waiting for getting help, here are some tips to improve your experience:
If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.
Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.
Maybe I forgot smth
I literaly never ever ever touched java in my life so please tell me what's wrong
This is what I have
save the file
and the file name needs to match the class name
Ah...
and add public before class ๐
Its still not working
I did this too
can u show again ?
HelloWorld.java ( just to verify due to hidden extentions ) ?
Nope still doesn't work :(
I'm sorry
There was smth about jres and whatever but I didn't understand any of it
do u have java installed ?
Yeah
does the file compile?
I went to preferences and selected it even
is the class in src?
Where do I do that
like which error do you get when you run it
Unable to launch: "the selection cannot be launched, and there are no recent launches
ah
can u share your entire screen ?
that means no config file has been made to run it @modern atlas , its the same as in intellij
by clicking on a green triangle
first time it runs, it generates a setting to use for next runs
Then I'll install that ig?
@sturdy bluff can u share your entire screen ?
we definitely prefer it round there
Yea but my little brother is in the background ๐ญ
i think you just put the file in the wrong place
just the eclipse screen suffices
i do agree that going for intelij over eclipse is a good idea
lol
yeah, your project is not correct
Is it free?
yeah
yes
at this point u got 2 options, redo it, or swap to intellij ( most people here will answer quicker due to their knowledge of IJ )
be sure to put your source files under the src folder once you create an intellij project
yeah you can run random java classes with a main, but you will need to compile and run it manually
IDEs like eclipse and intelij run projects, and those need to be properly configured. now normally the IDE does thiw for you, but if you dont know what youre doing you can accidentally screw things up without knowing why
which you did, in this case
as of recently, you don't actually need to compile them beforehand, you just do java HelloWorld.java and it works
that still compiles it, but in memory or something?
I think it just dumps the .class file next to it
idk the details, but it doesnt really matter either way. use an IDE 
usually when someone cannot press play to start, doing the commandline will be alot harder
yes
100% agree lol
Usually, this happens in eclipse if you've never ran the main method before, you can right click on your file in the explorer window of eclipse and there should be a run selection