db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Irum Godil <softwarengineer2...@yahoo.com>
Subject Re: Build Errors (building Derby under Eclipse)
Date Sun, 16 Jan 2005 17:42:27 GMT
Hi,
 
I added the echo line below and it is 1.4 in my case too. I also added the tool.jar file in
the eclipse classpath; but it makes no difference. 
 
It seems to me that the Eclipse classpath file has no effect on build.xml or the ant building.
It is picking up its files from somewhere else completely. I tested by completely removing
some other jar files needed from within the Eclipse project and they dont seem to make any
difference on the Derby building. I would expect getting more errors, but there are no new
errors. 
 
I also tried copying the tools.jar file inside: $derbysource\tools\java file where the other
jar files exist, but no luck there too. I cannot seem to figure out where is Ant searching
for the tool.jar file when it runs from Eclipse and why is it not finding it. 
 
Is it possible for someone to actually try running Derby from eclipse and see if you also
run into the same problems? Or any other feedback will be really appreciated. 
 
Thanks.

Rajesh Kartha <kartha@Source-Zone.Org> wrote:
Hi,

The class that is missing in your case - com.sun.tools.doclets.Taglet, 
comes from the tools.jar, as Amit had mentioned.
The tools.jar that comes with jdk 13 does not have this class, only the 
jdk14 onwards has it.

Can you check what jdk are you using while compiling the classes under 
C:\Derby10\10.0\java\build directory ?

I use jdk14 and this is what I did to find the java used by ant.
.===========================================
Edit the build.xml under the java\build directory and add:

under the

to show the JVM being used. 

It showed 1.4 in my case
.===========================================
I think 1.4 is needed for building those classes, since they refer to 
the Taglet class in tools.jar

-Rajesh



Irum Godil wrote:

