由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - Dos and Don'ts about classpath
相关主题
Java fun文件是要放在同目录下的吗?
[转载] 有人在用NetBeans IDE么?新手求助applet问题
现在哪种java开发环境比较流行呀?How to import a class?
netbean and eclipseRe: Is there a free IDE with code autocompletion?
Java 6和Java 8的问题an IDE worth a try
eclipse 气死我了!How about Swing?
JAVA IDE ?how to run java program in dos?
Re: a NoClassDefFoundError, help!调查:最好的Java IDE
相关话题的讨论汇总
话题: classpath话题: dos话题: don话题: java话题: ide
进入Java版参与讨论
1 (共1页)
m******t
发帖数: 2416
1
I have seen too many people, including myself, falling for
classpath issues while developing in Java. So here's something
from my experience to help newbies out:
1. Always try to find a Win2K/XP or Linux for your development
work. The DOS prompt of Win98 is simply insufficient for serious
Java development.
2. Grow yourself some good habit. Before just shoveling a jar
onto a classpath, always ask yourself, "does it belong here?"
I have seen a lot of developers hacking their classpath just
for
xt
发帖数: 17532
2

Agree. It Win98 sucks. I use NT though. :)
I add one thing: make sure you have only *one* copy of everything
in your classpath. You don't want to end up with multiple copies
which could give you headache on the LinkageError or version conflicts.
In DOS mode, use setlocal ... endlocal to make sure that your classpath
settings are strictly local. Also you could use -classpath option

【在 m******t 的大作中提到】
: I have seen too many people, including myself, falling for
: classpath issues while developing in Java. So here's something
: from my experience to help newbies out:
: 1. Always try to find a Win2K/XP or Linux for your development
: work. The DOS prompt of Win98 is simply insufficient for serious
: Java development.
: 2. Grow yourself some good habit. Before just shoveling a jar
: onto a classpath, always ask yourself, "does it belong here?"
: I have seen a lot of developers hacking their classpath just
: for

F****n
发帖数: 3271
3
Use an IDE you will solve all these problems.

【在 m******t 的大作中提到】
: I have seen too many people, including myself, falling for
: classpath issues while developing in Java. So here's something
: from my experience to help newbies out:
: 1. Always try to find a Win2K/XP or Linux for your development
: work. The DOS prompt of Win98 is simply insufficient for serious
: Java development.
: 2. Grow yourself some good habit. Before just shoveling a jar
: onto a classpath, always ask yourself, "does it belong here?"
: I have seen a lot of developers hacking their classpath just
: for

m******t
发帖数: 2416
4

Actually not. One thing not so good about IDE is that it does
too many things for you, one of them being forming the classpath
for you automatically. For example, NetBeans (at least as of 3.3)
forms both compile and run-time classpaths from all the filesystems
you mount, regardless if it's src, or lib, or whatever other folder
you just mounted for convenience. On top of that, it has its own
running classpath included automatically, too.
Fortunately, new generations of IDE's have been adding

【在 F****n 的大作中提到】
: Use an IDE you will solve all these problems.
1 (共1页)
进入Java版参与讨论
相关主题
调查:最好的Java IDEJava 6和Java 8的问题
请问一个最初级问题eclipse 气死我了!
没法用Re: netbeans 4.0 is very goodJAVA IDE ?
Java IDE 选择?Re: a NoClassDefFoundError, help!
Java fun文件是要放在同目录下的吗?
[转载] 有人在用NetBeans IDE么?新手求助applet问题
现在哪种java开发环境比较流行呀?How to import a class?
netbean and eclipseRe: Is there a free IDE with code autocompletion?
相关话题的讨论汇总
话题: classpath话题: dos话题: don话题: java话题: ide