You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Charles Lee <li...@gmail.com> on 2010/05/25 11:42:50 UTC
[Discuss]Using hdk to run ant
Hi guys,
I am trying to testing ant using hdk. And find these problems which when
running ant javac task:
1. ant using Class.forName("com.sun.tools.javac.Main") to find the javac.
Harmony has this class, which is in the tools.jar under the jdk/lib. But
unfortunately tools.jar is not in our class path. So should we put this jar
under our bootclasspath?
2. In org.apache.harmony.tools.javac.Main, we
need org.eclipse.jdt.core.compiler.batch.BatchCompiler. It is supposed to be
in the ecj.jar. But unfortunately it is not. The class is included in the
jdt core plugin with every eclipse relase. Should we add this under out
classpath?
--
Yours sincerely,
Charles Lee
Re: [Discuss]Using hdk to run ant
Posted by Charles Lee <li...@gmail.com>.
Thanks Alexei.
The output of java -version is:
Apache Harmony Launcher : (c) Copyright 1991, 2010 The Apache Software
Foundation or its licensors, as applicable.
java version "1.6.0"
Apache Harmony (1.6.0)
DRLVM (1.6.0-runknown)
pre-alpha : not complete or compatible
svn = runknown, (May 24 2010), Linux/ia32/gcc 4.4.1, release build
The revision number is: 946981
I have already move the some jars under the boot and add them in the
bootclasslib.properties. And continue to test hdk on ant.
I guess we should support ant any way.
2010/5/25 Alexei Fedotov <al...@gmail.com>
> Hello Charles
>
> AFAIR, I ran ant using Harmony successfully few years ago. Could it be
> that the older correspondence contains some hints how to do this?
>
> BTW, you can modify bootclasspath and any jars manually to test if your
> idea.
>
> --
> With best regards / с наилучшими пожеланиями,
> Alexei Fedotov / Алексей Федотов,
> http://www.telecom-express.ru/
> http://harmony.apache.org/
> http://dataved.ru/ http://klsh.ru/
>
>
>
>
> On Tue, May 25, 2010 at 1:42 PM, Charles Lee <li...@gmail.com>
> wrote:
> > Hi guys,
> >
> > I am trying to testing ant using hdk. And find these problems which when
> > running ant javac task:
> > 1. ant using Class.forName("com.sun.tools.javac.Main") to find the javac.
> > Harmony has this class, which is in the tools.jar under the jdk/lib. But
> > unfortunately tools.jar is not in our class path. So should we put this
> jar
> > under our bootclasspath?
> > 2. In org.apache.harmony.tools.javac.Main, we
> > need org.eclipse.jdt.core.compiler.batch.BatchCompiler. It is supposed to
> be
> > in the ecj.jar. But unfortunately it is not. The class is included in the
> > jdt core plugin with every eclipse relase. Should we add this under out
> > classpath?
> >
> >
> > --
> > Yours sincerely,
> > Charles Lee
> >
>
--
Yours sincerely,
Charles Lee
Re: [Discuss]Using hdk to run ant
Posted by Alexei Fedotov <al...@gmail.com>.
Hello Charles
AFAIR, I ran ant using Harmony successfully few years ago. Could it be
that the older correspondence contains some hints how to do this?
BTW, you can modify bootclasspath and any jars manually to test if your idea.
--
With best regards / с наилучшими пожеланиями,
Alexei Fedotov / Алексей Федотов,
http://www.telecom-express.ru/
http://harmony.apache.org/
http://dataved.ru/ http://klsh.ru/
On Tue, May 25, 2010 at 1:42 PM, Charles Lee <li...@gmail.com> wrote:
> Hi guys,
>
> I am trying to testing ant using hdk. And find these problems which when
> running ant javac task:
> 1. ant using Class.forName("com.sun.tools.javac.Main") to find the javac.
> Harmony has this class, which is in the tools.jar under the jdk/lib. But
> unfortunately tools.jar is not in our class path. So should we put this jar
> under our bootclasspath?
> 2. In org.apache.harmony.tools.javac.Main, we
> need org.eclipse.jdt.core.compiler.batch.BatchCompiler. It is supposed to be
> in the ecj.jar. But unfortunately it is not. The class is included in the
> jdt core plugin with every eclipse relase. Should we add this under out
> classpath?
>
>
> --
> Yours sincerely,
> Charles Lee
>