Home / Microsoft / Microsoft DOS / Some help creating a batch file please
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] - (Bottom) Print
Author Topic: Some help creating a batch file please  (Read 366 times)
Silverneo188
Topic Starter
Starter



Posts: 3

Computer: Specs
Experience: Familiar
OS: Windows XP
That Bender Guy

« on: March 25, 2011, 02:33:13 AM »

I am currently working on a batch file, and i want it's function to copy .class files into a .jar file. How would I go about doing that?

Would I have to write the script to decompile the jar file into a folder, copy the .class files to that folder then recompile the .jar file?

Or is there a way I can tell my batch file to inject those class files straight into the jar file?
IP logged
Sidewinder
Guru



Thanked: 97
Posts: 4,341

Experience: Familiar
OS: Windows 7

« Reply #1 on: March 25, 2011, 11:24:57 AM »

You can use the JAR program which is included with the JDK. Type jar at the command prompt
for details and examples.

Note: The JDK was put on your path when it was installed. Most likely is located: Java\JDK6\bin

Good luck.  8)
IP logged

If you don't know where you are going, any road will get you there

                                                                            -Lewis Carroll
Silverneo188
Topic Starter
Starter



Posts: 3

Computer: Specs
Experience: Familiar
OS: Windows XP
That Bender Guy

« Reply #2 on: March 28, 2011, 08:07:38 AM »

thx, now would i be able to distrubite the batch file even if the client doesn't have the JDK? or would I have to provide something in the folder with the batch file?
IP logged
Pages: [1] - (Top) Print 
Home / Microsoft / Microsoft DOS / Some help creating a batch file please « previous next »
 


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright © 2010 Computer Hope ® All rights reserved.
Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
Page created in 0.104 seconds with 20 queries.