r/javahelp • u/ScaryGhoust • Oct 12 '25
Need help with running via console
Hi!
I wanna build a little game in Java. The problem is I can’t run/compile project via console
I usually use “java/javac Main.java” to run code. But when I use more than 1 source file it just doesn’t work. I tried compiling it as JAR, but when I ran it, it said it lacks some Manifest I know nothing about.
I know only very basics of Java. So asking here.
Thanks in advance
P.S. Compiling via console is one of the main points of this project. So, no, I can’t just use IDE
2
Upvotes
View all comments
Show parent comment
1
u/ScaryGhoust Oct 13 '25
I just wanna fully understand how it works under the hood — fully enough to be able to compile/run it by hands.
Btw, I’m coming from C++. So it’s highly likely might be an old habit, that dies hard.
Before starting using C++, I’ve learnt pretty basics of Java. Now I wanna compare them and see if Java is easier for gamedev.
And about project managers, I use Makefile. (Again it’s old habit from C++). But maybe I’ll give Maven or other managers a try.
When I was learning Java, I was using IntelJ IDE. Why do I use just text editor (I use Kate, to be exact) now? I like controlling everything. For me, personally, using IDE feels like using wheelchair, while being able to walk on my own.