How to import FBReader into Eclipse

981 views
Skip to first unread message

ramblin'

unread,
Oct 3, 2011, 8:26:48 PM10/3/11
to FBReader
I've searched the groups and find this question coming up several
times, but responses are always terse and provide nothing I can
follow.

I've tried a number of approaches, and can never get Eclipse to find
or recognize the FBReader files. Import, Open, nothing works.

Using Windows 7, and
Eclipse Java EE IDE for Web Developers; Version: Indigo Service
Release 1; Build id: 20110916-0149

Ra...@ralphestes.com

mga

unread,
Oct 7, 2011, 3:54:13 PM10/7/11
to FBReader
Hi

I am also trying to import it to Eclipse. While I can create a new
project from existing source, it gets created with errors. The error I
find most commonly is a missing class:

import org.geometerplus.zlibrary.ui.android.R;

Is this class not available in the source provided? How do we solve
this issue?

Thanks

Mauricio Giraldo
NYPL Labs
New York Public Library

mga

unread,
Oct 8, 2011, 7:05:45 PM10/8/11
to FBReader
Hi

I finally managed to make it work. I was missing editing
local.properties.

Mauricio Giraldo
NYPL Labs
New York Public Library

maryhit

unread,
Oct 19, 2011, 5:04:06 PM10/19/11
to FBReader
Yes, it's possible. :D

here are my steps:

i)-> 1st of all build the ndk as per
cygwin_installation_and_configuration.pdf
ii) put in AndroidManifest.xml target android version 8 (not 4 which
is the default)
ii) build with ant (run all 3 from the command line, in this order):
ant package -> this one copies some res files (you can see what it
does in the build.xml for target package)
ant release
ant debug
iii) go in eclipse and add the project now. It should work just fine.
Ensure you have java 6.
iv) - OPTIONAL: if you want to run the ant from eclipse, when you
load the build.xml there will be an warning/error. Ignore it, it's
because it uses setup which creates the release and debug targets
automatically. Simply ignore the error and select the package task and
it will work.

Note: set your JAVA_HOME, and also PATH (put java, sdk tools, sdk
platform tools).

Good luck.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages