Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Can not create vaadin project using maven in netbeans
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