OFBIZ installation with eclipse + XP

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

OFBIZ installation with eclipse + XP

zafaralikhan14
I am using the ofbiz first time and did the following steps from different installation guides.

Step-1:
Importing OFBiz from the filesystem into Eclipse
-------------------------------------------------
File==>Import==>General==>Existing Projects into Workspace==>
<Next>
==>Select root directory==><browse>==>ofbiz folder


Step-2:
=======
build.xml==>Right click==>Run As==>Ant Build


Step-3:
Using SVN from within Eclipse
------------------------------
(a) Eclipse==>Window==>Open Perspective==>Other==>SVN Repository Exploring

(b) <SVN Repository Tab>==>Right Click==>Url: http://svn.apache.org/repos/asf/ofbiz/trunk ==>finish

(c) http://svn.apache.org/repos/asf/ofbiz/trunk ==> Right click ==> Checkout

(d) Check out as a project in the workspace ==> Project Name: ofbiz ==> Next ==> Usedefault workspace
location <checked> ==> Finish(e)
 The resources 'ofbiz' already exists in the workspace and will be deleted. Proceed? ==>

Cancel

Please Note: followed Link from step-1 to step-3
************************************************
http://docs.ofbiz.org/display/OFBIZ/Eclipse+Tips


Step-4:
Connect to OFBiz with Eclipse as a Debugger and Run Configurations
-------------------------------------------------------------------
(a) ofbiz ==> Right Click ==> Debug As ==> Debug Configurations

(b) Remote Java Application  ==> Right Click ==> New ==> ofbiz

(c) Project: ofbiz ==> Connection Type: Standard (Socket Attach) ==> Host: localhost ==> Socket:8091 ==> Finish

(d) Java Application option in left pan ==> Right Click ==> New ==> Project: ofbiz ==> main class: org.ofbiz.base.start.Start

==> Stop in main <checked>

(e) Classpath <tab> ==> remove ==> ofbiz (default classpath) ==> Click User Entries ==> Add Jar ==> ofbiz ==> ofbiz.jar ==>

Finish

Please Note: followed Link for step-4
************************************************
http://docs.ofbiz.org/display/OFBIZ/Running+and+Debugging+OFBiz+in+Eclipse#RunningandDebuggingOFBizinEclipse-Debugging(orrunning)OFBizinEclipse

=================================================
I tried to run and its throwing the following error on the console:
=================================================
console_output.txt


Please advise and thanks for viewing/replying my thread in advance

Reply | Threaded
Open this post in threaded view
|

Re: OFBIZ installation with eclipse + XP

Amit Sharma-10
Hi Zafar,

It seems from your error you should increase your heap size.
Try this |java -Xmx256M -jar ofbiz.jar |to run OFBiz.

HTH

Regards,
--
Amit Sharma

zafaralikhan14 wrote:

> I am using the ofbiz first time and did the following steps from different
> installation guides.
>
> Step-1:
> Importing OFBiz from the filesystem into Eclipse
> -------------------------------------------------
> File==>Import==>General==>Existing Projects into Workspace==>
> <Next>
> ==>Select root directory==><browse>==>ofbiz folder
>
>
> Step-2:
> =======
> build.xml==>Right click==>Run As==>Ant Build
>
>
> Step-3:
> Using SVN from within Eclipse
> ------------------------------
> (a) Eclipse==>Window==>Open Perspective==>Other==>SVN Repository Exploring
>
> (b) <SVN Repository Tab>==>Right Click==>Url:
> http://svn.apache.org/repos/asf/ofbiz/trunk ==>finish
>
> (c) http://svn.apache.org/repos/asf/ofbiz/trunk ==> Right click ==> Checkout
>
> (d) Check out as a project in the workspace ==> Project Name: ofbiz ==> Next
> ==> Usedefault workspace
> location <checked> ==> Finish(e)
>  The resources 'ofbiz' already exists in the workspace and will be deleted.
> Proceed? ==>
>
> Cancel
>
> Please Note: followed Link from step-1 to step-3
> ************************************************
> http://docs.ofbiz.org/display/OFBIZ/Eclipse+Tips
>
>
> Step-4:
> Connect to OFBiz with Eclipse as a Debugger and Run Configurations
> -------------------------------------------------------------------
> (a) ofbiz ==> Right Click ==> Debug As ==> Debug Configurations
>
> (b) Remote Java Application  ==> Right Click ==> New ==> ofbiz
>
> (c) Project: ofbiz ==> Connection Type: Standard (Socket Attach) ==> Host:
> localhost ==> Socket:8091 ==> Finish
>
> (d) Java Application option in left pan ==> Right Click ==> New ==> Project:
> ofbiz ==> main class: org.ofbiz.base.start.Start
>
> ==> Stop in main <checked>
>
> (e) Classpath <tab> ==> remove ==> ofbiz (default classpath) ==> Click User
> Entries ==> Add Jar ==> ofbiz ==> ofbiz.jar ==>
>
> Finish
>
> Please Note: followed Link for step-4
> ************************************************
> http://docs.ofbiz.org/display/OFBIZ/Running+and+Debugging+OFBiz+in+Eclipse#RunningandDebuggingOFBizinEclipse-Debugging(orrunning)OFBizinEclipse
>
> =================================================
> I tried to run and its throwing the following error on the console:
> =================================================
> http://n4.nabble.com/file/n585845/console_output.txt console_output.txt
>
>
> Please advise and thanks for viewing/replying my thread in advance
>
>
>  

