• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to compile

 
richard michael
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to compile or Execute Java Package in a command Prompt ..?
what is the command?
Can any one give Suggestions ?
Thank You
 
sudhir nim
Ranch Hand
Posts: 212
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You dont compile or execute package but classes in package.

you can compile a class using following command
javac packagename.sourcefilename.java

execute

java packagename.classname
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 15715
73
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

See Sun's Hello World! tutorial.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!