• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

regarding JAR files

 
Ranch Hand
Posts: 40
Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Folks,

I am sorry if i am posting my question in wrong area.

I am creating a jar file using a batch file. It will create the jar files


it is creating "afile.jar". I need to unjar this file in a UNIX meshine.
I copied it to UNIX meshine and unjared it. It is creating 2 folders in UNIX meshine named "c:" folder and "datafiles" folder and coping all XML and DOC files there.

What i need to do, to have the files in the same folder where i unjar them or move to some specified folder of UNIX meshine?
 
Marshal
Posts: 22453
121
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Go to either C:\ (if you want the datafiles folder to be created) or C:\datafiles (if you just want the *.xml and *.doc files) and then execute the command with relative paths:

 
Ranch Hand
Posts: 326
Android Mac OS X Firefox Browser
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The question is acctually: Why do you want to un-jar-them in exact the same place? Are they going to be edited?
 
Bala Raju Mandala
Ranch Hand
Posts: 40
Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you verymuch Rob. I am sorry for not clearly writing my problem.

I am doing this from a batch file. This batch file should be in the c:\upload folder. Thatsway i clearly mentioned the path names.

As unjaring will be done at server side. Can i do something while unjaring, so that the specified files can be moved to particular folder?
 
Bala Raju Mandala
Ranch Hand
Posts: 40
Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes Ove, i need to read them from a java program. So the location is a central location to all the files.
[ September 29, 2008: Message edited by: Bala Raju Mandala ]
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic