WHILE READING ECLIPSE (PROGRAMMING JAVA APPLICATION) BY STEVE HOLZNER FROM OREILLY

Eclipse User Storage Service
https://wiki.eclipse.org/Eclipse_USS

code examples
https://resources.oreilly.com/examples/9780596006419/

Opensource license, common public license (CPL)
https://opensource.org/
https://opensource.org/licenses/cpl1.0.php

Package explorer -> File system viewer, windows flavor name…

Type hierarchy ->

Keywords

Views : Window -> Show view

Editor

Workbench

 

Eclipse java perspective -> default perspective of eclipse

 

Create a new project
project layout -> no separation

 

Create a java class
Circled C icon -> creating a new class
Enter package name and class name

Check the class file from File browser

Auto package declaration generator

Auto main method stub generator
Auto package directory generator

 

Chapter 5: Building Eclipse Projects Using Ant

Imported source
File -> Import -> Existing projects into workspace -> root directory -> ch05

Ran build.xml file as “ant build”, error occured

Buildfile: /home/masa/Public/workspace/EclipseCodeExamples/ch05/Ch05_02/build.xml
Initialize:
[delete] Deleting directory /home/masa/Public/workspace/EclipseCodeExamples/ch05/Ch05_02/bin
[mkdir] Created dir: /home/masa/Public/workspace/EclipseCodeExamples/ch05/Ch05_02/bin
[mkdir] Created dir: /home/masa/Public/workspace/EclipseCodeExamples/ch05/Ch05_02/bin/lib
Compile:
[javac] /home/masa/Public/workspace/EclipseCodeExamples/ch05/Ch05_02/build.xml:23: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds

BUILD FAILED
/home/masa/Public/workspace/EclipseCodeExamples/ch05/Ch05_02/build.xml:23: Class not found: org.eclipse.jdt.core.JDTCompilerAdapter

Total time: 275 milliseconds

deleted

<property name=”build.compiler” value=”org.eclipse.jdt.core.JDTCompilerAdapter”/>

solved this.

Buildfile: /home/masa/Public/workspace/EclipseCodeExamples/ch05/Ch05_02/build.xml
Initialize:
[delete] Deleting directory /home/masa/Public/workspace/EclipseCodeExamples/ch05/Ch05_02/bin
[mkdir] Created dir: /home/masa/Public/workspace/EclipseCodeExamples/ch05/Ch05_02/bin
[mkdir] Created dir: /home/masa/Public/workspace/EclipseCodeExamples/ch05/Ch05_02/bin/lib
Compile:
[javac] /home/masa/Public/workspace/EclipseCodeExamples/ch05/Ch05_02/build.xml:23: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 1 source file to /home/masa/Public/workspace/EclipseCodeExamples/ch05/Ch05_02/bin
Jar:
[jar] Building jar: /home/masa/Public/workspace/EclipseCodeExamples/ch05/Ch05_02/bin/lib/Ch05_02.jar
Main Build:
[echo] Ant at work!
BUILD SUCCESSFUL
Total time: 636 milliseconds