I have spent the last couple of hours attempting to figure out why DrJava is unable to successfully compile source code and decided to open a ticket.
I keep getting the error message below when I attempt to compile programs.
5 errors found: File: /home/$USER/HelloWorld.java [line: 1] Error: The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files File: /home/$USER/HelloWorld.java [line: 1] Error: The type java.lang.String cannot be resolved. It is indirectly referenced from required .class files File: /home/$USER/HelloWorld.java [line: 1] Error: Implicit super constructor java.lang.Object() is undefined for default constructor. Must define an explicit constructor File: /home/$USER/HelloWorld.java [line: 2] Error: String cannot be resolved to a type File: /home/$USER/HelloWorld.java [line: 3] Error: System cannot be resolved
My current system properties are as follows
System Properties: DrJava Version drjava-20120818-r5686 DrJava Build Time 20120818-0422 awt.toolkit = sun.awt.X11.XToolkit java.specification.version = 11 sun.cpu.isalist = sun.jnu.encoding = UTF-8 java.class.path = drjava-stable-20120818-r5686.jar sun.awt.enableExtraMouseButtons = true java.vm.vendor = Ubuntu sun.arch.data.model = 64 sun.font.fontmanager = sun.awt.X11FontManager java.vendor.url = https://ubuntu.com/ user.timezone = Africa/Lusaka os.name = Linux java.vm.specification.version = 11 sun.java.launcher = SUN_STANDARD user.country = ZM sun.boot.library.path = /usr/lib/jvm/java-11-openjdk-amd64/lib sun.java.command = drjava-stable-20120818-r5686.jar drjava.debug.port = 41897 jdk.debug = release sun.cpu.endian = little user.home = <anonymized user.home> user.language = en java.specification.vendor = Oracle Corporation java.version.date = 2019-07-16 java.home = /usr/lib/jvm/java-11-openjdk-amd64 file.separator = / java.vm.compressedOopsMode = Zero based line.separator = "\u000a" java.specification.name = Java Platform API Specification java.vm.specification.vendor = Oracle Corporation java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment sun.management.compiler = HotSpot 64-Bit Tiered Compilers java.runtime.version = 11.0.4+11-post-Ubuntu-1ubuntu218.04.3 user.name = <anonymized user.name> path.separator = : os.version = 4.15.0-70-generic java.runtime.name = OpenJDK Runtime Environment file.encoding = UTF-8 java.vm.name = OpenJDK 64-Bit Server VM java.vendor.url.bug = https://bugs.launchpad.net/ubuntu/+source/openjdk-lts java.io.tmpdir = /tmp java.version = 11.0.4 user.dir = <anonymized user.home>/Downloads os.arch = amd64 java.vm.specification.name = Java Virtual Machine Specification java.awt.printerjob = sun.print.PSPrinterJob sun.os.patch.level = unknown java.library.path = /usr/java/packages/lib:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib java.vendor = Ubuntu java.vm.info = mixed mode, sharing java.vm.version = 11.0.4+11-post-Ubuntu-1ubuntu218.04.3 java.rmi.server.hostname = 127.0.0.1 sun.io.unicode.encoding = UnicodeLittle java.class.version = 55.0 DrJava configuration file In resource bundle edu.rice.cs.drjava.config.options: nothing In shadowed configuration: all.compiler.versions = true key.delete.next = [shift DELETE] key.delete.previous = [shift BACK_SPACE] quit.prompt = false show.finally.warnings = true show.serial.warnings = true show.fallthrough.warnings = true show.path.warnings = true recent.files = [<anonymized user.home>/HelloWorld.java,<anonymized user.home>/Hello.java] window.height = 1000 window.width = 1920 window.x = 0 window.y = 0 window.state = 6 last.dir = <anonymized user.home>/HelloWorld.java last.interactions.dir = <anonymized user.home> tabbedpanes.state = 960 540 700 400 new.version.notification.last = 1575536057556 Used memory: about 69.53 megabytes Free memory: about 156.47 megabytes Total memory: about 226 megabytes Total memory can expand to: about 2.88 gigabytes Number of processors/cores: 8 Compiler Discovery Log: