creating a collection of java files

K

kiran1785

i am working on a messenger project. i hv a collection of java files.. i
dont know much of java. can anyone plz tell me how to combine all these
files into a single project?
i am getting a lot of errors if i try to compile a single file including
other files as in c++
 
O

Oliver Wong

kiran1785 said:
i am working on a messenger project. i hv a collection of java files.. i
dont know much of java. can anyone plz tell me how to combine all these
files into a single project?
i am getting a lot of errors if i try to compile a single file including
other files as in c++

Do you have a Java IDE to work with?

Typically what is done is to put all the java files in the same
directory, or in a group of directories, where these directories act as
packages. However, you'll have to edit the Java files themselves so that
they declare which packages they belong to. If you're mixing C++ files with
Java files, you're either making a mistake, or you're doing something
relatively advanced (or both).

Out of curiosity, why are you messing around with Java files if you
don't know how to program in Java?

- Oliver
 

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

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top