BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

compiler problem

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Compiler
View previous topic :: View next topic  
Author Message
Pat Finley
Guest





PostPosted: Sat Mar 26, 2005 4:47 pm    Post subject: compiler problem Reply with quote



I'm trying to compile a group of about 180 java programs. This are
independent. The problem I have is that the complier cannot find some of
the include modules nor can it find modules in the same folder. Any ideas?


Back to top
John McGrath [TeamB]
Guest





PostPosted: Sun Mar 27, 2005 8:46 pm    Post subject: Re: compiler problem Reply with quote



On 3/26/2005 at 11:47:13 AM, Pat Finley wrote:

Quote:
I'm trying to compile a group of about 180 java programs. This are
independent. The problem I have is that the complier cannot find some
of the include modules nor can it find modules in the same folder. Any
ideas?

It would be a good idea to explain what you have tried doing and precisely
what is going wrong (e.g. what error messages are you getting). Without
knowing that, it will be very difficult for anyone to figure out what is
wrong. And since Java does not have anything known as a "module", please
explain what you mean by that.

--
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html

Back to top
Pat Finley
Guest





PostPosted: Thu Mar 31, 2005 12:46 am    Post subject: Re: compiler problem Reply with quote



I have solved most of the problems. I wasusing the term module to be the
the include files. Most of the problems were due to not setting up the
libraries properly.

I have three errors, all due to the same problem. The library that is used
is:
cewolf.jar]/de/laures/cewolf

This is a required library for the project.

The imports are for both files are:

import de.laures.cewolf.CewolfDatasetProducer;
import de.laures.cewold.DatasetProduceException;

The first file
public class PieChartDatasetProducer extends CewolfDatasetProducer

The error for this is "cannot access DatasetProduceException"


The second file :

public class CategoryDatasetProducer extends CewolfDatasetProducer

the error occurs when method defined

public object produceDataset() throws DatasetProduceException

the two errors are identical:
"cannot override produceDataset; overriden method does not throw
de.laures.cewolf.DatasetProduceException"

The class file CewolfDatasetProducer.class shows up in the package to which
both files belong, but the file DatasetProduceException.class does not.


"John McGrath [TeamB]" <ng-b (AT) JPMcGrath (DOT) net> wrote

Quote:
On 3/26/2005 at 11:47:13 AM, Pat Finley wrote:

I'm trying to compile a group of about 180 java programs. This are
independent. The problem I have is that the complier cannot find some
of the include modules nor can it find modules in the same folder. Any
ideas?

It would be a good idea to explain what you have tried doing and precisely
what is going wrong (e.g. what error messages are you getting). Without
knowing that, it will be very difficult for anyone to figure out what is
wrong. And since Java does not have anything known as a "module", please
explain what you mean by that.

--
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html



Back to top
John McGrath [TeamB]
Guest





PostPosted: Thu Mar 31, 2005 6:41 am    Post subject: Re: compiler problem Reply with quote

On 3/30/2005 at 7:46:23 PM, Pat Finley wrote:

Quote:
I have solved most of the problems. I wasusing the term module to be
the the include files.

There is no way of including files in Java. Perhaps you are thinking of
"importing". The things that you import are called "classes".

Quote:
The first file
public class PieChartDatasetProducer extends CewolfDatasetProducer

The error for this is "cannot access DatasetProduceException"

I am not sure what would be giving you this error. It may be a problem
with the JAR file. How was the JAR file created?

In any case, it would help if you would show the complete error message,
along with the actual code that the error message points to.

Quote:
the two errors are identical:
"cannot override produceDataset; overriden method does not throw
de.laures.cewolf.DatasetProduceException"

This indicates that you are overriding a method, and that the overriding
method throws an exception that the overridden method does not. That is
not valid in Java.

--
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Compiler All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.