Professional Documents
Culture Documents
Home Fugo Consulting Posts Comments Openbravo PeopleSoft Pages General Oracle ERP Education Series Postgres Displaying Images in Openbravo Email Validation using Callouts in Openbravo
Now we have installed eclipse successfully. First hurdle crossed. Next to add the above listed elements(plugins), go to Help -> Install New Software. Here click the Add Button and provide the following link in the Location Field. http://subclipse.tigris.org/update_1.4.x. In the Name field Provide subclipse or anything for your reference. Then give Next, next and choose finish to install it. Once this is complete eclipse will be restarted. Next lets install Mercurial. For this Use the same Install New Software under Help and use the Add Button to add the Following URL in the Location Field, http://subclipse.tigris.org/update_1.4.x . Once you provide that, you will get a window similar to that.
fugoconsulting.wordpress.com/2011/01/05/openbravo-environment-setup-in-eclipse/ 1/10
19/01/13
If you are installing in ubuntu you can uncheck the windows binaries. Then click next and give finish. The same is to be followed for installing Openarchitectureware, using the following URL, http://www.openarchitectureware.org/updatesite/milestone/site.xml. Once Eclipse is installed, our next step is to import Openbravo. 2. Openbravo import and setup Go to File -> New -> Other and in the window that pops out choose Mercurial and the sub option as Clone from Existing Repository. Provide the URL from which you want to clone. If there is no repository, use File -> Import and choose the source folder of Openbravo. Then right click the Project folder and choose Properties. In the source tab add the following folders.
1 .s r cf o l d e r so fy o u rm o d u l e sa n do p e n b r a v os r cf o l d e r 2 .s r c t e s tf o l d e r so fy o u rm o d u l e sa n do p e n b r a v os r c t e s tf o l d e r 3 .s r c g e nf o l d e r 4 .s r c c o r e > s r c 5 .s r c w a d > s r c 6 .s r c w a d > b u i l d > j a v a s q l c > s r c 7 .s r c t r l > s r c 8 .s r c t r l > b u i l d > j a v a s q l c > s r c
fugoconsulting.wordpress.com/2011/01/05/openbravo-environment-setup-in-eclipse/
2/10
19/01/13
Refresh the project. Next step is to compile this application. To add ant commands go to Run-> External Tools -> External Tools Configurations. Then double click, Ant Build and then you can find a screen as follows.
fugoconsulting.wordpress.com/2011/01/05/openbravo-environment-setup-in-eclipse/
3/10
19/01/13
So you can add new tasks using the small new button and add as many tasks as you want. You just have to give path as provided in Main Tab. And tick the appropriate task in the Targets Tab. Openbravo is configured..:) 3. Tomcat server and setup To add tomcat 6.-0 server, go to File -> New -> Other and choose tomcat 6.0 as the server and map the corresponding tomcat folder. And then add openbravo to it and give finish. The eclipse would now appear as follows.
Note Openbravo attached to tomcat server. Now you can right click the project and choose Run -> run on server to deploy Openbravo. Done. Openbravo will be up and running..:) Happy working..:)
Share this: Like this: Share
Like
Filed under Openbravo Tagged with Eclipse Configuration for Openbravo, Openbravo 3.0, Openbravo in Eclipse
About Shankar Balachandran Mad Lover of many things on the Earth, the first of which is headed by a girl..:)
19/01/13
Shankar Balachandran says: June 11, 2011 at 5:53 am Hi Cesar, Thanks for your Comment. I have updated the post. Revert back if there are any more doubts. Reply 2. Pingback: Database Development Perspective in Eclipse for Openbravo,Postgres Fugo Consulting
3.
khafa says: July 22, 2011 at 6:44 am Hi, This is my first time developing with Openbravo and I tried to follow your article but it looks like I am missing something. In the official documentation from the Openbravo team, they say that you run ant setup, then the setup graphical tool and ant install.source and only then can you import the projects in Eclipse and continue with the setup. In you article did you assume that all that is already done in the repository we are cloning with mercurialeclipse? I am asking this because I tried to clone a local repository (without running the above source settings) but then I do not have the build folder and try to install the source with ant from eclipse fails with a lot of errors. Could you tell me if everything needed is in this page or do we need to accomplish some steps before starting with your setup procedure? Thank you in advance Reply Shankar Balachandran says: July 22, 2011 at 7:06 am Hi, The document is presented with the assumption that, Openbravo is already setup in the machine and then subsequently imported into Eclipse. So after you clone, you can run ant setup and then setup the properties, compile and then follow these steps. get back if you have any more issues in this regards. Reply khafa says: July 22, 2011 at 8:32 am Hi Shankar, Cool. Thanks for the quick reply. I will try it once at home and let you know the outcome. Thanks again
4.
zohaib says: August 14, 2011 at 1:29 am Hi, I am not able to custom install openbravo 3 with following software. Do you have any video tutorial about installation like many on YOU TUBE. 1.win32 oracle database 11gR2 2.apache-ant-1.8.1 or apache-ant-1.7.1 3.jdk-6u26-windows-i586 Java 6 4.jre-6u26-windows-i586 5.Windows XP or Windows 7 6.Openbravo-3.0MP0 or Openbravo-3.0MP1 Thanks, Zohaib
fugoconsulting.wordpress.com/2011/01/05/openbravo-environment-setup-in-eclipse/
5/10
19/01/13
Reply Shankar Balachandran says: August 15, 2011 at 2:45 pm Hi Zohaib, Where are you getting stuck up while installing? May be that would help. I dont remember seeing any installation video in you tube for the same config. Reply 5. zohaib says: August 15, 2011 at 4:24 pm Hi Shankar, I want to install openbravo 3. I am not able to do ant diagnostic successfully (getting errors). I have laptop with 3GB RAM and Windows 7 Following is the environment details 1.Oracle Database 11gR2 Win32 2.apache-ant-1.7.1 or apache-ant-1.7.1 3.jdk-6u26-windows-i586 Java 6 update 26 4.jre-6u26-windows-i586 Java 6 update 26 5.Windows XP or Windows 7 6.Openbravo-3.0MP0 or Openbravo-3.0MP1 => not getting install 7.OpenbravoERP-2.50MP22 => working 8. Apache Tomcat 6 (apache-tomcat-6.0.32 or apache-tomcat-6.0.20) Enviromental Variables CATALINA_BASE E:\Program Files\Apache Software Foundation\Tomcat 6.0 CATALINA_HOME E\Program Files\Apache Software Foundation\Tomcat 6.0 CATALINA_TMDIR E:\Program Files\Apache Software Foundation\Tomcat 6.0\temp ANT_HOME E:\ant Path JAVA_HOME E:\Program Files\Java\jdk1.6.0_26\bin E:\Program Files\Java\jre6\bin ANT_HOME E:\ant PATH E:\ant\bin; ANT_OPTS -Xmx1024M -XX:MaxPermSize=128M JAVA_OPTS -Xmx1024M -XX:MaxPermSize=128M -XX:MaxPermSize=128M CATALINA_OPTS
fugoconsulting.wordpress.com/2011/01/05/openbravo-environment-setup-in-eclipse/ 6/10
19/01/13
-Xmx1024M -XX:MaxPermSize=128M OB forum url http://forge.openbravo.com/projects/openbravoerp/forum/question-about-openbravo-3-installation-t7026048.htmlsid=35481b2079bf2f3b7db270cd3814dd56 ERROR message as follows E:\eworkspace\openbravo>ant diagnostic Buildfile: E:\eworkspace\openbravo\build.xml diagnostic: clean: [mkdir] Created dir: E:\eworkspace\openbravo\src-util\diagnostic\WebContent\ WEB-INF\lib [mkdir] Created dir: E:\eworkspace\openbravo\src-util\diagnostic\build\class es [copy] Copying 1 file to E:\eworkspace\openbravo\src-util\diagnostic\config [copy] Copying 3 files to E:\eworkspace\openbravo\src-util\diagnostic\WebCo ntent\WEB-INF build: [copy] Copying 63 files to E:\eworkspace\openbravo\src-util\diagnostic\WebC ontent\WEB-INF\lib [javac] E:\eworkspace\openbravo\src-util\diagnostic\build-create.xml:34: war ning: includeantruntime was not set, defaulting to build.sysclasspath=last; se t to false for repeatable builds [javac] Compiling 15 source files to E:\eworkspace\openbravo\src-util\diagno stic\build\classes [javac] E:\eworkspace\openbravo\src-util\diagnostic\src\org\openbravo\check\ Check.java:26: package javax.servlet does not exist [javac] import javax.servlet.ServletException; [javac] ^ [javac] E:\eworkspace\openbravo\src-util\diagnostic\src\org\openbravo\check\ Check.java:27: package javax.servlet.http does not exist [javac] import javax.servlet.http.HttpServlet; [javac] ^ [javac] E:\eworkspace\openbravo\src-util\diagnostic\src\org\openbravo\check\ Check.java:28: package javax.servlet.http does not exist [javac] import javax.servlet.http.HttpServletRequest; [javac] ^ [javac] E:\eworkspace\openbravo\src-util\diagnostic\src\org\openbravo\check\ Check.java:29: package javax.servlet.http does not exist [javac] import javax.servlet.http.HttpServletResponse; [javac] ^ [javac] E:\eworkspace\openbravo\src-util\diagnostic\src\org\openbravo\check\ Check.java:34: cannot find symbol [javac] symbol: class HttpServlet [javac] public class Check extends HttpServlet { [javac] ^ [javac] E:\eworkspace\openbravo\src-util\diagnostic\src\org\openbravo\check\ Check.java:38: cannot find symbol [javac] symbol : class HttpServletRequest [javac] location: class org.openbravo.check.Check [javac] protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, [javac] ^ [javac] E:\eworkspace\openbravo\src-util\diagnostic\src\org\openbravo\check\ Check.java:38: cannot find symbol [javac] symbol : class HttpServletResponse [javac] location: class org.openbravo.check.Check [javac] protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, [javac] ^ [javac] E:\eworkspace\openbravo\src-util\diagnostic\src\org\openbravo\check\
fugoconsulting.wordpress.com/2011/01/05/openbravo-environment-setup-in-eclipse/ 7/10
19/01/13
Check.java:38: cannot find symbol [javac] symbol : class ServletException [javac] location: class org.openbravo.check.Check [javac] protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, [javac] ^ [javac] E:\eworkspace\openbravo\src-util\diagnostic\src\org\openbravo\check\ Check.java:77: cannot find symbol [javac] symbol : class HttpServletRequest [javac] location: class org.openbravo.check.Check [javac] protected void doGet(HttpServletRequest req, HttpServletResponse r esp) throws ServletException, [javac] ^ [javac] E:\eworkspace\openbravo\src-util\diagnostic\src\org\openbravo\check\ Check.java:77: cannot find symbol [javac] symbol : class HttpServletResponse [javac] location: class org.openbravo.check.Check [javac] protected void doGet(HttpServletRequest req, HttpServletResponse r esp) throws ServletException, [javac] ^ [javac] E:\eworkspace\openbravo\src-util\diagnostic\src\org\openbravo\check\ Check.java:77: cannot find symbol [javac] symbol : class ServletException [javac] location: class org.openbravo.check.Check [javac] protected void doGet(HttpServletRequest req, HttpServletResponse r esp) throws ServletException, [javac] ^ [javac] E:\eworkspace\openbravo\src-util\diagnostic\src\org\openbravo\check\ Check.java:37: method does not override or implement a method from a supertype [javac] @Override [javac] ^ [javac] E:\eworkspace\openbravo\src-util\diagnostic\src\org\openbravo\check\ Check.java:76: method does not override or implement a method from a supertype [javac] @Override [javac] ^ [javac] 13 errors BUILD FAILED E:\eworkspace\openbravo\build.xml:946: The following error occurred while execut ing this line: E:\eworkspace\openbravo\src-util\diagnostic\build-create.xml:34: Compile failed; see the compiler error output for details. Total time: 3 seconds E:\eworkspace\openbravo>\ Reply 6. zohaib82 says: August 22, 2011 at 10:04 am Anyone able to install ob 3 on windows please take video & share with community I am finding it difficult to install thanks j Reply 7. michael says: October 24, 2011 at 7:35 am is it possible to set up the enviroment on a windows platform instead of using linux??
fugoconsulting.wordpress.com/2011/01/05/openbravo-environment-setup-in-eclipse/ 8/10
19/01/13
Reply Shankar Balachandran says: October 24, 2011 at 7:57 am Yes Michael. The Setup information remains the same. Reply 8. Bjrn Hj Jakobsen says: March 6, 2012 at 6:48 am First is there any none religious reason to use Eclipse instead of Netbeans. It would be very helpful if somebody made a setup description for Netbeans like this one: http://wiki.openbravo.com/wiki/ERP_2.50:Developers_Guide/Installation_and_setup_of_Netbeans_IDE#Importing_Openbravo_ERP_projects. In the 2.5 version you had to run the ant install.source after cloning the main project. Is that also the case for the latest version?. Reply Shankar Balachandran says: March 29, 2012 at 11:22 am Will put a blog on Netbeans Setup. Thanks for the suggestion Reply 9. gianluca says: March 19, 2012 at 9:22 pm Mercurial can be downloaded from http://hge.javaforge.com/mercurialeclipse-snapshots Reply 10. bhar47 says: May 25, 2012 at 8:53 am url for subclipse and mercurial is same.. In eclipse its showing duplicate location while installing new software. Reply Shankar Balachandran says: May 25, 2012 at 9:03 am Thanks for the information buddy. Will check it and update the post accordingly..:) Reply
Leave a Reply
Enter your comment here...
Archives May 2012 (3) April 2012 (1) March 2012 (1) December 2011 (4) October 2011 (2)
fugoconsulting.wordpress.com/2011/01/05/openbravo-environment-setup-in-eclipse/ 9/10
19/01/13
August 2011 (1) July 2011 (5) June 2011 (12) May 2011 (8) April 2011 (3) March 2011 (4) February 2011 (1) January 2011 (9) November 2010 (1) October 2010 (1) August 2010 (2) June 2010 (1) May 2010 (1) April 2010 (3) March 2010 (1) Blog at WordPress.com. Theme: Enterprise by StudioPress.
fugoconsulting.wordpress.com/2011/01/05/openbravo-environment-setup-in-eclipse/
10/10