How to deal with multiple CLASSPATHs?

Using the Java SDK with TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
User avatar
jeffy
Posts: 323
Joined: Mon Mar 03, 2003 9:04 am
Location: Philadelphia

How to deal with multiple CLASSPATHs?

Post by jeffy »

I've just encountered my first project that requires an entirely separate classpath from the one I've been using for years. It calls a function in an old version of JUnit that no longer exists the more current version, which is on the classpath.

I have a "compile" tool (on the Tools menu), and another to "compile all in the current directory", both of which use the system classpath.

Anyone have advice on how to manage this?

Is the long term answer that each project should really have its own "javac" tools, which use that project's exclusive classpath?

Is having a system (global) classpath just a bad idea?
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Re: How to deal with multiple CLASSPATHs?

Post by MudGuard »

jeffy wrote:Is the long term answer that each project should really have its own "javac" tools, which use that project's exclusive classpath?
In my opinion, textpad is not the right tool for java - it is nice for some very small java projects, but I think Eclipse or Netbeans are much better if you seriously program in java.
Post Reply