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

Access .java src files in Reference Library that don't have .class files

I'm using Eclipse 3.8.0 on OSX 10.7.5 and I'm trying to run jzy3d-9.0 (a 3d graphing package). There are at least two libraries that I need import. The first library came in both .class and .java files, which I was able to add to my reference…
user2303321
  • 297
  • 2
  • 11
0
votes
2 answers

Error reassembling Java bytecode into .class file using Krakatau

I'm trying to use Krakatau to assemble a native Java bytecode, acquired with javap -c, but I'm getting a weird error: > python Krakatau/assemble.py Main.bc Krakatau Copyright (C) 2012-17 Robert Grosse This program is provided as open source under…
joaofbsm
  • 625
  • 5
  • 13
0
votes
0 answers

'java' command on windows command prompt cannot run .class file

I faced a rather strange problem while executing a java program from the command line on Windows. I used this command to create a source.class file from a source.java file. javac source.java After this, I tried to execute the source.class file…
Debanik Dawn
  • 797
  • 5
  • 28
0
votes
1 answer

Want Eclipse .class files also in other folder apart from bin

I want when Developer save java file in eclipse , And eclipse by default generate it .class file in bin folder,So this .class file is also generate in other folder also. I can not copy /paste that bin class file to new desired location because of…
0
votes
2 answers

How to run a Java class file with a jdk binary?

I have downloaded jdk binaries (jdk.tar.gz) of different JDK versions, say 8u92, 8u121 and 8u131 in a directory. I want to run a Java program in each of these java versions and know the output. Is there a way to do this? Something like extract…
Anjana
  • 873
  • 7
  • 22
0
votes
1 answer

How do we clean out JSP's .class files when we re-deploy our application on JBoss?

I'm using JBOss 7.1.3.AS with Java 7. It is not an option to upgrade at this time. I notice that when our .jsp files get converted into .class files, they are placed here $JBOSS_HOME/standalone/tmp/work/jboss.web/default-host How do we force all…
Dave
  • 15,639
  • 133
  • 442
  • 830
0
votes
2 answers

I have a class file which does not output the result due to code segment being the wrong length

Below is the hexdump of the class file in question. I have no idea about why this code doesn't run and it gives a java.lang.ClassFormatError: Code segment has wrong length in class file fibo when running in terminal using java fibo. Does anybody…
0
votes
0 answers

Compile Java code in-memory

I am looking to compile and run Java code - but without writing the .class files to disk. Is it possible to do this with Java? With Golang, we can use go run and I think it will accomplish the same thing. I am wondering if it's possible to do…
Alexander Mills
  • 90,741
  • 139
  • 482
  • 817
0
votes
1 answer

Classes do not change

I have faced with a strange problem. Once I change the .java file - it seems that tests are using still the previous version of that file (.class). From my point of view the class should be removed from .build folder and be recompiled from the new…
user2620644
  • 521
  • 1
  • 12
  • 25
0
votes
1 answer

Intellij cannot find .class

I got a little demo program with 2 .class files. If I want to open it in IntelliJ, my main class cannot find the other .class files. I already checked that all files are in the same folder. If I compile it with the Windows shell, everything works…
Fayre
  • 83
  • 1
  • 2
  • 11
0
votes
3 answers

How to write directly on java bytecode / create .class file?

I would like to create a .class file by myself so I can run it on JVM. In other words I’d like to write java bytecode directly, but I can’t look at the structure of a class file. I can decompile it and look at the bytecode instructions but what I…
Nartis
  • 19
  • 1
  • 4
0
votes
1 answer

Java code equivelent of jar cf

I am writing a java program that takes my generated .class files and Jars them then loads them into memory using a class loader. I currently have a working jarring system with the code: public static int BUFFER_SIZE = 10240; protected static void…
Dalton Heiland
  • 117
  • 2
  • 7
0
votes
2 answers

Javac can't find .class files, have right classpath

Although I'm not new to programming in general, I am new to java, and it seems to work a little bit differently. When trying to compile a .java with javac it gives me this error: cannot find symbol. I looked the cause of this up, and the error…
Dehodson
  • 449
  • 4
  • 14
0
votes
3 answers

Dynamically create a gridview from a class(.cs) file

I want to create a gridview form a class and send that gridview as mail. I know the mailing part but how to create a gridview from a class file without using an aspx file. I am doing so because a method will be called at a scheduled time using…
ACP
  • 34,682
  • 100
  • 231
  • 371
0
votes
3 answers

Java runtime compilation and class file generation

Working on an application which requires several source files(.java) to be compiled and corresponding class files(.class) to be generated at runtime and this happens at application start-up. Currently using below code for class generation: int…
Xavier DSouza
  • 2,861
  • 7
  • 29
  • 40