DZone Forums
Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
Reload this Page running emulator / building problem
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: May 2008
Default running emulator / building problem - 05-22-2008, 06:54 AM

Hi guys,

I have some problems with the running from eclipse a phone emulator, but I think the problem can be more general.
The project consists of some source files and a library attached to the project. I have all the project correctly set up from eclipse, everything is fine. But when running from the emulator I get a ClassNotFound exception for the class from the library.

I have checked that the library is in the Source lookup path from the emulator property, also in the the libraries from the Project Java Build Path. When I run the emulator it doesn't find the class from the library.

I am using Eclipse 3.3.0, EclipseME plugin 1.7.9, apache ant 1.7.0, WTK 2.5.1.

Do you have any ideas or clues to search for the problem?

Thanks
Reply With Quote
  (#2 (permalink)) Old
Member
 
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Jan 2008
Location: Chicago Land Area, USA
Default 05-27-2008, 08:39 PM

I think I know what the problem is..

is your library is separate jar or is it a class file within the program as
in J2me you cannot use libraries as per like in j2se and etc...ie the
classes to lib have to be in the program instead

The key note was that class not fond is occurring on your library classes and not your program classes.

If that is not the problem than post a clarification so that I can help more

Quote:
Originally Posted by petru11 View Post
Hi guys,

I have some problems with the running from eclipse a phone emulator, but I think the problem can be more general.
The project consists of some source files and a library attached to the project. I have all the project correctly set up from eclipse, everything is fine. But when running from the emulator I get a ClassNotFound exception for the class from the library.

I have checked that the library is in the Source lookup path from the emulator property, also in the the libraries from the Project Java Build Path. When I run the emulator it doesn't find the class from the library.

I am using Eclipse 3.3.0, EclipseME plugin 1.7.9, apache ant 1.7.0, WTK 2.5.1.

Do you have any ideas or clues to search for the problem?

Thanks
Reply With Quote
  (#3 (permalink)) Old
Member
 
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: May 2008
Default 05-28-2008, 07:01 AM

The classes are found in a third party library. I have noticed that if I use the Antenna > Export Build Files that in the generated build files in wtkpackage the property libclasspath is not set to point to the library.

If will do that the building scripts are working perfect, but I also want this to be done automaticly from eclipse, I was thinking that there is some property that I missed.

Any ideas?

Quote:
Originally Posted by fg82183 View Post
I think I know what the problem is..

is your library is separate jar or is it a class file within the program as
in J2me you cannot use libraries as per like in j2se and etc...ie the
classes to lib have to be in the program instead

The key note was that class not fond is occurring on your library classes and not your program classes.

If that is not the problem than post a clarification so that I can help more
Reply With Quote
  (#4 (permalink)) Old
Member
 
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: May 2008
Default 05-28-2008, 07:04 AM

I will try to be more specific

the wtkpackage doesn't have the libclasspath pointing to my library, even if this is set as a property from the eclipse project properties and there are references from the build scripts towards it.

and if I fix this one in the scripts the generated packages are fine.
...

is something more that I have to specify so that the antenna will know to use this one?

Quote:
Originally Posted by petru11 View Post
The classes are found in a third party library. I have noticed that if I use the Antenna > Export Build Files that in the generated build files in wtkpackage the property libclasspath is not set to point to the library.

If will do that the building scripts are working perfect, but I also want this to be done automaticly from eclipse, I was thinking that there is some property that I missed.

Any ideas?
Reply With Quote
  (#5 (permalink)) Old
Member
 
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Jan 2008
Location: Chicago Land Area, USA
Default 05-28-2008, 07:12 AM

Not at the moment..however the Eclipse Mobile Tools for Java proejct is re-organizing with the EclipseMe code base..could you submit that idea to the EclipseMe project lead as its a nice idea..


Glad that its working through Antenna as I am a part-time antenna code contributor..




Quote:
Originally Posted by petru11 View Post
The classes are found in a third party library. I have noticed that if I use the Antenna > Export Build Files that in the generated build files in wtkpackage the property libclasspath is not set to point to the library.

If will do that the building scripts are working perfect, but I also want this to be done automaticly from eclipse, I was thinking that there is some property that I missed.

Any ideas?
Reply With Quote
  (#6 (permalink)) Old
Member
 
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: May 2008
Default 05-28-2008, 08:58 AM

I think the main problem is at integrating the tools and the way they are working together, so the issue is in the middle.

How can I get in touch with the EclipseMe project lead?

I appreciate the antenna tools, they are saving us from a lot of work and thx for you and for all the contributors

Quote:
Originally Posted by fg82183 View Post
Not at the moment..however the Eclipse Mobile Tools for Java proejct is re-organizing with the EclipseMe code base..could you submit that idea to the EclipseMe project lead as its a nice idea..


Glad that its working through Antenna as I am a part-time antenna code contributor..
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IValidatorJob not running anymore javaj1 Eclipse 0 09-12-2008 12:15 PM
Problem running application under Tomcat in Eclipse Anonymouslemming Eclipse 0 09-09-2008 09:49 AM
running SWT application on vista u2ganesh Eclipse 0 08-18-2008 09:17 AM
Building the Project with the Ant viewer SDTimpson Eclipse 0 04-18-2008 11:39 AM
Building Intranet with JavaEE or Opensource cyberziko Java 1 02-27-2008 08:12 AM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com