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
0 answers

Run a test.java file from a php script

Is it possible to run a test.java file from php?Or by compiling to .class file? any help? package com.mkyong.test; import java.security.MessageDigest; public class SHAHashingExample { public static void main(String[] args)throws Exception …
Ajeesh
  • 5,650
  • 8
  • 30
  • 52
0
votes
1 answer

Where are dependencies stored in a compiled Java class?

In which section of a compiled class are dependencies to other classes (the imports) stored and can they be viewed (with an editor or something not programatically) ? Thanks,
Simeon
  • 7,582
  • 15
  • 64
  • 101
0
votes
0 answers

Library for serialization of object including it's class so that it can be loaded by classloader and deserialized

Is there some library or tool which allows to serialize object including it's .class file? So when some application want's to deserialize that object, it can load it's .class first and than successfully deserialize the object even if that objects…
Ondrej Bozek
  • 10,987
  • 7
  • 54
  • 70
0
votes
0 answers

How to compile Jython program so as to generate .class files?

I know that Jython before version 2.5 can achieve this by using the command "jythonc". But I am using Jython 2.5.3 now. What I need is very simple: I want the Jython to compile my Python code and generate the .class files (or Java bytecode) for me,…
Erencie
  • 391
  • 2
  • 3
  • 12
0
votes
1 answer

Do I need to restart Tomcat when changing .class files

If I deposit new .class files in my WEB-INF/classes directory, do I need to restart Tomcat or can it wait for the next start to consider changes ? Will I have some issues from not reloading the context or the Tomcat server ?
user2755176
0
votes
4 answers

Given a class file, how to detect it uses JNI or not?

I have some Java benchmarks with only class files. I would like to find which benchmarks have JNI calls. I thought maybe this can be done from the bytecode level with the help of javap -c, but not sure. Any ideas?
JackWM
  • 10,085
  • 22
  • 65
  • 92
0
votes
0 answers

Unable to find class-file in zip/jar file

I wrote a script in Python to clean archives of jar (I know classes which I need with Class Dependency Analyzer) This is my script : def deleteJarEntrie(pJarPath) : # Dictionary contains className of jar file for key # and a list of class…
MaxDhn
  • 153
  • 1
  • 7
0
votes
1 answer

execute class files with packages?

In general, how can one execute a .class file through powershell/command prompt that contains packages in it? I'm still having trouble with that. Assume the file is ClassFile.class, with the package called Pack and the class file's location in…
brandbest1
  • 416
  • 1
  • 5
  • 11
0
votes
1 answer

Java class file JDK version

I need to add more logs to several classes of specific java module (module is compiled, no sources available). I have successfully extracted sources, but i am confused on which JDK version is to be used to re-compile modified classes. javap…
TreeStan
  • 1
  • 1
0
votes
2 answers

Where is the initial value of a variable stored in a class file

I am still trying to learn the java class file format and i understand that constant variables values are stored under the ConstantValue attribute, however i don't understand where the non constant field values are stored in the class file. Such as…
Popgalop
  • 737
  • 2
  • 9
  • 26
0
votes
1 answer

Where are constructors stored in class file format

I have been looking into the java class file format. I have specifically been looking into creating classes from byte-code. I have been able to find most of the info that i need from the oracle documentation, and other Google searches. However I…
Popgalop
  • 737
  • 2
  • 9
  • 26
0
votes
1 answer

Jenkins .class files output

I would like to know where Jenkins output the .class files it builds during a job, but I can't find it. Does anyone know where it is or how to set it ?
Bosion
  • 155
  • 1
  • 1
  • 7
0
votes
0 answers

-d command while creating folder for .class file

I want to create a folder which will save all the .class files of my project but i want it to do with command prompt using -d command. my project directory is like this: MyProject src java1.java java2.java database Now i want to create…
Hitman
  • 87
  • 1
  • 1
  • 6
0
votes
1 answer

Why does some java code/quartz-code require a .class file?

Why does quartz or any java code require a .class file ? What is so special about the .class file that a regular api cannot provide ? Code - JobDetail job = JobBuilder.newJob(HelloJob.class) .withIdentity("dummyJobName",…
Apple Grinder
  • 3,573
  • 7
  • 22
  • 35
0
votes
2 answers

Java import directories

I want to ask smaller question about Java VM and thing about it. If I understand import process correctly, then when I request contents of packages by import keyword in Java, packages are being imported from it's specified import directory. Then…
user35443
  • 6,309
  • 12
  • 52
  • 75