Running "appletviewer.exe" from TextPad?

Using the Java SDK with TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Fierytycoon

Running "appletviewer.exe" from TextPad?

Post by Fierytycoon »

I am haveing trouble running appletviewer.exe from TextPad. I went to the configure/preferences menu and added appletviewer.exe from JDK v 1.3. However, every time I attempt to run the program after I compile it, I receive the following message:

I/O exception while reading: C:\WINDOWS\Desktop\java\C:\WINDOWS\Desktop\java\shooter.java (The system cannot find the path specified)

Tool completed with exit code 1

The appletviewer does not run. Anyone know why? Please post info here, thanks.
Andreas

Re: Running "appletviewer.exe" from TextPad?

Post by Andreas »

Without knowing the setup of your tool (Parameters and so on) I can only guess that you used

$FileDir\$File

Either use
$File
or
$FileDir\$FileName

If this is not the problem, please provide the complete tool settings so we don't have to guess.
Fierytycoon

Re: Running "appletviewer.exe" from TextPad?

Post by Fierytycoon »

That was not the problem. I originally had $FileDir\$File (Parameter/Initial Folder), but I changed it to $FileDir\$FileName, though it still did not work. The command was C:\jdk13\bin\appletviewer.exe, and the output command was ^\([^(]+\)(\([0-9]+\)):. What kind of tool settings do you need to know? Please post here or e-mail me, thanks.
Andreas

Re: Running "appletviewer.exe" from TextPad?

Post by Andreas »

Tool setup looks ok to me.
Do you still get the same error message?
Fierytycoon

Re: Running "appletviewer.exe" from TextPad?

Post by Fierytycoon »

It says:

Tool has been completed successfully

However, I do not get the appletviewer window which displays my applet. Any idea how to do this?
Andreas

Re: Running "appletviewer.exe" from TextPad?

Post by Andreas »

I think you should play with the options
- Run minimized
- Suppress output until completed
- Capture output
AndrShanukl@lycos.de

Re: Running "appletviewer.exe" from TextPad?

Post by AndrShanukl@lycos.de »

I tried to start *.java and *.class files with the appletviewer, but I only
succeded in starting (from the /jdk1.3/demo subdirectories) the
embedding *.html files, equipped with calling parameters for the *.class
file.

You could for example write or copy such a wrapping *.html with
the name App.html corresponding to your App.java and then
start this *.html file in the appletviewer. My version of appletviewer.exe
works with

Parameter: $(BaseName).html
Folder: $FileDir
Greg Allin

Re: Running "appletviewer.exe" from TextPad?

Post by Greg Allin »

I too am having the same problem and followed you up to this point. I no longer get the error message, but do not get any appletviewer. I tried playing around with the options with no luck. Any more ideas?

Thanks!
Paul

Re: Running "appletviewer.exe" from TextPad?

Post by Paul »

Hey, i was having problems with this too, however, i did figure out how to fix it. You need to go to the Configure menu, then to the Preferences menu. Once there, select the Tools option, it should be the last option there. Finally, click the "ADD" option and select the JDK Commands. It will automatically set up the Compiler and all of the appletviewer.exe files. So that should work, since it did for me, and i was having the same exact problems! Good Luck
Post Reply