![]() Here's the second script I named 2createJar.bat that I use to create a jar file that I distribute with my Java program: set JAVA_HOME=C:\jdk1.5.0_06 ![]() Here's the first script I named 1compile.bat that I use to compile my Java program: set JAVA_HOME=C:\jdk1.5.0_06 I'm also overriding my Java compiler settings on this PC, as I have several Java versions installed on this system. I should use an Ant build script for this, but I'm too lazy today. I ended up creating these scripts because of configuration problems on my Windows PC, but I thought they might be useful samples for others.Īs you'll see the mostly correct problems with my JAVA_HOME, PATH, and CLASSPATH configurations. ![]() This isn't the most high-tech way to do things, but I thought I'd share these Windows (DOS) shell scripts that I'm currently using to compile a Java application, create a Jar file to distribute the application, and finally run the application.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |