File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to create and complie a class file

 
Mark Stringham
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I want to create a class file - I understand that I
1)Create the file and save it with the .java extension
2)The .java file has to be compiled so it then becomes a .class file.
How do I complile the file to become a class file?
Do I place the .java file in the /lib/ dir of the application server?
Sorry for the stupid newbie question
Mark
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to use the javac command to invoke the compiler to turn a .java file into a .class file. (If using Tomcat) you then place the .class file in the lib directory.
Kyle
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic