Java - setting classpath
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?
Solution 1:
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.
Solution 2:
- 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.