This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes [IntelliJ] Adding JARs to a project Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "[IntelliJ] Adding JARs to a project" Watch "[IntelliJ] Adding JARs to a project" New topic
Author

[IntelliJ] Adding JARs to a project

Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

I tried adding CGLIB to my project, using "Attach classes from repository..." in the Project Structure settings. When I run my appli, the libraries are not in the path, so it fails. I'm attaching several screens of my project settings. In the last screen, you can see that nothing appears under "Others" in the Structure view. What am I missing ?



[Thumbnail for Screenshot-Structure.png]


[Thumbnail for Screenshot-Project Structure.png]


[Thumbnail for Screenshot-Module.png]


[My Blog]
All roads lead to JavaRanch
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

Which version you are using?
I have IntelliJ 9.0.3 Ultimate Edition and "Attach classes from repository" doesn't exist.


[Thumbnail for Screen shot 2010-12-18 at 4.29.06 AM.png]

Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

IntelliJ 10. "Attach classes from repository..." is a new feature (very convenient)
The problem was solved after detaching and reattaching the libraries. Strange. I wonder why the libraries were not properly recognized after the import.
 
Have you checked out Aspose?
 
subject: [IntelliJ] Adding JARs to a project
 
It's not a secret anymore!