When purchasing a Minecraft license, online access is initially disabled through your account. Changing these settings doesn't change anything in the Java version. When contacting support, this process takes a very long time and doesn't work the first time.
You will need to make sure multiplayer is enabled on the account. This is a technical/account support issue.