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 can I edit a .class in rt.jar to support arbitrary Elliptic Curves

I am trying to change the ECParameters class in sun.security.ec. I need to do this in order to get arbitrary curves working, and I already downloaded the OpenJDK source, edited the code and compiled it again. I unpacked my current rt.jar and…
Tosjo
  • 1
  • 5
0
votes
2 answers

java.class files directory structure same as source files?

Currently i do some runitime compilation from a src file to a jar with following steps: First: generate source files in a dir and subdirs /main /submain1 /submain2 Second: Compile code (currently all in .class files go into this…
Gobliins
  • 3,848
  • 16
  • 67
  • 122
0
votes
0 answers

Trying to edit a .class file - android dtudio

I been trying to edit an existing .class file in a project created by eflipse. In Android-Studio the upper bar says "Decompiled .class file, bytecode version: 50.0(Java6)". When i'm trying to edit something (write/delete something) inside the .class…
Erez Priel
  • 65
  • 1
  • 10
0
votes
1 answer

Trying to build a calculator in java but I keep getting the .class error

I just started a java class that my summer program was offering and we were tasked with creating a simple calculator. I have all the different cases created and all the variables accounted for but for some reason I keep getting a .class error and I…
0
votes
2 answers

Java - uninitialized static variable in .class file

In c, uninitialized static variable don't take space in executable file. What about Java? Does a static variable take space in .class file? Tip: The question is about disk space, not memory.
Eric
  • 22,183
  • 20
  • 145
  • 196
0
votes
2 answers

Finding class files that Eclipse builds

When Eclipse builds my workspace, I assume that it creates Java .class files. What else should otherwise deploy to my running JBoss AS? Do you know where I can find these class files that Eclipse temporarily creates?
user321068
0
votes
1 answer

Adding external class folder to the build path in Eclipse

I have an external .class file. I added this through: Right Click to project>BuildPath>Configure Build Path>Libraries>Add External Class Folder This is my folder structure. I am supposed to create an instance of SOS class. But I got errors in…
funky-nd
  • 637
  • 1
  • 9
  • 25
0
votes
2 answers

Decompiler tools modify the source code for .class file in java

I used DJ JAVA DECOMPILER tool to get back the source code from .class file in java. What the source file it generated was having different code than what i coded earlier in the original source program. What my doubt is: Is this because of JVM does…
Choxx
  • 945
  • 1
  • 24
  • 46
0
votes
2 answers

Java - Creating a Package to Run Code Successfully

I recently began learning Java with an online tutorial series. The website provides an online Java editor and interpreter, as they do not want viewers needing to install any programs. However, I would like to follow along in Sublime Text 3. I've…
Jacob
  • 268
  • 1
  • 7
  • 20
0
votes
0 answers

Edit a .jar library?

I've been asking to edit a .jar lib removing all the Log. I extracted the .class files and from there with a tool i managed to get the .java files. I guess all i need to do is create a new project in eclipse and copy the .java files, edit and the…
Syrinxos
  • 137
  • 1
  • 2
  • 8
0
votes
0 answers

How to make the JDT editor see changed class files?

I am working on an Eclipse plugin that changes the compiled class files of a Java project based on some Annotations in these class files. For example lets say I have an annotation @AddSomeField and I have a Java source file like…
Balder
  • 8,623
  • 4
  • 39
  • 61
0
votes
5 answers

c - Equivalent of .class

So, I know that in Java, .java is the human-readable version, and .class is compiled. In c, the human-readable version is .c, but is there any separate file extension for the compiled class?
MarkusWillson
  • 411
  • 1
  • 3
  • 11
0
votes
1 answer

Android Studio & Gradle: Adding external classes to build path

I have two .class files that I want to include in my build path. Eclipse does this automagically just by putting them on my libs folder, but I can't get it to work in Android Studio. What do I have to do?
Charlie-Blake
  • 10,832
  • 13
  • 55
  • 90
0
votes
1 answer

why every class file starts with "Êþº¾ "

I don't get it. what is the purpose of "Êþº¾" at the beginning of every class file in java. I searched but nothing found related.
user3076847
  • 87
  • 1
  • 8
0
votes
1 answer

Compile or not to compile .class files

There is a web application, that is being ran on Windows, inside a Tomcat browser. Application users number of .jar files as a storage for it's logic. When I open a jar file, that I need to alter a logic of, I see a bunch of .class files. (Java…
Maxim V. Pavlov
  • 10,303
  • 17
  • 74
  • 174