+ 2

How can I compile Java Programs on Code::Blocks ?

It says that I need to install some sort of compiler for Java !! I do have the latest JDK installed !

13th Mar 2020, 12:11 PM
🌟  RISHABH  👑 - avatar
5 Answers
+ 4
in my memory, you can. but its kinda tacky in a way, because how different the compiler are. i'm not so sure if its codeblock or devc++ that i manage to slip javac in. but yeah, just dont. its unecesarry struggle.
13th Mar 2020, 12:41 PM
Taste - avatar
+ 3
You can't compile java code on code::blocks as it is ment to be used for C/C++. For java you need seprate IDE like Eclips IDE. edit:- even though code::blocks support text highlighting feature for java also but to compile it you need another compiler.
13th Mar 2020, 12:22 PM
Arsenic - avatar
+ 3
That's new. I'm surprised that CodeBlocks would even show the message telling you to install JDK. Save yourself the effort and just install a Java IDE I guess lol. https://www.jetbrains.com/idea/
13th Mar 2020, 1:02 PM
Fermi - avatar
+ 1
Fermi , Taste we can use the custom build commands (within the file properties) to call the Java compiler. But that only practical for small number of files.
13th Mar 2020, 1:05 PM
Arsenic - avatar
Well Java is case sensitive. So, you can get the value 'TRUE' even if you print the answers in uppercase. Wrong.
14th Mar 2020, 3:03 AM
Imamat Sandi Wijaya Harefa
Imamat Sandi Wijaya Harefa - avatar