Redian新闻
>
[转载] 有用Eclipse的嘛?
avatar
[转载] 有用Eclipse的嘛?# Java - 爪哇娇娃
jr
1
【 以下文字转载自 Programming 讨论区 】
【 原文由 Jr 所发表 】
新手问个问题
鼠标放到class上syntax的提示显示不出来,翻遍了选项也没找到哪里设
javadoc的设置。
哪位大侠指教一下?
avatar
o*v
2
jdk installed?【 在 Jr (心情像感冒) 的大作中提到: 】
avatar
m*t
3

(Assuming Eclipse 3) Right click on the jar file that contains
the class files, select "Properties" -> "Javadoc location", and
go from there.

【在 jr 的大作中提到】
: 【 以下文字转载自 Programming 讨论区 】
: 【 原文由 Jr 所发表 】
: 新手问个问题
: 鼠标放到class上syntax的提示显示不出来,翻遍了选项也没找到哪里设
: javadoc的设置。
: 哪位大侠指教一下?

avatar
p*p
4
另外Eclipse里面Export到Jar文件,选项最后一页是MANIFEST
这个是什么意思

【在 m******t 的大作中提到】
:
: (Assuming Eclipse 3) Right click on the jar file that contains
: the class files, select "Properties" -> "Javadoc location", and
: go from there.

avatar
m*t
5

What "export"?

【在 p***p 的大作中提到】
: 另外Eclipse里面Export到Jar文件,选项最后一页是MANIFEST
: 这个是什么意思

avatar
p*p
6
就是输出制作jar文件

【在 m******t 的大作中提到】
:
: What "export"?

avatar
m*t
7

Sorry, never done that in Eclipse, always used ant to
jar up files.

【在 p***p 的大作中提到】
: 就是输出制作jar文件
avatar
p*p
8

用ANT的话,Eclipse里面好像不能Debug。我都是如果别人code有现成的ANT
才用,自己写好像太麻烦了

【在 m******t 的大作中提到】
:
: Sorry, never done that in Eclipse, always used ant to
: jar up files.

avatar
d*s
9

Create/point your own MANIFEST.MF file.
Read
http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html
for details about what MANIFEST is.

【在 p***p 的大作中提到】
: 另外Eclipse里面Export到Jar文件,选项最后一页是MANIFEST
: 这个是什么意思

avatar
d*s
10

Ant's Jar, of course, supports Manefest. It actually
not only supports a pre-written MANEFEST.MF, but also
can create a new manefest file, with new items.
Have you ever written Ant Tasks? If you have written
Ant tasks to deploy either server side JAR or GUI app or
applet, you should at least use manefest.

【在 m******t 的大作中提到】
:
: Sorry, never done that in Eclipse, always used ant to
: jar up files.

avatar
d*s
11

Of course you can debug any kind of Java programs, even if you don't
have source code. If you have source code, then no trick at all.
read JPDA carefully.
Eclipse supports both share memory and socket remote debug.

【在 p***p 的大作中提到】
:
: 用ANT的话,Eclipse里面好像不能Debug。我都是如果别人code有现成的ANT
: 才用,自己写好像太麻烦了

avatar
g*y
12
If you have time to water 3 articles here, then you definitely have time to
learn how to write ANT.
Just open ANT's online manual, read a sample for 1 minute, then read the core
task help you want to use, then start WRITE!
Compared with unix Makefile, ANT is heavenly made gift for programmers.

【在 p***p 的大作中提到】
:
: 用ANT的话,Eclipse里面好像不能Debug。我都是如果别人code有现成的ANT
: 才用,自己写好像太麻烦了

avatar
p*p
13
是啊,最近学习了一下,能看懂ANT的xml文件基本,不过我现在的程序Eclipse的Builder
也能应付,所以没用过。问题是很多Code拿到手是ANT编译,我一般把它们做成Eclipse
的Project然后用Debug里面设置运动配置,这样可以Debug,但是非常繁琐,必须读一遍
build。XML看看都要做什么。
请问如果用ANT菜单里面设置运行或者External Tools,怎能能设置断点Debug呢

