• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

compile problem

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic