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
-2
votes
1 answer

cmd prompt not compling my java files

I am using eclipse for my project , when i am running eclipse , my project work the way i wanted but when i tried to run on command prompt , i realize it is using the old .class file which is compiled earlier. But i have already complied by using…
what
  • 373
  • 2
  • 10
  • 20
-2
votes
6 answers

Changing the compiled java .class files in JAR

My requirement: I've unpacked a jar and then changed a .class file after de-compiling in to .java file. This .java file has few errors as it uses few stuffs like methods and variable from other places which is in the JAR. Now I want to change the…
Ram Patro
  • 121
  • 4
  • 10
-2
votes
1 answer

Use of .project and .classpath files

I have some doubts regarding the files .classpath and .project. I'm using eclipse IDE. I created a project. In that project is see that two files are created. They are .classpath .project. Following questions I have: Can I know what are the main…
Vijay Reddy
  • 125
  • 2
  • 14
-2
votes
1 answer

is there a way for java application load class-file to work,but prevent internal code to "java.io" them, say fileinputstream?

im not sure java securityManager can help till now, since i saw the normal usage is NOT accepted, please correct me if im wrong: set securitymanager in java code and take effect to defend the external exploit code, while it looks easy to bypass if…
euse
  • 1
  • 3
-2
votes
3 answers

Is it possible to encrypt a java class file?

Is it possible to encrypt a java class file with MD5 & decrypt it for execution? I have a client & I'd like to try encrypting my class files that have to be decrypted via a jar file in my dropbox. I have md5 text enryption in java, but how would I…
Ryan
  • 359
  • 2
  • 8
  • 15
-2
votes
1 answer

how to use a ".class" or ".jar" java file in a c++ file ( without convert )?

I want to include and use a ".jar" or some ".class" java files in a ".h" or ".cpp" c++ file . How can I do this ? Is there any full helper with example ?
-2
votes
1 answer

How can I edit a class File?

I am trying to Edit a dot class File for Markus Persson's game MiniCraft to add a Save button to the game. But I can't Figure out how to edit the class files.
-3
votes
1 answer

Stack trace contains no line numbers: main(Unknown Source)

Trying to execute my project, I meet an error that starts with main(Unknown Source) and then propagates through the code. I think that in the brackets there should be written the line of code where the error is. I must clarify that my code is…
-3
votes
1 answer

Why .class is not used with 'java' command?

While compiling a Java class from command line with javac, .java is used, however .class is not used while trying to run the main method in a class with the java command. For example, for compiling a class named HelloWorld we use javac…
-4
votes
2 answers

How to edit a .class file

I want to edit a .class file just to change something from "true" to false. I'm using Eclipse to do so, but I only could find a JBC text editor, which works, but not all the time. https://dev.bukkit.org/projects/call-duty-zombies ^ I want to edit…
Zurovax
  • 5
  • 4
-4
votes
1 answer

The class file for a new Thread and the class file for main are the same

I have a program called Main.java, shown as below. After compilation of this program, there will be two .class file: Main.class and Main$1.class. My problem is the two .class files are exactly the same. Anyone knows what is wrong? I wan to…
Xiong
  • 1
  • 1
-4
votes
3 answers

how can I edit a Java application using .CLASS files

I've been trying to edit the .CLASS files inside this program using .jar containers, and a .bat file to launch it. I'm not familiar with Java, and I've tried Java decompilers but they don't let me edit the source, only copy it. I don't seem to have…
questy
  • 517
  • 2
  • 4
  • 14
-18
votes
4 answers

Does every Java .class file contain a public class?

I got a question on an exam. Does every .class (not .java) file contain a public class? Yes? No?
Rdomi
  • 45
  • 3
1 2 3
18
19