3. Creation of scripts Table of contents

3.3. The file "start.bat"

 

Finally create a file named “start.bat”. Copy the contents from the file on the right side. This file can be used to easily start the project. Make the same changes like in “build.bat”. The structure of both files is similar. If necessary go two pages back.

Add your name and email, specify the Java paths and don’t forget to specify the project path.

 

The last line of this file starts the application using the Sun JRE. You have to add the correct package name with the file witch launches the application. It is our MyWorldLauncher.java file.

 

%JAVA% -classpath %CLASSPATH% org.resmedicinae.application.sample.myworld.MyWorldLauncher

 

Later you can add more jar-files to the classpath by removing the “rem” before the “set” statement. 

 

Maybe you think it is superfluously to create these three files, because you can also use your developmentally environment. But so you can compile, archive and start each module independently simply by using the console. If you have written these files once, it is no effort to adapt them to any other module you will create.

 

<<PREVIOUS                                                                    NEXT>>

Contents of build.bat

Contents of build.xml

Contents of start.bat

Contents of build.sh

Contents of start.sh

 
Copyright (c) 1999-2002. Dirk Behrendt All rights reserved. GNU FDL license. Last Update: 10.07.2002