We are using JDK 7 for Liferay portlet development. The eclipse as well as the system is configured to use JDK 7.
But when I deploy my portlet from eclipse it works but if I try using ant clean deploy from command prompt it says Java version 7 or higher is needed.
Anyone knows how to fix it so that I can deploy it from command prompt as well.
Note : Java –version from command prompt shows java version as 1.7. Ant version 1.9.4. Liferay version 6.2 EE
Regards,
Tina