> Resending this message. Can someone please help me with this error. I 
> am really stuck; dont know why Eclipse gives this problem when Derby 
> builds just fine on the command line. Any help will be greatly 
> appreciated.
> 
> Thanks.
>
> */Irum Godil /* wrote:
>
> Hi Rajesh,
> Thanks for your input. I tried all the steps below; but I am still
> stuck. It keeps giving me the same error as before. I also updated
> the ant properties file that Eclipse uses to the file in
> "C:\Documents and Settings\Administrator". This should ensure it
> uses both jdk1.4 and jdk1.3.
> 
> I still see the error below. Do you want me to upload a zipped
> copy of my code? I will appreciate all help.
> 
> Thanks a lot.
> Sincerely,
> Irum Godil.
>
> compile:
>
> [javac] Compiling 10 source files to C:\Derby10\10.0\classes
>
> [javac]
> C:\Derby10\10.0\java\build\org\apache\derbyBuild\javadoc\DiskLayoutTaglet.java:23:
> package com.sun.tools.doclets does not exist
>
> [javac] import com.sun.tools.doclets.Taglet;
>
> [javac] ^
>
> [javac]
> C:\Derby10\10.0\java\build\org\apache\derbyBuild\javadoc\DiskLayoutTaglet.java:24:
> package com.sun.javadoc does not exist
>
> [javac] import com.sun.javadoc.*;
>
> [javac] ^
>
> [javac]
> C:\Derby10\10.0\java\build\org\apache\derbyBuild\javadoc\DiskLayoutTaglet.java:27:
> cannot resolve symbol
>
> [javac] symbol : class Taglet
>
> [javac] location: class org.apache.derbyBuild.javadoc.DiskLayoutTaglet
>
> [javac] public class DiskLayoutTaglet implements Taglet {
>
> [javac] ^
>
> [javac]
> C:\Derby10\10.0\java\build\org\apache\derbyBuild\javadoc\DiskLayoutTaglet.java:112:
> cannot resolve symbol
>
> [javac] symbol : class Tag
>
> [javac] location: class org.apache.derbyBuild.javadoc.DiskLayoutTaglet
>
> [javac] public String toString(Tag tag) {
>
> [javac] ^
>
> [javac]
> C:\Derby10\10.0\java\build\org\apache\derbyBuild\javadoc\DiskLayoutTaglet.java:122:
> cannot resolve symbol
>
> [javac] symbol : class Tag
>
> [javac] location: class org.apache.derbyBuild.javadoc.DiskLayoutTaglet
>
> [javac] public String toString(Tag[] tags) {
>
> [javac] ^
>
> [javac]
> C:\Derby10\10.0\java\build\org\apache\derbyBuild\javadoc\EndFormatTaglet.java:22:
> package com.sun.tools.doclets does not exist
>
> [javac] import com.sun.tools.doclets.Taglet;
>
> [javac] ^
>
> [javac]
> C:\Derby10\10.0\java\build\org\apache\derbyBuild\javadoc\EndFormatTaglet.java:23:
> package com.sun.javadoc does not exist
>
> [javac] import com.sun.javadoc.*;
>
> [javac] ^
>
> [javac]
> C:\Derby10\10.0\java\build\org\apache\derbyBuild\javadoc\EndFormatTaglet.java:28:
> cannot resolve symbol
>
> [javac] symbol : class Taglet
>
> [javac] location: class org.apache.derbyBuild.javadoc.EndFormatTaglet
>
> [javac] public class EndFormatTaglet implements Taglet {
>
> [javac] ^
>
> [javac]
> C:\Derby10\10.0\java\build\org\apache\derbyBuild\javadoc\EndFormatTaglet.java:113:
> cannot resolve symbol
>
> [javac] symbol : class Tag
>
> [javac] location: class org.apache.derbyBuild.javadoc.EndFormatTaglet
>
> [javac] public String toString(Tag tag) {
>
> [javac] ^
>
> [javac]
> C:\Derby10\10.0\java\build\org\apache\derbyBuild\javadoc\EndFormatTaglet.java:121:
> cannot resolve symbol
>
> [javac] symbol : class Tag
>
> [javac] location: class org.apache.derbyBuild.javadoc.EndFormatTaglet
>
> [javac] public String toString(Tag[] tags) {
>
> [javac] ^
>
> [javac]
> C:\Derby10\10.0\java\build\org\apache\derbyBuild\javadoc\FormatIdTaglet.java:22:
> package com.sun.tools.doclets does not exist
>
> [javac] import com.sun.tools.doclets.Taglet;
>
> [javac] ^
>
> [javac]
> C:\Derby10\10.0\java\build\org\apache\derbyBuild\javadoc\FormatIdTaglet.java:23:
> package com.sun.javadoc does not exist
>
> [javac] import com.sun.javadoc.*;
>
> [javac] ^
>
> [javac]
> C:\Derby10\10.0\java\build\org\apache\derbyBuild\javadoc\FormatIdTaglet.java:26:
> cannot resolve symbol
>
> [javac] symbol : class Taglet
>
> [javac] location: class org.apache.derbyBuild.javadoc.FormatIdTaglet
>
> [javac] public class FormatIdTaglet implements Taglet {
>
> [javac] ^
>
> [javac]
> C:\Derby10\10.0\java\build\org\apache\derbyBuild\javadoc\FormatIdTaglet.java:114:
> cannot resolve symbol
>
> [javac] symbol : class Tag
>
> [javac] location: class org.apache.derbyBuild.javadoc.FormatIdTaglet
>
> [javac] public String toString(Tag tag) {
>
> [javac] ^
>
> [javac]
> C:\Derby10\10.0\java\build\org\apache\derbyBuild\javadoc\FormatIdTaglet.java:123:
> cannot resolve symbol
>
> [javac] symbol : class Tag
>
> [javac] location: class org.apache.derbyBuild.javadoc.FormatIdTaglet
>
> [javac] public String toString(Tag[] tags) {
>
> [javac] ^
>
> [javac]
> C:\Derby10\10.0\java\build\org\apache\derbyBuild\javadoc\PurposeTaglet.java:22:
> package com.sun.tools.doclets does not exist
>
> [javac] import com.sun.tools.doclets.Taglet;
>
> [javac] ^
>
> [javac]
> C:\Derby10\10.0\java\build\org\apache\derbyBuild\javadoc\PurposeTaglet.java:23:
> package com.sun.javadoc does not exist
>
> [javac] import com.sun.javadoc.*;
>
> [javac] ^
>
> [javac]
> C:\Derby10\10.0\java\build\org\apache\derbyBuild\javadoc\PurposeTaglet.java:28:
> cannot resolve symbol
>
> [javac] symbol : class Taglet
>
> [javac] location: class org.apache.derbyBuild.javadoc.PurposeTaglet
>
> [javac] public class PurposeTaglet implements Taglet {
>
> [javac] ^
>
> [javac]
> C:\Derby10\10.0\java\build\org\apache\derbyBuild\javadoc\PurposeTaglet.java:115:
> cannot resolve symbol
>
> [javac] symbol : class Tag
>
> [javac] location: class org.apache.derbyBuild.javadoc.PurposeTaglet
>
> [javac] public String toString(Tag tag) {
>
> [javac] ^
>
> [javac]
> C:\Derby10\10.0\java\build\org\apache\derbyBuild\javadoc\PurposeTaglet.java:124:
> cannot resolve symbol
>
> [javac] symbol : class Tag
>
> [javac] location: class org.apache.derbyBuild.javadoc.PurposeTaglet
>
> [javac] public String toString(Tag[] tags) {
>
> [javac] ^
>
> [javac]
> C:\Derby10\10.0\java\build\org\apache\derbyBuild\javadoc\UpgradeTaglet.java:23:
> package com.sun.tools.doclets does not exist
>
> [javac] import com.sun.tools.doclets.Taglet;
>
> [javac] ^
>
> [javac]
> C:\Derby10\10.0\java\build\org\apache\derbyBuild\javadoc\UpgradeTaglet.java:24:
> package com.sun.javadoc does not exist
>
> [javac] import com.sun.javadoc.*;
>
> [javac] ^
>
> [javac]
> C:\Derby10\10.0\java\build\org\apache\derbyBuild\javadoc\UpgradeTaglet.java:27:
> cannot resolve symbol
>
> [javac] symbol : class Taglet
>
> [javac] location: class org.apache.derbyBuild.javadoc.UpgradeTaglet
>
> [javac] public class UpgradeTaglet implements Taglet {
>
> [javac] ^
>
> [javac]
> C:\Derby10\10.0\java\build\org\apache\derbyBuild\javadoc\UpgradeTaglet.java:113:
> cannot resolve symbol
>
> [javac] symbol : class Tag
>
> [javac] location: class org.apache.derbyBuild.javadoc.UpgradeTaglet
>
> [javac] public String toString(Tag tag) {
>
> [javac] ^
>
> [javac]
> C:\Derby10\10.0\java\build\org\apache\derbyBuild\javadoc\UpgradeTaglet.java:122:
> cannot resolve symbol
>
> [javac] symbol : class Tag
>
> [javac] location: class org.apache.derbyBuild.javadoc.UpgradeTaglet
>
> [javac] public String toString(Tag[] tags) {
>
> [javac] ^
>
> [javac]
> C:\Derby10\10.0\java\build\org\apache\derbyBuild\javadoc\DiskLayoutTaglet.java:100:
> cannot resolve symbol
>
> [javac] symbol : class Taglet
>
> [javac] location: class org.apache.derbyBuild.javadoc.DiskLayoutTaglet
>
> [javac] Taglet t = (Taglet) tagletMap.get(tag.getName());
>
> [javac] ^
>
> [javac]
> C:\Derby10\10.0\java\build\org\apache\derbyBuild\javadoc\DiskLayoutTaglet.java:100:
> cannot resolve symbol
>
> [javac] symbol : class Taglet
>
> [javac] location: class org.apache.derbyBuild.javadoc.DiskLayoutTaglet
>
> [javac] Taglet t = (Taglet) tagletMap.get(tag.getName());
>
> [javac] ^
>
> [javac]
> C:\Derby10\10.0\java\build\org\apache\derbyBuild\javadoc\EndFormatTaglet.java:102:
> cannot resolve symbol
>
> [javac] symbol : class Taglet
>
> [javac] location: class org.apache.derbyBuild.javadoc.EndFormatTaglet
>
> [javac] Taglet t = (Taglet) tagletMap.get(tag.getName());
>
> [javac] ^
>
> [javac]
> C:\Derby10\10.0\java\build\org\apache\derbyBuild\javadoc\EndFormatTaglet.java:102:
> cannot resolve symbol
>
> [javac] symbol : class Taglet
>
> [javac] location: class org.apache.derbyBuild.javadoc.EndFormatTaglet
>
> [javac] Taglet t = (Taglet) tagletMap.get(tag.getName());
>
> [javac] ^
>
> [javac]
> C:\Derby10\10.0\java\build\org\apache\derbyBuild\javadoc\FormatIdTaglet.java:102:
> cannot resolve symbol
>
> [javac] symbol : class Taglet
>
> [javac] location: class org.apache.derbyBuild.javadoc.FormatIdTaglet
>
> [javac] Taglet t = (Taglet) tagletMap.get(tag.getName());
>
> [javac] ^
>
> [javac]
> C:\Derby10\10.0\java\build\org\apache\derbyBuild\javadoc\FormatIdTaglet.java:102:
> cannot resolve symbol
>
> [javac] symbol : class Taglet
>
> [javac] location: class org.apache.derbyBuild.javadoc.FormatIdTaglet
>
> [javac] Taglet t = (Taglet) tagletMap.get(tag.getName());
>
> [javac] ^
>
> [javac]
> C:\Derby10\10.0\java\build\org\apache\derbyBuild\javadoc\PurposeTaglet.java:103:
> cannot resolve symbol
>
> [javac] symbol : class Taglet
>
> [javac] location: class org.apache.derbyBuild.javadoc.PurposeTaglet
>
> [javac] Taglet t = (Taglet) tagletMap.get(tag.getName());
>
> [javac] ^
>
> [javac]
> C:\Derby10\10.0\java\build\org\apache\derbyBuild\javadoc\PurposeTaglet.java:103:
> cannot resolve symbol
>
> [javac] symbol : class Taglet
>
> [javac] location: class org.apache.derbyBuild.javadoc.PurposeTaglet
>
> [javac] Taglet t = (Taglet) tagletMap.get(tag.getName());
>
> [javac] ^
>
> [javac]
> C:\Derby10\10.0\java\build\org\apache\derbyBuild\javadoc\UpgradeTaglet.java:101:
> cannot resolve symbol
>
> [javac] symbol : class Taglet
>
> [javac] location: class org.apache.derbyBuild.javadoc.UpgradeTaglet
>
> [javac] Taglet t = (Taglet) tagletMap.get(tag.getName());
>
> [javac] ^
>
> [javac]
> C:\Derby10\10.0\java\build\org\apache\derbyBuild\javadoc\UpgradeTaglet.java:101:
> cannot resolve symbol
>
> [javac] symbol : class Taglet
>
> [javac] location: class org.apache.derbyBuild.javadoc.UpgradeTaglet
>
> [javac] Taglet t = (Taglet) tagletMap.get(tag.getName());
>
> [javac] ^
>
> [javac] 35 errors
>
> [javac] 3 warnings
>
> [javac] Compile failed; see the compiler error output for details.
>
> build:
>
> build:
>
> verifysplit:
>
> split:
>
> splitprops:
>
> verifysplit:
>
> noSplit:
>
> [echo] ***** SplitMessages not available *****
>
> [echo] ***** Run "all" target first *****
>
> BUILD FAILED: C:\Derby10\10.0\build.xml:258: The following error
> occurred while executing this line:
>
> C:\Derby10\10.0\java\engine\org\apache\derby\loc\build.xml:19: The
> following error occurred while executing this line:
>
> C:\Derby10\10.0\java\engine\org\apache\derby\loc\build.xml:104:
> Exiting ant build...
>
> Total time: 5 seconds
>
>
> */Rajesh Kartha /* wrote:
>
> Hi,
>
> Derby uses jdk14 and jdk13 for its builds. So using the
> default Eclipse
> building (which uses only one jdk ) may not a good idea.
>
> Hence please make sure you un-check the Preferences for auto
> building.
> Window - Preferences - Workbench - Build automatically
> Window - Preferences - Run/Debug - Launching - Build (if
> required)
> before launching
>
> If you setup everything as per the Derby build doc (How to
> build Derby
> section at
> http://incubator.apache.org/derby/derby_downloads.html )
> and if you are able to build on the command line, the same can
> be done
> using Eclipse.
>
> Please make sure that Eclipse recognizes the 'classes'
> directory as the
> output folder.
>
> Right click on the build.xml (most external) - Run - the first
> 'Ant
> Build' uses the default "buildsource"
>
> the second 'Ant Build' gives you the choices of all the ant target
>
> Here is a sample setup:
>
> My Derby 10.0 codeline is under C:\derby10_0\10.0 i.e
>
> I did
>
> svn co
> http://svn.apache.org/repos/asf/incubator/derby/code/branches/10.0/
>
> in the dir C:\derby10_0.
>
> The Eclipse project workspace is pointed to C:\derby10_0, if
> you try
> creating a project with the same name '10.0' as above
> Eclipse identifies the all the required subdirectories
> including the
> sources and the classes (will take some time) since the
> checked out Derby 10.0 has same name.
>
> Also once Eclipse knows the output folder, Running/Debugging
> Derby will
> not be an issue.
>
> Hope this helps. Please let the list know how it goes or if
> you come
> across any issues.
>
> Regards,
> -Rajesh
>
>
> Irum Godil wrote:
>
> > Hi,
> >
> > I have set up Derby source as mentioned and have been
> successful in
> > building it from the command prompt.
> >
> > However, I would like to make changes to Derby and for that
> I want it
> > to run in Eclipse. I set up a project in Eclipse and have
> configured
> > the build path to use ANT. The problem is that everything
> from the
> > same directory builds perfectly on command line; but when I
> am in
> > Eclipse and try to build the project I keep getting the
> following
> > errors. Does anyone have any clue why is this happening. I
> will really
> > appreciate any help.
> >
> > Thanks.
> >
> >
> > compile:
> >
> > [javac] Compiling 10 source files to C:\Derby\derbyasp\classes
> >
> > [javac]
> >
> C:\Derby\derbyasp\java\build\org\apache\derbyBuild\javadoc\DiskLayoutTaglet.java:23:
>
> > package com.sun.tools.doclets does not exist
> >
> > [javac] import com.sun.tools.doclets.Taglet;
> >
> > [javac] ^
> >
> > [javac]
> >
> C:\Derby\derbyasp\java\build\org\apache\derbyBuild\javadoc\DiskLayoutTaglet.java:24:
>
> > package com.sun.javadoc does not exist
> >
> > [javac] import com.sun.javadoc.*;
> >
> > [javac] ^
> >
> > [javac]
> >
> C:\Derby\derbyasp\java\build\org\apache\derbyBuild\javadoc\DiskLayoutTaglet.java:27:
>
> > cannot resolve symbol
> >
> > [javac] symbol : class Taglet
> >
> > [javac] location: class
> org.apache.derbyBuild.javadoc.DiskLayoutTaglet
> >
> > [javac] public class DiskLayoutTaglet implements Taglet {
> >
> > [javac] ^
> >
> > [javac]
> >
> C:\Derby\derbyasp\java\build\org\apache\derbyBuild\javadoc\DiskLayoutTaglet.java:112:
>
> > cannot resolve symbol
> >
> > [javac] symbol : class Tag
> >
> > [javac] location: class
> org.apache.derbyBuild.javadoc.DiskLayoutTaglet
> >
> > [javac] public String toString(Tag tag) {
> >
> > [javac] ^
> >
> > [javac]
> >
> C:\Derby\derbyasp\java\build\org\apache\derbyBuild\javadoc\DiskLayoutTaglet.java:122:
>
> > cannot resolve symbol
> >
> > [javac] symbol : class Tag
> >
> > [javac] location: class
> org.apache.derbyBuild.javadoc.DiskLayoutTaglet
> >
> > [javac] public String toString(Tag[] tags) {
> >
> > [javac] ^
> >
> > [javac]
> >
> C:\Derby\derbyasp\java\build\org\apache\derbyBuild\javadoc\EndFormatTaglet.java:22:
>
> > package com.sun.tools.doclets does not exist
> >
> > [javac] import com.sun.tools.doclets.Taglet;
> >
> > [javac] ^
> >
> > [javac]
> >
> C:\Derby\derbyasp\java\build\org\apache\derbyBuild\javadoc\EndFormatTaglet.java:23:
>
> > package com.sun.javadoc does not exist
> >
> > [javac] import com.sun.javadoc.*;
> >
> > [javac] ^
> >
> > [javac]
> >
> C:\Derby\derbyasp\java\build\org\apache\derbyBuild\javadoc\EndFormatTaglet.java:28:
>
> > cannot resolve symbol
> >
> > [javac] symbol : class Taglet
> >
> > [javac] location: class
> org.apache.derbyBuild.javadoc.EndFormatTaglet
> >
> > [javac] public class EndFormatTaglet implements Taglet {
> >
> > [javac] ^
> >
> > [javac]
> >
> C:\Derby\derbyasp\java\build\org\apache\derbyBuild\javadoc\EndFormatTaglet.java:113:
>
> > cannot resolve symbol
> >
> > [javac] symbol : class Tag
> >
> > [javac] location: class
> org.apache.derbyBuild.javadoc.EndFormatTaglet
> >
> > [javac] public String toString(Tag tag) {
> >
> > [javac] ^
> >
> > [javac]
> >
> C:\Derby\derbyasp\java\build\org\apache\derbyBuild\javadoc\EndFormatTaglet.java:121:
>
> > cannot resolve symbol
> >
> > [javac] symbol : class Tag
> >
> > [javac] location: class
> org.apache.derbyBuild.javadoc.EndFormatTaglet
> >
> > [javac] public String toString(Tag[] tags) {
> >
> > [javac] ^
> >
> > [javac]
> >
> C:\Derby\derbyasp\java\build\org\apache\derbyBuild\javadoc\FormatIdTaglet.java:22:
>
> > package com.sun.tools.doclets does not exist
> >
> > [javac] import com.sun.tools.doclets.Taglet;
> >
> > [javac] ^
> >
> > [javac]
> >
> C:\Derby\derbyasp\java\build\org\apache\derbyBuild\javadoc\FormatIdTaglet.java:23:
>
> > package com.sun.javadoc does not exist
> >
> > [javac] import com.sun.javadoc.*;
> >
> > [javac] ^
> >
> > [javac]
> >
> C:\Derby\derbyasp\java\build\org\apache\derbyBuild\javadoc\FormatIdTaglet.java:26:
>
> > cannot resolve symbol
> >
> > [javac] symbol : class Taglet
> >
> > [javac] location: class
> org.apache.derbyBuild.javadoc.FormatIdTaglet
> >
> > [javac] public class FormatIdTaglet implements Taglet {

=== message truncated ===
__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
Mime
View raw message