Skip to content

Instantly share code, notes, and snippets.

View mherman22's full-sized avatar
:octocat:
Try again and again and again

Herman Muhereza mherman22

:octocat:
Try again and again and again
View GitHub Profile
INFO - ChangeLogDetective.getInitialLiquibaseSnapshotVersion(118) |2025-05-28T16:39:51,494| file 'org/openmrs/liquibase/snapshots/core-data/liquibase-core-data-2.7.x.xml' contains 0 un-run change sets
INFO - ChangeLogDetective.getInitialLiquibaseSnapshotVersion(125) |2025-05-28T16:39:51,495| the Liquibase snapshot version that had been used to initialize the OpenMRS database is '2.7.x'
INFO - Slf4JLogger.log(43) |2025-05-28T16:39:51,509| Set default schema name to public
INFO - Slf4JLogger.log(43) |2025-05-28T16:39:51,532| Parsed changelog file 'org/openmrs/liquibase/updates/liquibase-update-to-latest-2.8.x.xml'
INFO - Slf4JLogger.log(43) |2025-05-28T16:39:51,545| Reading from public.liquibasechangelog
INFO - ChangeLogDetective.getUnrunLiquibaseUpdateFileNames(165) |2025-05-28T16:39:51,576| file 'org/openmrs/liquibase/updates/liquibase-update-to-latest-2.8.x.xml' contains 0 un-run change sets
INFO - Slf4JLogger.log(43) |2025-05-28T16:39:51,608| Set default schema name to public
INFO - HibernateContextDAO.upda

📚 Managing Multiple Java Versions on macOS Using SDKMAN!

As you may often work with multiple projects or modules that require different versions of Java, it's essential to switch Java versions seamlessly. This guide shows you how to use SDKMAN! to install, manage, and switch between multiple Java versions on macOS.


Why SDKMAN?

  • 🧩 Easily install and manage Java and other JVM-based tools (e.g., Scala, Groovy).
  • 🛠️ Automatically manages environment variables like $JAVA_HOME and $PATH.
name=Ref 3.x distro
version=3.4.1-SNAPSHOT
spa.node.version=16.20.2
spa.npm.version=8.19.4
war.openmrs=2.7.4-SNAPSHOT
omod.initializer=2.9.0
omod.fhir2=2.4.0-SNAPSHOT
omod.webservices.rest=2.49.0-SNAPSHOT
omod.idgen=4.14.0
omod.legacyui=1.23.0-SNAPSHOT
{
"swagger" : "2.0",
"info" : {
"description" : "OpenMRS RESTful API documentation generated by Swagger",
"version" : "2.8.0-42ce79",
"title" : "OpenMRS API Docs",
"contact" : {
"name" : "OpenMRS",
"url" : "http://openmrs.org"
},
config.distro-emr-configuration=3.3.0-SNAPSHOT
distro.artifactId=distro-emr-configuration
distro.groupId=org.openmrs
name=Ref 3.x distro
omod.addresshierarchy=2.17.0
omod.appointments=2.0.0-20240305.062514-14
omod.appointments.groupId=org.bahmni.module
omod.attachments=3.3.0-SNAPSHOT
omod.authentication=1.0.0
omod.calculation=1.3.0
#Tue Oct 08 11:53:28 EAT 2024
config.distro-emr-configuration=3.3.0-SNAPSHOT
distro.artifactId=distro-emr-configuration
distro.groupId=org.openmrs
name=Ref 3.x distro
omod.addresshierarchy=2.17.0
omod.appointments=2.1.0-SNAPSHOT
omod.appointments.groupId=org.bahmni.module
omod.attachments=3.3.0-SNAPSHOT
omod.authentication=1.0.0
@mherman22
mherman22 / distro.properties
Created September 17, 2024 17:44
Just a distro.properties file for setting up an openmrs v3 instance using the setup command
config.distro-emr-configuration=3.3.0-SNAPSHOT
distro.artifactId=distro-emr-configuration
distro.groupId=org.openmrs
name=Ref 3.x distro
omod.addresshierarchy=2.17.0
omod.appointments=2.0.0-20240305.062514-14
omod.appointments.groupId=org.bahmni.module
omod.attachments=3.2.0
omod.authentication=1.0.0
omod.calculation=1.3.0
@mherman22
mherman22 / having-multiple-jdk-macos.md
Created September 7, 2024 03:28 — forked from gramcha/having-multiple-jdk-macos.md
Managing multiple Java versions in MacOS

Installing different versions of open jdk through Homebrew(assuming already installed) and already having Java 8.

We need to install a tool called jenv - Java version manager which is similar to nvm(nodeJs version manager).

brew install jenv

Export the jenv path to .bash_profile or .zshrc - whatever you are using. I am using .zshrc

@mherman22
mherman22 / ReadMe.md
Created February 15, 2024 18:14
Install Oracle JDK 8 on Ubuntu 20 +
  • Head over to Oracle JDK 8 download page (https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html). Accept the license agreement and download the tar.gz file. It will prompt you to create an Oracle account.
  • After logging into your Oracle account, you can download JDK 8. Then open up a terminal window and navigate to the download directory. Then extract the tar.gz file to /usr/lib/jvm/ directory using sudo tar xvf jdk-8u221-linux-x64.tar.gz --directory /usr/lib/jvm/
  • Now we can check Java version using /usr/lib/jvm/jdk1.8.0_221/bin/java -version where the Output is
java version "1.8.0_221"
Java(TM) SE Runtime Environment (build 1.8.0_221-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.221-b11, mixed mode)
  • Check Java compiler version using/usr/lib/jvm/jdk1.8.0_221/bin/javac -version where the Output is javac 1.8.0_221
@mherman22
mherman22 / java-setup.md
Created January 27, 2024 19:11 — forked from starlinq/java-setup.md
How to install Java JDK8 in Ubuntu 16.04

How to install Java JDK8 in Ubuntu 16.04

Let's consider a JDK8 installation using 2 different versions: default and Oracle. The default version is easiest because it is packaged with Ubuntu.

There is default Java installation called the JDK (Java Development Kit). The JDK is usually only needed if you are going to to do some software developmwent using Java or if some software requires it. The JDK does contain the JRE.

Installing the default JDK