bad class file with jsdk 1.4.0
Hi Everybody,
I have the same problem. When I try to compile HelloAgent.java, following error occurs:
C:\kaariboga\source>javac org/kaariboga/agents/HelloAgent.java
org/kaariboga/agents/HelloAgent.java:41: cannot access org.kaariboga.agents.Histo
bad class file: .\org\kaariboga\agents\Histo.class
class file contains wrong class: Histo
Please remove or make sure it appears in the correct subdirectory of the classpath.
Histo myApplet = new Histo();
^
1 error
HelloAgent code:
...
...
public void run(){
Histo myApplet = new Histo();
Frame myFrame = new Frame("Work");
myApplet.init();
myApplet.start();
myFrame.setSize(200,200);
myFrame.setLocation(100,100);
myFrame.add(myApplet, BorderLayout.CENTER);
myFrame.setVisible(true);
if (trips > 0) fireDestroyRequest();
}
...
...
Histo.java is compiled properly and Histo.class is generated.
I put HelloAglet.java and Histo.java in the same directory and used following compile command for these two java files:
javac org/kaariboga/agents/HelloAgent.java
RESULT:
C:\kaariboga\source>javac org/kaariboga/agents/HelloAgent.java
org/kaariboga/agents/HelloAgent.java:41: cannot access org.kaariboga.agents.Histo
bad class file: .\org\kaariboga\agents\Histo.class
class file contains wrong class: Histo
Please remove or make sure it appears in the correct subdirectory of the classpath.
Histo myApplet = new Histo();
^
1 error
javac org/kaariboga/agents/Histo.java (this is ok)
Other java files in aglets directory can be compiled correctly.But this file is not ok! Please help me as soon as possible.
Thank u very much.
By the way: I am using JSDK 1.4.0 & Win XP.

