Skip to main content

[archive] C$JAVA and Solaris SPARC problem

  • May 24, 2007
  • 3 replies
  • 0 views

[Migrated content. Thread originally posted on 23 May 2007]

Has anyone managed to use the C$JAVA COBOL call using Sun Solaris 9 (SPARC).

After a few other issues I am receiving the following message when Java VM is loaded by the Acu runtime :-

You must install a Solaris patch to run the native threads version of the
Java runtime. The green threads version will work without this patch.
Please check the native threads release notes for more information.

If you are embedding the VM in a native application, please make sure that
the native application is linked with libthread.so (-lthread).

Exiting.



I am strugling to found out which patch is required to sort out this problem. I am unable to relink the runtime as I do not have the appropriate compiler (Workshop Compiler?)

If anyone has interfaced with Java on Sun Solaris I would be very interested to see how you managed to do it using C$JAVA call !! :confused:

3 replies

[Migrated content. Thread originally posted on 23 May 2007]

Has anyone managed to use the C$JAVA COBOL call using Sun Solaris 9 (SPARC).

After a few other issues I am receiving the following message when Java VM is loaded by the Acu runtime :-

You must install a Solaris patch to run the native threads version of the
Java runtime. The green threads version will work without this patch.
Please check the native threads release notes for more information.

If you are embedding the VM in a native application, please make sure that
the native application is linked with libthread.so (-lthread).

Exiting.



I am strugling to found out which patch is required to sort out this problem. I am unable to relink the runtime as I do not have the appropriate compiler (Workshop Compiler?)

If anyone has interfaced with Java on Sun Solaris I would be very interested to see how you managed to do it using C$JAVA call !! :confused:
Add this to your java options

JAVA_OPTIONS -XX: UseAltSigs

You will need to relink the runtime with the jvm.so

link in libjvm.so is to add the last line to this command in lib/Makefile (after line 208):

LIBS = $(ACUSERVER_LIBS) \\
$(ACU_LIBDIR)/libacvt.a \\
$(ACU_LIBDIR)/libfsi.a \\
$(REGEX_LIB) \\
$(TERMMGR_LIB) \\
$(FSI_LIBS) \\
$(VISION_LIB) \\
$(ACUSQL_LIBS) \\
$(CICS_LIB) \\
$(MQSERIES_LIB) \\
$(EXTSM_LIB) \\
$(ACME_LIB) \\
$(COMPRESSION_LIB) \\

/jdk/jre/lib/sparc/client/libjvm.so

[Migrated content. Thread originally posted on 23 May 2007]

Has anyone managed to use the C$JAVA COBOL call using Sun Solaris 9 (SPARC).

After a few other issues I am receiving the following message when Java VM is loaded by the Acu runtime :-

You must install a Solaris patch to run the native threads version of the
Java runtime. The green threads version will work without this patch.
Please check the native threads release notes for more information.

If you are embedding the VM in a native application, please make sure that
the native application is linked with libthread.so (-lthread).

Exiting.



I am strugling to found out which patch is required to sort out this problem. I am unable to relink the runtime as I do not have the appropriate compiler (Workshop Compiler?)

If anyone has interfaced with Java on Sun Solaris I would be very interested to see how you managed to do it using C$JAVA call !! :confused:
Thanks for your post, when you relinked the runtime which compiler did you use (and can you download it from Sun for free!!). My installation of Solaris does not seem to have a c compiler or associated utilities such as "make".

Its a shame that it cannot work with the shared library as this make life so much easier on customer sites, where getting access to a c compiler is sometimes impossible.

The C$JAVA call was working so well on windows but I fear now I may need to look at another solution,:( as we have customers on several version of Solaris, HPUX, AIX, etc and relinking all these runtimes is probably a non-starter.

[Migrated content. Thread originally posted on 23 May 2007]

Has anyone managed to use the C$JAVA COBOL call using Sun Solaris 9 (SPARC).

After a few other issues I am receiving the following message when Java VM is loaded by the Acu runtime :-

You must install a Solaris patch to run the native threads version of the
Java runtime. The green threads version will work without this patch.
Please check the native threads release notes for more information.

If you are embedding the VM in a native application, please make sure that
the native application is linked with libthread.so (-lthread).

Exiting.



I am strugling to found out which patch is required to sort out this problem. I am unable to relink the runtime as I do not have the appropriate compiler (Workshop Compiler?)

If anyone has interfaced with Java on Sun Solaris I would be very interested to see how you managed to do it using C$JAVA call !! :confused:
I used the ANSI C compiler. I think we purchased it as a bundle when we bought that server but I don't truly remember. I doubt that it is free.