16

My sample application tells me:

No 'qtjambi-deployment.xml' found in classpath, loading
libraries via 'java.library.path'

I wish for my application to use the qtjambi-deployment.xml, but unfortunately can't find the appropriate setting in IntelliJ IDEA 10.5.

Could someone help me?

Yippie-Ki-Yay
  • 22,026
  • 26
  • 90
  • 148

3 Answers3

38

You can right click on any directory in your IntelliJ project, select "Mark Directory As...", and choose "Source Root". That director folder will change color from yellow to blue; IntelliJ considers all those directories to be in your CLASSPATH.

duffymo
  • 305,152
  • 44
  • 369
  • 561
  • Will those settings remain in effect for ALL future projects? – Ungeheuer Oct 28 '16 at 19:36
  • No, local to the current project. They are all independent. If you use Maven and its standard directory structure IntelliJ will be smart enough to follow conventions. – duffymo Oct 28 '16 at 19:39
  • I need to add a jar file that has specialized testing...stuff. If I go to project structure, would the jar be considered a library? – Ungeheuer Oct 28 '16 at 19:41
  • Yes. Non-Maven you'd add it to a /lib folder and add that to CLASSPATH. If you're using Maven you'd include that in your pom.xml. – duffymo Oct 28 '16 at 19:45
3
  • From the top menu click 'Run' => 'Edit Configurations'
  • Choose the right 'Application' in the left column (if it's not yet selected)
  • Click on 'Configuration' tab in the right hand side column (if it's not yet selected)
  • Click the '...' button to the right of 'Environment variables:'
  • Click the '+' button.
sn00k4h
  • 443
  • 4
  • 10
  • 3
    The environment variable being asked is CLASSPATH – sn00k4h Sep 03 '14 at 00:17
  • Doesn't work for me. How's it gonna work anyway when the `-classpath` is going to **replace** your `CLASSPATH` variable? https://archive.is/f9GRk#selection-527.13-533.4 – Pacerier Dec 10 '17 at 05:10
0

qtjambi-deployment.xml file is situated in qtjambi-win<architecture>-msvc<year>-<vertion>.jar. Add this package to your classpath and your building problem will be solved. I hope)

B.Pukhalskyi
  • 51
  • 11