Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Mobile Tools for Java (MTJ) » Project Referencing another project
Project Referencing another project [message #29132] Fri, 24 April 2009 19:59 Go to next message
Charles-Philip Bentley is currently offline Charles-Philip Bentley
Messages: 60
Registered: July 2009
Member
Hello, I have MTJ 0.9.1 and Eclipse 3.4

I wanted to see how conveniently I could work with MTJ.

I have 2 Java Mobile projects in Eclipse: project XXX and project
mobileLibrary

project XXX references to project mobileLibrary

both compile fine without errors.

However when I do Run As -> Java Me Midlet, I get an error
java.lang.NoClassDefFoundError: lib/libClass

Why can't it find the class? When I check the Run Configuration of XXX
midlet, the source tab has mobileLibrary on the source lookup Path.

Try it with 2 dummy projects.

You would expect it to work like with 2 Java SE projects or maybe I missed
something in the configuration.
Re: Project Referencing another project [message #29171 is a reply to message #29132] Sat, 25 April 2009 08:57 Go to previous messageGo to next message
No real name is currently offline No real name
Messages: 16
Registered: July 2009
Junior Member
Have you checked the library project in 'Order and Export' in the eclipse
build path configuration?

Greeting, Wolfgang
Re: Project Referencing another project [message #29209 is a reply to message #29171] Sun, 26 April 2009 09:29 Go to previous messageGo to next message
Charles-Philip Bentley is currently offline Charles-Philip Bentley
Messages: 60
Registered: July 2009
Member
no. I did not.

now It works when I check the library project in Order and Export. :)

thanks a million Wolfgang.
Re: Project Referencing another project [message #29467 is a reply to message #29209] Wed, 13 May 2009 21:47 Go to previous messageGo to next message
Eclipse User
Originally posted by: wruotsi.qualcomm.com

mordan9@hotmail.com (Charles-Philip Bentley) wrote in
news:d89879340c9c08baba85dcfb18108bfc$1@www.eclipse.org:

> no. I did not.
>
> now It works when I check the library project in Order and Export. :)
>
> thanks a million Wolfgang.
>
>

In 1.0M7 this appears to have broken? I've got existing projects with the
export box checked - they work in Eclipse 3.4/MTJ 0.91, but in 3.5M7/1.0M7,
none of the class files from dependent projects make it into th ejar file.
Re: Project Referencing another project [message #29503 is a reply to message #29467] Wed, 13 May 2009 23:58 Go to previous message
Eclipse User
Originally posted by: wruotsi.qualcomm.com

Wendell <wruotsi@qualcomm.com> wrote in
news:Xns9C0A9685223CCwruotsidontcallitart@206.191.52.34:

>
> In 1.0M7 this appears to have broken? I've got existing projects with
> the export box checked - they work in Eclipse 3.4/MTJ 0.91, but in
> 3.5M7/1.0M7, none of the class files from dependent projects make it
> into th ejar file.
>

It looks like there was a third "publish" of 1.0M7 4 days later that fixes
this.
Re: Project Referencing another project [message #572537 is a reply to message #29132] Sat, 25 April 2009 08:57 Go to previous message
No real name is currently offline No real name
Messages: 16
Registered: July 2009
Junior Member
Have you checked the library project in 'Order and Export' in the eclipse
build path configuration?

Greeting, Wolfgang
Re: Project Referencing another project [message #572553 is a reply to message #29171] Sun, 26 April 2009 09:29 Go to previous message
Charles-Philip Bentley is currently offline Charles-Philip Bentley
Messages: 60
Registered: July 2009
Member
no. I did not.

now It works when I check the library project in Order and Export. :)

thanks a million Wolfgang.
Re: Project Referencing another project [message #572727 is a reply to message #29209] Wed, 13 May 2009 21:47 Go to previous message
Wendell is currently offline Wendell
Messages: 2
Registered: July 2009
Junior Member
mordan9@hotmail.com (Charles-Philip Bentley) wrote in
news:d89879340c9c08baba85dcfb18108bfc$1@www.eclipse.org:

> no. I did not.
>
> now It works when I check the library project in Order and Export. :)
>
> thanks a million Wolfgang.
>
>

In 1.0M7 this appears to have broken? I've got existing projects with the
export box checked - they work in Eclipse 3.4/MTJ 0.91, but in 3.5M7/1.0M7,
none of the class files from dependent projects make it into th ejar file.
Re: Project Referencing another project [message #572774 is a reply to message #29467] Wed, 13 May 2009 23:58 Go to previous message
Wendell is currently offline Wendell
Messages: 2
Registered: July 2009
Junior Member
Wendell <wruotsi@qualcomm.com> wrote in
news:Xns9C0A9685223CCwruotsidontcallitart@206.191.52.34:

>
> In 1.0M7 this appears to have broken? I've got existing projects with
> the export box checked - they work in Eclipse 3.4/MTJ 0.91, but in
> 3.5M7/1.0M7, none of the class files from dependent projects make it
> into th ejar file.
>

It looks like there was a third "publish" of 1.0M7 4 days later that fixes
this.
Previous Topic:MTJ 1.0 M7 Available (Eclipse Galileo)
Next Topic:MTJ 1.0 RC1 is out
Goto Forum:
  


Current Time: Sat Nov 01 05:38:17 GMT 2014

Powered by FUDForum. Page generated in 0.02133 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software