Login  Register

Re: Jogamp-fat.jar not deploying on a Windows 7 64bits machine ?

Posted by Sven Gothel on Mar 22, 2019; 9:56am
URL: https://forum.jogamp.org/Jogamp-fat-jar-not-deploying-on-a-Windows-7-64bits-machine-tp4039604p4039643.html

Yes, to make sure that the user is capable to execute files on a given path
one sadly to test today.
(execute == native lib loading)

The filesystem's executable mount option or advanced attributes differs from
out old 'directory is executable' to simply enter/read the directories content.

> Files.isExecutable(Path) (available since Java 1.8) should work.
> java.nio.files.Files.getPosixFilePermissions()

If the above can replace the 'intrusive' exe-test on all platforms,
we simply can use it where available via reflection.
If so .. great stuff.

+++

Here is a commit in one branch, which I will merge to master w/ the javafx
branch, disabling the exe test altogether. This of course will render
the whole automatic library loading void.

https://jogamp.org/git/?p=gluegen.git;a=commit;h=e7ac6b284eb3515f552cba491c43efe75f0a4eba

On 3/22/19 10:39 AM, gouessej [via jogamp] wrote:

> The pitfall with File.canExecute() (available since Java 1.6) is that it might
> tell that a file is executable whereas its permissions indicate that it isn't
> :s whereas Files.isExecutable(Path) (available since Java 1.8) should work.
> java.nio.files.Files.getPosixFilePermissions() would work too:
> https://jogamp.org/bugzilla/show_bug.cgi?id=1219#c71
>
> Do you want me to provide a patch?
> Julien Gouesse | Personal blog <http://gouessej.wordpress.com> | Website
> <http://tuer.sourceforge.net>
>