screen disappears and textpad closes

Using the Java SDK with TextPad

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

Post Reply
P Volakis

screen disappears and textpad closes

Post by P Volakis »

I have installed Java's latest version and textpad. I can only run the program 1 time.
The second time, textpad closes automatically. It use to work and suddenly it quit. The second problem I have is the Dos output screen only flashes. I made sure the configuration was correct.
FJones

Re: screen disappears and textpad closes

Post by FJones »

I am experiencing the same problem with textpad closing the second time a program is run. The program closes textpad the second time is is run. If anyone determines a fix for this problem, I'm interested.
Garrett

Re: screen disappears and textpad closes

Post by Garrett »

Check Configure-->Preferences-->Tools-->Compile Java:

Do you have "Close DOS window on exit" checked? If so, that's why the the window closes every error you get. Do you have "Capture ouput" checked? If so, then don't worry -- you won't be able to see the "Close DOS window on exit" option, since there would be no DOS window.

ALTERNATIVELY:

You should try to run java FROM the command line to shed some light on the problem. Check with your setting to make sure you're replicating TextPad's actions by pulling up the COMPILE JAVA comand's settings:

Configure-->Preferences-->Tools-->Compile Java

Then go to the directory specified under "Initial Directory," (usually $FileDir which is the directory that contains your .java file,) and type:

java.exe MyClass.java

This will give you the error without kiling off the command window.

Obviously, if you've specified different params in the "Parameters" field, your command will have to reflect that as well.
Post Reply