[BLUEJ-147] Projects in the Program Files directory on Vista does not work
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?)
{noformat} Sequence of actions: in standard project 'shapes' i made circle object and tried to do (anything) with it like draw, make visible etc.
Problem: 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 "java.lang.ClassNotFoundException: __SHELL1 at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at bluej.runtime.ExecServer$3.run(ExecServer.java:793)"
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. {noformat}
Issue metadata
- Issue type: Bug
- Priority: Medium
- Fix versions: 2.5.1