Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

regarding JAR files

 
Bala Raju Mandala
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • 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?
 
Rob Spoor
Sheriff
Pie
Posts: 20608
63
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • 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:

 
Ove Lindström
Ranch Hand
Posts: 326
Android Firefox Browser Mac OS X
  • Mark post as helpful
  • send pies
  • 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
  • Mark post as helpful
  • send pies
  • 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
  • Mark post as helpful
  • send pies
  • 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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic