Tuesday, May 26, 2020

How to change a default Java version in macOS X

Let me check the current Java version
$ java -version
java version "13.0.2" 2020-01-14
Java(TM) SE Runtime Environment (build 13.0.2+8)

In macOS Java is installed as part of /Library/Java/JavaVirtualMachines folder.

Let me go there.
$ cd /Library/Java/JavaVirtualMachines/

I want to set Java 11 as the default Java version. Let me check what all I've installed in my system.
$ pwd
/Library/Java/JavaVirtualMachines 

$ ls
jdk-11.0.7.jdk jdk-13.0.2.jdk jdk1.8.0_201.jdk

Let me set the default Java version to jdk-11.0.7.jdk
$ export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-11.0.7.jdk/Contents/Home/
$ export PATH=$JAVA_HOME/bin:$PATH

The above changes are applicable only for the current shell. To change permanently for all the shells you need set those two lines in the .bash_profile

First, go to the user home directory to run the below command
$ cd ~

$ pwd
/Users/kondal

$vim .bash_profile

Append the above two lines in the .bash_profile at the end, and save and exit.

All set.

Check again!

$ java --version
java 11.0.7 2020-04-14 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.7+8-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.7+8-LTS, mixed mode)

Good to go!!

Sunday, May 17, 2020

Docker for Eclipse CDT

For my reference

I want to build a docker environment with Eclipse CDT, ESP-IDF Eclipse Plugins, ESP-IDF and it's related ESP-IDF Tools. Probably I can use the above one for reference.

Friday, April 17, 2020

Eclipse CDT based products

For my reference, I found this article very useful.
https://www.eclipse.org/community/eclipse_newsletter/2017/october/article2.php

Espressif joined the league by providing the Eclipse Plugin for ESP-IDF for developing ESP32 IoT applications.

Check here https://github.com/espressif/idf-eclipse-plugin


Tuesday, April 7, 2020

Eclipse launchbar preference storage

/Users/usern-name/runtime-EclipseApplication/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.launchbar.core.prefs

Eclispe CDT indexing cache

/Users/kondal/runtime-EclipseApplication95/.metadata/.plugins/org.eclipse.cdt.core/infoCache

Tuesday, March 3, 2020

Thursday, January 23, 2020

IoT Embedded CDT


(Eclipse CDT+ GNU MCU Eclipse) is shaping up as an "Eclipse Embedded CDT"

https://projects.eclipse.org/projects/iot.embed-cdt
https://gnu-mcu-eclipse.github.io/debug/openocd/

Eclipse Team is planning to put together eclipse CDT and gnu mcu eclipse plugins as a single package so that it will be easy for IoT and Embedded developers - they can just download a single package and get started with IoT.