I download the Opentaps 0.9.0 with no code modification and imported into Eclipse 3.1. I got 9 build errors out of the box. Most of them are related to subant. e.g. the first error is - Element type "subant" must be declared.
<target name="tests">
<subant target="tests"> <filelist refid="test-builds"/> </subant> </target> Eclipse 3.1 comes with Ant 1.6.5, it should support "subant". Anyone knows why this is happening?
_______________________________________________ Dev mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/dev |
Administrator
|
Perhaps have a look at this : http://issues.apache.org/bugzilla/show_bug.cgi?id=30569
Jacques
_______________________________________________ Dev mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/dev |
Jacques
I can build using - Ant run-install - scripts under root folder. And I am able to run Opentaps 0.9.0. So I think the nested build.xml files are all fine in the project. I just can not build it within Eclipse 3.1. I got the following error while call "Run Ant" on C:\opentaps-
0.9.0\build.xml within Eclipse.
***************E R R O R M S G***********************
BUILD FAILED Total time: 34 seconds Line 151 is the first line of the following code: <subant inheritall="false"> ******************************************************* Does anyone has Opentaps dev environment setup reference?
CB
On 6/14/06, Jacques Le Roux <[hidden email]> wrote:
_______________________________________________ Dev mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/dev |
I don't know about eclipse but this error seems to happen when people have used the JRE instead of the JDK.
Si On Jun 14, 2006, at 7:21 AM, Chris Bai wrote:
_______________________________________________ Dev mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/dev |
Administrator
|
In reply to this post by Chuck22
Are you using Java 1.4 (SDK not JRE) ? 1.5 is
possible but very tedious and not guaranted : http://sourceforge.net/forum/forum.php?thread_id=1465209&forum_id=487771
You may use 1.4 having also 1.5 on your machine :
use JAVA_HOME (see startofbiz.bat or .sh)
Jacques
_______________________________________________ Dev mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/dev |
In reply to this post by Si Chen-2
Hi Si
I have replaced JRE to JDK, this is how I make the "Ant run-install" work. Now, I have j2skd1.4.2_12 installed. But when I install Eclipse, I have only JRE. Then later I removed JRE. Is this the problem? Did Eclipse failed to pick up the newly installed JDK?
Si, can you tell me which IDE you are using to develop Opentaps?
Thanks,
CB
On 6/14/06, Si Chen <[hidden email]> wrote:
_______________________________________________ Dev mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/dev |
Somewhere in Eclipse preferences you can set the Java version.
I've used ecliipse a lot, and we event wrote this for it: http://www.opensourcestrategies.com/ofbiz/ofbiz_eclipse.php Strangely though, these days I'm using mostly vi. Si On Jun 14, 2006, at 9:32 AM, Chris Bai wrote:
_______________________________________________ Dev mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/dev |
Likewise :)
I just need a ssh connection then and no specialised client software. Lots of libraries available for it as well. It's a bit slow to develop with though and I've been trying to move to Eclipse when I can. Ian On Wed, June 14, 2006 17:38, Si Chen wrote: > Somewhere in Eclipse preferences you can set the Java version. > > > I've used ecliipse a lot, and we event wrote this for it: http:// > www.opensourcestrategies.com/ofbiz/ofbiz_eclipse.php > > Strangely though, these days I'm using mostly vi. > > > Si > > > On Jun 14, 2006, at 9:32 AM, Chris Bai wrote: > > >> Hi Si >> >> >> I have replaced JRE to JDK, this is how I make the "Ant run- >> install" work. Now, I have j2skd1.4.2_12 installed. But when I install Eclipse, I have only JRE. >> Then later I removed JRE. Is this >> the problem? Did Eclipse failed to pick up the newly installed JDK? >> >> Si, can you tell me which IDE you are using to develop Opentaps? >> >> >> Thanks, >> >> >> CB >> >> >> >> On 6/14/06, Si Chen <[hidden email]> wrote: >> I don't know about eclipse but this error seems to happen when >> people have used the JRE instead of the JDK. >> >> >> Si >> >> >> On Jun 14, 2006, at 7:21 AM, Chris Bai wrote: >> >> >>> Jacques >>> >>> >>> I can build using - Ant run-install - scripts under root folder. >>> And I am able to run Opentaps 0.9.0. So I think the nested >>> build.xml files are all fine in the project. I just can not build it within Eclipse 3.1. I got >>> the following error while call "Run Ant" on C:\opentaps- 0.9.0\build.xml within Eclipse. >>> >>> >>> ***************E R R O R M S G*********************** >>> BUILD FAILED >>> C:\opentaps-0.9.0\build.xml:151: The following error occurred >>> while executing this line: C:\opentaps-0.9.0\framework\webtools\build.xml:145: Execute >>> failed: java.io.IOException: CreateProcess: jarsigner.exe - >>> keystore C:\opentaps-0.9.0\base\config\ofbizssl.jks -storepass changeit -storetype jks -keypass >>> changeit -sectionsonly C: \opentaps-0.9.0\framework\webtools\webapp\webtools\applet\ofbiz- >>> webtools-print.jar ssl error=2 >>> >>> Total time: 34 seconds >>> >>> >>> Line 151 is the first line of the following code: >>> >>> >>> <subant inheritall="false"> >>> <filelist refid="framework-builds"/> >>> <filelist refid="application-builds"/> >>> <fileset dir="${basedir}/hot-deploy" casesensitive="no"> >>> <include name="**/build.xml"/> >>> </fileset> >>> </subant> >>> >>> >>> ******************************************************* >>> >>> >>> Does anyone has Opentaps dev environment setup reference? >>> >>> >>> CB >>> >>> >>> >>> On 6/14/06, Jacques Le Roux <[hidden email] > wrote: >>> Perhaps have a look at this : http://issues.apache.org/bugzilla/ >>> show_bug.cgi?id=30569 >>> >>> Jacques >>> ----- Original Message ----- >>> From: Chris Bai >>> To: [hidden email] >>> Sent: Tuesday, June 13, 2006 9:49 PM >>> Subject: [OFBiz] Dev - Opentaps build error - Element type >>> "subant" must bedeclared >>> >>> >>> >>> I download the Opentaps 0.9.0 with no code modification and >>> imported into Eclipse 3.1. I got 9 build errors out of the box. Most of them are related to >>> subant. e.g. the first error is - Element type "subant" must be declared. >>> >>> >>> <target name="tests"> >>> <subant target="tests"> >>> <filelist refid="test-builds"/> >>> </subant> >>> </target> >>> >>> >>> Eclipse 3.1 comes with Ant 1.6.5, it should support "subant". >>> Anyone knows why this is happening? >>> >>> >>> >>> >>> >>> >>> _______________________________________________ >>> Dev mailing list >>> [hidden email] >>> http://lists.ofbiz.org/mailman/listinfo/dev >>> >>> >>> >>> >>> >>> >>> >>> _______________________________________________ >>> Dev mailing list >>> [hidden email] >>> http://lists.ofbiz.org/mailman/listinfo/dev >>> >>> >>> >>> >>> >>> _______________________________________________ >>> Dev mailing list >>> [hidden email] >>> http://lists.ofbiz.org/mailman/listinfo/dev >>> >> >> >> >> >> _______________________________________________ >> Dev mailing list >> [hidden email] >> http://lists.ofbiz.org/mailman/listinfo/dev >> >> >> >> >> _______________________________________________ >> Dev mailing list >> [hidden email] >> http://lists.ofbiz.org/mailman/listinfo/dev >> > > > _______________________________________________ > Dev mailing list > [hidden email] > http://lists.ofbiz.org/mailman/listinfo/dev -- Ian Gilbert www.ethicalshopper.net Fair trade: the alternative choice for your everyday shopping 0845 456 2429 WHAT DO YOU DRINK AT WORK? We can supply your organisation with high quality fair trade tea and coffee. Discounts are available for regular orders. Contact us for more details. _______________________________________________ Dev mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/dev |
Administrator
|
NetBeans 5.0 is worth a glance also... See
http://ofbizwiki.go-integral.com/Wiki.jsp?page=OFBizInNetBeans5.0 Jacques ----- Original Message ----- From: "Ian Gilbert" <[hidden email]> To: "OFBiz Project Development Discussion" <[hidden email]> Sent: Wednesday, June 14, 2006 8:14 PM Subject: Re: [OFBiz] Dev - Opentaps build error - Element type 'subant' must bedeclared > Likewise :) > > I just need a ssh connection then and no specialised client software. Lots of libraries available > for it as well. > > It's a bit slow to develop with though and I've been trying to move to Eclipse when I can. > > Ian > > > On Wed, June 14, 2006 17:38, Si Chen wrote: > > Somewhere in Eclipse preferences you can set the Java version. > > > > > > I've used ecliipse a lot, and we event wrote this for it: http:// > > www.opensourcestrategies.com/ofbiz/ofbiz_eclipse.php > > > > Strangely though, these days I'm using mostly vi. > > > > > > Si > > > > > > On Jun 14, 2006, at 9:32 AM, Chris Bai wrote: > > > > > >> Hi Si > >> > >> > >> I have replaced JRE to JDK, this is how I make the "Ant run- > >> install" work. Now, I have j2skd1.4.2_12 installed. But when I install > >> Then later I removed JRE. Is this > >> the problem? Did Eclipse failed to pick up the newly installed JDK? > >> > >> Si, can you tell me which IDE you are using to develop Opentaps? > >> > >> > >> Thanks, > >> > >> > >> CB > >> > >> > >> > >> On 6/14/06, Si Chen <[hidden email]> wrote: > >> I don't know about eclipse but this error seems to happen when > >> people have used the JRE instead of the JDK. > >> > >> > >> Si > >> > >> > >> On Jun 14, 2006, at 7:21 AM, Chris Bai wrote: > >> > >> > >>> Jacques > >>> > >>> > >>> I can build using - Ant run-install - scripts under root folder. > >>> And I am able to run Opentaps 0.9.0. So I think the nested > >>> build.xml files are all fine in the project. I just can not build it > >>> the following error while call "Run Ant" on C:\opentaps- 0.9.0\build.xml within Eclipse. > >>> > >>> > >>> ***************E R R O R M S G*********************** > >>> BUILD FAILED > >>> C:\opentaps-0.9.0\build.xml:151: The following error occurred > >>> while executing this line: C:\opentaps-0.9.0\framework\webtools\build.xml:145: Execute > >>> failed: java.io.IOException: CreateProcess: jarsigner.exe - > >>> keystore C:\opentaps-0.9.0\base\config\ofbizssl.jks -storepass changeit -storetype jks -keypass > >>> changeit -sectionsonly C: \opentaps-0.9.0\framework\webtools\webapp\webtools\applet\ofbiz- > >>> webtools-print.jar ssl error=2 > >>> > >>> Total time: 34 seconds > >>> > >>> > >>> Line 151 is the first line of the following code: > >>> > >>> > >>> <subant inheritall="false"> > >>> <filelist refid="framework-builds"/> > >>> <filelist refid="application-builds"/> > >>> <fileset dir="${basedir}/hot-deploy" casesensitive="no"> > >>> <include name="**/build.xml"/> > >>> </fileset> > >>> </subant> > >>> > >>> > >>> ******************************************************* > >>> > >>> > >>> Does anyone has Opentaps dev environment setup reference? > >>> > >>> > >>> CB > >>> > >>> > >>> > >>> On 6/14/06, Jacques Le Roux <[hidden email] > wrote: > >>> Perhaps have a look at this : http://issues.apache.org/bugzilla/ > >>> show_bug.cgi?id=30569 > >>> > >>> Jacques > >>> ----- Original Message ----- > >>> From: Chris Bai > >>> To: [hidden email] > >>> Sent: Tuesday, June 13, 2006 9:49 PM > >>> Subject: [OFBiz] Dev - Opentaps build error - Element type > >>> "subant" must bedeclared > >>> > >>> > >>> > >>> I download the Opentaps 0.9.0 with no code modification and > >>> imported into Eclipse 3.1. I got 9 build errors out of the box. Most of > >>> subant. e.g. the first error is - Element type "subant" must be declared. > >>> > >>> > >>> <target name="tests"> > >>> <subant target="tests"> > >>> <filelist refid="test-builds"/> > >>> </subant> > >>> </target> > >>> > >>> > >>> Eclipse 3.1 comes with Ant 1.6.5, it should support "subant". > >>> Anyone knows why this is happening? > >>> > >>> > >>> > >>> > >>> > >>> > >>> _______________________________________________ > >>> Dev mailing list > >>> [hidden email] > >>> http://lists.ofbiz.org/mailman/listinfo/dev > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> _______________________________________________ > >>> Dev mailing list > >>> [hidden email] > >>> http://lists.ofbiz.org/mailman/listinfo/dev > >>> > >>> > >>> > >>> > >>> > >>> _______________________________________________ > >>> Dev mailing list > >>> [hidden email] > >>> http://lists.ofbiz.org/mailman/listinfo/dev > >>> > >> > >> > >> > >> > >> _______________________________________________ > >> Dev mailing list > >> [hidden email] > >> http://lists.ofbiz.org/mailman/listinfo/dev > >> > >> > >> > >> > >> _______________________________________________ > >> Dev mailing list > >> [hidden email] > >> http://lists.ofbiz.org/mailman/listinfo/dev > >> > > > > > > _______________________________________________ > > Dev mailing list > > [hidden email] > > http://lists.ofbiz.org/mailman/listinfo/dev > > > -- > Ian Gilbert > www.ethicalshopper.net > Fair trade: the alternative choice for your everyday shopping > 0845 456 2429 > > WHAT DO YOU DRINK AT WORK? > We can supply your organisation with high quality fair trade tea and > coffee. Discounts are available for regular orders. Contact us for more > details. > > > _______________________________________________ > Dev mailing list > [hidden email] > http://lists.ofbiz.org/mailman/listinfo/dev > _______________________________________________ Dev mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/dev |
In reply to this post by Ian Gilbert-2
Hi Si
I followed your Eclipse setup instruction. Excellent document. Thank you.
I cleaned up my Eclipse a bit with all java setting set to the right version of Java. The build error in my my last email goes agway (as it is caused by the linking of already removed JRE in the Opentaps). But the "subant" error appear again on a clean & build. It complains that Element type "subant" must be declared on line 116:
<target name="tests">
<subant target="tests"> <filelist refid="test-builds"/> </subant> </target> This sounds like an Ant plugin issue, not related to Java version. But strangely, outside Ant build works fine. I want to debug Opentaps with Eclipse but the 9 build errors found blocked my way. So frustrated!! Please help.
--
CB
On 6/14/06, Ian Gilbert <[hidden email]> wrote:
Likewise :) _______________________________________________ Dev mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/dev |
Free forum by Nabble | Edit this page |