• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Incompatible Java Compliance Level

 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am building a web project using MyEclipse 8.0.

In preference I selected Compiler Java 1.5 and
for server I selected tomcat 5.5.

When creating project I select j2ee 1.4 because tomcat 5.5 supports servlets 2.4 & jsp 2.0.
On pressing finish button (to create new project), Myeclipse shown 'Incompatible Java Compliance Level' and
the message: "Compiler compliance level of project MyProject should be 1.4. Your current workspace default is 5.0.
Do you want to use custom settings."


I want to use Tomcat 5.5.26 & Java 1.5. Now what should I do. Can I use java5 with tomcat5.5?
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Of course.

The problem is in your project's JDK settings, but without more info it'll be tough to help.
 
kavin clain
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you David. Could you please tell me which information I should provide... to correct it!

 
kavin clain
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In Preferences:

Java - Compiler - Here I set compliance level 1.5.
Java - Installed JREs - Here I gave Java Home Path. (which is C:\Program Files\Java\jdk1.5.0_06 with name: jdk1.5.0_06)

MyEclipse - Servers - Tomcat - Tomcat 5.5 - Here I enabled Tomcat Server & gave Tomcat Home Path.
MyEclipse - Servers - Tomcat - Tomcat 5.5 - JDK - Here I Added the name which I specified in step2 above.

I am using Struts 1.3.
 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not sure what else is needed to change; I'd start over and select everything again--I use this combination all the time, so it really shouldn't be an issue.
 
reply
    Bookmark Topic Watch Topic
  • New Topic