Originally Posted by
tien1504
Hi rman27bn,
With error: "Could not find the main class", I think that your "hello" class don't have a main function.
Such as:
class hello
{
//----------------
public static void main(String args[])
{
}
//----------------
}
Another comment to you that if you want to use command line to compile java program, you should make a file
.bat as:
set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_16\bin
REM call when compile ----
%JAVE_HOME%\java.exe filename
You can learn batch script language to more.
Good luck,
Tien
He has already set his PATH environment variable, so he has no need to fiddle around with JAVA_HOME etc etc.
I'd guess that what you said first i correct, of course the class must also be public,
@OP
perhaps share some code with us? so we can see what you have?
Chris