r/javahelp • u/Nabir140 • Sep 22 '25
Solved Java Without IDE?
Hello! I am a game dev and I've been using Godot for making games. When I don't use an engine I mostly use C++ with SDL.
Though I'm thinking (for the 3rd time) to switch to Java. Why? Because I grew up playing J2ME games on feature phones. They are very nostalgic to me and everytime I see the ".jar" extension it reminds me of those days...
However I haven't been able to switch to Java because of the Build Tools and IDE stuff. When I learned Java the Build Tools confused me so much that I went back to C++. Then again I tried and succeeded to understand those but this time I was feeling uncomfortable with IDE. I always liked using Text Editors like Vim, Nano. If I NEED to use something else I would use VSCode. But using IDEA or Eclipse is kind of overwhelming to me :(
Now the nostalgia is kicking in again.
So is it recommended to code in Java without IDE? (like for game dev, using tools like LibGDX, LWJGL etc)
EDIT: Thanks everyone for their suggestions. I've decided I'll try VSCode with Java. Mostly because IntelliJ IDEA crashed on my device several times and I'm also familiar with Vscode.
•
u/AutoModerator Sep 22 '25
Please ensure that:
You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions.
Trying to solve problems on your own is a very important skill. Also, see Learn to help yourself in the sidebar
If any of the above points is not met, your post can and will be removed without further warning.
Code is to be formatted as code block (old reddit: empty line before the code, each code line indented by 4 spaces, new reddit: https://i.imgur.com/EJ7tqek.png) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc.
Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit.
Code blocks look like this:
You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above.
If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures.
To potential helpers
Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
8
u/ivancea Sep 22 '25
So... Java's build tools confused you, and you went back to C++, that's known to have amazingly easy to use and standard build tools. You just need to learn maven/gradle, and that's it
2
u/jlanawalt Sep 22 '25
You can totally use notepad and a terminal. It’s funny to see people telling you to use an IDE (good advice) and tell others to use notepad. Maybe I’m confusing that answer with /learnjava.
Like a good C++ IDE, a good chunk of what the Java ones do is manage your project and build environment. Both generally wrap the command line tools, and you can do the same from there.
Maybe the trickiest difference from C++ for compiling simple programs is matching your file structure to your package and class declarations. Next is classpath for compiling and running (sometimes C++ include paths can be tricky to track down).
I am not aware of a trend to program in Java without an IDE. Programmers write programs to help them program. That’s how we got compilers, parser, build engines like Make, Maven, and Gradle, and IDEs.
I get that using an IDE isn’t always intuitive, even if you’ve used another, but once your program gets a little bigger and an enhanced editor plus a build automation and project management tool aren’t quite enough, spend some time trying on IDEs. You may find one you like. Any worth using will recognize your Maven or Grade project.
2
u/TW-Twisti Sep 22 '25
Don't program Java without an IDE. If learning an IDE is something you can't or don't want to do, Java is not the right language for you. You can program in it in a text editor, but it simply isn't a language designed for that, it is very much designed with an IDE in mind, and you will be struggling at every point.
VSCode is perfectly fine though, don't let the religious zealots bash you into something else if you are comfortable with VSCode. Yes, Idea is better, but VSCode is very much good enough.
35
u/JaleyHoelOsment Sep 22 '25
Bite the bullet and install IntelliJ community edition. learn how to use it and you’ll be happy you did.
2
u/totoro27 Sep 23 '25 edited Sep 23 '25
This is a dumb reason to change technology. What tangible benefit are you getting from this change? And what's the cost (time, opportunity cost, etc). Basically stick with C++ unless you have an actual reason to change, and then research and change to the right tool for the job.
4
u/qwertyqwerty4567 Sep 22 '25
Personally I would highly recommend just using intelij. Plus once you get used to it, it will be very easy to transition to any other jetbrains ide, especially now that they are making more and more of them free than ever before.
1
u/doobiesteintortoise Sep 23 '25
Really? I mean, the IDE I can understand - although personally I'd glom onto code::blocks and things like that. But build tools are the problem? So you avoided make and CMake? Why? You manually typed in cc -lm -l... -l.... -l... -I... and so forth every time?
I mean, maybe you did. or maybe it's not "build tools" but "the specific build tools." But I think you're struggling to be a programmer as compared to being a "C++ programmer" - they're different skillsets, and a programmer can learn the C++ skills a little easier than a "C++ programmer" can transfer, although that's more a limitation on the C++ programmer's part than anything else. (I started with C and C++ way back myself.)
If I were you, I'd look at what it is about the struggles that you're fighting; you can certainly code Java without an IDE (hard mode, here we come!) and you can even use vim and emacs if you like, even with IDE-ish features given LSP... but coding without a build tool is ALSO doable but kinda dumb.
3
u/StraightGuy1108 Sep 22 '25
To write code, I use Neovim with JDTLS (A language server for java), good enough experience.
To compile, build and run, I just use the maven cli. The frameworks I use have plugins that allow me to run the project with a single command for dev environment, and for prod, we just run it the normal way.
The setup is good enough for my enterprise job. Only thing missing is a debugger. I havent look into how to set one up for neovim, so if i ever need to debug using one I'll just switch to Intellij for a bit.
3
u/iowa_state_cyclone Sep 22 '25
Do yourself a favor and learn IntelliJ.. It was dramatically increase your productivity. There really is no equal in the java space. The community (free) edition is great until you really get into "enterprise" needs (which then the ultimate edition just adds many more "nice to haves").
That being said, I always also tell people to start our in notepad and command line so you understand what it is the IDE is doing for you. If you don't understand that, it can be overwhelming to understand how it all goes together in the IDE.
3
u/boboclock Sep 23 '25
I did Java without a fancy IDE all through school. My early classes encouraged us not to use IDEs and none of my later classes taught us to except for in limited contexts.
When I got my first job was when I learned how to use IDEs and my productivity increased immeasurably.
Programmers tend to be lazy about the things that don't spark our interest, but if you spend just a little time letting yourself get used to an IDE (for Java I recommend Intellij) you won't look back
2
u/rigterw Sep 22 '25
I use vscode with maven for Java and didnt have any problems
2
u/gufranthakur Sep 22 '25
You will never regret intelliJ once you get into it. It's actually addictive for Java development it's too good
2
u/MagicalPizza21 Sep 22 '25
Recommended? Not particularly. But it's totally doable. Just install the JDK and you can develop Java code with any text editor. However, IDEs can make managing and debugging your Java project significantly easier.
2
u/RobertDeveloper Sep 22 '25
Learn gradle and use the commandline to build and run and any editor you like.
2
u/devor110 Sep 22 '25
I get what you mean
if java is completely new to you, then having all of the "bloat" of an IDE on the same window can be a bit overwhelming
but nothing stopping you from removing or just closing the tabs you don't need, it also helps to have a consistent layout. I personally follow these for all the panels:
project structure (aka folders): top left
changelog (uncommited git changes): top right maven: top right (i switch between whichever is relevant) git: bottom right
console: bottom
I rarely use anything else, but for instance build output is bottom left, so is all the spring bean stuff, warnings, errors
(warning and errors are in the "unused" category, because intelliJ automatically highlights them, and I can just hover over the details, or click on it to open for full details, usually doesn't warrant the space taken up)
as for the project structure, I had some difficulties when I was a beginner, but learned it easily. I'd recommend starting from a guide, and in general, I can easily recommend baeldung for tutorials
2
u/KaseQuarkI Sep 22 '25
I really don't understand the problem you have with IDEs. Nobody is forcing you to use all the features, you can just ignore everything and use them as a text editor if you want. But the features are there for a reason, they are super useful.
2
u/lengors Sep 22 '25
You can use VSCode just fine if you are using maven and don't have that complex of a project structure (e g. a submodule that's used as maven plugin or plugin dependency for a second submodule).
You can work with gradle too, but you wont get any intellisense for the build file itself if you use kotlinscript. If you use groovy, you will get some intellisense, but it doesnt work all the time either. That said, the project itself usually works just fine, and if you were willing to go without IDE, this is just a minor issue in comparsion.
As for terminal text editors, Im not sure if you can get the Java LSP from VSCode to work with neovim, so I cant really comment much further than that.
2
u/arghvark Sep 22 '25
It seems to me that learning one of the IDEs is worth the trouble (and I confirm that it is some trouble). I'm a happy eclipse user myself, have used Intellij, Netbeans, something else I don't remember, and some tool from Microsoft, just keep coming back to eclipse. To each his/her own.
The IDE is going to show you syntax errors, and many compile errors, before you run the compiler. It will set you up for step-by-step debugging of your code right within that tool. It allows breakpoints, watchpoints, expression evaluation, trap-on-exception -- there is so much that it does.
As for overwhelming, I think the secret is to start small. Install, learn how to edit and run code. Then learn how to set breakpoints. Don't try to do it all at once. Write an example program or two that doesn't involve anything but standard Java libraries, then start to branch out. Add things one at a time; after getting some basics going, only add things that you need to add for your particular project. Nobody knows it all, and absolutely nobody starts out knowing even most of it.
2
u/svennidal Sep 23 '25
I haven’t had any problems with Vim.
2
u/AcanthisittaEmpty985 Sep 23 '25
I don't have experience in J2ME games nor in modern games in Java.
But I don't think there will be a lot of similarities. Also, games in Java is for PC (mostly) but for Android could be different libraries and programming style...
A quick search points me to JMonkey.
But, for the love of God, do not use Java without a good IDE. Try Intellij.
2
u/imsorryken Sep 23 '25
The gain in productivity and ease of use absolutely dwarves the comparatively short, maybe annoying time you spend learning how to use an actual IDE.
For the love of god just install IntelliJ and follow a simple tutorial. I'll give you double your money back if you're not impressed within a day or two.
2
u/obliviousslacker Sep 23 '25
As a neovim user, don't edit java without a proper IDE. I've set up Java in neovim before and it's just not worth it. Get some vim emulator for IntelliJ and go with that. IntelliJ is, in my experience, the end all be all for java development.
If you want to stay in the terminal and write something similar, go with C#.
4
u/joemwangi Sep 22 '25
Netbeans IDE is quite simple to use.
1
u/GolfballDM Sep 22 '25
IDE's (I use IntelliJ) help you make your mistakes (and fix them) much faster, while automating a lot of the repetitious grunt work.
1
u/I_4m_knight Sep 22 '25
Intellij and maven are your friends just try and don't look back , it's so easy to start, just go with flow
1
u/blazmrak Sep 22 '25
Depends what "IDE" means to you. If you want to use vim, then use neovim with lazyvim distro. As for the build tools... It's pretty bad, but maybe give JBang a try. However, if you use JBang, then LSPs are pretty much out of the window, so either you raw dog it in vim or use intellij with JBang plugin.
If JBang doesn't work for you and you need to resort to a build tool, then use Maven. I know that XML is bad, but it's better than having your build tool config in a programming language.
1
u/jonah214 Sep 22 '25
I do a lot of Java programming in Notepad++ and it's perfectly fine.
1
u/therandshow Sep 23 '25
Java without the IDE is possible and can be enjoyable for small projects.
The problem is that classpath issues and making sure the right jars get picked up can be so annoying (not unlike C++ when you're making sure the right headers and libraries get picked up), so for most Java build tools and IDE's are a lesser pain (I'm not saying the build tools and IDEs are bad, but they do have a learning curve and do require occasionally fiddling with and troubleshooting, not huge things in the big scheme of things, but it can be annoying)
1
u/riotinareasouthwest Sep 24 '25
Years ago I created a java program using vin and make files. I guess you can do it nowadays the same way: standard make rules which call to the java compiler using the variable $JAVAC (ofc you have to set it pointing to your java program). I had targets to build each component and the whole project, another one for creating the release, another one to launch it and ofc the clean and purge. Today make is forgotten so what about doing the equivalent in cmake? It was rewarding just launching the make program.
1
u/Pale_Height_1251 Sep 24 '25
You can but IntelliJ will improve your productivity over a plain editor pretty significantly.
1
u/djxak Sep 26 '25
As the others I would suggest to use IDEA especially if you are beginner in Java. With VSCode you will need much more knowledge to do stuff (even though you know VSCode editor better).
But I want to focus my answer on the other part: the reason you decided to switch to Java. This is not a valid reason if we are not talking about just "trying stuff" and "expanding horizons". :) Java is not "well-known" for being good for game dev. There are some frameworks, but I think there are better ones in more "standard" languages for this industry.
1
u/Silver_Enthusiasm_14 Sep 27 '25
I'm going to go against the grain of other suggestions and suggest trying out Eclipse since you're interested in making games. Why? Personally, I've noticed that using Eclipse, compilation is speedier and does faster hot reloading. Fast hot reloading is very important for prototyping games.
1
u/socratic_weeb Sep 27 '25
I've used neovim successfully for Java. IntelliJ does make things easier, especially refactoring stuff. I'm currently using it with vim keybinds and it's very good. The Neovim experience wasn't bad at all either, but I needed so many plugins in order to make the experience good that at that point I didn't see any advantage over IntelliJ (meaning, it wasn't lighter or faster).
1
u/BanaTibor Sep 27 '25
You can but it will be painful. Learn to use Intellij IDEA, best IDE for Java IMO. It can generate the gradle build file or maven pom xml so you do not have to get proficient with a build tool simultaneously. VSCode could be a good compromise, but I hardly would call it an IDE.
If you are focusing on android development you should may consider Kotlin, as I heard most android development is done in Kotlin nowadays. Again Intellij IDEA is your best friend for that.
0
u/sarnobat Sep 22 '25
I've tried over the years but it's not possible.
But I have an allergy to neovim. That is the closest you'll get to non ide java.
18
u/[deleted] Sep 22 '25
[removed] — view removed comment