Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

BlueJ asks for the JDK location on every startup – how can I fix this?

asks bluej Fix JDK location startup
0
Posted

BlueJ asks for the JDK location on every startup – how can I fix this?

0

The situation is usually this: on a multi-user installation, the system administrator installs and starts BlueJ, including the selection of the Java version (JDK/J2SDK). BlueJ runs fine. But when other users start BlueJ, they are prompted every time for the JDK location. The reason are write restrictions to the Windows registry. On Windows, BlueJ remembers the selected JDK version by writing an entry into the user space of the registry. If the registry is write protected, or if it is restored to its original state on every login, this information is lost, and the user will be asked again. There are two solutions available. The first is to give users write access to the Windows registry. If this is not practical (for example in some lab environments) then BlueJ can be explicitly configured to use a specific JDK, using a property in bluej.defs (see Tip 4 in the tips archive for general info about configuring BlueJ). Set the ‘bluej.windows.vm’ property in bluej.defs to the path of the JDK

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123