Pointing on an external library in Intellij,
is there a way to know why it was imported?
link it to a gradle import?
Related
As I checked out this project from Git with Intellij it seemed not to be able to resolve where the Derby jars were for it couldn't import the class org.apache.derby.drda.NetworkServerControl. You can see the picture bellow in which the right side is the one at issue and the jars don't have the navigating triangles to open up the classes. So how should I resolve this problem?
First you need to add this jar to your classpath. You can it in two ways:
Add Derby dependency to your project from Maven repository.
Derby DB is already included in the Java Development Kit (typically /Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/db/lib/derby.jar). Open your Project Structure (command+;) and add it as a library to your project:
Now it is available under External libraries in the Project View (command+1):
Reading Google instructions, I found that I have to import and reference the Play Service library into the project.
So I created a project, copied google-play-service_lib project, imported it as a library project, went to the main project and added this library as a Module dependency. However, I still have an error that IntelliJ IDEA does not recognize package com.amazon.device.ads.*.
So I had to add a library dependency as well, although this library already exists in the /lib directory of Play Service library project.
Am I doing something wrong or we're actually requested to add both dependencies in IntelliJ IDEA? If yes, is this maybe a bug in IntelliJ IDEA 13? I can't remember of having to do the same in earlier versions of IntelliJ IDEA (I have been using it for three years).
This is how it looks in the end and it works only this way! Check the last two dependencies.
I'm using the Intellij Idea 13 Gradle plugin and I'd like to modify the default artifact creation.
The problem I face is that my war modules have dependencies on 3rd party libraries that I don't want to include in the war itself, however I would like to include them in the Intellij artifact so they are deployed to my local server for testing.
At the moment I'm getting errors of the type Artifact ... library required for module is missing from the artifact.
What would be the best way to tell Intellij to add those libraries?
Thanks
I haven't found the way to add those libraries, but I've found the way to set them as provided so they can be added to the server lib folder.
The solution is detailed here: Provided dependencies using Gradle (JetGradle) and Intellij Idea 13
I have an eclipse plugin that I would like to access some classes in a regular Java Project. I was wondering if it is possible to generate a jar file from the plugin and then use that jar file in the Java Project. So in summary:
Is it possible to use an eclipse plugin project as jar library in a regular java project?
Thanks,
-- Tiago
Most of the time,an Eclipse plugin is exactly a jar file/few jar files,and on some other conditions it contains a features folder and other type files.For a single jar which is added dependency to this project,any public/static members can be accessible.
So just add it to the project's build path and you can access them.
I've loaded a playframework project into intellij. I have an external jar in the project (Which is in my lib folder) but for some reason intellij isn't detecting it.
The jar is also included in the SDK's for platform settings. In any other project I have in intellij it detects this JAR no problem. Anyone have any idea what I'm doing wrong?
While doing in development in idea you have to add the lib folder as a dependency to the module. It worked for me when I added the manual dependency
File->Project Structure-> Modules -> (select your module if multiple) -> dependencies
Then I just clicked 'add' to add the lib folder. Your project would start detecting the jars.
Intellij Documentation to add external jars.