non-default Java classes how to import

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jun 2006
Posts: 1
Reputation: Aretai is an unknown quantity at this point 
Solved Threads: 0
Aretai Aretai is offline Offline
Newbie Poster

non-default Java classes how to import

 
0
  #1
Jun 26th, 2006
Hi,

I do not know where to place non-default Java classes so that i could be able to import them with command like this:

import myclass.myoperation;

just like

import javax.swing.JPanel;

I tried to find a proper classpath but i was not able to locate it - tired echo %CLASSPATH% and got some strange results.

thx for any help
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: non-default Java classes how to import

 
0
  #2
Jun 26th, 2006
put the jarfiles or directories on the classpaths for both your compiler and runtime and it will work fine.

Most people have a lib directory per project containing everything needed, easy to include
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC