Hallo allemaal,
Ik zit met een probleem waar ik zelf niet meer uitkom. Ik heb een applet gemaakt, en die moet gebruik maken van de database. Deze wordt dus eerst aangemaakt.
Echter bij het aanmaken gaat het mis bij het uitlezen van de .txt files. Ik krijg dan voor alle files de error:
DB try to read text input file: access denied (java.io.FilePermission D:\school\JAVA\Componist\src\componist\Componist.txt read) file: 0 teller: 1
D:\school\JAVA\Componist\src\componist\Muziek.txt
DB try to read text input file: access denied (java.io.FilePermission D:\school\JAVA\Componist\src\componist\Muziek.txt read) file: 1 teller: 1
D:\school\JAVA\Componist\src\componist\Musici.txt
DB try to read text input file: access denied (java.io.FilePermission D:\school\JAVA\Componist\src\componist\Musici.txt read) file: 2 teller: 1
D:\school\JAVA\Componist\src\componist\Uitvoering.txt
DB try to read text input file: access denied (java.io.FilePermission D:\school\JAVA\Componist\src\componist\Uitvoering.txt read) file: 3 teller: 1
D:\school\JAVA\Componist\src\componist\Muzuit.txt
DB try to read text input file: access denied (java.io.FilePermission D:\school\JAVA\Componist\src\componist\Muzuit.txt read) file: 4 teller: 1
D:\school\JAVA\Componist\src\componist\Leraarleerling.txt
DB try to read text input file: access denied (java.io.FilePermission D:\school\JAVA\Componist\src\componist\Leraarleerling.txt read) file: 5 teller: 1
Echter het vreemde is, dat als ik in de ComponistDatabase klasse een main aanmaak, waarin ik de regel
ComponistDatabase ComponistDB = new ComponistDatabase("D:\\", "componist.ser")
het WEL prima gaat. Help !
http://members.chello.nl/~j.vanschepen/Componist.rar
Ik zit met een probleem waar ik zelf niet meer uitkom. Ik heb een applet gemaakt, en die moet gebruik maken van de database. Deze wordt dus eerst aangemaakt.
Echter bij het aanmaken gaat het mis bij het uitlezen van de .txt files. Ik krijg dan voor alle files de error:
DB try to read text input file: access denied (java.io.FilePermission D:\school\JAVA\Componist\src\componist\Componist.txt read) file: 0 teller: 1
D:\school\JAVA\Componist\src\componist\Muziek.txt
DB try to read text input file: access denied (java.io.FilePermission D:\school\JAVA\Componist\src\componist\Muziek.txt read) file: 1 teller: 1
D:\school\JAVA\Componist\src\componist\Musici.txt
DB try to read text input file: access denied (java.io.FilePermission D:\school\JAVA\Componist\src\componist\Musici.txt read) file: 2 teller: 1
D:\school\JAVA\Componist\src\componist\Uitvoering.txt
DB try to read text input file: access denied (java.io.FilePermission D:\school\JAVA\Componist\src\componist\Uitvoering.txt read) file: 3 teller: 1
D:\school\JAVA\Componist\src\componist\Muzuit.txt
DB try to read text input file: access denied (java.io.FilePermission D:\school\JAVA\Componist\src\componist\Muzuit.txt read) file: 4 teller: 1
D:\school\JAVA\Componist\src\componist\Leraarleerling.txt
DB try to read text input file: access denied (java.io.FilePermission D:\school\JAVA\Componist\src\componist\Leraarleerling.txt read) file: 5 teller: 1
Echter het vreemde is, dat als ik in de ComponistDatabase klasse een main aanmaak, waarin ik de regel
ComponistDatabase ComponistDB = new ComponistDatabase("D:\\", "componist.ser")
het WEL prima gaat. Help !
http://members.chello.nl/~j.vanschepen/Componist.rar