English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

How can I open a .class file?

From my research I have found that .class is for a javascript database thingy, and I have tryed reading the class file with notepad and I have found some clear text, and some special characters. I have a feeling though, it will be alot clearer to read using a program. Do any of you know what program I would need (I am thinking it might be access) to be able to read this class file.


thanks...

2006-12-06 14:29:39 · 8 answers · asked by Anonymous in Computers & Internet Programming & Design

Thank you all for your answers... you all are very much correct.

Since I asked my question I have done alittle research and In fact found that .class is a compressed java file. To be able to get "clear text" from this file, you need to decompress it.

You all deserve to be the best answer. I wish I could give you all extra points, but since I cant.. the person who gave me a link to the decompresser gets my vote...

thanks again guys.

2006-12-06 19:21:38 · update #1

8 answers

you would need a java decompiler to read a .class file:

http://members.fortunecity.com/neshkov/dj.html

2006-12-06 14:32:25 · answer #1 · answered by VzjrZ 5 · 1 1

Read Class File

2016-11-02 23:05:02 · answer #2 · answered by ? 4 · 0 0

A .class file is file is a byte code compiled .java file. A java program that has been compiled. Because it is bytecode, it is designed to be understood and executed by the Java runtime environment. This means it is almost like a binary machine code but for Java rather than for your processor. It also means you cannot easily read the file as it not meant for human interpretation. To be able to read it, you can attempt to use a Java decompiler, to reconstruct the source file. However, the original source file might be more readable than a decompiled java file, because the use of symbolic names would give insight into the purpose of a specific procedure. It is no way related to javascript, which is an interpreted language that is java-like, but is not java. Whatever clear text you might find would be text strings and symbolic markers within the file. The link at the end is a google search for Java Decompilers. You can check them out and determine which could be suitable for your need.

2006-12-06 14:43:03 · answer #3 · answered by Dragonlord Warlock 4 · 2 0

A .class file is the byte-code compiled output from a .java file.

DO NOT confuse "Java" with "Javascript". These are extremely different programming languages. The only reason that Javascript has a name similar to "Java" is because the marketing department at Netscape decided to rename "Livescript" when "Java" was first becoming quite popular.

You can use a java decompiler in an attempt to decompile the .class, but often you'll find that a single .class is dependent on many other .class files from the same or associated packages (which are typically all bundled together in a .jar or .zip).

2006-12-06 14:43:34 · answer #4 · answered by RGB_Mars 3 · 2 0

A .class file is generally associated with a compiled java class file. I am not sure what you mean by javascript database thingy. You can use a decompiler such as JAD to decompile the java class file.

2006-12-06 14:34:07 · answer #5 · answered by taknev 3 · 1 1

It might also be used for a c++ file or any number of programming languages. Are you looking to edit this file. Look for some help at www.programmersheaven.com

2006-12-06 14:33:43 · answer #6 · answered by micaso1971 5 · 0 0

to me it sounds like a non-compiled Java program. You need to get a java compiler.

2016-03-19 03:25:42 · answer #7 · answered by Anonymous · 0 0

i'm pretty sure a .class file is compiled javascript (or compiled something) and therefore you can't read it.

2006-12-06 14:31:30 · answer #8 · answered by go_uva 3 · 0 1

fedest.com, questions and answers