Why can't my saved file be found when I try to compile?

Using the Java SDK with TextPad

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

Post Reply
Nadya Dalton

Why can't my saved file be found when I try to compile?

Post by Nadya Dalton »

Exactly as in title; having saved a file, I click to compile and Textpad cannot locate the file even though it is staring me in the face on the screen and I can manually find it ie at My Documents. It is happy to run the program with an exception in main thread. Please help! Nadya
Garrett

Re: Why can't my saved file be found when I try to compile?

Post by Garrett »

2 possibilities:

1. You working directory is off. Make sure you have it set properly under:

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

It needs to point to the directory your .class file is in, UNLESS you're using packages, in which case it nees to point X directories higher, where X is the number of package levels you use.

2. Alternatively, TextPad and/or javac might be having trouble with path tokens that have spaces in them. Try changing the working directory so that it doesn't involve a path token like: \My Documents\, which contains spaces in the directory name.
Post Reply