db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajesh Kartha <kar...@Source-Zone.Org>
Subject Re: Build Errors (building Derby under Eclipse)
Date Thu, 13 Jan 2005 03:39:17 GMT
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 {
>
> [javac] ^
>
> [javac] 
> C:\Derby\derbyasp\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:\Derby\derbyasp\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:\Derby\derbyasp\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:\Derby\derbyasp\java\build\org\apache\derbyBuild\javadoc\PurposeTaglet.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\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:\Derby\derbyasp\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:\Derby\derbyasp\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:\Derby\derbyasp\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:\Derby\derbyasp\java\build\org\apache\derbyBuild\javadoc\UpgradeTaglet.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\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:\Derby\derbyasp\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:\Derby\derbyasp\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:\Derby\derbyasp\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:\Derby\derbyasp\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:\Derby\derbyasp\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:\Derby\derbyasp\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:\Derby\derbyasp\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:\Derby\derbyasp\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:\Derby\derbyasp\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:\Derby\derbyasp\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:\Derby\derbyasp\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:\Derby\derbyasp\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:\Derby\derbyasp\java\engine\org\apache\derby\loc\build.xml:104: 
> Exiting ant build...
>
> BUILD FAILED: 
> C:\Derby\derbyasp\java\engine\org\apache\derby\loc\build.xml:19: The 
> following error occurred while executing this line:
>
> C:\Derby\derbyasp\java\engine\org\apache\derby\loc\build.xml:104: 
> Exiting ant build...
>
> BUILD FAILED: C:\Derby\derbyasp\build.xml:258: The following error 
> occurred while executing this line:
>
> C:\Derby\derbyasp\java\engine\org\apache\derby\loc\build.xml:19: The 
> following error occurred while executing this line:
>
> C:\Derby\derbyasp\java\engine\org\apache\derby\loc\build.xml:104: 
> Exiting ant build...
>
> Total time: 1 minute 6 seconds
>
> ------------------------------------------------------------------------
> Do you Yahoo!?
> Yahoo! Mail 
> <http://us.rd.yahoo.com/mail_us/taglines/security/*http://promotions.yahoo.com/new_mail/static/protection.html>

> - You care about security. So do we. 



Mime
View raw message