File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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: 24195

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 agree. Here's the link:
subject: How to edit class files with JDK?
It's not a secret anymore!