You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "pdelhaise (via GitHub)" <gi...@apache.org> on 2023/12/11 13:15:46 UTC
[I] Impossible to launch any build, clean or run command in netbeans (Java/maven project) [netbeans]
pdelhaise opened a new issue, #6830:
URL: https://github.com/apache/netbeans/issues/6830
### Apache NetBeans version
Apache NetBeans 19
### What happened
Impossible to run any build command: output:
cd /home/pdelhaise/htdocs/rateng; JAVA_HOME=/home/pdelhaise/jdk-21.0.1 /home/pdelhaise/netbeans/java/maven/bin/mvn --no-transfer-progress clean package install
Cannot run program "/home/pdelhaise/netbeans/java/maven/bin/mvn" (in directory "/home/pdelhaise/htdocs/rateng"): error=13, Permission denied
I did chmod 777 rateng:
drwxrwxrwx 5 pdelhaise pdelhaise 4096 Dec 11 13:39 rateng
/home/pdelhaise/netbeans/java/maven/bin/mvn is also executable for everybody
-rwxr-xr-x 1 pdelhaise pdelhaise 5883 Jun 23 12:59 /home/pdelhaise/netbeans/java/maven/bin/mvn
When I execute this mvn command in a shell windows, it works perfectly.
### How to reproduce
[mavenproject1.zip](https://github.com/apache/netbeans/files/13635831/mavenproject1.zip)
### Did this work correctly in an earlier version?
Apache NetBeans 19
### Operating System
Description: Ubuntu 22.04.3 LTS
### JDK
openjdk version "21.0.1" 2023-10-17
### Apache NetBeans packaging
Apache NetBeans binary zip
### Anything else
_No response_
### Are you willing to submit a pull request?
No
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [I] Impossible to launch any build, clean or run command in netbeans (Java/maven project) [netbeans]
Posted by "pdelhaise (via GitHub)" <gi...@apache.org>.
pdelhaise closed issue #6830: Impossible to launch any build, clean or run command in netbeans (Java/maven project)
URL: https://github.com/apache/netbeans/issues/6830
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [I] Impossible to launch any build, clean or run command in netbeans (Java/maven project) [netbeans]
Posted by "pdelhaise (via GitHub)" <gi...@apache.org>.
pdelhaise commented on issue #6830:
URL: https://github.com/apache/netbeans/issues/6830#issuecomment-1850492781
After hours of trials, I had the idea to use the .deb package instead of the zip file.
It works fine . It seems to some or all executables don't have the "x" bit set in the zip file.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [I] Impossible to launch any build, clean or run command in netbeans (Java/maven project) [netbeans]
Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on issue #6830:
URL: https://github.com/apache/netbeans/issues/6830#issuecomment-1851848431
- you downloaded the zip from https://netbeans.apache.org/front/main/download/nb20/
- extracted it somewhere on your ubuntu system
- then started `netbeans_folder/bin/netbeans`
- created a new maven project, and it couldn't build it due to the permission issue?
(btw you can check the integrity of the zip by verifying the SHA-512 signature)
I use the zip distribution all the time and never had this issue. There are a few things which could go wrong during extraction though, e.g there are flags which tell the zip tool to not retain permissions for example (but this wouldn't happen by default). Some file systems can also do weird things but since you are on ubuntu I suspect it is ext4 which should behave ok.
we generate the zip on linux, which means the unix file permissions are put into the archive, you can check it yourself:
```
zipinfo netbeans-20-bin.zip | grep mvn
-rwxr-xr-x 2.0 unx 5883 b- defN 23-Oct-01 18:38 netbeans/java/maven/bin/mvn
-rwxr-xr-x 2.0 unx 1684 b- defN 23-Oct-01 18:38 netbeans/java/maven/bin/mvnDebug
-rwxr-xr-x 2.0 unx 1611 b- defN 23-Oct-01 18:38 netbeans/java/maven/bin/mvnyjp
-rw-r--r-- 2.0 unx 6324 b- defN 23-Oct-01 18:38 netbeans/java/maven/bin/mvn.cmd
-rw-r--r-- 2.0 unx 2169 b- defN 23-Oct-01 18:38 netbeans/java/maven/bin/mvnDebug.cmd
```
but good to know that the deb package works for you, so you can at least finish your assignment (Car models, the classic intro to OO languages :)).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [I] Impossible to launch any build, clean or run command in netbeans (Java/maven project) [netbeans]
Posted by "pdelhaise (via GitHub)" <gi...@apache.org>.
pdelhaise commented on issue #6830:
URL: https://github.com/apache/netbeans/issues/6830#issuecomment-1850751175
Hi,
Thanks for answer.
I don't think that zip file was corrupted because I tried with version 19
and 20, each time with zip distribution, hence two different zips and the
problem was the same one.
I literally looked all possible problems during hours; And as mentioned
when I ran mvn at the command line, it worked perfectly.
Philippe
On Mon, 11 Dec 2023 at 18:14, Neil C Smith ***@***.***> wrote:
> Both debs (ASF without JDK, community with JDK) are built with NBPackage
> using the binary zip. Any issue with permission bits would be replicated.
> Whatever is causing the issue you're seeing, it's not this unless you
> somehow have a corrupt zip file.
>
> —
> Reply to this email directly, view it on GitHub
> <https://github.com/apache/netbeans/issues/6830#issuecomment-1850512389>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABDCXDEKK3LEH6SGR75TUCDYI45QTAVCNFSM6AAAAABAPX5ZOGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJQGUYTEMZYHE>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
--
Philippe Delhaise
Archdata SPRL
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [I] Impossible to launch any build, clean or run command in netbeans (Java/maven project) [netbeans]
Posted by "neilcsmith-net (via GitHub)" <gi...@apache.org>.
neilcsmith-net commented on issue #6830:
URL: https://github.com/apache/netbeans/issues/6830#issuecomment-1850512389
Both debs (ASF without JDK, community with JDK) are built with NBPackage using the binary zip. Any issue with permission bits would be replicated. Whatever is causing the issue you're seeing, it's not this unless you somehow have a corrupt zip file.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists