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 Linux / UNIX and the fly likes How to edit class files with JDK? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "How to edit class files with JDK?" Watch "How to edit class files with JDK?" New topic

How to edit class files with JDK?

Santosh Maharjan

Joined: Jul 25, 2003
Posts: 2
How can I edit class files with JDK1.2.2? I don't want to use any other external applications to edit the class files. Is it possible to edit class files with JDK alone?
Thanks and regards,
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24189

The JDK does not support directly editing class files. There are a number of third-party tools that do support this -- Google is your friend.
Now two questions for you:
1) Why JDK 1.2.2 -- it's ancient! Newer Linux JDKs have much better performance.
2) Do you really mean "editing class files" or are you just trying to say "writing or editing code?" If it's the latter, most Linux distributions contain many suitable text editors, perhaps including Emacs, vi, nedit, kedit, kate, and others, any of which can be used to edit Java code.

[Jess in Action][AskingGoodQuestions]
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 edit class files with JDK?
jQuery in Action, 3rd edition