Write, Run and Debug your code
Next step: Configure FlexyCore project
This section describes how to create your first Java for iPhone project in Eclipse, compile, run and debug it.
Install a new project
- We recommand you, at least for the first time, to check out our 'BlankProject' from the FlexyCore CVS as explain in the Compile FlexyCore sample code.
- Disconect this project from FlexyCore CVS:
- Right click on 'BlanckProject', and click on Team > Disconnect....
- Check Also delete the CVS meta-information from the file system.
- Click Yes.
- Rename the project with the name of your choice by selecting BlankProject and by clicking Refactor > Rename...
- Rename the package com.yourcompany with the name of your choice by selecting it and by clicking Refactor > Rename...
- Rename the class BlankDelegate with the name of your choice by selecting it and by clicking Refactor > Rename...
Write your code
- First of all, in the main delegate class, insert your code inside the method applicationDidFinishLaunching, it is the entry point of your application
- Complete with Java code in the latest Java programming language
- Browse inside FlexyCore Libraries to navigate available classes, interfaces, fields and methods
- Use standard Eclipse completion
- Look at Javadoc tab to see documentation
- Consult our sample codes at Google Code Project
Compile and Run your code
- To test your code, compile it for iPhone by clicking the icon
in the icon bar: 
Note:
Note: FlexyCore Eclipse Plug'in launches, controls and quits Apple Xcode application. Do not be surprise if Xcode appears and do not quit Xcode during iSpectrum compilation steps.
Note: During the first compilation of the sample code, FlexyCore Eclipse Plug'in compiles also libraries with your installed Apple SDK compiler. This process take times, but subsequent compilations will take less time thanks to incremental compilation.
Debug sample code
- Toggle breakpoint(s) in sample code by selecting a line and then click on Run > Toggle Breakpoint
- Open debug configurations with Run > Debug configurations...
- Select FlexyCore and create a new configuration by pressing New button
- Choose the your project with Choose button
- Choose a Debugger Version, a stable one is recommended
- Click Debug
- Toggle breakpoints during execution

- Inspect local variables, fields

- Continue, step over, step into, …

- Break on exception
- ...
Next step: Configure FlexyCore project
