Eclipse 中缺少文档

发布于 2024-10-20 18:52:14 字数 954 浏览 3 评论 0原文

我是 eclipse/java 移动开发和所有其他关键字的新手。

我刚刚下载了 eclipse pulsar 包并安装了它,我还下载了“java me sdk 3.0”并安装了它并在 eclipse 中链接它。现在我可以创建一个新的 midlet,并使用启动模板作为开始。

现在我输入: g.drawString(...) 并且我有一个字符串参数,它应该是要显示的字符串。和其他三个整数。 现在的问题是根本没有文档。就像你必须猜测每个论点是什么。 我确定有一种叫做文档的东西,对吗?但我不知道sdk在哪里?是日食吗?我可以在哪里解决这个问题? 即使是“字符串”类型我也找不到它的文档。

编辑: 现在在我安装的jres中我只有jre6,虽然我也安装了jdk1.6.0但它没有出现我现在添加它...

但这里最主要的是我必须下载一个名为“sun java wireless toolkit”的东西建议下载新功能“sun_java_me_sdk-3_0-win.exe”。我做到了,当我安装它时,我有一个新部分“窗口->首选项->javame”,其中也包含缺少的配置。 但其中有一个名为“设备管理”的部分(意味着我需要使用的设备,例如标准的手机配置),每个部分都有一组罐子。并且很少有 jars 设置了 javadoc 位置。 我知道 javadoc 现在在哪里,但它并没有涵盖我正在使用的所有罐子。

回顾一下:我认为我正在针对 swt sdk 进行工作,并且我需要将我正在针对的库链接到其相应的 javadoc。但不确定,因为不应该使用此 sdk 中的“图形”类或“字符串”类,而不是默认的 java sdk 1.6.0? 我想我会利用这一天尝试解决所有这些问题,并真正了解我正在使用哪些库,以及我是否可以下载其余的 javadoc 并使用它们。 如果不行我就用netbeans。他们说部署要容易得多

我确实安装了netbeans,并且文档正在运行。我在 netbeans 内部看到他们正在集成“Java_ME_platform_SDK_3.0”,但我不知道他们从哪里提供 javadoc。

I'm new to eclipse/java Mobile development and all the rest of the keywords.

I have just downloaded the eclipse pulsar package, and installed it, i also downloaded the 'java me sdk 3.0' and installed it and linked it in eclipse. now i can create a new midlet and i'm using the splash template as a start.

now i typed: g.drawString(...) and i have like a string argument which is supposed to be the string to display. and other three integers.
Now the problem is that there's no documentation at all. it's like you have to guess each argument is what.
I'm sure there's something called documentation right? but i don't what where is it's the sdk ? is it eclipse? where can i fix that?
even the 'string' type i couldn't find it's documentation.

EDIT:
now in my installed jres i have only jre6, though i also have installed jdk1.6.0 but it's not appearing i added it now...

But the main thing here, is that i had to download something called 'sun java wireless toolkit' which suggested to download the new feature 'sun_java_me_sdk-3_0-win.exe'. and i did, when i installed it i have a new section 'window->preferences->javame' which also contains missing configurations.
but there's a section in it called 'device management' (meaning the device that i need to work against, like standard hansets configurations) each with a set of jars. And very few jars have javadoc location set.
i know where the javadoc is now, but it's not covering all the jars i'm working with.

so to recap: i think i'm working against swt sdk and i need to link the libraries taht i'm working against to their corresponding javadoc. but not sure since it's not supposed that 'Graphics' class or 'string' class be used from this sdk and not the default java sdk 1.6.0?
i think i'll take this day to try to fix all this and really understand what libraries i'm working with and if i can download the rest of the javadocs and use them.
if it didn't work i'll go with netbeans. they say it's much easier to deploy

I did install netbeans, and the documentation is working. i saw inside netbeans that they are integrating the 'Java_ME_platform_SDK_3.0' but i don't know from where they provide the javadoc.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

我有一个简单的解决方法可以解决这个问题。只需进入库设置,您将看到 cldc11api.jar 的 javadoc 丢失,将其指定为与 midp21api.jar 相同的位置,重新启动 eclipse。希望这对你有用。

I have a simple walkaround that fix this problem. Just go to the library setting, you will see the javadoc of cldc11api.jar is missing, give it the same location as midp21api.jar, restart eclipse. Hope this work for you.

山川志 2024-10-27 18:52:14

我没有在 Eclipse 中进行 Java ME 开发的第一手经验,但我会告诉您 javadoc hookup 在 Eclipse 中的工作原理,您可以进一步研究。

  1. 转到窗口 ->首选项-> Java->安装的 JRE。您应该会发现此处列出了您的 Java ME 安装。
  2. 选择它并点击编辑。
  3. 展开JRE系统库下的各种jar节点。您将看到源附件和 javadoc 位置。
  4. 如果您没有看到 javadoc 下列出的位置,请选择该树条目并单击 Javadoc Location 按钮来编辑该位置。

对于我来说,使用 Java SE,我看到这样指定的位置:http://java.lang. sun.com/javase/6/docs/api/

Eclipse 可能根本不知道在哪里可以找到 Java ME javadoc。如果您知道该位置,则可以在上面的对话框中指定它。这可以是本地或远程 URL。

如果指定位置并且显示正确,则问题可能出在网络连接上。如果您位于代理后面,请确保在“窗口”->“代理”下正确指定它。首选项->一般->网络连接。

I don't have first-hand experience with Java ME development in Eclipse, but I will tell you how javadoc hookup works in Eclipse and you can investigate further.

  1. Go to Window -> Preferences -> Java -> Installed JREs. You should find your Java ME install listed here.
  2. Select it and hit Edit.
  3. Expand various jar nodes under JRE system libraries. You will see source attachment and javadoc location.
  4. If you don't see a location listed under javadoc, select that tree entry and hit Javadoc Location button to edit the location.

For me, using Java SE, I see location specified like this: http://java.sun.com/javase/6/docs/api/

It is possible that Eclipse simply doesn't know where to find Java ME javadoc. If you know the location, you can specify it in the above dialog. This could be a local or a remote URL.

If the location is specified and appears correct, the problem could be with network connectivity. If you are behind the proxy, make sure that it is correctly specified under Window -> Preferences -> General -> Network Connections.

无言温柔 2024-10-27 18:52:14

我的问题和这个问题很接近,你可以参考
将 Javadoc 附加到 Eclipse for Java ME

无论如何
Konstantin Komissarchik 还正确回答了如何设置 javadoc 位置。

现在的问题是“Java_ME_platform_SDK_3.0”,无论如何,通过手动设置javadoc位置的配置,在我用-clean参数重新启动eclipse后它就可以工作了。
祝你好运

my question is close to this question, you can refer to
Attach Javadoc to Eclipse for Java ME

anyway
Konstantin Komissarchik has also answered correctly to how you set the javadoc location.

Now the problem is with the 'Java_ME_platform_SDK_3.0', anyway through setting manually the configurations of javadoc location, igot it working after i restarted the eclipse with -clean argument.
good luck

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文