Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 7 of 7

Thread: Unable to access the files from the mapped network drive

  1. #1
    Junior Member
    Join Date
    Nov 2012
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Unable to access the files from the mapped network drive

    Hai,
    Iam Veerendranag ,i have a problem in my java code that iam unable to access the files which are in the mapped network drive using windows tomcat service , can u suggest me how make it to access.
    Regards,
    Veerendranag


  2. #2
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default Re: Unable to access the files from the mapped network drive

    Welcome to Java Programming Forums bveerendranag.

    Can you tell, what you've tried so far?
    Anyone who stops learning is old, whether at twenty or eighty. Anyone who keeps learning stays young. The greatest thing in life is to keep your mind young.

    - Henry Ford

  3. #3
    Junior Member
    Join Date
    Nov 2012
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Unable to access the files from the mapped network drive

    [QUOTE=bveerendranag;83887]Hai,
    Iam Veerendranag ,i have a problem in my java code that iam unable to access the files which are in the mapped network drive using windows tomcat service , can u suggest me how make it to access.
    Regards,
    Veerendranag

    ----------------------------------------------------------------------------------
    Dear Sir,
    I Have Created a service account with userName Administrator ,password=XXX and after i re-started the tomcat and the application won't execute the files in the mapped drive can i set any permissions please tell me
    Regards,
    Veerendranag

    --- Update ---

    Quote Originally Posted by Mr.777 View Post
    Welcome to Java Programming Forums bveerendranag.

    Can you tell, what you've tried so far?
    Dear Sir,
    I Have Created a service account with userName Administrator ,password=XXX and after i re-started the tomcat and the application won't execute the files in the mapped drive can i set any permissions please tell me
    Regards,
    Veerendranag

  4. #4
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default Re: Unable to access the files from the mapped network drive

    What does your service do?
    How are you trying to access/execute the mapped drive files?
    Anyone who stops learning is old, whether at twenty or eighty. Anyone who keeps learning stays young. The greatest thing in life is to keep your mind young.

    - Henry Ford

  5. #5
    Junior Member
    Join Date
    Nov 2012
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Unable to access the files from the mapped network drive

    Quote Originally Posted by Mr.777 View Post
    What does your service do?
    How are you trying to access/execute the mapped drive files?
    This is Sample Code
    File f=new File("F:\Some_File.xls");
    if(f.exists())----returns false even if the files exists on the mapped n/w drive

  6. #6
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default Re: Unable to access the files from the mapped network drive

    Quote Originally Posted by bveerendranag View Post
    This is Sample Code
    File f=new File("F:\Some_File.xls");
    if(f.exists())----returns false even if the files exists on the mapped n/w drive
    And how does your program supposed to know, is it have to check on mapped network drive or not?
    Anyone who stops learning is old, whether at twenty or eighty. Anyone who keeps learning stays young. The greatest thing in life is to keep your mind young.

    - Henry Ford

  7. #7
    Junior Member
    Join Date
    Nov 2012
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Unable to access the files from the mapped network drive

    Actually the Problem with the UNC Paths are executed fine in the Tomcat server but they are not executing but the tomcat server is starting as a windows service i don't know how can i execute this

    --- Update ---

    Iam Veerendranag
    do u have any ideas in executing that please tell me

Similar Threads

  1. Unable to access js file from jsp.
    By chinnu in forum JavaServer Pages: JSP & JSTL
    Replies: 3
    Last Post: July 17th, 2013, 04:05 AM
  2. Cannot Load Mapped Connection Pool
    By Noob_Ichigo in forum JDBC & Databases
    Replies: 4
    Last Post: August 30th, 2012, 03:21 PM
  3. Map Drive Locally
    By Mr.777 in forum Other Programming Languages
    Replies: 7
    Last Post: May 9th, 2012, 06:38 AM
  4. Use Servlet To Request Network Access
    By bgroenks96 in forum Java Theory & Questions
    Replies: 0
    Last Post: August 1st, 2011, 01:34 AM
  5. Map Network Drive using Java
    By umapathy in forum Java Networking
    Replies: 2
    Last Post: May 24th, 2011, 08:49 AM

Tags for this Thread