Eclipse and ofbiz

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

Eclipse and ofbiz

Amanda Stone
Hi
I am trying to configure my project in eclipse and i have 2 errors and 6,552
warnings. My project is kept outside the ofbiz folder. I went through the
instructions of "OFBiz debugging with Eclipse"  and tried to configure my
project in Eclipse.But somehow i am not able to fix the build path.

The error message is :
1) The type javolution.lang.Reusable cannot be resolved. It is indirectly
referenced from required .class files
2) The project was not built since its build path is incomplete. Cannot find
the class file for javolution.lang.Reusable. Fix the build path then try
building this project

Some of the warning messages are :
1) Type safety: Unchecked invocation unmodifiableSet(Set) of the generic
method unmodifiableSet(Set<? extends T>) of type
Collections ofbiz/framework/base/src/base/org/ofbiz/base/util/cache
CacheLineTable.java
2) Type safety: Unchecked invocation sort(List) of the generic method
sort(List<T>) of type
Collections ofbiz/applications/content/src/org/ofbiz/content
ContentManagementWorker.java
3) Severity and Description Path Resource Location Creation Time Id
Type safety: Unchecked invocation sort(List, Comparator) of the generic
method sort(List<T>, Comparator<? super T>) of type
Collections ofbiz/applications/order/src/org/ofbiz/order/shoppingcart/product
ProductDisplayWorker.java line 305 1166232758656 11879
4) Type safety: The return type Object[] for toArray(T[]) from the type
AbstractCollection needs unchecked conversion to conform to T[] from the
type Set<E> ofbiz/framework/base/src/base/org/ofbiz/base/util/collections
LifoSet.java line 28

Please help me how to resolve this . Thanks in advance.
-Amanda
Reply | Threaded
Open this post in threaded view
|

Re: Eclipse and ofbiz

Jacques Le Roux
Administrator
Amanda,

Sorry not enough time, quick answer 1st :

Have you tried "Running (or debugging) OFBiz in Eclipse"  from http://docs.ofbiz.org/display/OFBIZ/Debugging+OFBiz+in+Eclipse ?
AFAIK it's the latest tuto and easy to use.

What do you mean exactly by "My project is kept outside the ofbiz folder." ?

You can forget warnings in a 1st time...

Jacques

----- Original Message -----
From: "Amanda Stone" <[hidden email]>
To: <[hidden email]>
Sent: Sunday, December 17, 2006 8:35 AM
Subject: Eclipse and ofbiz


> Hi
> I am trying to configure my project in eclipse and i have 2 errors and 6,552
> warnings. My project is kept outside the ofbiz folder. I went through the
> instructions of "OFBiz debugging with Eclipse"  and tried to configure my
> project in Eclipse.But somehow i am not able to fix the build path.
>
> The error message is :
> 1) The type javolution.lang.Reusable cannot be resolved. It is indirectly
> referenced from required .class files
> 2) The project was not built since its build path is incomplete. Cannot find
> the class file for javolution.lang.Reusable. Fix the build path then try
> building this project
>
> Some of the warning messages are :
> 1) Type safety: Unchecked invocation unmodifiableSet(Set) of the generic
> method unmodifiableSet(Set<? extends T>) of type
> Collections ofbiz/framework/base/src/base/org/ofbiz/base/util/cache
> CacheLineTable.java
> 2) Type safety: Unchecked invocation sort(List) of the generic method
> sort(List<T>) of type
> Collections ofbiz/applications/content/src/org/ofbiz/content
> ContentManagementWorker.java
> 3) Severity and Description Path Resource Location Creation Time Id
> Type safety: Unchecked invocation sort(List, Comparator) of the generic
> method sort(List<T>, Comparator<? super T>) of type
> Collections ofbiz/applications/order/src/org/ofbiz/order/shoppingcart/product
> ProductDisplayWorker.java line 305 1166232758656 11879
> 4) Type safety: The return type Object[] for toArray(T[]) from the type
> AbstractCollection needs unchecked conversion to conform to T[] from the
> type Set<E> ofbiz/framework/base/src/base/org/ofbiz/base/util/collections
> LifoSet.java line 28
>
> Please help me how to resolve this . Thanks in advance.
> -Amanda
>
Reply | Threaded
Open this post in threaded view
|

Re: Eclipse and ofbiz

Amanda Stone
Jacques,
My project is not kept inside the applications folder of OFBiz.
I tried to Debug using the instructions but i get an error message saying it
failed to connect to VM.
Can somebody please help me or give me instructions on how to import a
project into Eclipse and configure it successfully. What are the jar files
or class paths i need to set.
I am very much in need of help.
I have also installed subclipse.
-Amanda


On 12/17/06, Jacques Le Roux <[hidden email]> wrote:

