[jdom-interest] [Fwd: I got a prblom to buil jdom.jar] a jbuilder build issue

Deel, Sam Sam.Deel at sterling-fsg.com
Mon Jan 15 13:26:58 PST 2001


I was having the same problem as reported here.  The thing I noted was that
we were both using jdk1.x that came with jbuilder.  I don't know what the
difference is, but it worked fine after downloading a second copy of jdk
from sun to its own directory. We were using different versions of jbuilder
and different versions of jdk - and got same error.

The reason for the post is to help anyone going to the trouble to look at
the archives.

--sad

Faridul Islam wrote:
> 
> Hi Brett/
> 
> I am newbie in jdom.
> I download jdom_complete.tgz and jdom_src.tgz from your CVS repository
> http://cvs.jdom.org/cgi-bin/viewcvs.cgi/
> 
> I have JBuilder4 with jdk1.3
> I inlcuded ant.jar and xerecs.jar (whatever came with JDOM) in my
> classpath.
> After that, I got the following message when I tried to build jdom.jar
> from the command line ./build.sh
> 
> JDOM Build System
> -------------------
> 
> Building with classpath
>
/home/faridul/jbuilder4/jdk1.3/lib/tools.jar:./lib/xerces.jar:./lib/ant.jar:
/home/faridul/jbuilder4/jdk1.3/lib/dev.jar:
> 
> Starting Ant...
> 
> Buildfile: build.xml
> 
> init:
> ----------- JDOM 1.0beta5 [2000] ------------
> 
> prepare:
> 
> prepare-src:
> 
> collections:
>   [replace] Replacing java.util.Collection -->
> com.sun.java.util.collections.Collection
>   [replace] Replacing java.util.Map -->
> com.sun.java.util.collections.Map
>   [replace] Replacing java.util.HashMap -->
> com.sun.java.util.collections.HashMap
>   [replace] Replacing java.util.List -->
> com.sun.java.util.collections.List
>   [replace] Replacing java.util.LinkedList -->
> com.sun.java.util.collections.LinkedList
>   [replace] Replacing java.util.Set -->
> com.sun.java.util.collections.Set
>   [replace] Replacing java.util.HashSet -->
> com.sun.java.util.collections.HashSet
>   [replace] Replacing java.util.Iterator -->
> com.sun.java.util.collections.Iterator
>   [replace] Replacing java.util.* --> java.util.*;\u000aimport
> com.sun.java.util.collections.*
> 
> compile:
>     [javac] Compiling 30 source files to
> /home/faridul/jdom/build/classes
> 
> BUILD FAILED
> 
> java.lang.NoClassDefFoundError: sun/tools/javac/Main
>         at
> org.apache.tools.ant.taskdefs.Javac.doClassicCompile(Javac.java:527)
>         at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:295)
>         at org.apache.tools.ant.Target.execute(Target.java:132)
>         at org.apache.tools.ant.Project.runTarget(Project.java:717)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:448)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:422)
>         at org.apache.tools.ant.Main.runBuild(Main.java:279)
>         at org.apache.tools.ant.Main.main(Main.java:107)
> 
> Total time: 2 seconds
> [faridul at shiva jdom]$
> 
> Cloud you please tell me what does it mean and how can I get rid of this
> thing.
> 
> Moreover, I don't have the dev.jar file. What is this dev.jar?
> Is it deprecated from the SUN?
> Anyway, I will appreciate your help.
> 
> Faridul



More information about the jdom-interest mailing list