Skip to main content

How to change the D&C SHE 21.04 Server password ?

Maxime avatar
Written by Maxime
Updated over 3 weeks ago

Question

In Design & Compose the default Server password is changeme. How can this be changed?

Answer

You can generate a new password using the following steps :

  • stop all Design & Compose applications

  • start a command line and go to the Design & Compose installation dir

  • perform command java -jar tools/passwordgenerator.jar newpassword

    • the command will return the hashed password

  • open C:\Users\<user>\design-compose-21.04\security\authentication.xml

  • replace the password for the admin user and save the xml file

  • start the Design & Compose applications again

Note :

The following error can occur when running the passwordgenerator tool :

Error: A JNI error has occurred, please check your installation and try againException in thread "main" java.lang.UnsupportedClassVersionError: id/security/auth/util/passwordgenerator/Main has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

This means a wrong Java version is being used, in most cases the default system Java version.
Replace the current Java version for this command prompt session with the one that is used for Design & Compose:

set PATH=C:\Program Files\Unifiedpost\Design-Compose-21.04.3\jre\bin;%PATH%

If you then perform java -version you should get :

openjdk version "11.0.6" 2020-01-14 LTSOpenJDK Runtime Environment Corretto-11.0.6.10.1 (build 11.0.6+10-LTS)OpenJDK 64-Bit Server VM Corretto-11.0.6.10.1 (build 11.0.6+10-LTS, mixed mode)

With this Java version, you will be able to run the passwordgenerator.

Did this answer your question?