Artifacts JavaFX build error (Access Denied) Zulu-22
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' tasksChecking sourcesCopying 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' tasksFinished, 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.jar2024-09-16 22:59:59,861 [ 177] INFO - #o.j.j.c.BuildMain - Connection to IDE established in 141 ms2024-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/options2024-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\project2024-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\modules2024-09-16 23:00:00,013 [ 329] INFO - #o.j.j.c.JpsModelLoaderImpl - Model loaded in 137 ms2024-09-16 23:00:00,016 [ 332] INFO - #o.j.j.c.JpsModelLoaderImpl - Project has 1 modules, 16 libraries2024-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: 104857602024-09-16 23:00:00,068 [ 384] INFO - #c.i.u.i.PageCacheUtils - Direct memory to use, max: 7130316802024-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.200000002980232242024-09-16 23:00:00,068 [ 384] INFO - #c.i.u.i.PageCacheUtils - Regular FilePageCache: 503316478 bytes2024-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 bytes2024-09-16 23:00:00,161 [ 477] INFO - #o.j.j.c.BuildMain - Pre-loaded process ready in 473 ms2024-09-16 23:00:00,196 [ 512] INFO - #o.j.j.i.IncProjectBuilder - Affected build targets count: 02024-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:false2024-09-16 23:00:00,211 [ 527] INFO - #o.j.k.j.b.KotlinBuilder - is Kotlin incremental compilation enabled for JVM: true2024-09-16 23:00:00,212 [ 528] INFO - #o.j.k.j.b.KotlinBuilder - is Kotlin incremental compilation enabled for JS: true2024-09-16 23:00:00,215 [ 531] INFO - #o.j.k.j.b.KotlinBuilder - is Kotlin compiler daemon enabled: true2024-09-16 23:00:00,215 [ 531] INFO - #o.j.k.j.b.KotlinBuilder - Label in local history: build started ef7ede602024-09-16 23:00:00,275 [ 591] INFO - #o.j.j.i.IncProjectBuilder - Cleaned output directories in 1 ms2024-09-16 23:00:00,309 [ 625] INFO - #o.j.k.j.b.KotlinBuilder - KotlinTargetsIndex created in 17 ms2024-09-16 23:00:00,316 [ 632] INFO - #o.j.k.j.b.KotlinBuilder - Total Kotlin global compile context initialization time: 24 ms2024-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\data2024-09-16 23:00:00,680 [ 996] INFO - #c.i.u.i.PersistentMapImpl - Live keys:6217, dead keys:49913, read compaction size:695532024-09-16 23:00:00,686 [ 1002] INFO - #c.i.u.i.PersistentMapImpl - Loaded mappings:5ms, keys:62172024-09-16 23:00:00,708 [ 1024] INFO - #c.i.u.i.PersistentMapImpl - Compacted values for:22ms fragments:6224, new fragments:62172024-09-16 23:00:00,711 [ 1027] INFO - #c.i.u.i.PersistentMapImpl - Updated mappings:3 ms2024-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=02024-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.jar2024-09-16 23:01:16,791 [ 172] INFO - #o.j.j.c.BuildMain - Connection to IDE established in 134 ms2024-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/options2024-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\project2024-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\modules2024-09-16 23:01:16,934 [ 315] INFO - #o.j.j.c.JpsModelLoaderImpl - Model loaded in 128 ms2024-09-16 23:01:16,936 [ 317] INFO - #o.j.j.c.JpsModelLoaderImpl - Project has 1 modules, 16 libraries2024-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: 104857602024-09-16 23:01:16,987 [ 368] INFO - #c.i.u.i.PageCacheUtils - Direct memory to use, max: 7130316802024-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.200000002980232242024-09-16 23:01:16,987 [ 368] INFO - #c.i.u.i.PageCacheUtils - Regular FilePageCache: 503316478 bytes2024-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 bytes2024-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.
Please sign in to leave a 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
outdirectory and try running Build → Build Artifacts… → [Artifact Name] → Rebuild