Reply | Threaded
Open this post in threaded view
|

Re: OFBIZ installation with eclipse + XP

zafaralikhan14

Amit Sharma-10 wrote
It seems from your error you should increase your heap size.
Try this |java -Xmx256M -jar ofbiz.jar |to run OFBiz.
Thanks a lot for your prompt reply. Now its throwing errors. Please check the following:
console_output_1.txt
debug.txt

Thanks again for helping
Reply | Threaded
Open this post in threaded view
|

Re: OFBIZ installation with eclipse + XP

zafaralikhan14
I am totally new to this

I tried again to install everything again with eclipe but still unable to fix the problem

1) Build log is attached Build+log.txt
2) Debug log is attached debug+log.txt
3) Run log is attached Run+log.txt
4) I am not able to see any option of SVN repository (Window/Open Perspective/SVN Repository Exploring)

eclipse version is 3.4.1
svn-win32-1.5.6

Please help. Thanks in anticipation




Reply | Threaded
Open this post in threaded view
|

Re: OFBIZ installation with eclipse + XP

Jacques Le Roux
Administrator
Have you used "ant run-install" before (or the same inside Eclipse) ?

Jacques

From: "zafaralikhan14" <[hidden email]>

>
> I am totally new to this
>
> I tried again to install everything again with eclipe but still unable to
> fix the problem
>
> 1) Build log is attached  http://n4.nabble.com/file/n621741/Build%2Blog.txt
> Build+log.txt
> 2) Debug log is attached  http://n4.nabble.com/file/n621741/debug%2Blog.txt
> debug+log.txt
> 3) Run log is attached  http://n4.nabble.com/file/n621741/Run%2Blog.txt
> Run+log.txt
> 4) I am not able to see any option of SVN repository (Window/Open
> Perspective/SVN Repository Exploring)
>
> eclipse version is 3.4.1
> svn-win32-1.5.6
>
> Please help. Thanks in anticipation
>
>
>
>
>
> --
> View this message in context: http://n4.nabble.com/OFBIZ-installation-with-eclipse-XP-tp585845p621741.html
> Sent from the OFBiz Installation mailing list archive at Nabble.com.
>

Reply | Threaded
Open this post in threaded view
|

Re: OFBIZ installation with eclipse + XP

zafaralikhan14
Respected Jacques,

Thanks for your favorable reply.

Yes I used ==>" Run as==> 2Ant Build" option from eclipse.

Thanks again & best regards

On Sun, Nov 15, 2009 at 6:26 AM, Jacques Le Roux [via OFBiz] <[hidden email]> wrote:
Have you used "ant run-install" before (or the same inside Eclipse) ?

Jacques

From: "zafaralikhan14" <[hidden email]>

>
> I am totally new to this
>
> I tried again to install everything again with eclipe but still unable to
> fix the problem
>
> 1) Build log is attached  http://n4.nabble.com/file/n621741/Build%2Blog.txt

