Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java duplicate class error

801443Feb 11 2010 — edited Feb 23 2010
I have a package schemaLearner and when i update the package from the CVS it gives me the following error when trying to build using ant.
build:
    [javac] c:\pact-cvs-tree\AuthoringTools\java\build.xml:422: warning: 'includ
eantruntime' was not set, defaulting to build.sysclasspath=last; set to false fo
r repeatable builds
    [javac] Compiling 1513 source files to c:\pact-cvs-tree\AuthoringTools\java\
classes
    [javac] c:\pact-cvs-tree\AuthoringTools\java\source\schemaLearner\CostTraceG
enerator.java:25: duplicate class: schemaLearner.CostTraceGenerator
    [javac] public class CostTraceGenerator {
    [javac]        ^
    [javac] c:\pact-cvs-tree\AuthoringTools\java\source\schemaLearner\Feasibilit
yTrace.java:13: duplicate class: schemaLearner.FeasibilityTrace
    [javac] public class FeasibilityTrace {
    [javac]        ^
    [javac] c:\pact-cvs-tree\AuthoringTools\java\source\schemaLearner\Feasibilit
yTraceGenerator.java:21: duplicate class: schemaLearner.FeasibilityTraceGenerato
r
    [javac] public class FeasibilityTraceGenerator {
    [javac]        ^
    [javac] c:\pact-cvs-tree\AuthoringTools\java\source\schemaLearner\MyMath.jav
a:153: duplicate class: schemaLearner.MyMath
    [javac] public class MyMath {
    [javac]        ^
    [javac] c:\pact-cvs-tree\AuthoringTools\java\source\schemaLearner\NormalTrac
eDistributor.java:11: duplicate class: schemaLearner.NormalTraceDistributor
    [javac] public class NormalTraceDistributor {
    [javac]        ^
    [javac] c:\pact-cvs-tree\AuthoringTools\java\source\schemaLearner\ParseNode.
java:13: duplicate class: schemaLearner.ParseNode
    [javac] public class ParseNode {
    [javac]        ^
    [javac] c:\pact-cvs-tree\AuthoringTools\java\source\schemaLearner\Pattern.ja
va:3: duplicate class: schemaLearner.Pattern
    [javac] public class Pattern {
    [javac]        ^
    [javac] c:\pact-cvs-tree\AuthoringTools\java\source\schemaLearner\Result.jav
But i see only one class file in the package. So why this conflict and how do i need to resolve it?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 23 2010
Added on Feb 11 2010
3 comments
871 views