【在 g**********y 的大作中提到】
: If you have time to water 3 articles here, then you definitely have time to
: learn how to write ANT.
: Just open ANT's online manual, read a sample for 1 minute, then read the core
: task help you want to use, then start WRITE!
: Compared with unix Makefile, ANT is heavenly made gift for programmers.

avatar
g*y
14
Why you want to set break point in ANT? Isn't one-click on code line simple
enough?
BTW, you know that you can drag Ant view down to output pane and just click
task to run a particular task, right? After using Eclipse/Ant for 3 months, I
realized that I can do that :-) I used to click menu step by step to run a
special ANT task, which bores and irritates me a lot.

是啊,最近学习了一下,能看懂ANT的xml文件基本,不过我现在的程序Eclipse的Builder


【在 p***p 的大作中提到】
: 是啊,最近学习了一下,能看懂ANT的xml文件基本,不过我现在的程序Eclipse的Builder
: 也能应付,所以没用过。问题是很多Code拿到手是ANT编译,我一般把它们做成Eclipse
: 的Project然后用Debug里面设置运动配置,这样可以Debug,但是非常繁琐,必须读一遍
: build。XML看看都要做什么。
: 请问如果用ANT菜单里面设置运行或者External Tools,怎能能设置断点Debug呢

avatar
d*s
15

是啊,最近学习了一下,能看懂ANT的xml文件基本,不过我现在的程序Eclipse的Builder

I've told you, read JPDA carefully. Eclipse is fully complaint with the spec.
Although the spec is used for developing a debugger, you can understand how
IDE tools like Eclipse and Netbeans hook up to an application, set break point
and trace the workflow.
to
core

【在 p***p 的大作中提到】
: 是啊,最近学习了一下,能看懂ANT的xml文件基本,不过我现在的程序Eclipse的Builder
: 也能应付,所以没用过。问题是很多Code拿到手是ANT编译,我一般把它们做成Eclipse
: 的Project然后用Debug里面设置运动配置,这样可以Debug,但是非常繁琐,必须读一遍
: build。XML看看都要做什么。
: 请问如果用ANT菜单里面设置运行或者External Tools,怎能能设置断点Debug呢

avatar
d*s
16

是啊,最近学习了一下,能看懂ANT的xml文件基本,不过我现在的程序Eclipse的Builder
也能应付,所以没用过。问题是很多Code拿到手是ANT编译,我一般把它们做成Eclipse

spec.
point
Well, a quick hint:
any Java program, you can add Java option
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000
then your eclipse can set "remote" debugger, connect to your localhost's
8000 port, and hook up to your Java program. If you have source code
tree in eclipse, you can attach the source code to the application,
set breakpoint and trace the running of the application

【在 d****s 的大作中提到】
:
: 是啊,最近学习了一下,能看懂ANT的xml文件基本,不过我现在的程序Eclipse的Builder
: 遍
: I've told you, read JPDA carefully. Eclipse is fully complaint with the spec.
: Although the spec is used for developing a debugger, you can understand how
: IDE tools like Eclipse and Netbeans hook up to an application, set break point
: and trace the workflow.
: to
: core

avatar
m*t
17

Here we go again - I don't know why you get so hyped up everytime.
Isn't that what I just said that I always created jars in Ant?

【在 d****s 的大作中提到】
:
: 是啊,最近学习了一下,能看懂ANT的xml文件基本,不过我现在的程序Eclipse的Builder
: 也能应付,所以没用过。问题是很多Code拿到手是ANT编译,我一般把它们做成Eclipse
: 一
: spec.
: point
: Well, a quick hint:
: any Java program, you can add Java option
: -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000
: then your eclipse can set "remote" debugger, connect to your localhost's

avatar
d*s
18

It doesn't matter. That is for sure you don't know what manifest is,
although you ALWAYS CREATED or create JARS IN ANT.

【在 m******t 的大作中提到】
:
: Here we go again - I don't know why you get so hyped up everytime.
: Isn't that what I just said that I always created jars in Ant?

avatar
m*t
19

Just what did I say to drive you to that conclusion?

【在 d****s 的大作中提到】
:
: It doesn't matter. That is for sure you don't know what manifest is,
: although you ALWAYS CREATED or create JARS IN ANT.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。