Hi Guillaume
Than you for the help. Logically, I couldn't find anything different in
CMakeList.txt file from what I am doing.. But anyways, I got it working now
with slight change to the example code, though still not sure what exactly
the problem is.
To run "JavaSmoothingTest.java" in the link you have given, I suppose all
we need is :
1. Following 3 files only --> JavaSmoothingTest.java ,
libotbApplicationJava.so, org.otb.application.jar
2. Setting ITK_AUTOLOAD_PATH environment variable
When I run the JavaSmoothingTest.java code, I get the following error:
Exception in thread "main" java.lang.NullPointerException
at SmoothingTest.main(JavaSmoothingTest.java:23)
However, if I change the code from Registry.CreateApplication("Smoothing")
to Registry.CreateApplicationInternal("Smoothing"), code successfully runs
:)
On Wednesday, 10 December 2014 20:16:58 UTC+5:30, Guillaume Pasero wrote:
>
> Hi,
>
> Maybe you already have checked this but you could take as example what is
> done in OTB to test Java wrappers :
>
> http://hg.orfeo-toolbox.org/OTB/file/8881c66c4899/Testing/Code/Wrappers/Java
>
> In the CMakeLists.txt you can find instructions to run the Java examples.
> There is maybe a missing setting in your project.
>
> Regards,
> Guillaume
>
> Le 10/12/2014 11:22, Sunil a écrit :
>
> Hi
>
> I am currently exploring OTB and trying to use the available applications,
> through both Java and python. Everything works good when through python.
> But when through Java, I face a problem. Registry.GetAvailableApplications()
> returns list of all available applications. However,
> Registry.CreateApplication("Quicklook") (or for that matter, any other
> available application) returns null object. Any guesses what might be the
> issue here ? I am using OTB 4.2.1 built from source, on CentOS 6.4 and
> have set all environment variables properly.
>
> Thanks.
> --
> Sunil
>
>>
> --
> --
> Check the OTB FAQ at
> http://www.orfeo-toolbox.org/FAQ.html
>
> You received this message because you are subscribed to the Google
> Groups "otb-users" group.
> To post to this group, send email to [email protected]
> <javascript:>
> To unsubscribe from this group, send email to
> [email protected] <javascript:>
> For more options, visit this group at
> http://groups.google.com/group/otb-users?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "otb-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected] <javascript:>.
> For more options, visit https://groups.google.com/d/optout.
>
>
>
> --
> <http://www.c-s.fr> *Guillaume PASERO*
> Ingénieur d'études et développement
> *Business Unit E-SPACE & Geo Information*
> <https://thor.si.c-s.fr/blogs/cs-blogs-business/>* - Département
> APPLICATIONS*
>
> *CS Systèmes d'Information*
> Parc de la Grande Plaine - 5, Rue Brindejonc des Moulinais - BP 15872
> 31506 Toulouse Cedex 05 - FRANCE
> +33 561 17 64 21 - [email protected] <javascript:>
>
--
--
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html
You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
---
You received this message because you are subscribed to the Google Groups
"otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.