ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Balvinder S Sahota" <b...@telus.net>
Subject Set up ant in Windows 98 environment
Date Tue, 17 Sep 2002 17:40:36 GMT
> Hi,
> 
> I am a first time user and trying to build a Java application. I am
> getting the following error message when try to compile and run a simple
> program:
> 
> Error Messages are:
>   Out of environment space
>   Out of environment space
>   Out of environment space
>   Out of environment space
>   Out of environment space
>   Exception in thread "main" java.lang.NoclassDefFoundError:
> org/apache/tools/ant/Main
> 
> The build File: build.xml
> Contents: 
> <project default="run" basedir=".">
> 
>   <property name="app.name"  value="MyFstApp"/>
> 
>   <target name="compile" description="* Compiles the source code">
>     <javac srcdir="."/>
>   </target>
> 
>   <target name="run" depends="compile" description="* Executes the
> application">
>     <java  classname="${app.name}"/>
>   </target>
> 
> </project>
> 
> 
> Program File: MyFstApp.java
> Contents:
> public class MyFstApp { 
> 	public static void main( String[] args ) { 
> 		// Display the string.
> 		System.out.println( "This is my first Java application!" ); 
>   	}
> }
> 
> 
> The environment is:
> OS: Windows 98
> Ant Version: Ant 1.5 extracted off jakarta-ant-1.5-bin
> Java Version: j2sdk1.4.0_02 extracted off j2sdk-1_4_0_02-windows-i586
> 
> Setting in autoexec.bat file are:
> SET ANT_HOME=c:\ant15
> SET JAVA_HOME=c:\j2s14002
> SET CLASSPATH=c:\LrngJava\lab
> SET PATH=%PATH%;%ANT_HOME%\bin;%JAVA_HOME%\bin
> 
> I have no problem in compiling and running MyFstApp on command line by
> using: 
> 
>  javac MyFstApp.java
>  java MyFstApp
> 
> But when I try to use ant, I get the above mentioned error. Your help to
> get me going will be highly appreciated.
> 
> Best regards,
> Bal.
> 

Mime
View raw message