Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

compile problem

 
Anand Divakaran
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
HOW DO I COMPILE CLASS 2...
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By doing a "javac tv\Class2.java" 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic