+ 1
How can I get CodeBlocks to compile Java?
I used Eclipse far, but I don't like it. I thought I could develop Java programs using CodeBlocks. But now I have problem with compiling Java programs on CodeBlocks. (Compiling C and C++ programs worked fine.) How can I use CodeBlocks to compile Java? Do I need to install something? (I already have Java installed.) I can run Java programs on Eclipse with no problems.
8 Antworten
+ 5
• 5 Best Open Source Java IDEs — https://www.technotification.com/2019/03/open-source-java-ides.html
• Choosing your Java IDE — https://www.javaworld.com/article/3114167/development-tools/choosing-your-java-ide.html
+ 3
Net beans is the best ide for java
0
i found interesting thread here
https://stackoverflow.com/questions/22059855/configure-launch-command-in-codeblocks
so you actually able to launch a bat file using codeblock.
so maybe you can create a batch file to compile your java file, then call them from codeblock
0
yeah, because its not mainly design for another language. but if i compare codeblock with java IDE (i never use blueJ) codeblock is much more lighter.
but i personally stick with more general yet extensible text editor than using IDE though
0
Are you sure that CodeBlocks wouldn't compile Java normally?
0
Netbeans is even worse, Netbeans and Eclipse both always prepare me 1000 debugging tools that I never use, during the launch.
I'd only want an IDE that can compile or run my codes, without those 1000 unused debugging tools. 🤷♂️
0
since what codeblock do in my previous answer is executing a batch script, i dont think it'll mess up anything.
please note i never tested it.
btw why not just stay with text editor ? i mean even notepad++ are able compile and run with a shortcut.
0
you cannot compile a Java program in Code Blocks
however syntax highlighting might still work during editing