Brian Davies wrote:
> 4) rename the folder "untitled/folder" (or anything equivalent with a slash)
>
> 5) double click - it bounces in the dock but does not run.
I strongly suspect this is a classpath issue.
When you enter the name "untitled/folder" in Finder, that gets translated
to "untitled:folder" as the actual Posix filename. Since ":" is also the
path.separator in Java, there is no way you can safely have an entry in the
classpath with an embedded ":" in it.
Not sure why the test-case isn't throwing a NoClassDefFoundError, but there
might be something in the console log.
You can also test this by putting a loose class-file in an "untitled"
folder adjacent to "untitled:folder", which sets up the file-system so the
misparsed classpath "works".
There are other chars that raise hell with classpath, like "!" and maybe
"#". The "!" because "!" is reserved as a separator for "jar:" URLs, and
"#" because it sometimes doesn't get escaped in URLs, so it then gets
treated as a fragment separator.
-- GG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden
This email sent to email@hidden