>
> Amanda,
>
> Sorry not enough time, quick answer 1st :
>
> Have you tried "Running (or debugging) OFBiz in Eclipse"  from
> http://docs.ofbiz.org/display/OFBIZ/Debugging+OFBiz+in+Eclipse ?
> AFAIK it's the latest tuto and easy to use.
>
> What do you mean exactly by "My project is kept outside the ofbiz folder."
> ?
>
> You can forget warnings in a 1st time...
>
> Jacques
>
> ----- Original Message -----
> From: "Amanda Stone" <[hidden email]>
> To: <[hidden email]>
> Sent: Sunday, December 17, 2006 8:35 AM
> Subject: Eclipse and ofbiz
>
>
> > Hi
> > I am trying to configure my project in eclipse and i have 2 errors and
> 6,552
> > warnings. My project is kept outside the ofbiz folder. I went through
> the
> > instructions of "OFBiz debugging with Eclipse"  and tried to configure
> my
> > project in Eclipse.But somehow i am not able to fix the build path.
> >
> > The error message is :
> > 1) The type javolution.lang.Reusable cannot be resolved. It is
> indirectly
> > referenced from required .class files
> > 2) The project was not built since its build path is incomplete. Cannot
> find
> > the class file for javolution.lang.Reusable. Fix the build path then try
> > building this project
> >
> > Some of the warning messages are :
> > 1) Type safety: Unchecked invocation unmodifiableSet(Set) of the generic
> > method unmodifiableSet(Set<? extends T>) of type
> > Collections ofbiz/framework/base/src/base/org/ofbiz/base/util/cache
> > CacheLineTable.java
> > 2) Type safety: Unchecked invocation sort(List) of the generic method
> > sort(List<T>) of type
> > Collections ofbiz/applications/content/src/org/ofbiz/content
> > ContentManagementWorker.java
> > 3) Severity and Description Path Resource Location Creation Time Id
> > Type safety: Unchecked invocation sort(List, Comparator) of the generic
> > method sort(List<T>, Comparator<? super T>) of type
> > Collections
> ofbiz/applications/order/src/org/ofbiz/order/shoppingcart/product
> > ProductDisplayWorker.java line 305 1166232758656 11879
> > 4) Type safety: The return type Object[] for toArray(T[]) from the type
> > AbstractCollection needs unchecked conversion to conform to T[] from the
> > type Set<E>
> ofbiz/framework/base/src/base/org/ofbiz/base/util/collections
> > LifoSet.java line 28
> >
> > Please help me how to resolve this . Thanks in advance.
> > -Amanda
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: Eclipse and ofbiz

Wolfgang Melz
In reply to this post by Amanda Stone
Hi Amanda,

what source do you use?
"opentaps-0.9.3-all-platforms.zip" or SVN-Checkout?
I use JDK1.5 for SVN and JDK 1.4.2 for "opentaps-0.9.3-all-platforms.zip" from sourceforge. I have both in my eclipse workspace and i change between SDKs with batch files. My experience is only hello2.zip works with JDK1.5 but all helloX.zip work with JDK1.4.2 from inside my eclipse 3.2.

So first copy ofbiz or opentaps source into your eclipse workspace, then start eclipse. Go to Navigator, right click it, then click "Import...", select "Existing Project into Workspace", then "Select Root Directory, button Browse...", point to your location where you just downloaded ofbiz or opentaps. Thats import.

To run it right click opentaps project folder in Navigator, then "run as/run...".
Create a new launch configuration, Name: opentaps, Main Class: org.ofbiz.base.start.Start.
On JRE-Tab change Alternate JRE to JDK1.4.2
In the classpath-Tab the correct JRE is already in, select user entries, delete all if someting is present.
Select user entries again, click on the "Advanced..." Button, select "Add library.../OK/Next>/User Libraries/Import/Browse Button", point to ofbiz.jar, thats it. Save the config, press Run... Button. After a short time point your browser to localhost:8080 and see the start screen.

This helps me a lot and i hope it helps you.

Best Regards

Wolli (Wolfgang Melz)
______________________________________________________________________________
"Ein Herz für Kinder" - Ihre Spende hilft! Aktion: www.deutschlandsegelt.de
Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen America's Cup-Yacht!

Reply | Threaded
Open this post in threaded view
|

Re: Eclipse and ofbiz

dwellaherbotech
Toilet Cleaner

The Pumice Stone is an exceptional tool for toilet cleaning, crafted from natural volcanic rock to tackle even the toughest stains and hard water deposits. This high-quality product is designed to provide a thorough clean without the use of harsh chemicals, preserving the integrity of your toilet surfaces. Key advantages of using the Dwella Pumice Stone include its eco-friendly nature, cost-effectiveness, and the ability to efficiently remove stubborn stains and buildup, ensuring your bathroom remains spotless and hygienic with minimal effort. website

dwella herbotech