
The steps to enable or disable the safe mode for SAP application server JAVA can also be view from SAP Note 2125707 – How to enable/disable AS Java Safe Mode.
Step 1: Launch the ConfigTool from below location,
[DRIVE] \usr\sap\SID\J00\j2ee\configtool
Step 2: Click Yes on using the default DB settings.

Step 3: From File, Select Safe Mode.

Step 4: From below screenshot, select YES / NO to enable or disable the safe mode.

Step 5: Once saved and done. Restart the SAP AS JAVA instance.
Alternatively, you can perform the same steps above using command line. Go to the same directory of ConfigTool (\usr\sap\SID\Jxx\j2ee\configtool) and open the consoleconfig.
consoleconfig.bat
Choose (1) for Safe Mode . The current mode shown below is OFF.
1) Safe Mode (OFF)
-------------------------
6) Template - Usage_Type_All_in_One ...
7) Instance - ID80648 (HOSTNAME) ...
-------------------------
12) Exit
Your choice: 1
Now, choose (1) to disable safe mode or choose (2) to enable the safe mode.
Choose :
1) Safe Mode (OFF)
2) Safe Mode (ON: Instance - ID80648)
3) Cancel
Once done, perform the SAP AS Java instance restart to apply the changes.


