Appletviewer
Hi!! im desperate to know this. I made a java program that runs javac and java using Runtime class. I run the javac and java commands as follows:
Runtime.getRuntime().exec("javac c:\\java\\eg\\myfile.java");
Runtime.getRuntime().exec("java -classpath c:\\java\\eg\\ myfile");
Suppose the java file is an applet, appletviewer couldn't be run with the following line.
Runtime.getRuntime().exec("appletviewer c:\\java\\eg\\abc.java").
I get the error as
I/O exceptionwhile reading: C:\C:\java\eg\abc.java (The filename, directory name, or volume label syntax label is incorrect
On the other hand, if i give
Runtime.getRuntime().exec("appletviewer java\\eg\\abc.java").
the applet runs without error. What is the cause of the error? Plz help and thanks in advance.
[957 byte] By [
Aswin] at [2007-9-30 21:13:59]

Which means, do i have to create a temporary html file with the applet and run that? Plz help
But usually, at the command prompt, the following command works.
appletviewer abc.java
In abc.java there is a comment line like
//<applet code="abc.class" width=500 height=300></applet>
Aswin at 2007-7-7 2:46:36 >

From the Appletviewer documentation:
SYNOPSIS
appletviewer [ options ] urls ...
DESCRIPTION
The appletviewer command connects to the documents or resources designated by urls and displays each applet referenced by the documents in its own window. Note: if the documents referred to by urls do not reference any applets with the OBJECT, EMBED, or APPLET tag, then appletviewer does nothing. For details on the HTML tags that appletviewer supports, see AppletViewer Tags.