944,191 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 2715
  • Java RSS
Jun 26th, 2006
0

non-default Java classes how to import

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Aretai is offline Offline
1 posts
since Jun 2006
Jun 26th, 2006
0

Re: non-default Java classes how to import

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
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: J2ME Netbeans
Next Thread in Java Forum Timeline: Help on Assignment





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC