Re: xTIMEcomposer,Java Runtime JRE and macOS
Posted: Sat Dec 02, 2017 3:10 pm
Hi!
I **think** I got it to work.
But first, be aware that I havent used the IDE since 7 years! Yes, seven. I'm not able to check if everything works. But at least, I can start xTimeComposer and get some useable screens. Haven't tried anything more.
So use at your own risk!
OK, the whole process is a bit odd and the result is a bit inconvenient.
First download the JDK (I didn't get it working with the JRE).
Navigate into the xtimecomposer.app (you have to open the app folder, you can't just click on it). and navigate to:
Applications/XMOS_xTIMEcomposer.../xtimecomposer_bin/xtimecomposer.app/Contents
Here, you find a file "info.plist". Open it with you editor.
Quite at the end, you will find somethig that reads like:
<!-- to use a specific Java version (instead of the platform's default) uncomment one of the following options:
<string>-vm</string><string>/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Commands/java</string>
<string>-vm</string><string>/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Commands/java</string>
<string>-vm</string><string>/Library/Java/JavaVirtualMachines/1.8.0.jdk/Contents/Home/bin/java</string>
-->
Change that to:
<!-- to use a specific Java version (instead of the platform's default) uncomment one of the following options:
<string>-vm</string><string>/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Commands/java</string>
<string>-vm</string><string>/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Commands/java</string>
<string>-vm</string><string>/Library/Java/JavaVirtualMachines/1.8.0.jdk/Contents/Home/bin/java</string>
-->
<string>-vm</string><string>/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/bin</string>
Verify the path given! Best c&p it and open a terminal and execute the command there. You should get a response from the JRE.
You need to append"java" to the path. So the command including the path is:
/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/bin/java
You don't have to be in any specific directory to execute the command.
That was the modificates you had to do once.
Now, how to start xTIMEcomposer. You can not simply click on the icon, or you will get the Java Version 6 nonsense again.
You have to open a terminal window and navigate to this path:
Applications/XMOS_xTIMEcomposer.../xtimecomposer_bin/xtimecomposer.app/Contents/MacOS
Here, you'd should find a file xtimecomposer.command.
Type:
bash xtimecomposer.command
xTIMEcomposer should start fine. If you do get that JAVA V6 message again, your path in the info.plist is wrong.
Maybe someone finds a better way.
And again, I didn't verify anything in depth. Right now, I'm just happy that I got it started.
And maybe some other users can confirm the fix.
Nick
I **think** I got it to work.
But first, be aware that I havent used the IDE since 7 years! Yes, seven. I'm not able to check if everything works. But at least, I can start xTimeComposer and get some useable screens. Haven't tried anything more.
So use at your own risk!
OK, the whole process is a bit odd and the result is a bit inconvenient.
First download the JDK (I didn't get it working with the JRE).
Navigate into the xtimecomposer.app (you have to open the app folder, you can't just click on it). and navigate to:
Applications/XMOS_xTIMEcomposer.../xtimecomposer_bin/xtimecomposer.app/Contents
Here, you find a file "info.plist". Open it with you editor.
Quite at the end, you will find somethig that reads like:
<!-- to use a specific Java version (instead of the platform's default) uncomment one of the following options:
<string>-vm</string><string>/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Commands/java</string>
<string>-vm</string><string>/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Commands/java</string>
<string>-vm</string><string>/Library/Java/JavaVirtualMachines/1.8.0.jdk/Contents/Home/bin/java</string>
-->
Change that to:
<!-- to use a specific Java version (instead of the platform's default) uncomment one of the following options:
<string>-vm</string><string>/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Commands/java</string>
<string>-vm</string><string>/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Commands/java</string>
<string>-vm</string><string>/Library/Java/JavaVirtualMachines/1.8.0.jdk/Contents/Home/bin/java</string>
-->
<string>-vm</string><string>/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/bin</string>
Verify the path given! Best c&p it and open a terminal and execute the command there. You should get a response from the JRE.
You need to append"java" to the path. So the command including the path is:
/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/bin/java
You don't have to be in any specific directory to execute the command.
That was the modificates you had to do once.
Now, how to start xTIMEcomposer. You can not simply click on the icon, or you will get the Java Version 6 nonsense again.
You have to open a terminal window and navigate to this path:
Applications/XMOS_xTIMEcomposer.../xtimecomposer_bin/xtimecomposer.app/Contents/MacOS
Here, you'd should find a file xtimecomposer.command.
Type:
bash xtimecomposer.command
xTIMEcomposer should start fine. If you do get that JAVA V6 message again, your path in the info.plist is wrong.
Maybe someone finds a better way.
And again, I didn't verify anything in depth. Right now, I'm just happy that I got it started.
And maybe some other users can confirm the fix.
Nick