About 32,900,000 results
Open links in new tab
  1. java - What is a NullPointerException, and how do I fix it? - Stack ...

    Since you have not yet said what to point to, Java sets it to null. In the second line, the new keyword is used to instantiate (or create) an object of type Integer, and the reference variable …

  2. Solved 20.1 LAB: Fixing errors in Pluto The program - Chegg

    Problem Statement: Now, the task is to debug syntax and logic errors in this Java program, Pluto.java...

  3. java - What does a "Cannot find symbol" or "Cannot resolve …

    Another example of this is when you use (Java 9+) java SomeClass.java to compile and run a class. If the class depends on another class that you haven't compiled (or recompiled), you are …

  4. How can I solve "java.lang.NoClassDefFoundError"?

    I've tried both the examples in Oracle's Java Tutorials. They both compile fine, but at run time, both come up with this error: Exception in thread "main" …

  5. java - What is a StackOverflowError? - Stack Overflow

    For Java, you can increase the maximum stack size using JVM options, such as -Xss1024k to allocate 1024 kilobytes. This is a temporary fix and should be used judiciously as it only …

  6. java - Resource leak: 'in' is never closed - Stack Overflow

    Why does Eclipse give me the warming "Resource leak: 'in' is never closed" in the following code? public void readShapeData() { Scanner in = new Scanner(System.in); System.out.prin...

  7. Visual Studio Code - Java - Import Errors and More

    When importing java.io, java.util, or anything similar, the error: "The import of java.io (or java.util) cannot be resolved" Existing classes have an error: "The implicit super constructor is …

  8. java - How to fix an UnsatisfiedLinkError (Can't find dependent ...

    This dll was compiled using Qt, and after I removed Qt from my desktop, a Java project that uses this dll kept saying "Can't find dependent libraries", even with System.load("absolute path") .

  9. How to deal with "java.lang.OutOfMemoryError: Java heap space" …

    Exception in thread thread_name: java.lang.OutOfMemoryError: Java heap space The detail message Java heap space indicates object could not be allocated in the Java heap.

  10. Java Installation Not Completed / Unable to install Java

    java -jar C:\Users\MyName\Desktop\The file name for The Game(2).jar if that dont work try to give more information (the full error, where do you get the error?