Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Leon Hansen   on Apr 01 In Java Category.

  
Question Answered By: Barachias Levi   on Apr 01

The name of the file  must be same as the class  name. For Example
File name: Example.java
File contains the class: public  class Example {
Good luck
Anirban
Arno Vlastuin wrote:Hello,

I'm compiling  some java  files and with every file it says the following:

> ./bali/appsignalling/AIT.java:26: Public class bali.appsignalling.AIT must be
defined in a file called  "AIT.java".
> public class AIT
> ^

So it says the class defined  in file x must be defined in file x. The source  for
the above version  is:

> public class AIT
> {
> ...
> }

I think it's very weird and have no idea  what the problem  is. Does anyone know?

Share: 

 

This Question has 6 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Weird javac compile error Or get search suggestion and latest updates.


Tagged: