aspose file tools*
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
Author

How to create and complie a class file

Mark Stringham
Greenhorn

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
Mark


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

Joined: Aug 10, 2001
Posts: 3879
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


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to create and complie a class file
 
Similar Threads
creating a .dll from a class
Creating a directory from a java program
creating a .dll from a class
To make a .exe file from java .class files
Reading from a properties file for path declared in classpath