This site requires JavaScript, please enable it in your browser!
Greenfoot back
There are no scenarios tagged "alas"
garethedmondson
garethedmondson wrote ...

2017/6/12

Installing 2.4.2 - help with Java

garethedmondson garethedmondson

2017/6/12

#
Afternoon, Can anyone advise with installing 2.4.2? When running it on a locked down exam user account, version 2.4.2 doesn't see the inbuilt Java SDK. Version 3.1 does. WJEC have sent out a circular telling us that 2.4.2 is the only supported version yet we are having trouble running it due to this Java issue. We've set the JAVA_HOME environment variable but this hasn't worked. Has anyone else had this issue and managed to solve it using locked down accounts? Cheers Gareth
davmac davmac

2017/6/12

#
Hi Gareth, I assume by 'inbuilt Java SDK' you mean you are using the Greenfoot package which includes the JDK (as available here)? If not, I guess the obvious solution is to use that package - Greenfoot should certainly be able to find the bundled JDK. Otherwise, it's possible to edit the "greenfoot.defs" file in the "lib" folder just inside Greenfoot installation folder (C:\Program Files\Greenfoot\lib, for example) and uncomment the greenfoot.windows.vm setting - the line looks something like: #greenfoot.windows.vm=X\:\\Programming Apps\\JDK_1.7.0_55 And you need to change it to: #greenfoot.windows.vm=C\:\\Program Files\\JDK_1.7.0_55 Or as appropriate. The double backslashes in the path are not a mistake - they must be doubled. If you install Greenfoot on a number of machines individually you would need to make this change on each machine, unfortunately. If you need additional help, please try contacting the support team via email.
You need to login to post a reply.