Gud day everyone........I just want to ask if anyone here knows how to compile java using the terminal in ubuntu if your sourcecode has many classes..

I tried already how to compile java in terminal using ubuntu like this one
and this command creates Begin.class(the name of the class in my sourcecode) and then i type
java Begin
and it runs successfully

but my problem is how to run a java sourcecode after compilation if there are different classes in my sourcecode which creates many .class file......

i hope you could help me with this one...

Your help is highly appprciated,,,,,,Thanks in advanced>>>>>>>>>>>

javac *.java
// or
javac `find . -name \*.java`
// then
java TheClassWithAMainMethod

one word: ant

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.