Sunitha C S
Posts: 20
Nickname: sunics
Registered: Dec, 2003
|
|
Re: compilation error
|
Posted: Dec 12, 2003 3:35 AM
|
|
hi,
the first error is because of the file being in another package. there u have to give the full package specifier to the file.
second is because that u have ur file name as JEncode.java and it is having a PUBLIC class with the name JEncoder. since java has a rule that the file name should be the name of the PUBLIC class, it cant have more than one public class. so put the second class either not PUBLIC or in another file.
third is a warning to show u that some method u used in the file is having a better alternative. so compile as javac -deprecation JEncode.java so that it will give u which method is having a better alternative. best of luck
sunitha
|
|