Executing a java program from Ant
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Tuesday, September 25, 2001 08:42 AM

I am having trouble executing a java program from Ant. Below is part of the code which i am using:























I am very new to Ant as well as Java. Basically, I am trying to execute, through Ant, a java program named "test.class" which is located in the directory specified in the pathelement above. When I run Ant, it says that it cannot locate my java class file. Any suggestions will be appreciated.

Thank you,

-- George

Re: Executing a java program from Ant

Posted By:   Simone_Milani  
Posted On:   Tuesday, September 25, 2001 09:35 AM

Hi,
Do not put the .class extension there.

When compiling you need to add the .java extension but when running you must avoid the .class extension.


Simone











${Java_Programs}




















About | Sitemap | Contact