for anyone has same problem as me, you can see the answer here:
http://fahdshariff.blogspot.de/2011/08/changing-java-library-path-at-runtime.html
for the option 2 with the change directly in code and you need to put the
gdal library folder as input.
Option 2: Add path to usr_paths
Instead of havin
Unfortunately, Tomcat runs in same computer, user which I set the environment
variable, so I still need to find out a way for making GDAL can run in web
application in Java.
--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Cannot-load-Java-GDAL-native-library-in-web-applica
I suspect that tomcat is running as a different user than you - so you need
to change it for that user. I'd still go for changing the container setup
as it is more controlled.
Ian
On 23 May 2017 at 14:22, yuchan wrote:
> Thanks Ian,
>
> However, we want to deploy this application in other kinds
Thanks Ian,
However, we want to deploy this application in other kinds of web
application not only Tomcat so it is really complicated to have to modify
Tomcat.
I also tried to set LD_LIBRARY_PATH=/usr/lib/java/gdal/:$LD_LIBRARY_PATH in
~/.bashrc and then execute it with source ~/.bashrc where I c
Simply add -Djava.library.path="/usr/lib/java/gdal/" to the Tomcat startup
args in /usr/share/tomcat7/bin/catalina.sh or add /usr/lib/java/gdal/ to
your LD_LIBRARY_PATH (and restart tomcat).
Ian
On 23 May 2017 at 14:05, yuchan wrote:
> Hello,
>
> I'm using GDAL library java as a dependency in J
Hello,
I'm using GDAL library java as a dependency in Java web application with
Maven dependency:
org.gdal
gdal
1.11.1
It contains a jar file and runs the native codes in C++ underneath which I
had to install from packages in Centos. All these shared libraries a
On mardi 23 mai 2017 11:40:08 CEST Andrew C Aitchison wrote:
> I see that in http://www.gdal.org/gdal_drivertut.html the function
> JDEMRasterBand::IReadBlock has
> JDEMDataset *poGDS = static_cast(poDS);
> (this is a change from gdal-2.1.3 and earlier where
> frmts/jdem/jdemdataset.cpp has
>
I see that in http://www.gdal.org/gdal_drivertut.html the function
JDEMRasterBand::IReadBlock has
JDEMDataset *poGDS = static_cast(poDS);
(this is a change from gdal-2.1.3 and earlier where
frmts/jdem/jdemdataset.cpp has
JDEMDataset *poGDS = (JDEMDataset *) poDS;
).
However, I s