Java compilation error says-"Parameterized types available if source level is 5.0"
While compiling java programs, i get the error as "parameterized types available only if source level is 5.0". I have a default java 5 in my debian os and i have installed java 6.
I have also set the classpath in .bashrc file as follows: 1. export $JAVA_HOME=/home/....../jdk1.6.0_18 2. export PATH=$PATH:$JAVA_HOME/bin What might be wrong with my java installation?? |
give the output of
Code:
java -version |
sorry for the late reply..
java -version gives the following output java version "1.5.0" gij (GNU libgcj) version 4.3.2 Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. echo $PATH gives the output /usr/local/bin:/usr/bin:/bin:/usr/games:/dalu/jdk1.6.0_18/bin |
This seems to me that java used is gij ? the GNU one
do which java Post the output. Add the path of the java to the beginning of the path instead at end. and then check which java |
which java
gave the output as /usr/bin/java I Added the path of the java to the beginning but no change... |
All times are GMT -5. The time now is 01:32 PM. |