This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclispe and classpath

 
john sayeau
Ranch Hand
Posts: 33
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone know how to set my classpath globally (for all projects) on eclipse?
I know how to do it from the os and then use the jdk to compile but I'd like to not have to set it up on every eclipse project.

I'm going through a text book that uses the same classes regularly and I 'd like to not have to add the build path to each project individually.

I tried Eclipse>preferences>Java>build path and it asks for a variable name. I'm not sure what it wants exactly. Tried a couple things... no go.
Thanks.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33696
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A variable is used to abstract from the absolute path but doesn't help with accessing multiple jars.

Are the common classes all in the same jar/project? If so, you can point to that from each project. If not, can they be?
 
john sayeau
Ranch Hand
Posts: 33
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What I do at the project level is right click the project>>properties>>configure build path>>add class folder>>create new folder>>advanced and then select the folder where the namespace path starts.
In this case it's net/mindview/util. This allows me to import the namespace to my classes.(hope my terminology is correct)

What I want is to do the above globally, somehow, so I don't have to do it for every project that needs it.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic