Berlin Brown said:
I guess try jview HelloWorld.class. W/O seeing the code, cant really
say. Are you using the package blah.blah.org.HelloWorld or straight
// no package deal
public class HelloWorld {
}
I dont know if WindowsXP has jview and how it works, somebody else
probably knows.
Windows XP has a file jview.exe which gives instructions when run on how to
use it, but I've pretty much given up on it. The code was:
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello world");
}
}
or for the applet:
public class HelloWorld extends java.applet.Applet {
public void init() {
java.awt.Label message = new java.awt.Label("Hello world");
this.add(message);
}
}
It doesn't get much more basic. "jview HelloWorld.class" yields "ERROR:
Could not execute HelloWorld.class : The system cannot find the file
specified." That's more or less to be expected as java classes don't go by
*.class. "jview HelloWorld" or "jview /cp . HelloWorld" or other variations
change the error to "ERROR: java.lang.NoClassDefFoundError". And as I
mentioned before, "jview /a HelloWorld.html" brings up an applet box with
this message in the status bar: "load: class HelloWorld not found". I've
tried several configurations of the <applet> tag, all of which work with
Sun's appletviewer and IE. I've tried it within a package and without a
package (both as an applet and an application). So like I said, I've given
up on it. Thanks for the help anyway.