facebook

Compiler compliance level for Web Project in MyEclipse 7.5

  1. MyEclipse Archived
  2.  > 
  3. Web Development (HTML, CSS, etc.)
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #302573 Reply

    Chun-Hua Wan
    Member

    Hi,
    I just installed my MyEclipse 7.5, and encounted this warning when tried to create a new web project:

    File -> New -> Web Project lauches the New Web Project window, which list 3 J2EE Specification levels, –Java EE5.0, J2EE 1.4, and J2EE 1.3. The JDK of the MyEclipse 7.5 installation (com.sun.java.jdk.win32.x86_1.6.0.013) is 1.6, the “default compliance setting”. Hence, when I press “finish” at the New Web Project window after choosing Java EE 5.0 (as 6.0 is not listed here), I was given a warning message: “Compiler compliance level of proj HelloWebProject should be 5.0. Your current workspace default is 6.0. Do you want to use a custome setting for your project?”. A Web project was created regardless Yes or No was entered to the question prompt.

    How can set the complier compliance level to the JDK 1.6? If I can only choose among the 3 J2EE Specification levels (i.e., Java EE5.0, J2EE 1.4, and J2EE 1.3), where is the JDK directory of the MyEclipse 7.5 installation that matches my choice of say Java EE5.0 or J2EE 1.4? –Currently, I have my tomcat installation pointed to Java EE6.0 (com.sun.java.jdk.win32.x86_1.6.0.013) of the MyEclipse 7.5 installation. It makes sense if all my Java code uses the same compiler Java 6.0.

    Thanks so much,
    Chunhua
    // My MyEclipse 7.5 installation summary is as follows:

    *** Date:
    Monday, September 21, 2009 11:23:18 AM EDT
    ** System properties:
    OS=WindowsXP
    OS version=5.1.0
    Java version=1.6.0_13

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 7.5
    Build id: 7.5-20090609

    *** Eclipse details:
    MyEclipse Enterprise Workbench
    Version: 7.5
    Build id: 7.5-20090609

    Eclipse Plug-in Development Environment
    Version: 3.4.2.R342_v20090122-7T7U1E9imVKz-A8Vz-p_jRS
    Build id: M20080703-0800

    Eclipse Platform
    Version: 3.4.2.R342_v20090122-9I96EiWElHi8lheoJKJIvhM3JfVsYbRrgVIWL
    Build id: M20090211-1700

    Eclipse Graphical Editing Framework GEF
    Version: 3.4.2.v20090218-1145-67728084A56B4I233613552
    Build id: 200809101400

    Eclipse RCP
    Version: 3.4.200.R342_v20090122-989JESTEbig-SVaL8UJHcYBr4A63
    Build id: M20090211-1700

    Eclipse Java Development Tools
    Version: 3.4.2.r342_v20081217-7o7tEAoEEDWEm5HTrKn-svO4BbDI
    Build id: M20090211-1700

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    -launcher
    C:\genuitec\myeclipse7p5p0\myeclipse.exe
    -name
    Myeclipse
    –launcher.library
    c:\genuitec\myeclipse7p5p0\../common\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.101.R34x_v20080731\eclipse_1115.dll
    -startup
    c:\genuitec\myeclipse7p5p0\../common\plugins\org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar
    -clean
    -configuration
    configuration
    -vm
    c:\genuitec\common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\jre\bin\client\jvm.dll

    #302579 Reply

    rmcvay
    Member

    The JEE profile level is different from the JDK level.

    com.sun.java.jdk.win32.x86_1.6.0.013

    That is the Java 6 JDK.

    #302587 Reply

    Chun-Hua Wan
    Member

    the New Web Project window, which list 3 J2EE Specification levels, –Java EE5.0, J2EE 1.4, and J2EE 1.3. …

    How can set the complier compliance level to the JDK 1.6?

    #302599 Reply

    Chunhua,

    AS per Ray, JEE specification is different from JDK level.

    I would recommend you to follow the below steps to set the complier compliance level

    1) Create new web project.
    2) After you click “Finish” button in “New Web Project” Wizard, a warning dialog box will be displayed. Click “Open Workspace Compiler Settings” link.
    3) Compiler Preferences page will be displayed.

    You can change Compiler compliance level to your required level.

    #306634 Reply

    Haxisteve
    Member

    I will read time to time that….

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Compiler compliance level for Web Project in MyEclipse 7.5

You must be logged in to post in the forum log in