How to Change a Class File

The Java programming was developed and released by Sun Microsystems in 1995. Java programs are written as text files and then compiled into byte code by the Java compiler. The compiled Java files are referred to as "class" files and can be run via the Java Runtime Environment installed on major computer operating systems. In order to change a Java class file, you have to recompile the original Java source code with the Java Development Kit (JDK).

Things You'll Need

  • Java Development Kit
Show More

Instructions

    • 1

      Download and install the latest JDK from the Sun Microsystems uniform resource locator listed in the Resources section of this article.

    • 2

      Open the Java source file for the class file you desire to change in your computer's text editor. Make the desired changes to the file, save and exit the text editor.

    • 3

      Open the MS DOS prompt by selecting the "Start" menu and typing "command" in the search text field. Then change to the directory that the Java source file is saved on your computer. For example, if your java source file was saved in "c:\myJavaFiles" the command to enter at the DOS prompt would be "cd c:\myJavaFiles" followed by pressing the "enter" key.

    • 4

      Type the following command at the DOS prompt: "javac myJavaFile.java" and the class file will be changed.

Related Searches:

References

Resources

Comments

You May Also Like

  • How to Edit SWF Files

    Flash animation is the standard for Internet video. Videos on YouTube and other websites use SWF (.swf) files, which are the Web-optimized...

  • How to Edit a JSP File

    A ".jsp" is a Java Server Page file. This type of file contains HTML code, the building blocks of a website. There...

  • How to Edit a WordPress CSS File

    CSS, or Cascading Style Sheets, are the building blocks that store the elements of your Web site's appearance, such as colors and...

  • How to Edit File in CentOS

    CentOS is a free, open source, Enterprise class Linux distribution which was created using the RedHat Enterprise Linux source code. The majority...

  • How to Modify Suit Stats in Crysis

    Playing Crysis is an experience that has captured gamers' attention. As with any game, soon gamers look for ways to improve the...

  • How to Edit PDF Files

    The Portable Document Format (PDF) was created to facilitate the sharing of already completed documents. Even so, occasionally editing is necessary.

  • How to Edit a PDF File

    If you have ever tried to modify a PDF file, you understand that it is not as straightforward as one would think....

  • FTAM Protocols

    FTAM Protocols. FTAM or File Transfer Access Management protocol is a tool that allows file transfers between a client computer and the...

  • How to Change the Properties of a PDF File

    The Portable Document Format (PDF) file can be viewed and edited using Adobe Acrobat. In Acrobat, you can open a PDF and...

  • How to Change a File Format

    Often, a file's format may be changed by simply renaming the file with another extension, such as .txt or .html. Other times,...

  • How to Modify a PDF File

    If you have a PDF on your computer that you want to make changes to or edit, you can actually modify the...

  • How To Change the File Icon

    An icon is a small picture (or pictogram) that represents a computer program, file or a folder. Special image files with the...

  • How to Edit PHP Files

    PHP is a server side scripting language used in creating dynamic web pages. It is possible to use third-party PHP applications on...

  • How to Make a Music Video for Class

    Choose the music you will use for your music video and save it to your computer in a file type that your...

  • How to Edit a WMV File

    In our current age of hand-held technology, it seems that just about everyone has some type of device that shoots video. Many...

  • How to Change File Names

    When creating document files and image files, the computer will assign a file name if you fail to do so. Image files...

  • How to Modify a Chapter 13 Plan

    A Chapter 13 bankruptcy plan is designed to permit you the ability to pay off all of most of your debts over...

Related Ads

Featured