aspose file tools*
The moose likes Java in General and the fly likes Create file from AIX(server) machine to windows machine using java.io Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Create file from AIX(server) machine to windows machine using java.io" Watch "Create file from AIX(server) machine to windows machine using java.io" New topic
Author

Create file from AIX(server) machine to windows machine using java.io

kannagiri rosei
Ranch Hand

Joined: Nov 26, 2005
Posts: 31
Hi

i just want to create File in Winndows , my code is there
in AiIx server().in aix if i run java program i just want to create a file in
10.16.17.120/c$/test/StartDataEntry.txt file

is it possible in java?
[ November 27, 2005: Message edited by: Mark Spritzler ]
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 19064
    
  40

Originally posted by kannagiri rosei:
Hi

i just want to create File in Winndows , my code is there
in AiIx server().in aix if i run java program i just want to create a file in
10.16.17.120/c$/test/StartDataEntry.txt file

is it possible in java?


This is *not* a Java issue -- it is an operating systems issue. Windows file networking, with the technique that you are using, uses the Samba protocol. You need to have a Samba client on the AIX machine, and you need to modify your AIX program to use that instead.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42927
    
  68
Samba comes with a Java client library at jcifs.samba.org. It can read and write Windows files on a shared drive over the network, and has an API that's just like java.io.File, so it's easy to learn.
kannagiri rosei
Ranch Hand

Joined: Nov 26, 2005
Posts: 31
Hi
sorry to ask this question here,i think Ditter knows very well.
thanks for your reply. you all giving great help for us.

am using axis1.2 for my web services.i just want to host my web service in Aix.then my java class will be called by the Client.

if client Call my web service which is hosed in IBM http Web server.

my Java class file should create file in shared folder(windows).


my question:

1.can i able to deploy my web service in IBM http server.

2.if i deployed will "jcifs.samba.org." supports with axis.

am using java 1.4.2_06

please help am new bie?

note:my web service is executed in windows and tested also.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42927
    
  68
jCIFS is a Java library, it doesn't care whether it's used in desktop app, web app or web service, and it runs on all platforms that have a JVM. Does this answer your question?
kannagiri rosei
Ranch Hand

Joined: Nov 26, 2005
Posts: 31
Can u please answer for my first question even though if it is web services related ?

can i deploy Axis Web serivce in IBM Http Web server
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42927
    
  68
Why wouldn't Axis run in any servlet container? The requirements for Axis are Java API 1.3 and Servlet API 2.2. That's also explained in more detail in the Axis installation guide.

Whether or not you use jCIFS with it makes no difference. Note that jCIFS may need to be installed in the servlet containers CLASSPATH, not in WEB-INF/lib, as is explained here.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17260
    
    6

Please don't yell in your posts or as topic titles. I changed your topic to be the correct case. Using all CAPS IS LOUD AND YELLING.

Please don't yell.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
 
subject: Create file from AIX(server) machine to windows machine using java.io