This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
After I completed my project with Eclipse 3.6 and everything is running ok on my machine (java version "1.6.0_22"). I moved my files to my school server using FileZilla. Then, I logged in to that server using Putty. After that, I tried to compile my files with javac and it failed to compile there!! (java version "1.4.2_13")
I would appreciate any help in resolving this issue!
Amad Sin wrote:but this is the first time i got such errors. I previously compiled many files which includes generics on the same server with javac! including ArrayList<Type> and LinkedList<Type>!!
Now, I cannot even compile my previous files which i did not have issues with!
We don't have any information about why it used to compile on the system and doesn't do so now -- all we can tell you is that the version of Java currently installed on that system doesn't support the features that you want.
Thank you all for the kind questions ans answers. I joined the forum to inform my fix.
 Go to Project->properties->Java Compiler
Select 1.6 but this is not enough. Momentrarily when I saw to the link to installed JREs, I changed to jrockit_160_17_R28.0.0-679 as below.
When you can't see the link to JREs change. Simply do the following.
 Go to windows->preferences->java->installed JREs
Selected C:\Oracle\Middleware\jrockit_160_17_R28.0.0-679 (instead of C:\Program Files\Java\jre1.6.0_07, though not sure)
 Go to Project->properties->resource
UTF-8 for Text file encoding (maybe not critical)
Windows for New text file inline delimiter (maybe not critical)