I have downloaded the sample command line program for prediction api and imported in eclipse as mention here .
I have imported that sample program and replaced the c
.../jre/lib/security/java.policy
Can you try giving permission to all as below ?
grant{
permission java.security.AllPermission;
};
If you are using client_secrets.json
, this creates a tiny file in your user folder - in my case it is C:\Users\myUser\.store\calendar_sample
, the file is StoredCredential, so you can delete this file and try again the sample, this will work, when you run again your program it will ask you to grant permission again for your google account.