Note that there are some explanatory texts on larger screens.

plurals
  1. POEclipse - How to know the 'real' Java version of web application?
    primarykey
    data
    text
    <p>I am currently working on a sort-of-old web application. During a discussion with my boss, I mentioned that the application is using <code>Java 1.4</code>. Then, he interrupted me, then said that the project is actually using <code>Java 1.5</code>. I opened my workspace and show the reason why I said that the project is using Java 1.4. I navigated to <code>Project Properties &gt; Build Path &gt; Libraries</code>, listed here is <strong>JRE System Library[J2SE-1.4]</strong>. </p> <p>He then took the control then brought me to <code>Window &gt; Preferences &gt; Java &gt; Compiler</code> then in the <strong>JDK Compliance section, Compiler compliance level has the value 1.5</strong>. </p> <p>Another thing that made me think that the project is using 1.4 is because, the <code>List</code> objects does not have parameterized type, and no warning is generated by Eclipse for them. Also, when I type <code>List&lt;String&gt;</code>, eclipse gives me an error saying </p> <p><strong>Syntax error, parameterized types are only available if source level is 1.5</strong>. </p> <p>This made me convinced that the application is using Java 1.5. But in my current position (junior developer) I need to make sure that my assumption is really correct before entering a debate with my boss. So, my question is, how do I really know the Java version that the application is using? What is difference between the Java version stated in </p> <p><code>Project Properties &gt; Build Path &gt; Libraries</code> </p> <p>and</p> <p><code>Window &gt; Preferences &gt; Java &gt; Compiler</code> ?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload