|
|
|
Re: hover issue with MTJ [message #30772 is a reply to message #30701] |
Fri, 29 May 2009 13:56 |
Gerry Cocco Messages: 8 Registered: July 2009 |
Junior Member |
|
|
Diego,
It seems like the problem I'm having has to do with importing the device
SDKs into the MTJ environment. I've been trying to do many experiments.
I'll take you through the scenarios.
I've been trying different Eclipse bundles: Eclipse Classic, Eclipse JEE,
Eclipse for Java, and Motodev Studio for JavaME 2.0. I have the Sun JDK
1.6u13 installed. To this, I add the MTJ SDK 0.9.1 (except in the case of
the Motodev Studio, since MTJ is bundled there). All of these installs
are into a clean eclipse directory.
I then remove my home workspace directory and start Eclipse (or Motodev
studio) fresh and reconfigure the minimum amount options that I need. To
reproduce it I then do this: (on Debian Linux - Lenny):
1) Import Device SDK
Window > Preferences > Java ME > Device Management > Import ...
- I was using Sun Java(TM) Wireless Toolkit 2.5.2 primarily
- I also tried MOTODEV SDK for Java ME 2.0
-- select a default phone
2) Create a Jave ME MIDlet project
- create a Java ME MIDlet
--add the following line to the class: "String str = "string"
- I try to hover over "String". This doesn't work.
3) I then go back to the device editor and add the path for the
javadoc location for the jar which contains java.lang. In the case of the
Sun WTK2.5.2, this is: - midpapi21.jar
- add file:/usr/local/WTK2.5/docs/api/midp/ as the javadoc location.
-- hit validate: "Location is likely valid."
-- hit OK - does launch the MIDP javadoc page in my browser.
- save; back to base eclipse perspective
- Try to hover over "String".
-- Hover Message: "Note: This element neither has attached source nor
attached javadoc and hence no javadoc could be found."
4) I attempt to File > Restart. Just in case. The eclipse window
closes. The "save progress window" flashes up for a second. Then I get a
log file in my home directory (hs_err_pid3266.log), and Eclipse does not
restart.
5) Re-launch Eclipse.
- Hover still gives same "no javadoc note" above.
- device editor: Libraries: javadoc entry is still there, looks ok.
Other notes:
1) If I create a basic "Java project" and "Java main class". Hovering in
that project works for String. I know these are setup differently than
the Java ME environment, but I just wanted to be sure it worked there.
2) I did see the hover work correctly on JEE, with WTK2.5.2 AND
Motodev SDK once before a restart. After restart (and error log file) it
no longer worked. I have not been able to reproduce that "success". It
was definitely showing the an object from "javax.microedition...", so I
know can work! This may be an initialization sequence issue, but that is
only a guess.
3) The commonality with the generation of the error log files, seems
to be the MTJ import of the device SDK (maybe?). I've used 4 different
eclipse platforms and can generate these failures on all of them.
Without the MTJ, no failures and the hover works OK in the base Jave
environment.
Next Steps:
a) What environment would be best to use to match what you guys are
developing on? (Eclipse Classic, Eclipse for Java, JEE, ??)?
b) Which device SDK would you prefer I load? I'm not fussy. (not yet at
least!)
c) Since the Motodev Studio is a bundle and has the problem, maybe this is
a good place to start?
Thanks...gmc
|
|
|
|
|
|
|
Re: hover issue with MTJ [message #573658 is a reply to message #30701] |
Fri, 29 May 2009 13:56 |
Gerry Cocco Messages: 8 Registered: July 2009 |
Junior Member |
|
|
Diego,
It seems like the problem I'm having has to do with importing the device
SDKs into the MTJ environment. I've been trying to do many experiments.
I'll take you through the scenarios.
I've been trying different Eclipse bundles: Eclipse Classic, Eclipse JEE,
Eclipse for Java, and Motodev Studio for JavaME 2.0. I have the Sun JDK
1.6u13 installed. To this, I add the MTJ SDK 0.9.1 (except in the case of
the Motodev Studio, since MTJ is bundled there). All of these installs
are into a clean eclipse directory.
I then remove my home workspace directory and start Eclipse (or Motodev
studio) fresh and reconfigure the minimum amount options that I need. To
reproduce it I then do this: (on Debian Linux - Lenny):
1) Import Device SDK
Window > Preferences > Java ME > Device Management > Import ...
- I was using Sun Java(TM) Wireless Toolkit 2.5.2 primarily
- I also tried MOTODEV SDK for Java ME 2.0
-- select a default phone
2) Create a Jave ME MIDlet project
- create a Java ME MIDlet
--add the following line to the class: "String str = "string"
- I try to hover over "String". This doesn't work.
3) I then go back to the device editor and add the path for the
javadoc location for the jar which contains java.lang. In the case of the
Sun WTK2.5.2, this is: - midpapi21.jar
- add file:/usr/local/WTK2.5/docs/api/midp/ as the javadoc location.
-- hit validate: "Location is likely valid."
-- hit OK - does launch the MIDP javadoc page in my browser.
- save; back to base eclipse perspective
- Try to hover over "String".
-- Hover Message: "Note: This element neither has attached source nor
attached javadoc and hence no javadoc could be found."
4) I attempt to File > Restart. Just in case. The eclipse window
closes. The "save progress window" flashes up for a second. Then I get a
log file in my home directory (hs_err_pid3266.log), and Eclipse does not
restart.
5) Re-launch Eclipse.
- Hover still gives same "no javadoc note" above.
- device editor: Libraries: javadoc entry is still there, looks ok.
Other notes:
1) If I create a basic "Java project" and "Java main class". Hovering in
that project works for String. I know these are setup differently than
the Java ME environment, but I just wanted to be sure it worked there.
2) I did see the hover work correctly on JEE, with WTK2.5.2 AND
Motodev SDK once before a restart. After restart (and error log file) it
no longer worked. I have not been able to reproduce that "success". It
was definitely showing the an object from "javax.microedition...", so I
know can work! This may be an initialization sequence issue, but that is
only a guess.
3) The commonality with the generation of the error log files, seems
to be the MTJ import of the device SDK (maybe?). I've used 4 different
eclipse platforms and can generate these failures on all of them.
Without the MTJ, no failures and the hover works OK in the base Jave
environment.
Next Steps:
a) What environment would be best to use to match what you guys are
developing on? (Eclipse Classic, Eclipse for Java, JEE, ??)?
b) Which device SDK would you prefer I load? I'm not fussy. (not yet at
least!)
c) Since the Motodev Studio is a bundle and has the problem, maybe this is
a good place to start?
Thanks...gmc
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04272 seconds