This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Getting Error Help........ Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Getting Error Help........" Watch "Getting Error Help........" New topic
Author

Getting Error Help........

Aashish Dole
Greenhorn

Joined: Oct 12, 2008
Posts: 11
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


Bharadwaj Adepu
Ranch Hand

Joined: Dec 30, 2007
Posts: 99
Your Class name might not be same as the source file name. The two names must be same, please check that.


SCJP 1.5
Aashish Dole
Greenhorn

Joined: Oct 12, 2008
Posts: 11
Thanks got it...

from next time i will keep in mind....
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32659
    
    4
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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Getting Error Help........
 
Similar Threads
Not able to display starting jsp page index.jsp
Axis2 - Transfer document using MTOM
Build Failed
knb page# 793 doubt.
Problem With Algorithm Involving Recursion and String Manipulation