Artifacts JavaFX build error (Access Denied) Zulu-22

Answered

Hi, I'm trying to create a .jar of my JavaFXML developed software. The problem is releated to the build phase of the IDE into Artifacts.
In particular this is the error

Executing pre-compile tasks…
Running 'before' tasks
Checking sources
Copying resources... [Managment]
Building artifact 'Managment:jar'…
Deleting outdated files…
Building artifact 'Managment:jar': copying files…
Building archives…
Copying archives…
Running post-processing tasks for 'Managment:jar' artifact…
Java FX Packager: C:\Users\marco\IdeaProjects\Managment\out\artifacts\Managment_jar (Access Denied)
Running 'after' tasks
Finished, saving caches…
Executing post-compile tasks…
Synchronizing output directories…
16/09/2024 22:57 - Build completed with 1 error and 0 warnings in 1 min, 15 sec

The log file is this:
2024-09-16 22:59:59,688 [      4]   INFO - #o.j.j.c.BuildMain - ==================================================
2024-09-16 22:59:59,707 [     23]   INFO - #o.j.j.c.BuildMain - Build process started. Classpath: C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2024.1.4/plugins/java/lib/jps-launcher.jar
2024-09-16 22:59:59,861 [    177]   INFO - #o.j.j.c.BuildMain - Connection to IDE established in 141 ms
2024-09-16 22:59:59,876 [    192]   INFO - #o.j.j.c.JpsModelLoaderImpl - Loading model: project path = C:/Users/marco/IdeaProjects/Managment, global options path = C:/Users/marco/AppData/Roaming/JetBrains/IdeaIC2024.1/options
2024-09-16 22:59:59,962 [    278]   INFO - #o.j.j.m.s.JpsProjectLoader - External project config dir is used: C:\Users\marco\AppData\Local\JetBrains\IdeaIC2024.1\projects\managment.161ead44\external_build_system\project
2024-09-16 22:59:59,972 [    288]   INFO - #o.j.j.m.s.JpsProjectLoader - External project config dir is used for modules: C:\Users\marco\AppData\Local\JetBrains\IdeaIC2024.1\projects\managment.161ead44\external_build_system\modules
2024-09-16 23:00:00,013 [    329]   INFO - #o.j.j.c.JpsModelLoaderImpl - Model loaded in 137 ms
2024-09-16 23:00:00,016 [    332]   INFO - #o.j.j.c.JpsModelLoaderImpl - Project has 1 modules, 16 libraries
2024-09-16 23:00:00,067 [    383]   INFO - #c.i.u.i.PageCacheUtils - File page caching params:
2024-09-16 23:00:00,068 [    384]   INFO - #c.i.u.i.PageCacheUtils -     DEFAULT_PAGE_SIZE: 10485760
2024-09-16 23:00:00,068 [    384]   INFO - #c.i.u.i.PageCacheUtils -     Direct memory to use, max: 713031680
2024-09-16 23:00:00,068 [    384]   INFO - #c.i.u.i.PageCacheUtils -     FilePageCache: regular + lock-free (LOCK_FREE_PAGE_CACHE_ENABLED:true)
2024-09-16 23:00:00,068 [    384]   INFO - #c.i.u.i.PageCacheUtils -     NEW_PAGE_CACHE_MEMORY_FRACTION: 0.20000000298023224
2024-09-16 23:00:00,068 [    384]   INFO - #c.i.u.i.PageCacheUtils -     Regular FilePageCache: 503316478 bytes
2024-09-16 23:00:00,068 [    384]   INFO - #c.i.u.i.PageCacheUtils -     New     FilePageCache: 125829122 bytes (+ up to 10.0% overflow)
2024-09-16 23:00:00,069 [    385]   INFO - #c.i.u.i.PageCacheUtils -     DirectByteBuffers pool: 0 bytes
2024-09-16 23:00:00,161 [    477]   INFO - #o.j.j.c.BuildMain - Pre-loaded process ready in 473 ms
2024-09-16 23:00:00,196 [    512]   INFO - #o.j.j.i.IncProjectBuilder - Affected build targets count: 0
2024-09-16 23:00:00,210 [    526]   INFO - #o.j.j.i.IncProjectBuilder - Building project; isRebuild:false; isMake:true parallel compilation:false; dependency graph enabled:false
2024-09-16 23:00:00,211 [    527]   INFO - #o.j.k.j.b.KotlinBuilder - is Kotlin incremental compilation enabled for JVM: true
2024-09-16 23:00:00,212 [    528]   INFO - #o.j.k.j.b.KotlinBuilder - is Kotlin incremental compilation enabled for JS: true
2024-09-16 23:00:00,215 [    531]   INFO - #o.j.k.j.b.KotlinBuilder - is Kotlin compiler daemon enabled: true
2024-09-16 23:00:00,215 [    531]   INFO - #o.j.k.j.b.KotlinBuilder - Label in local history: build started ef7ede60
2024-09-16 23:00:00,275 [    591]   INFO - #o.j.j.i.IncProjectBuilder - Cleaned output directories in 1 ms
2024-09-16 23:00:00,309 [    625]   INFO - #o.j.k.j.b.KotlinBuilder - KotlinTargetsIndex created in 17 ms
2024-09-16 23:00:00,316 [    632]   INFO - #o.j.k.j.b.KotlinBuilder - Total Kotlin global compile context initialization time: 24 ms
2024-09-16 23:00:00,680 [    996]   INFO - #c.i.u.i.PersistentMapImpl - Compacting C:\Users\marco\AppData\Local\JetBrains\IdeaIC2024.1\compile-server\managment_80786a87\targets\artifact\Managment_jar_b54320df\out-src\data
2024-09-16 23:00:00,680 [    996]   INFO - #c.i.u.i.PersistentMapImpl - Live keys:6217, dead keys:49913, read compaction size:69553
2024-09-16 23:00:00,686 [   1002]   INFO - #c.i.u.i.PersistentMapImpl - Loaded mappings:5ms, keys:6217
2024-09-16 23:00:00,708 [   1024]   INFO - #c.i.u.i.PersistentMapImpl - Compacted values for:22ms fragments:6224, new fragments:6217
2024-09-16 23:00:00,711 [   1027]   INFO - #c.i.u.i.PersistentMapImpl - Updated mappings:3 ms
2024-09-16 23:00:00,718 [   1034]   INFO - #c.i.u.i.PersistentMapImpl - Compacted C:\Users\marco\AppData\Local\JetBrains\IdeaIC2024.1\compile-server\managment_80786a87\targets\artifact\Managment_jar_b54320df\out-src\data:5294269 bytes into 575677 bytes in 38ms.
2024-09-16 23:01:16,471 [  76787]   INFO - #o.j.j.c.BuildSession - Build duration: Builder 'Artifacts builder' took 1 m 15 s 711 ms; 26 sources processed (2911 ms per file)
2024-09-16 23:01:16,491 [  76807]   INFO - #o.j.j.c.BuildSession - FilePageCache stats: pageHits=0, pageFastCacheHits=187889, regularPageLoads=36, pageLoadsAboveSizeThreshold=0, pageLoadUs=21483, pageDisposalUs=48, capacityInBytes=503316478, disposedBuffers=36 maxRegisteredFiles=64 maxCacheSizeInBytes=29622272totalSizeCachedBytes=0
2024-09-16 23:01:16,623 [      4]   INFO - #o.j.j.c.BuildMain - ==================================================
2024-09-16 23:01:16,644 [     25]   INFO - #o.j.j.c.BuildMain - Build process started. Classpath: C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2024.1.4/plugins/java/lib/jps-launcher.jar
2024-09-16 23:01:16,791 [    172]   INFO - #o.j.j.c.BuildMain - Connection to IDE established in 134 ms
2024-09-16 23:01:16,805 [    186]   INFO - #o.j.j.c.JpsModelLoaderImpl - Loading model: project path = C:/Users/marco/IdeaProjects/Managment, global options path = C:/Users/marco/AppData/Roaming/JetBrains/IdeaIC2024.1/options
2024-09-16 23:01:16,891 [    272]   INFO - #o.j.j.m.s.JpsProjectLoader - External project config dir is used: C:\Users\marco\AppData\Local\JetBrains\IdeaIC2024.1\projects\managment.161ead44\external_build_system\project
2024-09-16 23:01:16,893 [    274]   INFO - #o.j.j.m.s.JpsProjectLoader - External project config dir is used for modules: C:\Users\marco\AppData\Local\JetBrains\IdeaIC2024.1\projects\managment.161ead44\external_build_system\modules
2024-09-16 23:01:16,934 [    315]   INFO - #o.j.j.c.JpsModelLoaderImpl - Model loaded in 128 ms
2024-09-16 23:01:16,936 [    317]   INFO - #o.j.j.c.JpsModelLoaderImpl - Project has 1 modules, 16 libraries
2024-09-16 23:01:16,986 [    367]   INFO - #c.i.u.i.PageCacheUtils - File page caching params:
2024-09-16 23:01:16,987 [    368]   INFO - #c.i.u.i.PageCacheUtils -     DEFAULT_PAGE_SIZE: 10485760
2024-09-16 23:01:16,987 [    368]   INFO - #c.i.u.i.PageCacheUtils -     Direct memory to use, max: 713031680
2024-09-16 23:01:16,987 [    368]   INFO - #c.i.u.i.PageCacheUtils -     FilePageCache: regular + lock-free (LOCK_FREE_PAGE_CACHE_ENABLED:true)
2024-09-16 23:01:16,987 [    368]   INFO - #c.i.u.i.PageCacheUtils -     NEW_PAGE_CACHE_MEMORY_FRACTION: 0.20000000298023224
2024-09-16 23:01:16,987 [    368]   INFO - #c.i.u.i.PageCacheUtils -     Regular FilePageCache: 503316478 bytes
2024-09-16 23:01:16,987 [    368]   INFO - #c.i.u.i.PageCacheUtils -     New     FilePageCache: 125829122 bytes (+ up to 10.0% overflow)
2024-09-16 23:01:16,988 [    369]   INFO - #c.i.u.i.PageCacheUtils -     DirectByteBuffers pool: 0 bytes
2024-09-16 23:01:17,080 [    461]   INFO - #o.j.j.c.BuildMain - Pre-loaded process ready in 456 ms
 

If you need other details, says to me. I'm going crazy for this error.

0
1 comment

Hello, Marco!

Thank you for reporting this!

Issues like that are often caused by interference of third-party software like antiviruses / security solutions or backup tools like iCloud or OneDrive.

Please make sure that the Project's folder is excluded from such software scope, delete the out directory and try running Build → Build Artifacts… → [Artifact Name] → Rebuild

0

Please sign in to leave a comment.