Thursday, March 28, 2013

Setting the Classpath in Intellij IDEA

Setting the Classpath in Intellij IDEA:
Way1 :
  1. Open Project Structure (either Ctrl+Alt+Shift+S or File > Project Structure)
  2. Select "Modules" on the far left under Project Settings
  3. Select the module in question in the middle pane
  4. Arrange the order of the dependencies lists. One of the dependencies will be <Module Source> Which ever is listed first will be the one IDEA will give preference to. So if you want the local instance of Foo to be used, make sure <Module Source> is above the dependency.
screenshot.png
Way2:
  1. Right click on any directory in your IntelliJ project, select "Mark Directory As...", and choose "Source Root"
  2. That director folder will change color from yellow to blue; IntelliJ considers all those directories to be in your CLASSPATH.

Related Posts:

  • JAVA IDE'sBest JAVA IDE :Integrated Development Environments (IDE) provide benefits to programmers that plain text editors cannot match. IDEs can parse source code as it is typed, giving it a syntactic understanding of the code. This a… Read More
  • Eclipse IDE TutorialPlease find the following site(s) it is very useful for beginners and experienced people.http://www.vogella.com/tutorials/Eclipse/article.htmlhttps://www.eclipse.org/http://www.tutorialspoint.com/eclipse/… Read More
  • Difficult Questions And Intelligent Answers for Interview Difficult Questions and Intelligent Answers for Interview: 1. How can you drop a raw egg onto a concrete floor without cracking it?Ans. Concrete floors are very hard to crack! (UPSC Topper)2. If it took eight men ten hou… Read More
  • Top Ten BrowsersTop 10 BrowsersNov 2, 2010 by Ranga ReddyIf you are surfing Internet and want to use feature rich browser then you have so many options to choose from.Choosing the best for great experience, you will have to know ab… Read More
  • Sample Resumes for Freshers and ExperienceRESUMESFRESHERS RESUME FORMATS:FORMAT 1    FORMAT 2    FORMAT 3    FORMAT 4    FORMAT 5    FORMAT 6    FORMAT 7&nbs… Read More

0 comments: