Menu

FUNCTION JVM - Example

Anonymous
2021-02-11
2021-02-17
  • Anonymous

    Anonymous - 2021-02-11

    I recently installed the latest version of GNUCobol on Windows 10, and Im trying to use the function JVM, the one that is shown on the documentation's example . When I try to compile the code, I get an error saying "error: FUNCTION 'jvm-create' unknown".

    Is there an example of how to use this function? Or is this a problem with the configuration? I might have missed something during the installation process.

    Any sugestion will be highly apreciated. Thanks in advance.

     
    • Brian Tiffin

      Brian Tiffin - 2021-02-13

      The FLI optionals are in a branch, Anon.

      https://sourceforge.net/p/gnucobol/code/HEAD/tree/branches/gnu-cobol-builtin-script/

      This is not a mainline branch at this point. I haven't touched it in 3 years now. My predictions of FUNCTION JVM as coded working in Win10 is that it won't compile without tweaks. You can try though. You will most definitely need to update the configure.in to hardwire the location of libjvm.so.

      Take a look at

      https://sourceforge.net/p/gnucobol/discussion/contrib/thread/476f265d/?page=1&limit=25#87cd

      for some trials and examples of using the (still very limited) features of FUNCTION JVM, but it does encapsulate Frink, and I count that as a fairly good sign.

      Cheers,
      Blue

       
      • Anonymous

        Anonymous - 2021-02-17

        Thank you so much for the response, I was kind of lost with my research and this is really helpful.

        Thanks and regards.
        Alvaro.

         

Anonymous
Anonymous

Add attachments
Cancel