Questions tagged [.class-file]

Class files are the format used by the Java Virtual Machine.

Class files are the format used by the Java Virtual Machine. Java programs are typically compiled into class files, which may be bundled into a jar archive.

283 questions
0
votes
1 answer

How to dump a Java class in memory to a .class file?

I have a obfuscated Java jar file that decrypts itself on the fly when run in the JVM. How can I, without an external agent, take a simple class from the JVM memory, and create a .class file? I have already tried a method using a…
Nassim MOUALEK
  • 4,702
  • 4
  • 25
  • 44
0
votes
2 answers

Compile isolated java file

I need to patch an old version of some Java software. The problem is that reconstructing the whole package at the old version would be very difficult because it is a very complex program. I have the corrected source file. Is there any way to compile…
Tyler Durden
  • 11,156
  • 9
  • 64
  • 126
0
votes
1 answer

converting .class into .java

I deleted a Java project from my hard disk in an attempt to do some refactoring with Eclipse. Luckily I found a recent version of an Executable Jar File and decrompressed it into a bunch of .class files. I've read some 'decompiling' threads on SO…
user2651804
  • 1,464
  • 4
  • 22
  • 45
0
votes
1 answer

How can I change all .class files in a jar(or folder) to .java (or .txt) at once?

I have always used this to decompile any .class file to readable format. However, now I need to change around 30-40 .class files to readable format to push to my github. How may I change all the .class files to readable (.java or .txt) at once?
HackCode
  • 1,837
  • 6
  • 35
  • 66
0
votes
2 answers

Does .class file contains information about compiler version?

I have class file. It is a result of compilation. Can I know the compiler version which was used for creation of this file? As a result I want to know something like java 1.6.0_45
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
0
votes
1 answer

Get instance of the class of a ClassFile

i've a folder which contains jar files. i load all of those files, then i load all of the class files which are in the jar files. now i want to make an instance of every class of the class files. ClassFile[] classFiles = loadClassFiles(); Object[]…
Basti
  • 1,117
  • 12
  • 32
0
votes
1 answer

Java ByteCode arithmetic operation

I'm going to make a simple compiler for a school project, i want generate .class file, i read the file format but to understand better the .class file format and the java bytecode i have this class: public class Me { public void myMethod() { …
iconer
  • 287
  • 1
  • 4
  • 13
0
votes
1 answer

can we put hotifx( without build just move class file ) after adding new method in java class

My JAVA Application is running since last 10 days. Now I want to put a .class file as bug fix in which I have introduced a new method , I dont want to do build. I will just put it as hotfix in classes directory and bounce the server. Long back I…
Vipin
  • 4,851
  • 3
  • 35
  • 65
0
votes
2 answers

What happens if I mislay the qualified path name information for a "third party" .class file?

Suppose I buy a .class file from a "third party" developer. They send me the .class file, but not the source code. In their accompanying documentation, they tell me what the qualified path name for the .class file is, what the class is called, and…
user2911290
  • 1,396
  • 1
  • 16
  • 26
0
votes
1 answer

How to Convert JSON Data into an Object?

I have a JSON array like so: theFormData = {"FormNodeID":142365,"SubmissionMethod":"Desktop","ConfirmationEmailID":"142371","FirstName":"Solomon","LastName":"Closson","EmailAddress":"myemail@testing.com","Company":"TIF","JobTitle":"Web…
Solomon Closson
  • 6,111
  • 14
  • 73
  • 115
0
votes
1 answer

Can't build project after moving workspace

I have moved my workspace in Eclipse. Everything is fine except I can't build my project. If I delete the contents of bin and try to get the .class files back by building, no error message will be displayed but the bin folder will remain empty. I've…
user2763361
  • 3,789
  • 11
  • 45
  • 81
0
votes
1 answer

Add class files to existing project java netbeans

I have a project with java files in it. My class files are in a jar and I want to add them to my project. This is how I've added the class files: libraries > add jar. But my html applet can't find the class files, the error I'm getting is…
Sybren
  • 1,071
  • 3
  • 17
  • 51
0
votes
0 answers

Class Loader (java.lang.ClassFormatError: Truncated class file)

I am writing my own classloader, that is changing stuff in the constantpool of the classes. I know that my error is caused by my changes and not the class loader or the default class. I need to know where i have to fine the signature of the…
Leo
  • 11
  • 2
  • 7
0
votes
3 answers

output of javap command

I inspected my class file using javap command, I am unable to understand the below part Classfile /D:/WaitNotifyExample.class Last modified Dec 20, 2013; size 622 bytes MD5 checksum 4781f8cf8062fa75efa30c76adc25cfb Compiled from…
MaheshVarma
  • 2,081
  • 7
  • 35
  • 58
0
votes
3 answers

Looking for a place to store temporary .class files on Windows (some similar app support on Mac)

Possible Duplicate: Storing a file in the user’s directory in cross-platform Java I am working on a java project and the java application ends up making some .class files. Currently, these files are stored inside a projects directory inside the…
Mike2012
  • 7,629
  • 15
  • 84
  • 135