aboutsummaryrefslogtreecommitdiffstats
path: root/src/site
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2010-11-03 02:58:25 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2010-11-03 02:58:25 +0000
commit1ea9f59bb292f29110a1893cc2a4dbc8b95437b4 (patch)
tree7478dd17a5d3e788335e69bf444cd7503d029342 /src/site
parentf07f81fdfcab78c10488000327b1ee07a133c3c6 (diff)
downloadjackcess-1ea9f59bb292f29110a1893cc2a4dbc8b95437b4.tar.gz
jackcess-1ea9f59bb292f29110a1893cc2a4dbc8b95437b4.zip
implement some tweaks which allow jackcess to be used on the android platform, thanks to Miha Pirnat) (fixes #3101578)
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@496 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src/site')
-rw-r--r--src/site/fml/faq.fml33
1 files changed, 29 insertions, 4 deletions
diff --git a/src/site/fml/faq.fml b/src/site/fml/faq.fml
index 1d4cba7..2b4d2d9 100644
--- a/src/site/fml/faq.fml
+++ b/src/site/fml/faq.fml
@@ -8,8 +8,8 @@
<faq id="linux">
<question>Does this work on Linux/Unix?</question>
<answer>
- <p>Yep, Jackcess is pure Java. It will work on any
- Java Virtual Machine (1.4+).</p>
+ <p>Yep, Jackcess is pure Java. It will work on any Java Virtual
+ Machine (1.5+).</p>
</answer>
</faq>
@@ -223,6 +223,33 @@
</answer>
</faq>
+ <faq id="android">
+ <question>Why do I get an OutOfMemoryError or NullPointerException when
+ creating a new database on the Android platform?</question>
+ <answer>
+ <p>
+ There are 2 issues which need to be dealt with when using Jackcess
+ on the Android platform. The first is that non-class resources need
+ to be in a special location. The second is that the nio
+ implementation has some "weaknesses".
+ </p>
+ <p>
+ The following steps will make Jackcess compatible with the Android
+ platform.
+ <ul>
+ <li>Set the system property "com.healthmarketscience.jackcess.brokenNio=true"</li>
+ <li>Set the system property "com.healthmarketscience.jackcess.resourcePath=/res/raw/"</li>
+ <li>Copy the *.txt, *.mdb, and *.accdb files from the
+ "com/healthmarketscience/jackcess/" directory in the Jackcess
+ jar to the "/res/raw" Android application directory.</li>
+ <li>Before executing any Jackcess code, set the current Thread's
+ context classloader,
+ e.g. "Thread.currentThread().setContextClassLoader(Database.class.getClassLoader())".</li>
+ </ul>
+ </p>
+ </answer>
+ </faq>
+
<faq id="hms">
<question>Who is Health Market Science?</question>
<answer>
@@ -231,8 +258,6 @@
Using proprietary matching and consolidation software,
HMS scientifically manufactures the most comprehensive
and accurate healthcare data sets in the market today.
- <a href="http://www.healthmarketscience.com/company/careers.html">We're hiring!</a>
- HMS is always looking for talented individuals.
</p>
</answer>
</faq>