javac « class file « Java I/O Q&A





1. Multiple .class files generated for a class?    stackoverflow.com

Out of curiosity, why are sometimes multiple Java .class files generated for a class after compilation? For example, my application has six classes. For one class, a total of 10 .class ...

2. what are the $1 in class file?    stackoverflow.com

C:\Program Files\Java\jdk1.6.0_05\CoreJava\v1\v1ch2\WelcomeApplet>dir
 Volume in drive C has no label.
 Volume Serial Number is 2041-64E7

 Directory of C:\Program Files\Java\jdk1.6.0_05\CoreJava\v1\v1ch2\WelcomeApplet

2009-07-02  23:54            ...

3. How Java compiler decide where to put class files of a package?    stackoverflow.com

I try to figure out how organize source and class files working with packages. I found a very useful tutorial. But I still have some questions. As far as I ...

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

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 ...

5. Java compiling a .java using precompiled .class files    stackoverflow.com

Is it possible to use the javac to compile a .java that requires other classes without javac returning "cannot find symbol" Thanks!

6. Why does this class file get created?    stackoverflow.com

In Java all classes are loaded into the JVM dynamically, upon the first use of a class. Does it mean if i have class in a my source file and I do ...

7. Error compiling Java file with special characters in class name    stackoverflow.com

I am encountering an issue compiling a source file with a special character in the class name. The class file compiles fine in the Eclipse IDE, but not from javac. ...

8. Why is javac not complaining about more than one public class per file?    stackoverflow.com

Here's my sample class, that compiles (and runs) with version 1.6.0_14 of Java:

import java.util.List;
import java.util.ArrayList;

public class Sample {
  List<InnerSample> iSamples;

  public Sample() {
    iSamples = new ...

9. compiler output (.class files) differs if sources were compiled in different directories    stackoverflow.com

I have the following problem: While compiling some set of classes different .class files are generated if compilation was executed in different directories. The diff between generated .class files is following: 1) ...





10. Java - how do you find out which class file has a corrupt constant pool?    stackoverflow.com

Is there some kind of a tool or some better output from javac to figure out which class file has a corrupt constant pool.. as I cannot compile some existing java ...

11. problem on executing a java class file    stackoverflow.com

I am new to java. I write a simple code like this:

import java.io.*;


public class a
{
    public static void main(String []argc)
    {
     ...

12. why does javac create 2 class files    coderanch.com

13. javac not making a .class file    coderanch.com

Hello. First and foremost - I am a beginning beginner. I'm struggling with even getting HelloWorldApp.java to compile. I set my path for javac, yet when I run the compiler, nothing happens. No error, no class file created. What it looks like when I call the compiler - C:\Users\Dwayne\java>PATH javac HelloWorldApp.java I then type dir to see if the class file ...

15. Queriy on multiple output ABC$*.class files after javac    forums.oracle.com

I have a stupid question. After I compile a simple java file (called MenuExp.java), I find except MenuExp.class there are some other MenuExp$*.class files (from MenuExp$0.class to MenuExp$10.class). I originally think after the compiling, there should be only one output MenuExp.class file. Could anyone explain to me why there are so many MenuExp$*.class files? And what are they for?

16. javac probleme: bad class file error    forums.oracle.com

// And here is the class c:\otman\java\geometry\src\myPoint.java //------------------------------------------------------------------------------------ package geometry.src; /** class myPoint members and methods of a 3D point */ public class myPoint { private double m_x,m_y,m_z; // the coordinates public double getx() {return m_x;} public double gety() {return m_y;} public double getz() {return m_z;} public void setx(double x) {m_x=x;} public void sety(double y) {m_y=y;} public void setz(double z) {m_z=z;} ...