Jump to content


Matt Albrecht

Member Since 13 Dec 2010
Offline Last Active Oct 07 2019 07:31 PM
-----

Posts I've Made

In Topic: [P4java] com.perforce.p4java.exception.AccessException: Perforce password (P4...

03 October 2019 - 01:23 PM

The P4 Java API does not itself load values from the environment or Windows registry.  Instead, you must set these explicitly through the API.  For the password, you will need to run an explicit login for each connection:

final LoginOptions loginOptions = new LoginOptions();
// Set login options, as necessary
server.login(password, loginOptions);