#starting out
1 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @upper quest! Please use
/closeor theClose Postbutton above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Example of what I’m running into? Not really sure what I’m doing wrong as it matches my guide
please don't use images of screens
looks like you're running it incorrectly
it's text, just show it as text
I can’t tell what’s incorrect? Everything matches exactly how my guide shows it
how exactly are you running it?
And I watched a yt video and it shows it the same as well
I’ve just been pressing the little green play button that says “run beginning.java”
I know I probably sounds completely dumb rn lol but trying to teach myself completely
the statement itself isn't dumb but... what does that mean? how is that answering my question...
Idk what you mean by running it manually lol
On my errors it says “class ‘beginning’ is never used:1”
via the command line
using the run button is having the ide run it
do you have java installed
intellij is what I’m using
And ye I have Java installed
I tried to run manual and it says “nothing to show”
hey
go to the file at the top left
click project structure
then check if you have java setup in intellij
Is that just under the project field or one of the other ones
It says project, modules, libraries etc
ctrl + alt + shift + s
in project it says SDK:
?????
open the command line, navigate to the folder where you have that file, and run java Beginning.java
manually i think they meant
SDK it says “openjdk-19 Oracle openJDK
good follow what chris says
“Error could not find or load main class Beginning.Java”
you skipped a step
navigate to the folder where you have that file
Okay I’m there
in the command line.
if you're in the right place, you should be able to run (windows: dir | *nix: ls) and see Beginning.java in there.
tbh i think the ide fucked you over a bit on this one
just to be clear; ask about anything you don't understand. i don't know you, i don't know what level of background knowledge you have
can you show me the error now when you run in the terminal
PS C:\Users\NESuser\IdeaProjects\beginning> java Beginning.java
Error: Could not find or load main class Beginning.java
PS C:\Users\NESuser\IdeaProjects\beginning>
according to your uh image, your file is in a project folder, main/src etc
Yeah sorry, I’m extremely confused lol
use cd folder to "open" into that folder
Yeah that’s what my guide did. It said new project
use dir to see the contents of the current folder
How do I get back to that there
Where it shows all those
Bc it said that before I did new project
Mine shows this
there should be like a small button thing called Project
Sorry for pics
you cant run this
But it’s so needed lol
please just stop
Okay did
click new project
discord browser exists
snipping tool exists
This is what I did before
Okay I clicked new project
There’s one that say new project and one that says empty project
the new project
it will be like this
click it and choose language : Java and build system: Maven
bruh why is js listed alongside the others 💀
no idea
okay I did that
name change to firstApp
Done
create
oh you have different casing in your classname and filename
go to main
nah I used same
and click the run button on the top right green one
uh clearly not?
I switched it, I had capital B
ah k
And just tried lower case to see if it’d work
Okay I clicked run and it worked
But don’t I have to create new project to start coding something else?
this is a new project
Oh gotcha so just delete this and try to code my beginning thing again
But for public class I need to put Main?
no need
type main in intellij
it will make it for you instead of typing whole thing
you need public class Main {}
always
inside those {} is your code
do mooc.fi to learn properly
ahh gotcha
this way you wont understand java or intellij
or;