60 likes | 216 Views
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….
E N D
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