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.

CCS/CCSTUDIO: 32/64-bit JRE mismatch

Part Number: CCSTUDIO

Tool/software: Code Composer Studio

Hi team,

 

Can someone take a look at this 32/64-bit JRE mismatch issue that a customer has run into?

"

 

Using Code Composer Studio v7.1.0, which I believe is based on JRE_1.8.0_112, 32-bit version.

 

All development systems are all equipped with 64-bit Windows operating systems and installed with 64-bit JRE.

 

Code Composer Studio uses its own JRE therefore would not present any problem if used alone.  When I tried to automate the build process, i.e. to trigger building process by external Java program (64-bit), there were conflicts between 32-bit and 64-bit JRE.  To temporarily work around this, I had to replace 64-bit JRE with 32-bit for the whole computer, this workaround will certainly cause problems for other 64-bit JRE-dependent applications on my computer.

 

"

Thanks in advance,

Billy

  • Billy,

    I suspect others would chime in with additional details, but in principle a "pure" Java application runs on a JVM with any datapath size (32 or 64-bit). A few references around the web mention this, and one is shown below:

    www.quora.com/Can-Java-code-compiled-using-64-bit-jdk-run-on-32-bit-jre

    However, CCS itself is dependent on a number of other OS and native function calls and code, which is probably what causes the mismatch the customer is experiencing.

    If the customer is able to perform their automated build on either Linux or macOS, these issues disappear - CCS is fully 64-bit native on these OSes.

    Perhaps it is worth giving a shot?

    Regards,
    Rafael
  • Thanks for the help Rafael. The customer was able to get past this with our help and with that link. I’ll leave their feedback below as well:

    "
    Build on non-Windows OS is not an option for us, because the build process involves source control software that is not available on other OS.

    The good news is, according to the link in your reply, other Java applications as long as they are “pure” Java, should work fine on 32-bit JRE.

    For now, I will keep 32-bit JRE for the build machine until I run into problem, which theoretically should be never.
    "


    Thanks,
    Billy