Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-ant-dev] java task question


This mailing list is for Eclipse Ant integration development.

I believe you will receive your answer in the message you posted to user@xxxxxxxxxxxxxx

Have a great weekend
Darins



Leo <leostar_77@xxxxxxxxx>
Sent by: platform-ant-dev-bounces@xxxxxxxxxxx

01/26/2007 01:19 PM

Please respond to
"Eclipse Ant integration developers list."        

To
platform-ant-dev@xxxxxxxxxxx
cc
Subject
[platform-ant-dev] java task question





Hi,
        I have recently started to use Ant. I am trying to run a file called HelloWorld located in the jse.core package. The build.xml is located at:

C:\dev\eclipse\workspace32\jse-core\build.xml

HelloWorld.java and HelloWorld.class is located at:

C:\dev\eclipse\workspace32\jse-core\jse\core

This is how my build.xml looks like:

<project name="project1" default="run" basedir=".">
   <target name="init">
       <echo> The Java Version is ${ant.java.version} </echo>
   </target>
   <target name="compile">
       <javac srcdir="." destdir="." includes="HelloWorld.java" />
   </target>
   <target name="run" depends="compile">
       <java classname="jse.core.HelloWorld"/>
   </target>
</project>

The compilation part works fine, but when the run target is executed, I get the error message as:
Could not find jse.core.HelloWorld. Make sure you have it in your classpath

I see that java task has a classpath attribute, but I am not sure how to use it. Please advice.

Thanks.

 


Never Miss an Email
Stay connected with Yahoo! Mail on your mobile.
Get started!_______________________________________________
platform-ant-dev mailing list
platform-ant-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-ant-dev


Back to the top