Ant will both compile the code (compile target) and build the jar file (target jar), which will be placed in lib folder. When you simply compile the code with javac, the jar file isn't generated.
views:
3482answers:
3Hi every one.
I have installed red5 server on my machine and also JDK version of 1_5_0_11
java -classpath C:\Program Files\Red5\red5.jar F:\Video Chat\red5chatv2.1\JAVA-RED5\src\chat\application.java
but when I tryed to compile to get my application.class file using above shown command on command promt I got error : Exception in thread "main" java.lang.NoClassDefFoundError: Files\Red5\red5/jar
Hi every one.
I have installed red5 server on my machine and also JDK version of 1_5_0_11
java -classpath C:\Program Files\Red5\red5.jar F:\Video Chat\red5chatv2.1\JAVA-RED5\src\chat\application.java
but when I tryed to compile to get my application.class file using above shown command on command promt I got error : Exception in thread "main" java.lang.NoClassDefFoundError: Files\Red5\red5/jar