my dog learned polymorphism*
The moose likes Beginning Java and the fly likes compile problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "compile problem" Watch "compile problem" New topic

compile problem

Anand Divakaran

Joined: Jul 20, 2007
Posts: 11
Assume i have a package tv, consisting of an interface and two classes class1 and class2 ,all the three stored in separate files within tv
class2 implements the interface and extends class 1

i successfully compiled the interface file and class1.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41141
By doing a "javac tv\" while you are at the root of the package hierarchy (which means one level up from Class2).

Alternatively, you can compile all of them together by "javac *.java" or "javac tv\*.java", depending on the directory you're in.

Ping & DNS - my free Android networking tools app
It is sorta covered in the JavaRanch Style Guide.
subject: compile problem
Similar Threads
Please HELP...Devaka Exam Test 2 Number 69. I totally don't understand it.
Accessing component from main class.... Help!
Passing a refrence to another Class vs method
calling a method
query about overridden method