File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Make it so: Java DB Connections & Transactions this week in the JDBC 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: 42959
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.
I agree. Here's the link:
subject: compile problem
It's not a secret anymore!