Journal karniv0re's Journal: Getting Java to Work at Work
make.bat
@echo off
REM set javac=C:\software\J2SDK1.5.0_04\bin\javac
REM set classpath=C:\Projects\cf_sched
REM $javac -classpath $classpath
set antpath=C:\software\ant\1.6.1\bin\
%antpath%ant.bat %1
The second one is a "run" script:
C:\software\J2SDK1.5.0_04\bin\java -classpath . %1
Then I was able to move all my GNU win32 software into my path, and I'm using Console.
So with all that said and done, this little Java code works:
C:\Projects\helloworld>cat Hello.java
// Hello.java
public class Hello
{
public static void main(String[] args)
{
System.out.println("Hello, world!");
}
}
C:\Projects\helloworld>make
C:\Projects\helloworld>set javac=C:\software\J2SDK1.5.0_04\bin\javac
C:\Projects\helloworld>set classpath=C:\Projects\cf_sched
C:\Projects\helloworld>set antpath=C:\software\ant\1.6.1\bin\
C:\Projects\helloworld>C:\software\ant\1.6.1\bin\ant.bat
Buildfile: build.xml
compile:
BUILD SUCCESSFUL
Total time: 0 seconds
C:\Projects\helloworld>run Hello
C:\Projects\helloworld>C:\software\J2SDK1.5.0_04\bin\java -classpath . Hello
Hello, world!
Getting Java to Work at Work More Login
Getting Java to Work at Work
Slashdot Top Deals