Solved

writing a file on network drive java less painful way

Posted on 2014-07-18
8
241 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
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need to track down Infection in a Server 2008 domain user profile 7 51
session migration servlets 2 36
login jsp example 24 46
Running JavaFX on JDeveloper 12C 1 31
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 first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
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…

786 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