Need help with Octave/Java

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Need help with Octave/Java

Walter Grossman
I am running the octave GUI under centos 7 with a bash 4.2 shell.

When I type javaclasspath the system responds with my path:

>> javaclasspath
   STATIC JAVA PATH

      /home/users/wdgross/Repositories/orekit-main/orekit-9.2.jar

   DYNAMIC JAVA PATH

      - empty -
>>

The jar has a standard internal structure: 
assets
META-INF
org |
     +orekit |
                + utils |
                          + Constants.class 

I the try to create a java object and the system burps:

>> K=javaObject('org.orekit.utils.Constants')
error: [java] java.lang.NoSuchMethodException: org.orekit.utils.Constants
>>

Suggestions?




Reply | Threaded
Open this post in threaded view
|

Re: Need help with Octave/Java

Mike Miller-4
On Mon, Jul 16, 2018 at 15:58:17 -0400, Walter Grossman wrote:
> I the try to create a java object and the system burps:
>
> >> K=javaObject('org.orekit.utils.Constants')
> error: [java] java.lang.NoSuchMethodException: org.orekit.utils.Constants
> >>
>
> Suggestions?

According to the documentation

  https://www.orekit.org/static/apidocs/org/orekit/utils/Constants.html

org.orekit.utils.Constants is an interface, not a class. So you can't
instantiate it.

--
mike



signature.asc (849 bytes) Download Attachment