• Post Reply Bookmark Topic Watch Topic
  • New Topic

packages and compailation  RSS feed

 
lokesh rajarathnam
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all...

I get a problem on compiling the package programming... please help me in compilation.... such that in steps to take compilation..
Here is the problem...

firstly I have package directories pack1,pack2, pack3 which contain class. In package4 i have main class which imports all the above three packages.....

1.how can i compile this program..?

{it is not working in javac pack4.java,getting an more errors}
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Instead of compiling from the directory where pack4.java is in, change to one directory level higher (i.e. the parent directory), and then do a "javac -classpath . pack4/pack4.java".
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!