A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
Joined: Jul 20, 2007
Jul 22, 2007 09:27:00
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...
Joined: Mar 22, 2005
Jul 22, 2007 09:46:00
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.
Ping & DNS
- updated with new look and Ping home screen widget
I agree. Here's the link:
subject: compile problem
query about overridden method
calling a method
Please HELP...Devaka Exam Test 2 Number 69. I totally don't understand it.
Passing a refrence to another Class vs method
Accessing component from main class.... Help!
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014