> Build+log.txt
> 2) Debug log is attached  http://n4.nabble.com/file/n621741/debug%2Blog.txt
> debug+log.txt
> 3) Run log is attached  http://n4.nabble.com/file/n621741/Run%2Blog.txt

> Run+log.txt
> 4) I am not able to see any option of SVN repository (Window/Open
> Perspective/SVN Repository Exploring)
>
> eclipse version is 3.4.1
> svn-win32-1.5.6
>
> Please help. Thanks in anticipation
>
>
>
>
>
> --
> View this message in context: http://n4.nabble.com/OFBIZ-installation-with-eclipse-XP-tp585845p621741.html
> Sent from the OFBiz Installation mailing list archive at Nabble.com.
>




View message @ http://n4.nabble.com/OFBIZ-installation-with-eclipse-XP-tp585845p621766.html
To unsubscribe from Re: OFBIZ installation with eclipse + XP, click here.


Reply | Threaded
Open this post in threaded view
|

Re: OFBIZ installation with eclipse + XP

Jacques Le Roux
Administrator
This is not enough you must run "run-install"
1) Open the "Externals tools configuration" created automatically by Eclipse while you ran "Run as==> 2Ant Build" option from
eclipse."
2) And look for the "run-install" target, it's the one you must run before being able to see the demo works

Jacques

From: "zafaralikhan14" <[hidden email]>

>
> Respected Jacques,
>
> Thanks for your favorable reply.
>
> Yes I used ==>" Run as==> 2Ant Build" option from eclipse.
>
> Thanks again & best regards
>
> On Sun, Nov 15, 2009 at 6:26 AM, Jacques Le Roux [via OFBiz] <
> [hidden email]<ml-node%[hidden email]>
>> wrote:
>
>> Have you used "ant run-install" before (or the same inside Eclipse) ?
>>
>> Jacques
>>
>> From: "zafaralikhan14" <[hidden email]<http://n4.nabble.com/user/SendEmail.jtp?type=node&node=621766&i=0>>
>>
>>
>> >
>> > I am totally new to this
>> >
>> > I tried again to install everything again with eclipe but still unable to
>>
>> > fix the problem
>> >
>> > 1) Build log is attached
>> http://n4.nabble.com/file/n621741/Build%2Blog.txt
>> > Build+log.txt
>> > 2) Debug log is attached
>> http://n4.nabble.com/file/n621741/debug%2Blog.txt
>> > debug+log.txt
>> > 3) Run log is attached  http://n4.nabble.com/file/n621741/Run%2Blog.txt
>>
>> > Run+log.txt
>> > 4) I am not able to see any option of SVN repository (Window/Open
>> > Perspective/SVN Repository Exploring)
>> >
>> > eclipse version is 3.4.1
>> > svn-win32-1.5.6
>> >
>> > Please help. Thanks in anticipation
>> >
>> >
>> >
>> >
>> >
>> > --
>> > View this message in context:
>> http://n4.nabble.com/OFBIZ-installation-with-eclipse-XP-tp585845p621741.html
>> > Sent from the OFBiz Installation mailing list archive at Nabble.com.
>> >
>>
>>
>>
>> ------------------------------
>>  View message @
>> http://n4.nabble.com/OFBIZ-installation-with-eclipse-XP-tp585845p621766.html
>> To unsubscribe from Re: OFBIZ installation with eclipse + XP, click here< (link removed) ==>.
>>
>>
>>
>
> --
> View this message in context: http://n4.nabble.com/OFBIZ-installation-with-eclipse-XP-tp585845p622033.html
> Sent from the OFBiz Installation mailing list archive at Nabble.com.
>


Reply | Threaded
Open this post in threaded view
|

Invitation to connect on LinkedIn

Raakh
In reply to this post by Jacques Le Roux
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: OFBIZ installation with eclipse + XP

joelfradkin@gmail.com
In reply to this post by zafaralikhan14
Did that work?
I just did the build outside of eclipse (I always get errors in eclipse).
I use debug in eclipse and can set breakpoints in the java.
I do the external debugger method wher you use the startofbiz.sh I made a new version where I enabled the debug statements in the script. I turned on the wait. then I start eclipse remote debug and it starts ofbiz with debugging. If you dont need that I would not use eclipse.
Joel Fradkin