Java developer tools
This document outlines the essential Integrated Development Environments (IDEs) for Java development, focusing on Eclipse and NetBeans. It explores their features including code editing, debugging, build automation, and version control systems. Both IDEs are free, platform-independent, and provide tools for Java and C/C++ development. Additional resources such as unit testing with JUnit and documentation with JavaDoc are discussed. Tips on code style, convention, and effective project creation in Eclipse are also included. Ideal for new and experienced Java developers looking to enhance their workflow.
Java developer tools
E N D
Presentation Transcript
Java developer tools Emanuel Dohi (emanuel@cs.umu.se) Lars Larsson (larsson@cs.umu.se)
What is an IDE?(Integrated Development Environment) • source code editor • compiler • build automation tools • debugger • version control system • GUI builder • class browser • object inspector • Etc…
IDE alternatives • Eclipsehttp://www.eclipse.org/ • NetBeanshttp://www.netbeans.org/ • Both are free, have GUI-builder, debugger, CVS, mobility pack, can be used for Java and C/C++, can handle external compile/build/deploy such as ANT.They also have plugins for profiling and javadoc generation. Both are platform independent and can be used on both Linux and Windows… • Another useful application is ESS-model.http://essmodel.sourceforge.net/
Comments as JavaDoc / Code style • JavaDochttp://java.sun.com/j2se/javadoc/writingdoccomments//** The add function calculates c = a + b @param A first integer to add @param B second integer to add @return the integer value of A+B**/int add(int A, int B) { return (A+B);} • Code conventionhttp://java.sun.com/docs/codeconv/
CVS, Debugging, Testing • CVS - What is it for?For CVS access at computing science contact support@cs.umu.se and simply ask for one (including the usernames that should have access, i.e. your group). • Debuggingstepping in/out, breakpoints, watchers, etc… • Unit testinghttp://www.junit.org/
Demo • Creating a project in Eclipse • Auto compilation / error and warning helper • Class / function helper • CTRL-ALT-SPACE / sysout / syserr / for • Refactor • Getters and Setters • Auto comments • Compile / Run / External builders (ANT) • Debugger • CVS • GUI with NetBeans