Batch file to run a Java Application
3 posters
Page 1 of 1
Batch file to run a Java Application
I need a Batch file to run a Java Application.
Assume that:
1. The batch file is placed in the Application's root directory.
2. Compilation is not required, only execute.
Please do not suggest for executable jar file. That is not what I am looking for.
Assume that:
1. The batch file is placed in the Application's root directory.
2. Compilation is not required, only execute.
Please do not suggest for executable jar file. That is not what I am looking for.
BIT0102-Mohaimin- Programmer
- Course(s) :
- BIT
Blood Group : B+
Posts : 415
Points : 715
Re: Batch file to run a Java Application
I think this will do the job.
- Code:
java -classpath <classpath1>;<classpath2> Main
Last edited by BIT0130-Shakkhor on Thu Sep 08, 2011 2:46 am; edited 1 time in total
BIT0130-Shakkhor- Programmer
- Course(s) :
- BIT
Blood Group : B+
Posts : 209
Points : 328
Re: Batch file to run a Java Application
Yes I know.BIT0130-Shakkhor wrote:I think this will do the job.But i guess you already know this. So what went wrong?
- Code:
java -classpath <classpath1>;<classpath2> Main
No.Probably the namespace went wrong.
Problem was with getting current directory. I figured that out. It gets the current directory if you open it by double clicking. No need to do anything. Thanks.
BIT0102-Mohaimin- Programmer
- Course(s) :
- BIT
Blood Group : B+
Posts : 415
Points : 715
Similar topics
» How to create a .pdf file and write in it by Java
» Problem creating executable jar file in java
» Java Beans presentation
» The Basic Java Application
» Java Tutorial: Using Two Java Reference Keywords, this and super
» Problem creating executable jar file in java
» Java Beans presentation
» The Basic Java Application
» Java Tutorial: Using Two Java Reference Keywords, this and super
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
Tue Sep 29, 2015 2:45 pm by Sophiawood
» Cisco EHWIC SFP/GE WAN Card
Mon Sep 07, 2015 11:08 am by Sophiawood
» Huawei S1700-28GFR-4P-AC Price
Thu Jun 25, 2015 2:31 pm by Sophiawood
» teach yourself C++ / Herbert Schildt Solutions
Wed Jun 03, 2015 1:52 pm by Abdullah Al Noman
» teach yourself c by herbert schildt pdf
Wed May 13, 2015 11:01 pm by Raquib Ridwan
» ASA 5506X With Firepower ASA5506-K9
Fri Apr 10, 2015 4:31 pm by Sophiawood
» New Trends in Deal Business
Tue Feb 03, 2015 9:38 pm by nersoa
» PoE Power Allocation for WS-C2960S-24PS-L
Wed Nov 05, 2014 11:12 am by Sophiawood
» How to cure back pain
Fri Oct 31, 2014 7:15 pm by Bergen Guildford