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 • Eclipse http: //www. eclipse. org/ • Net. Beans http: //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 Java. Doc / Code style • Java. Doc http: //java. sun. com/j 2 se/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 convention http: //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). • Debugging stepping in/out, breakpoints, watchers, etc… • Unit testing http: //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 Net. Beans