Hi all ,
I created vaadin project using maven in netbeans before i update java6 to java7. After updating to java7, i am creating the vaadin project
but it throws error something like this
cd /root/NetBeansProjects; JAVA_HOME=/usr/local/java/jre1.7.0 /usr/local/netbeans-7.1/java/maven/bin/mvn -DarchetypeGroupId=com.vaadin - DarchetypeArtifactId=vaadin-archetype-clean -DarchetypeVersion=LATEST -DarchetypeRepository=http://repo.maven.apache.org/maven2 -DgroupId=com.mycompany -DartifactId=mavenproject1 -Dversion=1.0-SNAPSHOT -Dpackage=com.mycompany.mavenproject1 -Dbasedir=/root/NetBeansProjects -Darchetype.interactive=false --batch-mode archetype:generate
Error: JAVA_HOME is not defined correctly.
We cannot execute /usr/local/java/jre1.7.0/bin/java.
But i am checking JAVA_HOME in my terminal but it shows
/usr/local/java/jdk1.7.0
what is the problem with that?
Please give some solution.
Thank you