Solved

Eclipse JDK compliance compiler level

Posted on 2007-04-25
2,455 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 85

    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 85

    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 85

    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 85

    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. Privacy Policy Terms of Use

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
    Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
    The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

    683 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

    32 Experts available now in Live!

    Get 1:1 Help Now