Environmental Construction
Follow the procedures below to use the sample program.
1
Extract the sample program zip file to a directory of your choosing.
2
In Eclipse, go to [File]-[Import], select [General]-[Existing Project into Workspace],
and then click [Next].
3
The Import Projects window will be displayed. Make the settings shown below and
click [Finish].
Select root directory
Copy projects into workspace
4
In Package Explorer view, right click on the "ePOSPrintSample" project and select
[Properties].
5
The Properties for ePOSPrintSample window will be displayed. Make the settings
shown below and click [OK].
Android
Java Build Path
6
In Package Explorer view, right click on the "ePOSPrintSample" project and select
[Run As, Android Application].
7
The sample program will be installed to the target Android device, and then the
program will start up.
Item
Specify the directory where you extracted the sample program
zip file.
Check this option.
Item
Select the Android OS version of the target device.
In Libraries, confirm that the path to ePOS-Print.jar, which is
located in the ePOSPrintSample project that was copied into
the project workspace, is set.
Chapter 2 Sample Program
Setting
Setting
2
17