Results 1 to 13 of 13
Thread: sample jar file
- 10-28-2010, 05:13 AM #1
Member
- Join Date
- Oct 2010
- Posts
- 7
- Rep Power
- 0
- 10-28-2010, 05:33 AM #2
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,561
- Rep Power
- 11
I just want a sample and simple jar file and run it.
Oracle's Tutorial works through an example in the Lesson: Packaging Programs in JAR Files (The Java™ Tutorials > Deployment) section.
The details (so you can understand and apply the simple example) are to be found, if needed, in the Jar guide.
- 10-28-2010, 06:56 AM #3
I strongly recommend what pbrockway2 suggests here to you.
Mak
(Living @ Virtual World)
- 10-28-2010, 06:58 AM #4
Member
- Join Date
- Oct 2010
- Posts
- 7
- Rep Power
- 0
where can i find a sample jar file wherein i can check the output of it? i will call it using batch file script. thanks!
- 10-28-2010, 07:05 AM #5
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,606
- Blog Entries
- 7
- Rep Power
- 17
- 10-28-2010, 07:16 AM #6
Member
- Join Date
- Oct 2010
- Posts
- 7
- Rep Power
- 0
actually i'm after the output checking of the script, i do not have to create the script, I have a scheduler wherein i will execute the java script, client gave me their java script and i want to test first a sample java if my scheduler can execute this kind of script. that's is why i'm looking for a very simple java script where in i can easily look also for the output for checking, for ex. a simple copy file. thanks! :)
- 10-28-2010, 07:43 AM #7
Member
- Join Date
- Oct 2010
- Posts
- 7
- Rep Power
- 0
already created a test.jar file
jar cf test.jar ping.bat
wherein ping.bat is
cd\
ping 192.168.30.5 >>C:\pinglog.txt
how can i exec this test.jar? thanks!
- 10-28-2010, 07:47 AM #8
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,606
- Blog Entries
- 7
- Rep Power
- 17
- 10-28-2010, 07:54 AM #9
Member
- Join Date
- Oct 2010
- Posts
- 7
- Rep Power
- 0
so how can i execute this test.jar?
when i run
jar -jar test.jar
Failed to load Main-Class manifest attribute from test.jar
what should i do? thanks!
- 10-28-2010, 07:56 AM #10
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,606
- Blog Entries
- 7
- Rep Power
- 17
- 10-28-2010, 07:58 AM #11
Member
- Join Date
- Oct 2010
- Posts
- 7
- Rep Power
- 0
sorry, what does it mean? i would like to execute my ping batch file and look for the output, is it possible? thanks!
- 10-28-2010, 08:02 AM #12
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,561
- Rep Power
- 11
My previous response was motivated by a couple of things.
First, I really don't think anyone here is going to write your code for you. I won't, anyway. This isn't mean spiritedness, it's just I'm not paid to, it's not fun and doing so would not advance anybody's understanding. The last point is most important as I take growth in understanding as the reason why most folk are here. It's why I'm here, anyway.
So you are going to write your code. And the links were designed to help with that.
The second reason was because I know of no better source for explaining what an (executable?) jar file is. Your original post suggested it might be beneficial if you found out about the concepts involved. Your more recent post confirms that.
Generally I wouldn't have responded again: your silence on the content of my previous post being response enough. But your continual insistence on using this forum as a substitute for doing the work motivated me to reflect, as above, and offer a different reason why we're here and what the bandwidth's good for.
But good luck with your endeavour.
- 10-28-2010, 08:04 AM #13
Member
- Join Date
- Oct 2010
- Posts
- 7
- Rep Power
- 0
Similar Threads
-
Sample build.xml file for EJB
By deeparanbhor in forum Enterprise JavaBeans (EJB)Replies: 0Last Post: 04-27-2009, 01:16 PM -
How to calculate the sample rate of an audio file?
By arnab321 in forum CLDC and MIDPReplies: 0Last Post: 12-28-2008, 12:39 PM -
how to use jwnl.. i run a sample program it will ask properties file.. what can i do
By sathishk in forum New To JavaReplies: 1Last Post: 02-16-2008, 03:33 AM -
Sample ANT Script
By Java Tip in forum Java TipReplies: 0Last Post: 01-24-2008, 03:22 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks