Solved

Eclipse JDK compliance compiler level

Posted on 2007-04-25
2,456 Views
Last Modified: 2013-12-15
Hi experts,

I am using eclipse 3.2.2
What are the advantages and disadvantages if I set the JDK compliance compiler to 5.0 or 6.0?
The default value is 1.4

Thanks in advance.
0
Question by:aciang
    14 Comments
     
    LVL 86

    Accepted Solution

    by:
    Advantages are that you have richer class libraries and generally better engineered compilers/runtimes with each version increment.

    Main disadvantage is that the later the compliance, the fewer people will be able to run your binaries
    0
     
    LVL 92

    Assisted Solution

    by:objects
    its not really about advantages/disadvantages, it depends what you intend to do with your appication.
    If its just for own use then go with the latest, but if others are going to need to run it then you need to determne the lowest version that it will need to be run un and develop for that version.
    Let me know if u have any questions.
    0
     

    Author Comment

    by:aciang
    Thanks Chej and Objects,

    I am building a web application, and of course I want my site can be viewed by most user.
    I need to know the advantage and disadvantages if I build my web application using higher Compiler 5.0 or 6.0?

    is there any relation with the browser version?
    maybe like.. some resources from JDK compiler 6.0 only can be run at ie7/higher or firefox2/higher?
    I doubt if there is any relation with the browser compliance, since it is on the server side not client. Please correct me if I am wrong.

    I use Tomcat5.5 and soon will upgrade it to Tomcat6.
    Is there any relation with this?

    Thanks in advance.
    0
     
    LVL 92

    Assisted Solution

    by:objects
    if its a web application then you just need to consider the version of java that is running tomcat on your server and use that.

    if you have any client side code (eg.applets) then you'll also need to consider what version of java you plan to sup[port but that can be seperate to the version of java you run on the server.
    0
     

    Author Comment

    by:aciang
    It means.. If I use the latest tomcat version and latest java version on my webserver, I can use the latest compiler? is it right?
    How can I know that tomcat5.5 or tomcat6 is work with JDK compilier 5.0 or 6.0?
    0
     
    LVL 92

    Expert Comment

    by:objects
    thats correct.
    tomcat supports latest java
    0
     

    Author Comment

    by:aciang
    Thank you for your time in replying my issue. :)
    0
     
    LVL 86

    Expert Comment

    by:CEHJ
    ?
    0
     

    Author Comment

    by:aciang
    ups.. I am very sorry Cehj,
    you should have the assisting answer for the issue. thank you.

    I should picked the accepted solution and picked which are the assisted answer.
    I tried but I cannot go back again.  (will not make the same mistake again..:p)

    All above answers helped me a lot.

    Thanks.
    0
     
    LVL 86

    Expert Comment

    by:CEHJ
    :-)
    0
     

    Author Comment

    by:aciang
    ups.. wrong again. :p
    cannot choose 2 accepted answer.

    I am very sorry for this.. really appreciate all your helps.

    Thank you.
    0
     
    LVL 92

    Expert Comment

    by:objects
    Now the accepted answer isn't really applicable to your situation, oh well as long as CEHJ has got his points :)
    0
     
    LVL 86

    Expert Comment

    by:CEHJ
    The accepted answer is an answer to the question posed - that's how the site works
    0
     
    LVL 92

    Expert Comment

    by:objects
    not true sorry :)
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Suggested Solutions

    For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
    Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
    Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
    This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

    846 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    5 Experts available now in Live!

    Get 1:1 Help Now