how to define classpath for eclipse

Right click on a Project. Go Properties->Java Build Path. The Projects tab is for selecting other Projects the current Projects depends on - i.e. needs the class files. The Libraries tab is for adding external jars or creating and adding Eclipse libraries (which are a collection of jars).

When you're done setting it up you can look at the .classpath file in the Project root directory to see what you've done. But don't edit this file directly.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: