News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Newbei to Programming - Help setup Java and Codeblocks

Started by ruler, May 05, 2009, 11:22:16 PM

Previous topic - Next topic

ruler

Hello guys,
I am pretty new to programming. My course requires me to use java. Can someone please list a step by step process of setting up CodeBlocks so I can code, compile, debug and run programs through codeblocks??
I already have the Codeblocks 8.2 downloaded and also the Java SE Development Kit 6 Update 6.
Thank you!


MortenMacFly

#2
Quote from: ruler on May 05, 2009, 11:22:16 PM
please list a step by step process of setting up CodeBlocks so I can code, compile, debug and run programs through codeblocks??
This does not work, really. C::B is a C++ IDE which can be used with languages very close to C++ (like C, Python, probably). Java differs in many aspects from C++. One aspect is that is does not have/use a linker. The build system of C::B is developed with a linker in mind.

However - C::B features Java syntax highlighting and in theory it is possible to setup compile commands for each file individually which would enable to compile Java programs. But I don't think this makes sense and that's what you want.

http://wiki.codeblocks.org/index.php?title=Adding_support_for_non_C/C%2B%2B_files_to_the_build_system
describes the steps accordingly (like mariocup said).
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]