Liquibase Installation Troubleshooting

Liquibase was install in the following location

C:\liquibase

when I run the following command on cmd,

liquibase

I get error

the system can not find specified path

I added liquibase to system variable

when I run the following command on cmd

java -version

The following output is displayed

    java version "1.8.0_271"
    Java(TM) SE Runtime Environment (build 1.8.0_271-b09)
    Java HotSpot(TM) Client VM (build 25.271-b09, mixed mode, sharing)

I also tried navigating to C:\liquibase and ran

liquibase --help

and the output was

the system can not find specified path

Any suggestion on what should be adjusted to run liquibase?

Hi @vitor.gaya.mira,

Could you list the contents of c:\liquibase? Also, what environment variable are you updating? It needs to be the system PATH, not a user env variable.

HTH,

Ronak

Hi @ronak, I’m having an identical issue. My PATH is definitely defined correctly. I actually get the same error when I specify the full file name of the .bat file. I’m on windows.

After deleting JAVA_HOME variable that was set on user variables, the issue was fixed. See the following image that shows the user and system evironment variables, the user variable that was deleted is indicated surrounded by a red rectangle.