-
compile error
Hi this is my first official post in this forum.
I'm using java jdk-1.6 on gentoo linux
I got this two files:
Code:
/*************************************************************
Name:TwoClasses.java
Date:1/23/09
Author:angryredantz
**************************************************************/
public class TwoClasses extends Subclass
{
public static void main(String[] args)
{
System.out.println("From the main class");
sub();
}
}
Code:
/*************************************************************
Name:SubClass.class
Date:1/23/09
Author:angryredantz
**************************************************************/
class Subclass
{
public static void sub()
{
System.out.println("From the sub class");
}
}
Everytime a try to compile the code I get this error.
Code:
TwoClasses.java:6: cannot access Subclass
bad class file: ./Subclass.class
illegal start of class file
Please remove or make sure it appears in the correct subdirectory of the classpath.
public class TwoClasses extends Subclass
I beleive is that I haven't set correctly the classpath but don't know how, need help please.
-
I pretty much figure out the problem
change Subclass.class to Subclass.java solve it
my bad