Where to place class files?

H

Herman

Hi, I use the Sun SDK 1.4.2, and I have an assignment which requires
me to use several classes. Is there anywhere particular that I need
to put the compiled *.class files for the base classes that I'm
building? Or will the current directory suffice? My classpath is set
to:

"i\QTJava.zip";.

Thanks!
 
N

newcastle

Herman said:
Hi, I use the Sun SDK 1.4.2, and I have an assignment which requires
me to use several classes. Is there anywhere particular that I need
to put the compiled *.class files for the base classes that I'm
building? Or will the current directory suffice? My classpath is set
to:

"i\QTJava.zip";.

Thanks!

Using the current directory of the project should work fine.

Dan
 
H

Harald Hein

Herman said:
Hi, I use the Sun SDK 1.4.2, and I have an assignment which requires
me to use several classes. Is there anywhere particular that I need
to put the compiled *.class files for the base classes that I'm
building?

For anything more than a trivial program, use the -d option to place
the class files in an own directory structure. Also consider using a
jar to bundle them once you are done with development.

BTW: comp.lang.java is a non-existing newsgroup
BTW2: beginners questions should go to comp.lang.java.help. Followup-To
set
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top