Skip to main content

Questions tagged [.class-file]

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

.class-file
0 votes
0 answers
28 views

Code Runner creates .class files along with the .java files in my src folder rather than bin (VS Code)

It works fine when I run it through the Java Extension Pack, though I would much prefer to use Code Runner for all my projects in all languages if that is at all possible. If anyone can help me I will ...
David's user avatar
  • 1
1 vote
2 answers
122 views

static java reflection - enum of fields of a class (pre-compilation)

is there a type of reflection in Java that provides simply an enum of the fields in a class? The information is, afterall, "precompilation-static". Why should it not be compiled into the ...
avertx's user avatar
  • 37
0 votes
2 answers
75 views

". java" files which are saved in "d" and "e" drives, Didn't get compiled (Files were run from the VScode)

My hard drive has 3 partitions as c, d and e. c drive is the main one. I'm running these following codes through the VScode.Not the CMD or PowerShell also I didn't used the terminal section of the ...
NV basnayaka's user avatar
0 votes
1 answer
230 views

Compile Java class files with external multiple jars using Javac

.java files are present in this folder exposeservices . I am trying to convert these .java files to .class files using the below command. These .java files have import statements so I have downloaded ...
oldcode's user avatar
  • 1,681
2 votes
2 answers
10k views

How to decompile Java Class file in VS Code

enter image description here So I'm a new java developer and VS code is currently the platform I use. To my understanding every time you create a new object in Java, a class file should be generated ...
subcoldmay's user avatar
0 votes
1 answer
288 views

what is the file encoding type for java class file?

What is the file encoding type used for Java class files? I am not referring to the file.encoding or Charset.defaultCharset() properties. When javac compiles a .java file to a .class file and saves ...
CodeBot's user avatar
  • 115
0 votes
1 answer
95 views

Why only one .class file is created in java & which is declared first?

In Java: class A{} class a{} after compilation : A.class class a{} class A{} after compilation : a.class Why only one class created? the first we declared only that .class file generated Please ...
user16796941's user avatar
-1 votes
1 answer
125 views

'package does not exist' using javac to convert .java class with google play services imports

I have a .java class which uses imports from google play services. I want to put this class in a .jar to package with my project, but using javac filename.java in the terminal gives me a bunch of ...
Alexander Jenkins's user avatar
0 votes
2 answers
367 views

How to implements interface from .class file in .java file?

I have homework that asks me to use a .class file for my project, but I don't know how to use those files in a .java file. This is the project structure agentes.class datos_confidenciales.class ...
dylanroman03's user avatar
1 vote
1 answer
471 views

how to map parameter annotations to corresponding method parameter in classfile using asm

As per the jvms-4.7.18 : The i'th entry in the parameter_annotations table may, but is not required to, correspond to the i'th parameter descriptor in the method descriptor (§4.3.3). For example, a ...
sify's user avatar
  • 675
1 vote
1 answer
114 views

how to show method parameter access_flags in java classfile

I tried to use javap -v on the classfile, but there is no information about method parameter's access_flags as defined in jvm-4.7.24 . Is there another tool or approach to show them?
sify's user avatar
  • 675
1 vote
0 answers
151 views

How to syntax highlight a hex dump of JVM classfile?

I'm studying binary file structure of JVM classfile. My current toolbox consists of $ xxd <classfile> and $ javap -v <classfile>. Sample outputs of these two tools are as follows: $ xxd ...
Takashi's user avatar
  • 31
0 votes
2 answers
45 views

why is the Java constant_pool memort allocation defined as having size constant_pool_count-1

The java class definition (docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html) looks like: ClassFile { u4 magic; u2 minor_version; u2 major_version; ...
shodz's user avatar
  • 364
0 votes
2 answers
317 views

Get java compiler version of a class file using xxd

I need to get the version of java that was used to compile a class file from a linux machine that doesn't have java. I have learned from a comment on this post that this is possible using xxd. ...
Jack J's user avatar
  • 1,624
0 votes
0 answers
356 views

.class file too large

I have a kotlin file with a function that returns a list of strings with 10,000 elements, but when compiling it generates an error, saying that the .class file is too large. What I can do? return ...
chrrissoft's user avatar

15 30 50 per page
1
2 3 4 5
19