• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
author
Posts: 23958
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
I wish to win the lottery. I wish for a lovely piece of pie. And I wish for a tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic