with the fix done by azeez, qpid/ cassandra  builds fine in windows without
setting "ant_home"..
Thanks
-Ratha.

On 22 March 2011 16:18, Danushka Menikkumbura <[email protected]> wrote:

> Ratha,
>
> If you are still on Windows please try [1] and see.
>
> [1] - http://www.coderanch.com/t/109038/tools/set-classpath-ant
>
> Thanks,
> Danushka
>
>
> On Tue, Mar 22, 2011 at 3:36 PM, Vijayaratha Vijayasingam <[email protected]
> > wrote:
>
>> In windows i get following error..i haven't changed anything
>> locally(ant-->ant.bat..)
>>
>> ps:-My java-home is set..
>>
>> compile:
>>      [echo] Targeting : 1.5
>>
>> jar.manifest:
>>
>> jar.nomanifest:
>>
>> jar:
>>
>> precompile-tests:
>>
>> compile-tests:
>>     [javac] C:\Projects\trunk\dependencies\qpid\java\module.xml:254:
>> warning: 'includeantruntime' wa
>> s not set, defaulting to build.sysclasspath=last; set to false for
>> repeatable builds
>>
>> jar-tests:
>>
>> libs:
>>
>> copy-bin:
>>
>> copy-etc:
>>
>> postbuild:
>>
>> build:
>>      [echo] Running ant for module : client
>>
>> prepare:
>>
>> precompile:
>>
>> compile:
>>      [echo] Targeting : 1.5
>>     [javac] Compiling 1 source file to
>> C:\Projects\trunk\dependencies\qpid\java\build\scratch\client
>> \classes
>>
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] An Ant BuildException has occured: The following error occurred
>> while executing this line:
>> C:\Projects\trunk\dependencies\qpid\java\build.xml:151: The following
>> error occurred while executing
>>  this line:
>> C:\Projects\trunk\dependencies\qpid\java\build.xml:58: The following error
>> occurred while executing
>> this line:
>> C:\Projects\trunk\dependencies\qpid\java\module.xml:232: 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 "C:\Program Files\Java\jdk1.6.0_20\jre"
>>
>>
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] For more information, run Maven with the -e switch
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 9 seconds
>> [INFO] Finished at: Tue Mar 22 15:33:52 IST 2011
>> [INFO] Final Memory: 10M/247M
>> [INFO]
>> ------------------------------------------------------------------------
>> -Ratha.
>>
>>
>> On 22 March 2011 15:19, Danushka Menikkumbura <[email protected]> wrote:
>>
>>> Same change should go into Cassandra too.
>>>
>>> Danushka
>>>
>>>
>>> On Tue, Mar 22, 2011 at 3:17 PM, Danushka Menikkumbura <
>>> [email protected]> wrote:
>>>
>>>> I tested it on Linux. Works fine!.
>>>>
>>>> Thanks Azeez!.
>>>>
>>>> Danushka
>>>>
>>>>
>>>> On Tue, Mar 22, 2011 at 2:57 PM, Afkham Azeez <[email protected]> wrote:
>>>>
>>>>> This works.
>>>>>
>>>>> Guys, before you do anything, you have to read the documentation!
>>>>>
>>>>> http://maven.apache.org/plugins/maven-antrun-plugin/usage.html
>>>>>
>>>>>
>>>>> On Tue, Mar 22, 2011 at 2:48 PM, Afkham Azeez <[email protected]> wrote:
>>>>>
>>>>>> Have you tried
>>>>>>
>>>>>> <ant antfile="build.xml"/>
>>>>>>
>>>>>>
>>>>>> On Tue, Mar 22, 2011 at 2:35 PM, Danushka Menikkumbura <
>>>>>> [email protected]> wrote:
>>>>>>
>>>>>>> Using a java task to launch Ant from Maven is the only way out to get
>>>>>>> it to work across platforms. Anybody out there who know Ant/Maven better
>>>>>>> than I do please help solve this if you think setting ANT_HOME is an
>>>>>>> overhead.
>>>>>>>
>>>>>>> Danushka
>>>>>>>
>>>>>>> On Tue, Mar 22, 2011 at 2:24 PM, Afkham Azeez <[email protected]>wrote:
>>>>>>>
>>>>>>>> I didn't have to set ANT_HOME earlier and the build worked fine. Now
>>>>>>>> dont force me to set that variable, just get it back to what it was 
>>>>>>>> and make
>>>>>>>> it work. If this is needed on Windows, handle that case differently.
>>>>>>>>
>>>>>>>>
>>>>>>>> On Tue, Mar 22, 2011 at 2:03 PM, Afkham Azeez <[email protected]>wrote:
>>>>>>>>
>>>>>>>>> [INFO] Deleting
>>>>>>>>> /Users/azeez/projects/wso2/org/trunk/carbon/dependencies/qpid/target
>>>>>>>>> [WARNING] DEPRECATED [tasks]: Use target instead
>>>>>>>>> [INFO] [antrun:run {execution: compile}]
>>>>>>>>> [WARNING] Parameter tasks is deprecated, use target instead
>>>>>>>>> [INFO] Executing tasks
>>>>>>>>>
>>>>>>>>> main:
>>>>>>>>>      [java] Exception in thread "main"
>>>>>>>>> java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher
>>>>>>>>>      [java] Caused by: java.lang.ClassNotFou
>>>>>>>>>      [java] ndException: org.apache.tools.ant.launch.Launcher
>>>>>>>>>      [java] at
>>>>>>>>> java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>>>>>>>>>      [java] at java.security.AccessController.doPrivileged(Native
>>>>>>>>> Method)
>>>>>>>>>      [java] at
>>>>>>>>> java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>>>>>>>>>      [java] at
>>>>>>>>> java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>>>>>>>>>      [java] at
>>>>>>>>> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>>>>>>>>      [java] at
>>>>>>>>> java.lang.ClassLoader.loadClass(ClassLoader.java:248)
>>>>>>>>>      [java] Java Result: 1
>>>>>>>>>      [java] Exception in thread "main"
>>>>>>>>> java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher
>>>>>>>>>      [java] Caused by: java.lang.ClassNotFoundException:
>>>>>>>>> org.apache.tools.ant.launch.Launcher
>>>>>>>>>      [java] at
>>>>>>>>> java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>>>>>>>>>      [java] at java.security.AccessController.doPrivileged(Native
>>>>>>>>> Method)
>>>>>>>>>      [java] at
>>>>>>>>> java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>>>>>>>>>      [java] at
>>>>>>>>> java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>>>>>>>>>      [java] at
>>>>>>>>> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>>>>>>>>      [java] at
>>>>>>>>> java.lang.ClassLoader.loadClass(ClassLoader.java:248)
>>>>>>>>>      [java] Java Result: 1
>>>>>>>>> [INFO] Executed tasks
>>>>>>>>> [INFO] [site:attach-descriptor {execution:
>>>>>>>>> default-attach-descriptor}]
>>>>>>>>> [INFO] [install:install {execution: default-install}]
>>>>>>>>> [INFO] Installing
>>>>>>>>> /Users/azeez/projects/wso2/org/trunk/carbon/dependencies/qpid/pom.xml 
>>>>>>>>> to
>>>>>>>>> /Users/azeez/.m2/repository/org/apache/qpid/qpid/0.9-wso2v1/qpid-0.9-wso2v1.pom
>>>>>>>>> [INFO] [install:install-file {execution: install-client}]
>>>>>>>>> [INFO] Installing
>>>>>>>>> /Users/azeez/projects/wso2/org/trunk/carbon/dependencies/qpid/java/build/lib/qpid-client-0.9.jar
>>>>>>>>> to
>>>>>>>>> /Users/azeez/.m2/repository/org/apache/qpid/qpid-client/0.9-wso2v1/qpid-client-0.9-wso2v1.jar
>>>>>>>>> [INFO]
>>>>>>>>> ------------------------------------------------------------------------
>>>>>>>>> [ERROR] BUILD ERROR
>>>>>>>>> [INFO]
>>>>>>>>> ------------------------------------------------------------------------
>>>>>>>>> [INFO] Error installing artifact 'org.apache.qpid:qpid-client:jar':
>>>>>>>>> Error installing artifact: File
>>>>>>>>> /Users/azeez/projects/wso2/org/trunk/carbon/dependencies/qpid/java/build/lib/qpid-client-0.9.jar
>>>>>>>>> does not exist
>>>>>>>>>
>>>>>>>>> [INFO]
>>>>>>>>> ------------------------------------------------------------------------
>>>>>>>>> [INFO] For more information, run Maven with the -e switch
>>>>>>>>> [INFO]
>>>>>>>>> ------------------------------------------------------------------------
>>>>>>>>> [INFO] Total time: 9 minutes 46 seconds
>>>>>>>>> [INFO] Finished at: Tue Mar 22 14:02:25 IST 2011
>>>>>>>>> [INFO] Final Memory: 884M/2174M
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> *Afkham Azeez*
>>>>>>>>> Senior Software Architect & Senior Manager; WSO2, Inc.;
>>>>>>>>> http://wso2.com,
>>>>>>>>> *
>>>>>>>>> *
>>>>>>>>> *Member; Apache Software Foundation; 
>>>>>>>>> **http://www.apache.org/*<http://www.apache.org/>
>>>>>>>>> *
>>>>>>>>> email: **[email protected]* <[email protected]>* cell: +94 77 3320919
>>>>>>>>> blog: **http://blog.afkham.org* <http://blog.afkham.org>*
>>>>>>>>> twitter: 
>>>>>>>>> **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
>>>>>>>>> *
>>>>>>>>> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>>>>>>>>> *
>>>>>>>>> *
>>>>>>>>> *Lean . Enterprise . Middleware*
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> *Afkham Azeez*
>>>>>>>> Senior Software Architect & Senior Manager; WSO2, Inc.;
>>>>>>>> http://wso2.com,
>>>>>>>> *
>>>>>>>> *
>>>>>>>> *Member; Apache Software Foundation; 
>>>>>>>> **http://www.apache.org/*<http://www.apache.org/>
>>>>>>>> *
>>>>>>>> email: **[email protected]* <[email protected]>* cell: +94 77 3320919
>>>>>>>> blog: **http://blog.afkham.org* <http://blog.afkham.org>*
>>>>>>>> twitter: 
>>>>>>>> **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
>>>>>>>> *
>>>>>>>> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>>>>>>>> *
>>>>>>>> *
>>>>>>>> *Lean . Enterprise . Middleware*
>>>>>>>>
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Carbon-dev mailing list
>>>>>>>> [email protected]
>>>>>>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> *Afkham Azeez*
>>>>>> Senior Software Architect & Senior Manager; WSO2, Inc.;
>>>>>> http://wso2.com,
>>>>>> *
>>>>>> *
>>>>>> *Member; Apache Software Foundation; 
>>>>>> **http://www.apache.org/*<http://www.apache.org/>
>>>>>> *
>>>>>> email: **[email protected]* <[email protected]>* cell: +94 77 3320919
>>>>>> blog: **http://blog.afkham.org* <http://blog.afkham.org>*
>>>>>> twitter: 
>>>>>> **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
>>>>>> *
>>>>>> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>>>>>> *
>>>>>> *
>>>>>> *Lean . Enterprise . Middleware*
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> *Afkham Azeez*
>>>>> Senior Software Architect & Senior Manager; WSO2, Inc.;
>>>>> http://wso2.com,
>>>>> *
>>>>> *
>>>>> *Member; Apache Software Foundation; 
>>>>> **http://www.apache.org/*<http://www.apache.org/>
>>>>> *
>>>>> email: **[email protected]* <[email protected]>* cell: +94 77 3320919
>>>>> blog: **http://blog.afkham.org* <http://blog.afkham.org>*
>>>>> twitter: 
>>>>> **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
>>>>> *
>>>>> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>>>>> *
>>>>> *
>>>>> *Lean . Enterprise . Middleware*
>>>>>
>>>>>
>>>>
>>>
>>> _______________________________________________
>>> Carbon-dev mailing list
>>> [email protected]
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>
_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to