Skip to main content



      Home
Home » Newcomers » Newcomers » Classpath problem
Classpath problem [message #106821] Mon, 03 October 2005 11:47 Go to next message
Eclipse UserFriend
Originally posted by: manisha_msathe.yahoo.com

I am bit confuse about this. I have one single java class file (packaged
under com.util). I have saved this class file under
c:\external\com\util\PropUtil.class

I want to use one method inside, how can i add it using Java Build Path. I
went thr docs but still bit confused. Exactly which option to use?

Pls help,

regards
Manisha
Re: Classpath problem [message #106907 is a reply to message #106821] Mon, 03 October 2005 12:13 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse3.rizzoweb.com

MMS wrote:
> I am bit confuse about this. I have one single java class file (packaged
> under com.util). I have saved this class file under
> c:\external\com\util\PropUtil.class
>
> I want to use one method inside, how can i add it using Java Build Path.
> I went thr docs but still bit confused. Exactly which option to use?

There are several options. The simplest is to put the .class file(s)
into your Eclipse project, then use the "Add Class Folder" button in
Java Build Path > Libraries.
Another option is to make a JAR and include that on the Java Build Path.

Finally, you can use the "Add Variable" button on the Libraries tab of
Java Build Path. Configure a new Variable that points to the external
location (c:\external in your case) and then select that Variable to be
included on the Java Build Path.

By the way, why not just include the source of the PropUtil.class in the
project you are working on?

HTH,
Eric
Previous Topic:Installation problem
Next Topic:Eclipse doesn't display cvs conflict?
Goto Forum:
  


Current Time: Thu Jul 03 12:36:08 EDT 2025

Powered by FUDForum. Page generated in 0.11496 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top