Solved

writing a file on network drive java less painful way

Posted on 2014-07-18
8
224 Views
Last Modified: 2014-07-21
I need to write a file to a network drive with Java. \\vsv11234\site$\Foo\Baz

Any help?` Strinctly without a 3rd party library.

Regards.
0
Comment
Question by:jazzIIIlove
  • 5
  • 3
8 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 40205705
The niceties are with the OS. To Java, it's just another file. If that's not the case, then you haven't set it up properly
0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 40206550
Yes, you are right but do you think xml can be serialized to a network drive with Result object without using 3rd party library?
http://docs.oracle.com/javase/7/docs/api/javax/xml/transform/Result.html

Regards
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
ID: 40206611
Yes, there should be no problem unless authentication is necessary. It would reduce complexity if you mapped the network drive first
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 40206997
:)
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 12

Author Comment

by:jazzIIIlove
ID: 40207197
There was actually a problem even i created the folder in public folder setup. It simply couldn't create it.. Any sample codes?
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 40207224
Did you map the network drive as i suggested?
0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 40208808
Hi,

I didn't map the network drive. Is \\server\directory working just by specifying the path?

Br.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 40208910
As i said, map the network drive first. Easy to google
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Passing list of object to Oracle Database Procedure 3 59
simple java question 3 43
stackato and cloud 4 64
oracle 11g 23 45
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…

948 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now