I am trying to make a program which calculates time elapsed for executing a query in postgres.I am using JDBC for this purpose. I am bulk loading a file data.csv using the
copy
statement. When I try n execute the command
copy data_1 from 'C:\\Users\\Abhishek\\Desktop\\data1.csv' using delimiters ','"
using the cmd prompt,It executes. But when I try n execute the same command using java and JDBC.. it gives the error that
org.postgresql.util.PSQLException: ERROR: could not open file for reading: Permission denied
How can I change the permission on the file so that I can help my jre to get to use that file.