Results 1 to 2 of 2
  1. #1
    Tulsa is offline Member
    Join Date
    Feb 2011
    Posts
    8
    Rep Power
    0

    Default Problem in creating a file

    I need to create a file on the unix box.

    In my code if i give the path of my local machine, ods.txt file is being created at that particular location.
    FILE_PATH=C:\\Documents and Settings\\user\\ods.txt

    But when i try to create the same file on unix box (Server) ods.txt file is not beeing created.It says path not found.I tried in different ways.

    FILE_PATH=/apps/efs/ods.txt
    FILE_PATH=//apps//efs//ods.txt
    FILE_PATH=apps//efs//ods.txt

    Do i need to set set anything on my local machine inorder to create a file on unix.

    Thanks in advance.

  2. #2
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,641
    Rep Power
    7

    Default

    Use the java API for the default path separator for whatever OS you are on: File (Java Platform SE 6)

Similar Threads

  1. Creating an XML file with XML DOM
    By b1l0s in forum Advanced Java
    Replies: 0
    Last Post: 02-12-2010, 06:17 AM
  2. Creating jar file
    By Heather in forum Advanced Java
    Replies: 4
    Last Post: 02-11-2009, 10:58 AM
  3. creating jar file
    By po0oker in forum Advanced Java
    Replies: 3
    Last Post: 04-04-2008, 08:49 PM
  4. Problem creating a Post script file
    By krishnan.1000 in forum New To Java
    Replies: 0
    Last Post: 02-14-2008, 08:15 PM
  5. creating .ear file
    By psn in forum Enterprise JavaBeans (EJB)
    Replies: 1
    Last Post: 01-06-2008, 06:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •