Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

BUG: Error: Project is not set up to use at least JDK 6.

577886Dec 5 2008 — edited Aug 28 2010
Hi,

I'm getting a 'Error: Project is not set up to use at least JDK 6.' error when trying to build a simple web project in JDev 11 that's setup to use a JDK with a version lower than 6.x. There are similar posts on the forum but with no solutions. Here are the steps to reproduce:

* Downloaded 'jdevstudio11110install.jar' (the generic multiplatform package with no bundled jdk).
* Did a complete installation, pointed to a pre-installed JDK 6 update 10.
* Started JDev, default role, no import of previous settings.
* Created a new default generic application 'Application1' with a generic project 'Project1' created along by the wizard. (no libs added or technologies)
* Created a new web project 'Project2' inside 'Application1'. Chose the 1.4 spec version. No page flow. No libraries. accepted all defaults.
* Accessed 'Project2' properties. In the Libraries and Classpath section, changed the default Java SE for the project to a preinstalled JDK 1.5.0_16.
* Project is now almost empty, except for the standard artifact web.xml, and trying to build the project works fine as expected.
* Added a new JSP to 'Project2', default name 'untitled1.jsp'.
* On trying to build the project 'Error: Project is not set up to use at least JDK 6.' pops up in the log.

Only fix is reverting to JDK 6. Are there any other needed steps to use a different JDK for the project?

Any tips?
Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 25 2010
Added on Dec 5 2008
8 comments
2,684 views