Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows XP Service and shared folder access

Status
Not open for further replies.

Madere

Technical User
Apr 14, 2003
85
GB
Hi all,

i have Java programm that copies, archives files from 1 directory to another. This can all be configured in a properties file. When i start this programm from the command line or from the Windows Service window, all works fine when i use only locally drives and directories.

When i use directories on a shared folder (the shared folder is locally or on a remote PC) then my programm still works fine when started from the commandline. But when i start my programm as a service, the programm cant read/write on the shared folders.

Even when i start the service with my own local account, it still fails.

I am using Java 1.4 on a Windows XP PC. I have used the JavaService.exe from internet to install my Java programm as Windows service.

Does someone has an idea what is causing the problem and what the solution might be?

Thanks in advange.

Regards,

Madere.
 
sounds like permission problems for the service user account.

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
sedj,

as i wrote: "Even when i start the service with my own local account, it still fails."

So where to change the permissions for the service user account? My local account has permissions to access the shared folders because it could not work from command line (i guess).

Madere.
 
Perhaps you should ask why your local account can access networked drives, but a service cannot in the your relevant OS's forum - I don't believe its a Java problem.

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top