IntelliJ IDEA, JAVA files adding JAR files

Answered

I am using IntelliJ IDEA 2019.3. When I attempt to add JAR files to my project (File > Project Structure > Project Settings > Modules > Dependencies > + > JARs or directories), I run into a number of issues.

Firstly, I am unable to select more than one JAR file at once. If I CTRL + CLICK on a JAR file, it deselects the last one and selects just the new one. The same issue occurs with SHIFT + CLICK. Ordinarily, I wouldn't mind having to select every file individually, but the problem is that one of the JAR files won't add correctly if I do.

client-combined-3.141.59.jar

client-combined-3.141.59-sources.jar

The second file won't add singularly because it states Empty Library. On all of the tutorials I watched online they seem to be able to overcome this by selecting more than one file at once (although the second file never lists in the External Libraries).

I have later tried this on Eclipse and it worked ok, but I would prefer to use IntelliJ.

Please help

1
5 comments

Hello,

What OS do you use? Is it possible to share idea.log ("Help | Show Log in...") after restarting IDE?

0
Avatar
Permanently deleted user

Thank you for your response. I am using Windows 7 x64, with SP1. I have copied the idea.log file:

 

2020-02-06 18:47:42,609 [ 0] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------
2020-02-06 18:47:42,874 [ 265] INFO - #com.intellij.idea.Main - JNA library (64-bit) loaded in 234 ms
2020-02-06 18:47:42,890 [ 281] INFO - #com.intellij.idea.Main - IDE: IntelliJ IDEA (build #IC-193.6015.39, 21 Jan 2020 06:12)
2020-02-06 18:47:42,921 [ 312] INFO - #com.intellij.idea.Main - OS: Windows 7 (6.1, amd64)
2020-02-06 18:47:42,921 [ 312] INFO - #com.intellij.idea.Main - JRE: 11.0.5+10-b520.30 (JetBrains s.r.o)
2020-02-06 18:47:42,921 [ 312] INFO - #com.intellij.idea.Main - JVM: 11.0.5+10-b520.30 (OpenJDK 64-Bit Server VM)
2020-02-06 18:47:42,921 [ 312] INFO - #com.intellij.idea.Main - JVM Args: exit -Xms128m -Xmx750m -XX:ReservedCodeCacheSize=240m -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -XX:CICompilerCount=2 -Dsun.io.useCanonPrefixCache=false -Djava.net.preferIPv4Stack=true -Djdk.http.auth.tunneling.disabledSchemes="" -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Djdk.attach.allowAttachSelf=true -Dkotlinx.coroutines.debug=off -Djdk.module.illegalAccess.silent=true -Djb.vmOptionsFile=C:\Users\Elaine Leese\.IdeaIC2019.3\config\idea64.exe.vmoptions -Djava.library.path=C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.3.2\jbr\\bin;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.3.2\jbr\\bin\server -Didea.platform.prefix=Idea -Didea.jre.check=true -Dide.native.launcher=true -Didea.paths.selector=IdeaIC2019.3 -XX:ErrorFile=C:\Users\Elaine Leese\java_error_in_idea_%p.log -XX:HeapDumpPath=C:\Users\Elaine Leese\java_error_in_idea.hprof
2020-02-06 18:47:42,921 [ 312] INFO - #com.intellij.idea.Main - charsets: JNU=Cp1252 file=Cp1252
2020-02-06 18:47:43,249 [ 640] INFO - penapi.util.io.win32.IdeaWin32 - Native filesystem for Windows is operational
2020-02-06 18:47:43,545 [ 936] INFO - com.intellij.util.ui.JBUIScale - System scale factor: 1.0 (IDE-managed HiDPI)
2020-02-06 18:47:43,545 [ 936] INFO - ntellij.idea.ApplicationLoader - CPU cores: 4; ForkJoinPool.commonPool: java.util.concurrent.ForkJoinPool@8dec5e3[Running, parallelism = 3, size = 0, active = 0, running = 0, steals = 0, tasks = 0, submissions = 0]; factory: com.intellij.concurrency.IdeaForkJoinWorkerThreadFactory@7089dc4
2020-02-06 18:47:43,779 [ 1170] INFO - llij.ide.plugins.PluginManager - Plugin "Groovy" misses optional descriptor duplicates-groovy.xml
2020-02-06 18:47:43,779 [ 1170] INFO - llij.ide.plugins.PluginManager - Plugin "Groovy" misses optional descriptor duplicates-detection-groovy.xml
2020-02-06 18:47:43,982 [ 1373] INFO - llij.ide.plugins.PluginManager - Plugin "Java" misses optional descriptor profiler-java.xml
2020-02-06 18:47:44,138 [ 1529] INFO - llij.ide.plugins.PluginManager - Loaded bundled plugins: Configuration Script (193.6015.39), Copyright (193.6015.39), EditorConfig (193.6015.39), Gradle (193.6015.39), Groovy (193.6015.39), IDEA CORE (193.6015.39), IntelliLang (193.6015.39), Java (193.6015.39), Java Bytecode Decompiler (193.6015.39), Java IDE Customization (193.6015.39), Java Internationalization (193.6015.39), JavaFX (193.6015.39), Kotlin (1.3.61-release-IJ2019.3-1), Machine Learning Code Completion (193.6015.39), Markdown (193.6015.39), Properties (193.6015.39), Settings Repository (193.6015.39), Shell Script (193.6015.39), Smali Support (193.6015.39), TextMate bundles (193.6015.39)
2020-02-06 18:47:44,138 [ 1529] INFO - llij.ide.plugins.PluginManager - Disabled plugins: Android Support (10.3.5), Ant (193.6015.39), Bytecode Viewer (193.6015.39), ChangeReminder (193.6015.39), Coverage (193.6015.39), Eclipse Interoperability (193.6015.39), Git (193.6015.39), GitHub (193.6015.39), Gradle-Java (193.6015.39), Gradle-Maven (193.6015.39), JUnit (193.6015.39), Java Stream Debugger (193.6015.39), Maven (193.6015.39), Mercurial (193.6015.39), Plugin DevKit (193.6015.39), Subversion (193.6015.39), Task Management (193.6015.39), Terminal (193.6015.39), TestNG (193.6015.39), UI Designer (193.6015.39), XPathView + XSLT (193.6015.39), XSLT Debugger (193.6015.39), YAML (193.6015.39)
2020-02-06 18:47:44,715 [ 2106] INFO - ellij.util.io.PagedFileStorage - lower=100; upper=500; buffer=10; max=705
2020-02-06 18:47:44,887 [ 2278] INFO - pl.local.NativeFileWatcherImpl - Starting file watcher: C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.3.2\bin\fsnotifier64.exe
2020-02-06 18:47:44,996 [ 2387] INFO - til.net.ssl.CertificateManager - Default SSL context initialized
2020-02-06 18:47:45,027 [ 2418] INFO - pl.local.NativeFileWatcherImpl - Native file watcher is operational.
2020-02-06 18:47:45,168 [ 2559] INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=13, fontScale=1.0; restored: fontSize=13, fontScale=1.0
2020-02-06 18:47:45,183 [ 2574] INFO - rains.ide.BuiltInServerManager - built-in server started, port 63342
2020-02-06 18:47:45,324 [ 2715] INFO - gs.impl.UpdateCheckerComponent - channel: release
2020-02-06 18:47:46,947 [ 4338] INFO - pl$FileIndexDataInitialization - Initialization done: 1883
2020-02-06 18:47:47,119 [ 4510] INFO - exImpl$StubIndexInitialization - Initialization done: 163
2020-02-06 18:47:48,777 [ 6168] INFO - j.ide.script.IdeStartupScripts - 0 startup script(s) found
2020-02-06 18:47:48,825 [ 6216] INFO - CompilerWorkspaceConfiguration - Available processors: 4
2020-02-06 18:47:50,204 [ 7595] INFO - .diagnostic.PerformanceWatcher - Pushing properties took 1001ms; general responsiveness: ok; EDT responsiveness: ok
2020-02-06 18:47:50,319 [ 7710] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stdout]: Build process started. Classpath: C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2019.3.2/plugins/java/lib/jps-launcher.jar
2020-02-06 18:47:50,446 [ 7837] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
2020-02-06 18:47:50,461 [ 7852] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Defaulting to no-operation (NOP) logger implementation
2020-02-06 18:47:50,461 [ 7852] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
2020-02-06 18:47:50,619 [ 8010] WARN - com.intellij.util.xmlb.Binding - no accessors for class org.jetbrains.kotlin.idea.highlighter.KotlinDefaultHighlightingSettingsProvider
2020-02-06 18:47:51,315 [ 8706] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: WARNING: An illegal reflective access operation has occurred
2020-02-06 18:47:51,315 [ 8706] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: WARNING: Illegal reflective access by com.google.protobuf.UnsafeUtil (file:/C:/Program%20Files/JetBrains/IntelliJ%20IDEA%20Community%20Edition%202019.3.2/lib/protobuf-java-3.5.1.jar) to field java.nio.Buffer.address
2020-02-06 18:47:51,331 [ 8722] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: WARNING: Please consider reporting this to the maintainers of com.google.protobuf.UnsafeUtil
2020-02-06 18:47:51,331 [ 8722] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
2020-02-06 18:47:51,331 [ 8722] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: WARNING: All illegal access operations will be denied in a future release
2020-02-06 18:47:53,414 [ 10805] INFO - .diagnostic.PerformanceWatcher - Post-startup activities under progress took 4446ms; general responsiveness: ok; EDT responsiveness: 1/4 sluggish, 1/4 very slow
2020-02-06 18:47:53,659 [ 11050] INFO - tartup.impl.StartupManagerImpl - C:/The Cauldron (temp)/hello_world_java/.idea case-sensitivity: expected=false actual=false
2020-02-06 18:47:53,800 [ 11191] INFO - tor.impl.FileEditorManagerImpl - Project opening took 7857 ms
2020-02-06 18:47:54,674 [ 12065] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stdout]: Build process started. Classpath: C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2019.3.2/plugins/java/lib/jps-launcher.jar
2020-02-06 18:47:54,902 [ 12293] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
2020-02-06 18:47:54,902 [ 12293] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Defaulting to no-operation (NOP) logger implementation
2020-02-06 18:47:54,902 [ 12293] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
2020-02-06 18:47:55,534 [ 12925] INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 5330ms; general responsiveness: ok; EDT responsiveness: 1/6 sluggish, 1/6 very slow
2020-02-06 18:47:56,848 [ 14239] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: WARNING: An illegal reflective access operation has occurred
2020-02-06 18:47:56,848 [ 14239] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: WARNING: Illegal reflective access by com.google.protobuf.UnsafeUtil (file:/C:/Program%20Files/JetBrains/IntelliJ%20IDEA%20Community%20Edition%202019.3.2/lib/protobuf-java-3.5.1.jar) to field java.nio.Buffer.address
2020-02-06 18:47:56,848 [ 14239] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: WARNING: Please consider reporting this to the maintainers of com.google.protobuf.UnsafeUtil
2020-02-06 18:47:56,848 [ 14239] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
2020-02-06 18:47:56,848 [ 14239] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: WARNING: All illegal access operations will be denied in a future release
2020-02-06 18:47:59,470 [ 16861] INFO - rationStore.ComponentStoreImpl - Saving appCodeFoldingSettings took 16 ms, FileEditorProviderManager took 15 ms, FileTypeManager took 16 ms, NotRoamableUiSettings took 16 ms, TextMateSettings took 15 ms
2020-02-06 18:47:59,611 [ 17002] INFO - j.ide.plugins.RepositoryHelper - using cached plugin list (updated at 06/02/2020 6:46 pm)
2020-02-06 18:47:59,735 [ 17126] INFO - rationStore.ComponentStoreImpl - Saving Project (name=hello_world_java, containerState=ACTIVE, componentStore=C:\The Cauldron (temp)\hello_world_java) CompilerConfiguration took 16 ms, GradleSettings took 15 ms, ModuleRenamingHistory took 16 ms, ProjectViewState took 16 ms, ServiceViewManager took 15 ms, VcsManagerConfiguration took 16 ms, XDebuggerManager took 15 ms
2020-02-06 18:48:00,203 [ 17594] INFO - Types.impl.FileTypeManagerImpl - 0 auto-detected files. Detection took 0 ms
2020-02-06 18:48:00,656 [ 18047] INFO - org.jetbrains.io.BuiltInServer - web server stopped
2020-02-06 18:48:00,656 [ 18047] INFO - stubs.SerializationManagerImpl - START StubSerializationManager SHUTDOWN
2020-02-06 18:48:00,656 [ 18047] INFO - stubs.SerializationManagerImpl - END StubSerializationManager SHUTDOWN
2020-02-06 18:48:00,671 [ 18062] INFO - pl.local.NativeFileWatcherImpl - Watcher terminated with exit code 0
2020-02-06 18:48:00,671 [ 18062] INFO - il.indexing.FileBasedIndexImpl - START INDEX SHUTDOWN
2020-02-06 18:48:00,703 [ 18094] INFO - il.indexing.FileBasedIndexImpl - END INDEX SHUTDOWN
2020-02-06 18:48:00,703 [ 18094] INFO - newvfs.persistent.PersistentFS - VFS dispose started
2020-02-06 18:48:00,718 [ 18109] INFO - newvfs.persistent.PersistentFS - VFS dispose completed
2020-02-06 18:48:00,718 [ 18109] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE SHUTDOWN ------------------------------------------------------
2020-02-06 18:48:00,718 [ 18109] INFO - org.jetbrains.io.BuiltInServer - web server stopped

0
Avatar
Permanently deleted user

Hi,

I am also experiencing the same issue.

0

Thanks for information! I reported issue on YouTrack: https://youtrack.jetbrains.com/issue/IDEA-232407

As a workaround you may try to create new library in "Project Structure | Libraries" and then add it in module dependencies.

0

I've been able to work around this same problem (adding Selenium jar files) by simply adding the directory that the two jar files sit in, instead of adding each jar file individually.  That seems to then add both files successfully (once you apply the change) - at least, it has for me using the same Selenium version and with Intellij 2019.3.2.

0

Please sign in to leave a comment.