i am now make a program that can detect a file which contents all the path

or directory for a file to go to.Below are some of the example :
Directory references file this contents only the dir)

/export/home/koonlee

-----------------------------

File to go this is the file for me to know what file inside)

file1
file2
file3

-------------------------------

so the program i did is detect the file and detect the Directory
referencws file so that i know where the file should go

but after i compile the program it show:

Superclass BasicPermission of inner class MakeDir2. DirPermission not
found.public final class DirPermission extends BasicPermission {

what it means that ?

by the way ,can i change the permission in doing it in unix if i am not as
a root user ?