B4J Question Copy to addlibraries folder: error 5

Sergio83

Member
Licensed User
Longtime User
Hello everybody,
I'm facing a problem regarding the copy of libraries files into the B4J addlibraries folder. I get an error 5 (access denieds). And in spite of my investigations I can't find the raison why, I'm not a Windows specialist ...! If anybody can help me it will be very great of him.
Thanks by advance
 

Daestrum

Expert
Licensed User
Longtime User
It could be as simple as you created the folder with an administartor account, and you are trying to write to it as a user account.

Try running with an admin account and see if you get the same problem.
 
Upvote 0

Sergio83

Member
Licensed User
Longtime User
Thanks for your quy reply Daestrum.

My B4A and B4J environments where been set up on this PC many years ago, and I have just one account which has the administrator rights. In spite of that I checked the Windows setting at run time and the account used is a right local administrator account.

A few weeks ago I was able to copy libraries files into the AddLibraries folder, but at this time and I don't know why, I'm not longer able to do that again.
 
Upvote 0

Daestrum

Expert
Licensed User
Longtime User
I would check the permissions on the folder.

go to the folder in explorer > right click on the folder name > open properties > security

find (at the top) the account you are using and click it

look at the bottom to see what permissions it has

Admin rights look like
1709464190636.png


User permissions ( which will stop you writing to the folder )
1709464286402.png
 
Upvote 0

Sergio83

Member
Licensed User
Longtime User
I've already done what you are suggesting me. But at least the permissions panel does not allow me to change permissions, all check boxes are grayed and by the way not checkable (sorry for my english, it is not my mother language ...).

For your information, only te data programms folder, programms folder and x86 programms folder access are denied.
 
Upvote 0

Andrew (Digitwell)

Well-Known Member
Licensed User
Longtime User
I've already done what you are suggesting me. But at least the permissions panel does not allow me to change permissions, all check boxes are grayed and by the way not checkable (sorry for my english, it is not my mother language ...).

For your information, only te data programms folder, programms folder and x86 programms folder access are denied.Y

You are trying to create a folding in the wrong place, in the system files. Windows will try to prevent this.

Create a folder in documents another place like that and use that for your additional libraries.
 
Upvote 0

Sergio83

Member
Licensed User
Longtime User
Ola DonManfred,
The path which is configured in the IDE is the standard one: C:\Program Files\Anywhere Software\B4J\AddLibraries
But my problem is not related to that I think. I can't copy libraries files to this target folder, at this step the IDE environment should be not involved. Don't you think so?
 
Upvote 0

Daestrum

Expert
Licensed User
Longtime User
Where your AddLibraries is located currently will cause windows to protect the directory from modification as @Andrew (Digitwell) posted.

Move it to C:/AddLibraries and change the path in the IDE to reflect it's new location.
 
Upvote 0

Sergio83

Member
Licensed User
Longtime User
Ok Daestrum,

I did that and it works.

But my question is: why I could copy libraries files to the standard IDE folder, and why for a reason I don't know it is no longer possible?
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
The path which is configured in the IDE is the standard one: C:\Program Files\Anywhere Software\B4J\AddLibraries
This was NEVER standard-folder for additional libraries.

In fact you set a path which is restricted in windows.

See here:
 
Upvote 0

Sergio83

Member
Licensed User
Longtime User
Sorry DonManfred,
I thought that. And I was reinforced in this idea by being able to make copies of files in this folder until a few weeks or monthes ago.
I moved this folder and everything is fine. Thanks again for your help everyone.
 
Upvote 0
Top