• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Getting Error Help........  RSS feed

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have recently started Java Programming with Head First Java. Now when I am compile below coding the code are not compile...
It is showing message..

//Code:

public static void main(String[] args) {
int x = 5;
while ( x > 1) {
x = x -1;
if (x < 3) {
System.out.println("Small x");
}
}
}

After Compile get this Message:

javac: file not found: ExlbSmall.java
Usage: javac <options> <source files>
use -help for a list of possible options

Please guide me what's going on here in my code?

Thanks in advance


 
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your Class name might not be same as the source file name. The two names must be same, please check that.
 
Aashish Dole
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks got it...

from next time i will keep in mind....
 
Marshal
Posts: 60157
188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please make sure to give full details. The code you showed looks all right, but it doesn't appear to use the ExlbSmall file anywhere in what you quoted.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!