- Open gpedit.msc
- Navigate to Computer Configuration-->Administrative Templates-->Windows Components-->Remote Desktop Services-->Remote Desktop Session Host-->Session Time Limits and Disable it.
How do I stop Remote Desktop from logging off?
- Check the stack trace and version of Java. - Update the correct Java Version to resolve the Exception.