Plz guide me to create a batch file for my java project in a step by step process...
How to create batch file for java project?
Page 1 of 17 Replies - 49417 Views - Last Post: 07 December 2008 - 10:28 PM
#1
How to create batch file for java project?
Posted 29 November 2008 - 12:22 AM
Hello Frnz,
Plz guide me to create a batch file for my java project in a step by step process...
Plz guide me to create a batch file for my java project in a step by step process...
Replies To: How to create batch file for java project?
#2
Re: How to create batch file for java project?
Posted 29 November 2008 - 01:12 AM
Batch files are not really related to Java but are operating system specific. While the site policy here is that we ask for a "best effort" attempt at showing us something you are working on, I will give you a site that shows you how to setup a DOS batch file to run your java applications with.
Hopefully this will answer your question.
DOS batch files to compile and run a Java Program
Hopefully this will answer your question.
DOS batch files to compile and run a Java Program
#3
Re: How to create batch file for java project?
Posted 29 November 2008 - 03:02 AM
Thanx thanx ...thanx a lot... but that is not sufficient i want it with an example for simple java program for displaying a Hello world
This post has been edited by mani_tecit: 29 November 2008 - 03:19 AM
#4
Re: How to create batch file for java project?
Posted 29 November 2008 - 04:10 AM
I think you want the batch file to launch your Java Application:
Example:
So there we go, if you want the location of the Java file, simply build the project and it will tell you on command line.
Example:
echo "Launching Java Application..." java -jar "location of java file"
So there we go, if you want the location of the Java file, simply build the project and it will tell you on command line.
#5
Re: How to create batch file for java project?
Posted 29 November 2008 - 09:15 AM
Thanx for ur reply...ok this is wat my question is
Can we able to run a simple java application by creating a batch file for it and turning that batch file into an exe file using batch to ext converter?
Please reply...ASAP
Can we able to run a simple java application by creating a batch file for it and turning that batch file into an exe file using batch to ext converter?
Please reply...ASAP
#6
Re: How to create batch file for java project?
Posted 29 November 2008 - 10:08 AM
Yes, it should work fine. Create the batch file as described above and then convert it to an exe.
#7
Re: How to create batch file for java project?
Posted 07 December 2008 - 10:22 PM
In my project,MakeEatsWeb.java is the main class that opens my project main window.i always run my project from DOS prompt only.now i want to execute it by just clicking a batch file.how i can create it?
#8
Re: How to create batch file for java project?
Posted 07 December 2008 - 10:28 PM
sireeshavs, on 7 Dec, 2008 - 09:22 PM, said:
In my project,MakeEatsWeb.java is the main class that opens my project main window.i always run my project from DOS prompt only.now i want to execute it by just clicking a batch file.how i can create it?
If you run it from DOS just have the .bat file yo javac your main class
If you run it from Windows have your .jar file to have a manifest.mf file that points to your main class
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote





|