Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

writing a file on network drive java less painful way

Posted on 2014-07-18
8
Medium Priority
?
354 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 86

Expert Comment

by:CEHJ
ID: 40206997
:)
0
 
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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
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 …
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Suggested Courses

688 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