java - Getting a weird error when attempting to execute a simple program in Maven Web on Ubuntu -


i attempting netbeans work on ubuntu.

using java-8 trying launch simple program prints command line: system.out.println("test"); doing package inside maven web project

the error: failed execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (default-cli) on project mavenproject1: command execution failed. cannot run program "java" (in directory "/home/jon/netbeansprojects/mavenproject1"): error=13, permission denied -> [help 1]

this works fine eclipse maven web project, , runs fine maven java application, not netbeans web application. checked permissions, , has read, write, , execute permissions.

try:
- set environment variable java_home, this link guide you.

- set maven_home variable in similar way.


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -