Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » DSDP - Mobile Tools for Java (MTJ) » Installation
Installation [message #17449] Sun, 05 November 2006 22:27 Go to next message
Torsten Schlabach is currently offline Torsten SchlabachFriend
Messages: 25
Registered: July 2009
Junior Member
Hi all!

I am currently trying to get MTJ to work, but I keep failing.

Here is what I have done:

- Got a fresh Eclipse 3.2
- Downloaded and unpacked
- emf-sdo-SDK-2.2.0.zip
- mtj-runtime-0.7RC1.zip
- CONN.ZIP

Downloaded the sun_java_wireless_toolkit-2_5-beta-windows.exe and unpacked
in some location.

Next I have added the Device Configurations in Eclipse in Windows ->
Preferences successfully by using "Add" and pointing to the directory
where I unpacked the Sun Java Wireless Toolkit.

When I try to create and ME project, it's asking me for the Runtime. I
don't yet have one, so I tried to Add a runtime through Window ->
Preferences.

But the problem there seems to be that just nohtings happens when I press
the "Add" button.

I would have expected to be able to again point at some directory.

Is there any misconception? I have read the instructions in the Help, but
did not find anything useful in there.

Any help is appreciated.

Regards,
Torsten
Re: Installation [message #17455 is a reply to message #17449] Mon, 06 November 2006 05:37 Go to previous messageGo to next message
Anandatirtha is currently offline AnandatirthaFriend
Messages: 8
Registered: July 2009
Junior Member
Hi Torsten,

The runtime is created from the existing device platforms.
Recheck your device platforms and see if the devices in WTK 2.5 have
been imported.

Thanks,
Anand


Torsten Schlabach wrote:
> Hi all!
>
> I am currently trying to get MTJ to work, but I keep failing.
>
> Here is what I have done:
>
> - Got a fresh Eclipse 3.2
> - Downloaded and unpacked - emf-sdo-SDK-2.2.0.zip
> - mtj-runtime-0.7RC1.zip
> - CONN.ZIP
>
> Downloaded the sun_java_wireless_toolkit-2_5-beta-windows.exe and
> unpacked in some location.
>
> Next I have added the Device Configurations in Eclipse in Windows ->
> Preferences successfully by using "Add" and pointing to the directory
> where I unpacked the Sun Java Wireless Toolkit.
>
> When I try to create and ME project, it's asking me for the Runtime. I
> don't yet have one, so I tried to Add a runtime through Window ->
> Preferences.
>
> But the problem there seems to be that just nohtings happens when I
> press the "Add" button.
>
> I would have expected to be able to again point at some directory.
>
> Is there any misconception? I have read the instructions in the Help,
> but did not find anything useful in there.
>
> Any help is appreciated.
>
> Regards,
> Torsten
>
Re: Installation [message #17460 is a reply to message #17455] Tue, 07 November 2006 11:28 Go to previous messageGo to next message
Torsten Schlabach is currently offline Torsten SchlabachFriend
Messages: 25
Registered: July 2009
Junior Member
> Recheck your device platforms and see if the devices in WTK 2.5 have
> been imported.

I did and it looks somewhat strange.

So I decided to start over with a clean workspace and import a clean
freshly unpacked WTP25.

I was somewhat suprised that after I created a new empty workspace and
brought up the Window -> Preferences -> Mobile Tools for Java -> Device
Platform dialog, it still had all the old devices in there which I had
imported earlier.

Where is that info stored? Shouldn't that go into a folder under .metadata
in the workspace?

My problem might be that I have old inconsistent data in my setup, but I
wonder how to get right of it. Where can I clean this?

Regards,
Torsten
Re: Installation [message #17465 is a reply to message #17460] Tue, 07 November 2006 12:37 Go to previous messageGo to next message
Torsten Schlabach is currently offline Torsten SchlabachFriend
Messages: 25
Registered: July 2009
Junior Member
Just for the records:

After I deleted and unpacked Eclipse + EMF + MTJ runtime itself again, I
was able to make it work.

I did not install any Nokia stuff such as the S60 SDK or CONN.ZIP. Not
sure yet wether I will need that, but it looks as if even without it, i.e.
using the above together with the WTK 2.5 from Sun I can develop mobile
apps and test them on the emulator which comes with the WTK. I might need
the Nokia stuff when I want to deploy my app to a real phone probably.

Might it be that configuration information goes into the plugin directory
under $ECLIPSE_HOME/plugins/org.eclipse.mtj.xxx rather than
$WORKSPACE/.metadata/.plugins/.org.eclipse.mtj.xxx? Shall I file a bug?

Regards,
Torsten
Re: Installation [message #17470 is a reply to message #17465] Tue, 07 November 2006 14:06 Go to previous messageGo to next message
Kevin Horowitz is currently offline Kevin HorowitzFriend
Messages: 36
Registered: July 2009
Member
The runtime platform information is stored in the
plugin/org.eclipse.mtj.psp/data directory. If you delete the data
directory and restart with a clean workspace all of the device
information will be cleared.

kevin

Torsten Schlabach wrote:
> Just for the records:
>
> After I deleted and unpacked Eclipse + EMF + MTJ runtime itself again, I
> was able to make it work.
>
> . . .
>
> Might it be that configuration information goes into the plugin
> directory under $ECLIPSE_HOME/plugins/org.eclipse.mtj.xxx rather than
> $WORKSPACE/.metadata/.plugins/.org.eclipse.mtj.xxx? Shall I file a bug?
>
> Regards,
> Torsten
>
Re: Installation [message #17475 is a reply to message #17470] Tue, 07 November 2006 14:38 Go to previous messageGo to next message
Torsten Schlabach is currently offline Torsten SchlabachFriend
Messages: 25
Registered: July 2009
Junior Member
Kevin Horowitz wrote:

> The runtime platform information is stored in the
> plugin/org.eclipse.mtj.psp/data directory. If you delete the data
> directory and restart with a clean workspace all of the device
> information will be cleared.

Thanks for the tip. This will save me next time I need to clean this.

The question remains: Does it belong there? Shouldn't that folder live
somewhere under .metadata?

Regards,
Torsten
Re: Installation [message #17480 is a reply to message #17475] Tue, 07 November 2006 15:52 Go to previous messageGo to next message
Kevin Horowitz is currently offline Kevin HorowitzFriend
Messages: 36
Registered: July 2009
Member
There has been some debate on the issue. Some want it there so that
runtime platforms are available to any user of the eclipse installation
or any workspace. I, personally, agree with you and think it should be
in the .metadata area and be relative to a users workspace. There is a
flag to store the data in an alternate location. If you launch with the
System property "user.home" set to a location, that will be used for the
persistent store. This was our compromise position for this release.

kevin

Torsten Schlabach wrote:
> Kevin Horowitz wrote:
>
>> The runtime platform information is stored in the
>> plugin/org.eclipse.mtj.psp/data directory. If you delete the data
>> directory and restart with a clean workspace all of the device
>> information will be cleared.
>
> Thanks for the tip. This will save me next time I need to clean this.
>
> The question remains: Does it belong there? Shouldn't that folder live
> somewhere under .metadata?
>
> Regards,
> Torsten
>
>
Re: Installation [message #18807 is a reply to message #17449] Sat, 03 February 2007 15:51 Go to previous message
Miha Vitorovic is currently offline Miha VitorovicFriend
Messages: 6
Registered: July 2009
Junior Member
Torsten Schlabach wrote:
> Hi all!
>
> I am currently trying to get MTJ to work, but I keep failing.
>
> Here is what I have done:
>
> - Got a fresh Eclipse 3.2
> - Downloaded and unpacked - emf-sdo-SDK-2.2.0.zip
> - mtj-runtime-0.7RC1.zip
> - CONN.ZIP
>
> Downloaded the sun_java_wireless_toolkit-2_5-beta-windows.exe and
> unpacked in some location.
>

Just to help some poor sod trying to install and add WTK 2.5 (like I did
yesterday), when adding Device Platform in Windows -> Preferences ->
Mobile Tools for Java -> Device Platform , "Add" you need to select the
PARENT of the folder you install WTK into.

So, if you install WTK into "C:\Program Files\Java\WTK25-Beta2",
make sure you put "C:\Program Files\Java\" into the Location field of
"Add Mobile Device Platform" dialog, or nothing happens (which is pretty
frustrating).

Br, Mike5
Re: Installation [message #565480 is a reply to message #17449] Mon, 06 November 2006 05:37 Go to previous message
Anandatirtha is currently offline AnandatirthaFriend
Messages: 8
Registered: July 2009
Junior Member
Hi Torsten,

The runtime is created from the existing device platforms.
Recheck your device platforms and see if the devices in WTK 2.5 have
been imported.

Thanks,
Anand


Torsten Schlabach wrote:
> Hi all!
>
> I am currently trying to get MTJ to work, but I keep failing.
>
> Here is what I have done:
>
> - Got a fresh Eclipse 3.2
> - Downloaded and unpacked - emf-sdo-SDK-2.2.0.zip
> - mtj-runtime-0.7RC1.zip
> - CONN.ZIP
>
> Downloaded the sun_java_wireless_toolkit-2_5-beta-windows.exe and
> unpacked in some location.
>
> Next I have added the Device Configurations in Eclipse in Windows ->
> Preferences successfully by using "Add" and pointing to the directory
> where I unpacked the Sun Java Wireless Toolkit.
>
> When I try to create and ME project, it's asking me for the Runtime. I
> don't yet have one, so I tried to Add a runtime through Window ->
> Preferences.
>
> But the problem there seems to be that just nohtings happens when I
> press the "Add" button.
>
> I would have expected to be able to again point at some directory.
>
> Is there any misconception? I have read the instructions in the Help,
> but did not find anything useful in there.
>
> Any help is appreciated.
>
> Regards,
> Torsten
>
Re: Installation [message #565505 is a reply to message #17455] Tue, 07 November 2006 11:28 Go to previous message
Torsten Schlabach is currently offline Torsten SchlabachFriend
Messages: 25
Registered: July 2009
Junior Member
> Recheck your device platforms and see if the devices in WTK 2.5 have
> been imported.

I did and it looks somewhat strange.

So I decided to start over with a clean workspace and import a clean
freshly unpacked WTP25.

I was somewhat suprised that after I created a new empty workspace and
brought up the Window -> Preferences -> Mobile Tools for Java -> Device
Platform dialog, it still had all the old devices in there which I had
imported earlier.

Where is that info stored? Shouldn't that go into a folder under .metadata
in the workspace?

My problem might be that I have old inconsistent data in my setup, but I
wonder how to get right of it. Where can I clean this?

Regards,
Torsten
Re: Installation [message #565527 is a reply to message #17460] Tue, 07 November 2006 12:37 Go to previous message
Torsten Schlabach is currently offline Torsten SchlabachFriend
Messages: 25
Registered: July 2009
Junior Member
Just for the records:

After I deleted and unpacked Eclipse + EMF + MTJ runtime itself again, I
was able to make it work.

I did not install any Nokia stuff such as the S60 SDK or CONN.ZIP. Not
sure yet wether I will need that, but it looks as if even without it, i.e.
using the above together with the WTK 2.5 from Sun I can develop mobile
apps and test them on the emulator which comes with the WTK. I might need
the Nokia stuff when I want to deploy my app to a real phone probably.

Might it be that configuration information goes into the plugin directory
under $ECLIPSE_HOME/plugins/org.eclipse.mtj.xxx rather than
$WORKSPACE/.metadata/.plugins/.org.eclipse.mtj.xxx? Shall I file a bug?

Regards,
Torsten
Re: Installation [message #565546 is a reply to message #17465] Tue, 07 November 2006 14:06 Go to previous message
Kevin Horowitz is currently offline Kevin HorowitzFriend
Messages: 36
Registered: July 2009
Member
The runtime platform information is stored in the
plugin/org.eclipse.mtj.psp/data directory. If you delete the data
directory and restart with a clean workspace all of the device
information will be cleared.

kevin

Torsten Schlabach wrote:
> Just for the records:
>
> After I deleted and unpacked Eclipse + EMF + MTJ runtime itself again, I
> was able to make it work.
>
> . . .
>
> Might it be that configuration information goes into the plugin
> directory under $ECLIPSE_HOME/plugins/org.eclipse.mtj.xxx rather than
> $WORKSPACE/.metadata/.plugins/.org.eclipse.mtj.xxx? Shall I file a bug?
>
> Regards,
> Torsten
>
Re: Installation [message #565568 is a reply to message #17470] Tue, 07 November 2006 14:38 Go to previous message
Torsten Schlabach is currently offline Torsten SchlabachFriend
Messages: 25
Registered: July 2009
Junior Member
Kevin Horowitz wrote:

> The runtime platform information is stored in the
> plugin/org.eclipse.mtj.psp/data directory. If you delete the data
> directory and restart with a clean workspace all of the device
> information will be cleared.

Thanks for the tip. This will save me next time I need to clean this.

The question remains: Does it belong there? Shouldn't that folder live
somewhere under .metadata?

Regards,
Torsten
Re: Installation [message #565592 is a reply to message #17475] Tue, 07 November 2006 15:52 Go to previous message
Kevin Horowitz is currently offline Kevin HorowitzFriend
Messages: 36
Registered: July 2009
Member
There has been some debate on the issue. Some want it there so that
runtime platforms are available to any user of the eclipse installation
or any workspace. I, personally, agree with you and think it should be
in the .metadata area and be relative to a users workspace. There is a
flag to store the data in an alternate location. If you launch with the
System property "user.home" set to a location, that will be used for the
persistent store. This was our compromise position for this release.

kevin

Torsten Schlabach wrote:
> Kevin Horowitz wrote:
>
>> The runtime platform information is stored in the
>> plugin/org.eclipse.mtj.psp/data directory. If you delete the data
>> directory and restart with a clean workspace all of the device
>> information will be cleared.
>
> Thanks for the tip. This will save me next time I need to clean this.
>
> The question remains: Does it belong there? Shouldn't that folder live
> somewhere under .metadata?
>
> Regards,
> Torsten
>
>
Re: Installation [message #565848 is a reply to message #17449] Sat, 03 February 2007 15:51 Go to previous message
Miha Vitorovic is currently offline Miha VitorovicFriend
Messages: 6
Registered: July 2009
Junior Member
Torsten Schlabach wrote:
> Hi all!
>
> I am currently trying to get MTJ to work, but I keep failing.
>
> Here is what I have done:
>
> - Got a fresh Eclipse 3.2
> - Downloaded and unpacked - emf-sdo-SDK-2.2.0.zip
> - mtj-runtime-0.7RC1.zip
> - CONN.ZIP
>
> Downloaded the sun_java_wireless_toolkit-2_5-beta-windows.exe and
> unpacked in some location.
>

Just to help some poor sod trying to install and add WTK 2.5 (like I did
yesterday), when adding Device Platform in Windows -> Preferences ->
Mobile Tools for Java -> Device Platform , "Add" you need to select the
PARENT of the folder you install WTK into.

So, if you install WTK into "C:\Program Files\Java\WTK25-Beta2",
make sure you put "C:\Program Files\Java\" into the Location field of
"Add Mobile Device Platform" dialog, or nothing happens (which is pretty
frustrating).

Br, Mike5
Previous Topic:Eclipse Webinar on MTJ
Next Topic:Bad Stack Map error
Goto Forum:
  


Current Time: Tue Apr 16 20:51:13 GMT 2024

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

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

Back to the top