Anybody want to take a shot at my problem? When I do ant compile.service on the command line, I get an error saying that it cant find the import.
Thanks, Sonia On Wed, Sep 9, 2009 at 5:19 PM, Greg Roodt <[email protected]> wrote: > Hi > > I think you've answered your own question. Its looking for a JDK, but your > JAVA_HOME references the JRE. > > Try setting JAVA_HOME to /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0 > > Greg > > > > > > On Wed, Sep 9, 2009 at 10:20 PM, Kerry Scott <[email protected] > >wrote: > > > Hi > > I have problems running Ant and I am sure that it is somehow a PATH > > problem but I have wrestled it to my death for 48 hours and would love > > some ideas. > > Platform - Mandriva Linux 2009 which has an Ant RPM - I have deleted it > > and tried to use the version downloaded - it didn't come with Ant but > > Ant.bat, Ant.cmd were included so I copied the Ant shell program from > > the Mandriva RPM release > > Symptoms: if I don't set ANT_HOME it cannot find the standard Java class > > libraries so the compile dies on java.lang.Object cannot be resolved. > > If I do set ANT_HOME I get the error: Unable to find a javac compiler; > > com.sun.tools.javac.Main is not on the classpath. > > Perhaps JAVA_HOME does not point to the JDK. > > It is currently set to "/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre" > > > > Any ideas > > > > Cheers > > > > Kerry > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > >
