We have had several reports that using a project that is residing in the Program Files directory on Vista gives doesn't work well.
As soon as you try to invoke a method, an exception is thrown. See below for a support mail detailing the exception.
We should give a proper error message to the user, asking them to move the project to somewhere else. Detect if running on Vista and if the path contains the "Program Files" (is it always named "Program Files"
- even on non-english versions?)
Sequence of actions:
in standard project 'shapes' i made circle object and tried to do (anything) with it like draw, make visible etc.
error message "An error occurred in a file for which the source cannot be found. class: source line number: java.net.URLClassLoader$1:200 ClassNotFoundException: _SHELL1 (in java.net.URLClassLoader$1)"
with the number after SHELL increasing each time i conjure the error message.
also, the terminal pops up and shows
at java.security.AccessController.doPrivileged(Native Method)
Debug log contents:
BlueJ run started: Thu Feb 12 20:13:52 CET 2009
BlueJ version 2.5.0
Java version 1.6.0_12
Virtual machine: Java HotSpot(TM) Client VM 11.2-b01 (Sun Microsystems Inc.)
Running on: Windows Vista 6.0 (x86)
Java Home: C:\Program Files\Java\jdk1.6.0_12\jre
Opening project: C:\Program Files\BlueJ\projects\chapter01\shapes
Connected to debug VM via dt_socket transport...
Communication with debug VM fully established.