package nuclibook.constants;

import org.apache.commons.configuration.ConfigurationException;
import org.apache.commons.configuration.PropertiesConfiguration;
import org.jasypt.encryption.pbe.StandardPBEStringEncryptor;

/**
 * A class for loading and storing constants from a .properties file
 */
public class C {

    //private constructor to prevent construction
    private C(){
    }

	// server
	public static String MYSQL_URI;
	public static String MYSQL_USERNAME;
	public static String MYSQL_PASSWORD;

	// security
	public static int AUTOMATIC_TIMEOUT;

    /**
     * Loads the constants from the .properties file using a
     * PropertiesConfiguration object
     */
	public static void initConstants() throws ConfigurationException {
		PropertiesConfiguration config = new PropertiesConfiguration("database.properties");
		MYSQL_URI = config.getString("database.URI");
		MYSQL_USERNAME = config.getString("database.user.name");
		MYSQL_PASSWORD = config.getString("database.user.password");
		AUTOMATIC_TIMEOUT = config.getInt("security.automatictimeout");
	}

}

package nuclibook.constants;

import org.apache.commons.configuration.ConfigurationException;
import org.apache.commons.configuration.PropertiesConfiguration;
import org.jasypt.encryption.pbe.StandardPBEStringEncryptor;

/**
 * A class for loading and storing constants from a .properties file
 */
public class C {

    //private constructor to prevent instantiation
    private C(){
    }

	// server
	public static String MYSQL_URI;
	public static String MYSQL_USERNAME;
	public static String MYSQL_PASSWORD;

	// security
	public static int AUTOMATIC_TIMEOUT;

    /**
     * Loads the constants from the .properties file using a
     * PropertiesConfiguration object
     */
	public static void initConstants() throws ConfigurationException {
		PropertiesConfiguration config = new PropertiesConfiguration("database.properties");
		MYSQL_URI = config.getString("database.URI");
		MYSQL_USERNAME = config.getString("database.user.name");
		MYSQL_PASSWORD = config.getString("database.user.password");
		AUTOMATIC_TIMEOUT = config.getInt("security.automatictimeout");
	}

}

Update C.java