Introduction
JabpFile is a sister program to JabpLite
which provides the ability to transfer data from JabpLite's internal storage
to your mobile device's external filing system. JabpFile enables
you to:
It is important to install and run JabpLite first. This creates the data files which JabpFile can access. Once JabpLite has been run, install JabpFile from the files J2ME\JabpFile.jar and J2ME\JabpFile.jad as for any normal MIDP application (follow the MIDP installation instructions for your mobile device). Remember that your mobile device must run MIDP version 2.0 and must have PIM capability within Java (JSR-75).
Using the JabpFile program
On your mobile device, select your desired option from the following choices:
1. Import/Export QIF file
2. Import JabpLite data
3. Export JabpLite data
4. Set Directory
When exporting from JabpLite to your mobile device's filing system, the resulting files are created in directory \JabpLite\ on your device's external memory card. If your mobile device doesn't show this directory by default then you may need to use a third-party file management program to access this directory. You can vary the directory and drive using the Set Directory option. Note that many mobile devices will not allow MIDlets to write to the Internal c: drive, which is why JabpFile writes to the external memory card by default. In order to use the Export QIF option, ensure that account names in JabpLite contain only valid Windows filename characters. So, for example, an account MyBank in JabpLite will be exported as \JabpLite\MyBank.qif. Similarly, if you are importing to an account MyBank then JabpFile will attempt to import the file \JabpLite\MyBank.qif. When importing QIF files, only the debit sides of inter-account transfers are imported - the credit will automatically be generated in the other account. This is to avoid duplicating entries.
When you use the option to export JabpLite data, this creates a complete copy of your data in your mobile device's filing system in the file \JabpLite\JabpLite.dat. This is useful for back-up purposes and, for example, if you change your mobile device (you can export the data from your old device, then import to your new device). If you choose the option to import data, the data will replace your current file (it will overwrite any existing data). There is a timezone option when importing data - you can set either a positive or negative number of hours. Normally, just accept the default option of zero hours. You might need to use this option if you move data between different phones, and you see that the transaction dates differ by one day.
Installing Sun's MIDlet emulator on your PC (this is for advanced users only)
Firstly install the latest J2ME Wireless Toolkit from
http://java.sun.com/j2me/download.html
This should create a directory like c:\WTK22 on your PC. You will need to have the following files located in a convenient directory: JabpLite.jad, JabpLite.jar, JabpFile.jad, JabpFile.jar. The JabpFile files must be for the MIDP Emulator (if in doubt, download from http://www.freepoc.org/software.php). JabpLite must be the MIDP2.0 version 1.07 or later.
Running JabpLite within Sun's MIDlet emulator on your PC
From your installation of the J2ME, launch Run MIDP Application. Navigate to the file JabpLite.jad and press Enter. You should find that JabpLite appears within the emulation of a default colour phone. Launch JabpLite and, from the Accounts View, select Menu> Extra Options > Preferences. Scroll down and set Create Forms in Background to No, then select OK. Now select the Exit button and then close the Emulator. You may now run JabpLite at any time by launching the program from the Run MIDP Application option. Alternatively you can just double-click on a .jad file to launch it immediately in the emulator.
Running JabpFile within Sun's MIDlet emulator on your PC
From your installation of the J2ME, launch Run MIDP Application. Navigate to the file JabpFile.jad and press Enter. You should find that JabpFile appears within the emulation of a default colour phone. Launch JabpFile and select Menu>Begin. You will be asked if it is OK to write to the filing system; answer Yes. Select Export data and then Menu>Action and your data (ie. the default accounts & categories that were created when you launched JabpLite) will be exported. Now select the Exit button and then close the Emulator. You may now run JabpFile at any time by launching the program from the Run MIDP Application option.
Loading data from your mobile device into the emulator
Now we know that things are correctly set up, it's time to load your real data into the emulator. You will need to locate file c:\JabpLite\JabpLite.dat either on your PC (if you used JabpBT) or on your mobile device (if you used JabpFile). Copy this file into the following directory:
C:\WTK22\appdb\DefaultColorPhone\filesystem\root1\JabpLite
and overwrite the default file that was there (ie. the one we created a minute ago). Run JabpFile within the emulator as above, and this time select the Import Data option. Then exit and close the emulator. Now run JabpLite within the emulator and - at long last - your data should appear in JabpLite exactly as it was on your phone. Bear in mind that you may want to re-set some of the settings in Menu>Extra Options>Preferences. In particular, for the emulator it is important that Create Forms In Background be set to No.
Loading data from the emulator onto your mobile device
Take the file C:\WTK22\appdb\DefaultColorPhone\filesystem\root1\JabpLite\JabpLite.dat and copy it into the c:\JabpLite directory either on your PC (if you are using JabpBT) or directly onto your mobile device (if you are using JabpFile). Using JabpBT or JabpFile as appropriate, use the Import Data function to load data into JabpLite onto your mobile device.
Tips for using the emulator
You can vary the device which is emulated. To do so, edit the file c:\WTK22\wtklib\emulator.properties using Windows Notepad. Scroll down to kvem.device and enter one of the following DefaultColorPhone, DefaultGreyPhone, MediaControlSkin, QwertyDevice. Similarly, you can edit the properties for each individual device. For example, within DefaultColorPhone.properties you can change touch_screen=false to touch_screen=true in order to use pointer events within JabpLite.
Security of your data
We have extensively tested the JabpFile program to ensure that it works reliably. However we accept no responsibility for any data which are lost or corrupted when using the file connectivity options. We strongly advise that you make a back-up of your mobile device before using the JabpFile software.
Troubleshooting
If you cannot run JabpFile on your mobile: