This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

XDCTOOLS_JAVA_HOME / OS/X

Other Parts Discussed in Thread: CC3200

Hello,

I try to build the tirtos_simplelink_2_13_00_06/tirtos_simplelink_2_13_00_06_examples/GNU/CC3200_LP example. I've change the XDCTOOLS_INSTALLATION_DIR variable in the makedefs, so that the build process can find the XDCTools.

Now when executing make, I get the following error message:

/Users/todi/xdctools_3_31_02_38_core/xs.x86_64M: error: can't create session manager: can't find a JVM; the environment variable 'XDCTOOLS_JAVA_HOME' is set, but does not appear to be a directory containing a 32-bit Java Runtime Environment (1.6 or greater); e.g., '/Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home'.

make[1]: *** [empty/linker.cmd] Error 1

make: *** [empty/] Error 2

When I change the XDCTOOLS_JAVA_HOME to point to the java executable (

/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/bin/java), or to the folder containing the java executable (

/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/bin) or to the folder containing the folder that contains the java executable (

/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre), I still get this error message.

To what value do I have to set this variable?

kind regards,

Torsten

  • One addition:
    I've tried to track this down, by having a look at the source code. Is the source code public available?
  • Torsten,
    either of the paths /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre or /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/ should work. However, in most cases when we had that problem the file that can't be found is lib/jli/libjli.dylib. I don't have Java 8 installed, so I can't reproduce what you are seeing but I'll install it and try.
    In the meantime, can you just verify if your XDCtools installation has the directory 'jre'. It's OK if it doesn't, I just want to be sure where to look for the cause of the error.
    Also, there should be a file 'makefile' in your example. Can you find the configure command line:
    @ $(XDCTOOLS_INSTALLATION_DIR)/xs xdc.tools.configuro ...
    Just add '--d' between xs and xdc.tools.configuro so that the line is
    @ $(XDCTOOLS_INSTALLATION_DIR)/xs --d xdc.tools.configuro
    That should generate a more verbose output. Please post the output here.

  • Hi Sasha,

    thank you very much for replying.  I think I've found the issue. The tirtos_simplelink_2_13_00_06_examples contains the somehow pointless definition for XDCTOOLS_JAVA_HOME:

    # The following is ignored if xdctools has the JRE

    export XDCTOOLS_JAVA_HOME := /home/xlibrary/trees/xdcprod/xdcprod-u33/product/Linux/xdctools_3_31_01_33/jre

    Cheers,

    Torsten