Difference between revisions of "Eclipse Setup"

From ADempiere
Jump to: navigation, search
This Wiki is read-only for reference purposes to avoid broken links.
(See also: red1.org tutorial on eclipse setup)
 
Line 1: Line 1:
[[Tutorials|Return to Tutorials]]
+
#REDIRECT [[Create_your_ADempiere_development_environment]]
 
+
== Eclipse IDE Setup For Source Codes ==
+
 
+
'''Introduction'''
+
 
+
These are working '''.project''' and '''.classpath''' on current trunk
+
 
+
'''Project'''
+
 
+
Your .project should look like this.
+
 
+
This suppose your project is called ''trunk'' else you need to adapt the element ''name''
+
 
+
<pre>
+
<?xml version="1.0" encoding="UTF-8"?>
+
<projectDescription>
+
<name>trunk</name>
+
<comment></comment>
+
<projects>
+
</projects>
+
        <buildSpec>
+
                <buildCommand>
+
                        <name>org.eclipse.jdt.core.javabuilder</name>
+
                        <arguments>
+
                        </arguments>
+
                </buildCommand>
+
        </buildSpec>
+
        <natures>
+
                <nature>org.eclipse.jdt.core.javanature</nature>
+
        </natures>
+
</projectDescription>
+
</pre>
+
 
+
'''Classpath'''
+
 
+
Your .classpath should look like this
+
 
+
<pre>
+
<?xml version="1.0" encoding="UTF-8"?>
+
<classpath>
+
<classpathentry kind="src" path="base/src"/>
+
<classpathentry kind="src" path="sqlj/src"/>
+
<classpathentry kind="src" path="tools/Src"/>
+
<classpathentry kind="src" path="print/src"/>
+
<classpathentry kind="src" path="looks/src"/>
+
<classpathentry kind="src" path="install/src"/>
+
<classpathentry kind="src" path="dbPort/src"/>
+
<classpathentry kind="src" path="client/Src"/>
+
<classpathentry kind="src" path="extend/src"/>
+
<classpathentry kind="src" path="serverRoot/src/main/ejb"/>
+
<classpathentry kind="src" path="serverRoot/src/main/server"/>
+
<classpathentry kind="src" path="serverRoot/src/main/servlet"/>
+
<classpathentry kind="src" path="interfaces/src"/>
+
<classpathentry kind="src" path="serverApps/src/main/servlet"/>
+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+
<classpathentry exported="true" kind="lib" path="tools/lib/activation.jar"/>
+
<classpathentry exported="true" kind="lib" path="tools/lib/jstl.jar"/>
+
<classpathentry exported="true" kind="lib" path="tools/lib/log4j.jar"/>
+
<classpathentry exported="true" kind="lib" path="tools/lib/mail.jar"/>
+
<classpathentry exported="true" kind="lib" path="tools/lib/standard.jar"/>
+
<classpathentry exported="true" kind="lib" path="tools/lib/Verisign.jar"/>
+
<classpathentry exported="true" kind="lib" path="tools/lib/ocrs12.jar"/>
+
<classpathentry exported="true" kind="lib" path="tools/lib/junit.jar"/>
+
<classpathentry exported="true" kind="lib" path="jboss/lib/commons-httpclient.jar"/>
+
<classpathentry exported="true" kind="lib" path="jboss/lib/commons-logging.jar"/>
+
<classpathentry exported="true" kind="lib" path="tools/lib/ant-commons-net.jar"/>
+
<classpathentry exported="true" kind="lib" path="tools/lib/ant-launcher.jar"/>
+
<classpathentry exported="true" kind="lib" path="tools/lib/jconn3.jar"/>
+
<classpathentry exported="true" kind="lib" path="tools/lib/jtds-1.0.jar"/>
+
<classpathentry exported="true" kind="lib" path="tools/lib/jTDS3.jar"/>
+
<classpathentry exported="true" kind="lib" path="tools/lib/ant.jar"/>
+
<classpathentry exported="true" kind="lib" path="tools/lib/j2ee.jar"/>
+
<classpathentry exported="true" kind="lib" path="jboss/client/jnp-client.jar"/>
+
<classpathentry exported="true" kind="lib" path="jboss/client/jboss-common-client.jar"/>
+
<classpathentry exported="true" kind="lib" path="tools/lib/bsh-1.3.0.jar"/>
+
<classpathentry exported="true" kind="lib" path="tools/lib/jsp-api.jar"/>
+
<classpathentry exported="true" kind="lib" path="tools/lib/servlet-api.jar"/>
+
<classpathentry exported="true" kind="lib" path="jboss/client/jboss-j2ee.jar"/>
+
<classpathentry exported="true" kind="lib" path="tools/lib/ojdbc14.jar"/>
+
<classpathentry exported="true" kind="lib" path="tools/lib/jpayment.jar"/>
+
<classpathentry exported="true" kind="lib" path="jboss/client/jbossall-client.jar"/>
+
<classpathentry kind="lib" path="tools/lib/db2jcc_license_cu.jar"/>
+
<classpathentry kind="lib" path="tools/lib/db2jcc.jar"/>
+
<classpathentry kind="lib" path="tools/lib/jnlp.jar"/>
+
<classpathentry kind="lib" path="tools/lib/commons-collections-3.1.jar"/>
+
<classpathentry kind="lib" path="tools/lib/commons-logging.jar"/>
+
<classpathentry kind="lib" path="tools/lib/commons-net-1.4.0.jar"/>
+
<classpathentry kind="lib" path="tools/lib/jgraph.jar"/>
+
<classpathentry kind="lib" path="lib/freepdf.jar"/>
+
<classpathentry kind="lib" path="lib/postgresql.jar"/>
+
<classpathentry kind="output" path="bin"/>
+
</classpath>
+
 
+
PS.  I changed the classpath to include freepdf.jar and postgresql.jar, so it can build. 
+
It might be better to add them another way.
+
 
+
</pre>
+
 
+
'''Adempiere Start'''
+
 
+
On the menu click ''Run'', then ''Run ...''
+
 
+
Right click ''Java Application'' choose ''New''
+
 
+
''Main'' Tab
+
 
+
Project : choose the ''trunk'' project
+
 
+
Main class : Type ''org.compiere.Compiere''
+
 
+
''Arguments'' Tab
+
 
+
VM arguments : -Xmx512M -DPropertyFile=adempiere_debug.properties
+
 
+
Click ''Apply'' then ''Run''
+
 
+
Proceed in the same way to ''Debug'' Adempiere
+
 
+
==See also==
+
* [[Red1.org]] for reference to ''Callout.pdf'' tutorial on Eclipse setup
+
* [[Create your ADempiere development environment]]
+
* [[Hacker's guide]]
+
[[Category:Developer documentation]]
+

Latest revision as of 02:42, 2 January 2007