This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JSP and the fly likes How to create and complie a class file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » JSP
Bookmark "How to create and complie a class file" Watch "How to create and complie a class file" New topic

How to create and complie a class file

Mark Stringham

Joined: Nov 30, 2001
Posts: 12
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

A gentle push and a mild arc, and the cowhide globe hits home - Hot Rod Hundley
Kyle Brown
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
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 Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at for other WebSphere information.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: How to create and complie a class file
It's not a secret anymore!