• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
kannagiri rosei
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Marshal
Pie
Posts: 21185
80
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic