GeoGit and 64-bit Java

110 views
Skip to first unread message

bixb...@gmail.com

unread,
Sep 20, 2013, 2:14:22 PM9/20/13
to geo...@opengeo.org
If my question is complete naivety, my apologies ahead of time.

Is GeoGit developed/configured/etc... for use with 64-bit Java?  I have been using it with 32-bit Java, but I keep running into those annoying "could not reserve enough space for object heap" errors relating to initializing the VM.  When I switch to 64-bit Java, some things work but others not.  Specifically, I cannot get SpatiaLite/SQLite to work without throwing messages:


D:\tmp\geogit_test>geogit.bat sl list --database "D:\transfer\test.sqlite"
java.lang.UnsatisfiedLinkError: C:\Users\bixb...\AppData\Local\Temp\sqlite-3.7.2-sqlitejdbc.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
Fetching feature types...
 - spatialite_history
 - sqlite_sequence
.... 

This is on a Windows 7 x64 Enterprise Edition machine with the latest 64-bit Java (build 1.7.0_40-b43).

Any feedback is much appreciated,
Joshua

bixb...@gmail.com

unread,
Sep 26, 2013, 10:56:07 AM9/26/13
to geo...@opengeo.org, bixb...@gmail.com
In looking at this a little more, this issue isn't with GeoGit, per se.  The DLL causing this issue is being extracted from the sqlite-jdbc-spatialite-3.7.2-2.4.jar in GeoGit's repo directory.  The real problem is that the DLLs for x86 and x64 are identical in that JAR, and that one DLL isn't x64, hence the error.  There are x64 SpatiaLite libraries available for download, but those don't include JDBC DLLs.

As best I can understand it, my problem seems to be at the interface between Java and SpatiaLite.  The GeoTools JDBC SpatiaLite Plugin page states "Windows 64-bit libraries are not available but the 32-bit libraries should work on 64-bit systems."  Maybe this is fundamentally my problem, i.e., the 32-bit libraries only work when I run GeoGit with 32-bit Java, so trying to go purely 64-bit may not be feasible, or at least practical.

Since 32-bit works, I will stick with that for now.  I would rather spend my time exploring the potential of GeoGit than banging my head against a JDBC SpatiaLite issue.


Reply all
Reply to author
Forward
0 new messages