• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to compile?  RSS feed

 
Jano Balakrishnan
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to java.I need to know how to compile a java file from another java file?Can any one help me?
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See the last paragraph of http://faq.javaranch.com/java/JavaIntermediateFaq#runtime-classes on how to do this, both using Java 6 and pre Java 6.
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jano,

Can I ask why you are trying to do this? Normally you would compile multiple java files using a single javac command.
 
Jano Balakrishnan
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is nothing related to this.Can you suggest me to do this
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The third paragraph is the one starting with "For the ultimate in flexibility, ...". If that is not what you're asking about, please give more detail on what it is that you are asking about.
 
camilo lopes
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in my blog there is one post about it.
but in portuguese!
my blog
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!