Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / December 2005

Tip: Looking for answers? Try searching our database.

compliler

Thread view: 
wsh1982email@163.com - 29 Dec 2005 03:00 GMT
today,I come across a very wizzard question.I have two class file in
the same package.
when I use one of the class in the other class file.But the compiler
notified me of "not
found the class".

in a word,how to use a class in the same package .my operation system
is winme.
Andrew Thompson - 29 Dec 2005 03:13 GMT
> today,I come across a very wizzard question.I have two class file in
> the same package.
> when I use one of the class in the other class file.But the compiler
> notified me of "not
> found the class".

<http://www.physci.org/codes/javafaq.jsp#exact>

> in a word,

I suggest less words, more copy/paste of the *exact*
input and output you are seeing.

Do you know how to copy from the command line (DOS)?

Signature

Andrew Thompson
physci, javasaver, 1point1c, lensescapes - athompson.info/andrew

chiho.chan@gmail.com - 29 Dec 2005 06:04 GMT
Did you set the classpath to "." ?

you may do it with
set CLASSPATH=.;%CLASSPATH%
Roedy Green - 29 Dec 2005 07:48 GMT
>today,I come across a very wizzard question.I have two class file in
>the same package.
>when I use one of the class in the other class file.But the compiler
>notified me of "not
>found the class".

Almost every Java program does that without problem. Please post your
code.

Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

Ricky Clarkson - 29 Dec 2005 13:14 GMT
If you want to compile one file and it depends on another file, you'll
need to compile both at once.

javac *.java

usually suffices.

Other than that, go to http://ant.apache.org and learn about ant.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.