You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by James Bucanek <su...@gloaming.com> on 2003/11/11 18:18:33 UTC

Taking the plunge - Eclipse + Ant = James

Greetings,

I'm about the take the plunge and see if I build James from source, then see if I'm programmer enough to contribute.  ;)

I'm taking this opportunity to learn/evaluate Eclipse at the same time.  Is anyone else here using Eclipse?  If so, is there anything I need to know about building James in Eclipse or accessing James' CVS repository via Eclipse?  (Ant scripts would be nice!)

If no one is using Eclipse, or has some reason why I shouldn't be using it, I'd like to know that too.

Thanks,

James

______________________________________________________
James Bucanek       <ma...@gloaming.com>

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Re: Taking the plunge - Eclipse + Ant = James

Posted by Edward Flick <ed...@cdf-imaging.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey James,
I'm not an active committer to this project, but I would highly
recommend Eclipse.  It really simplifies coding, and browsing through
code (well it simplifies a lot of other things too, but thats probably
all you are concerned with).  Let me help you in advance though, don't
get discouraged.  Eclipse is very logical in its usage, but it is a
little hard to discover these features.  But if you stick with it, you
will like it, I guarantee it.  Also, read up on it, while you are using
it, and remember right clicking is your friend.  It helps.

Edward

James Bucanek wrote:

| Greetings,
|
| I'm about the take the plunge and see if I build James from source,
then see if I'm programmer enough to contribute.  ;)
|
| I'm taking this opportunity to learn/evaluate Eclipse at the same
time.  Is anyone else here using Eclipse?  If so, is there anything I
need to know about building James in Eclipse or accessing James' CVS
repository via Eclipse?  (Ant scripts would be nice!)
|
| If no one is using Eclipse, or has some reason why I shouldn't be
using it, I'd like to know that too.
|
| Thanks,
|
| James
|
| ______________________________________________________
| James Bucanek       <ma...@gloaming.com>
|
| ---------------------------------------------------------------------
| To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
| For additional commands, e-mail: server-dev-help@james.apache.org
|
|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (MingW32)

iD8DBQE/sSHHvWeCZ4RLdzYRAlr1AJ4+5Mb3843HJu6NLw+38RTpIiBOIwCcDjhp
tiIi4l3DEUnaVHDeQeRCxDs=
=4zb8
-----END PGP SIGNATURE-----


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Taking the plunge - Some success!

Posted by James Bucanek <su...@gloaming.com>.
Mostly FYI, with one question at the end.

As I mentioned yesterday, I decided to play around with Eclipse and James.  I seem to have been somewhat successful (after a few false starts, which we'll ignore).

More or less, I did the following:

(a) Created a CVS Repository Explorer for Jakarta at cvs.apache.org/home/cvspublic, using "anoncvs" for the user id and password.

(b) Checked out the HEAD > james-server directory into a new Java project named JamesCuttingEdge.

(c) Changed the source directory to ./src/java.  Accepted the default build directory of ./bin.

(d) Added (as External JARs) all of the libraries I could find in ./lib, ./lib/candidates, and ./phoenix-bin/lib.

(e) Discovered that the Java Mail, and Java Activation Framework are option downloads.  Downloaded the jars for Java Mail 1.3.1 <http://java.sun.com/products/javamail/>, and JAF 1.0.2 <http://java.sun.com/products/javabeans/glasgow/jaf.html>.  Added those as external JARs.

(f) Compiled, but got an error

    Class must implement the inherited abstract method Connection.createStatement(int, int, int)
    PoolConnEntry.java - JamesCuttingEdge/src/java/org/apache/james/util/mordred - line 76

Realized that I was compiling against the Java 1.4.1 library.  Changed my classpath to compile against the 1.3.1 library.  This lead me to discover that the javax.sql package is NOT part of 1.3.1.  Downloaded the JDBC 2.0 "Optional" package <http://java.sun.com/products/jdbc/download.html#spec> and added the JAR as an external library.

-- At this point, everything compiled!  I honestly thought it would be a lot harder to get this far.

(g) Decided to push my luck and run the 'main' build.xml target.  Quickly discovered that the Ant build expects the Java Mail and JAF libraries to be in the project's ./lib directory.  Moved them both there, and renamed mail.jar to mail-1.3.1.jar.

-- And this is the point where I'm stuck.  I'm gettting compile errors from Ant, starting with this one:

compile-main:
        [echo] Compiling James Java sources
       [javac] Compiling 197 source files to /Applications/eclipse/workspace/JamesCuttingEdge/build/classes
       [javac] /Applications/eclipse/workspace/JamesCuttingEdge/src/java/org/apache/james/util/SqlResources.java:68: cannot resolve symbol
       [javac] symbol  : class DocumentBuilder  
       [javac] location: package parsers
       [javac] import javax.xml.parsers.DocumentBuilder;
       [javac]                          ^

While I know that 1.3.1 doesn't include the javax.xml package, it appears that the James project includes phoenix-bin/lib/xercesImpl-2.0.2.jar, which I assume is the Xerces XML library.  Any idea what I'm missing at this point?

I also suppose that Ant might be using the wrong javac or core libraries.  I'll try to investigate that possibility a little later today.

James

______________________________________________________
James Bucanek       <ma...@gloaming.com>

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org