微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

我认为 Java 编译器问题博士

如何解决我认为 Java 编译器问题博士

我一直在弹出窗口中收到此错误。我可以编译,但是当我尝试运行它时,它给了我“当前文档与交互窗格不同步,应该重新编译!”

请告诉我如何解决这个问题以及如何启动并运行我的 dr.java 以便我可以编译和测试我的代码

以下是所有错误的详细信息。

弹出错误:{发生了 7 个错误!请提交错误报告 包含以下信息和行动说明 导致错误(如果已知)http://sourceforge.net/projects/drjava。 您可能希望保存所有工作并重新启动 drjava

java.lang.indexoutofboundsexception: Invalid index
at javax.swing.DefaultRowSorter.convertRowIndexToModel(UnkNown Source)
at sun.swing.FilePane$SortableListModel.getElementAt(UnkNown Source)
at javax.swing.JList.getSelectedValue(UnkNown Source)
at javax.swing.plaf.basic.BasicFileChooserUI$Handler.valueChanged(UnkNown Source)
at javax.swing.JList.fireSelectionValueChanged(UnkNown Source)
at javax.swing.JList$ListSelectionHandler.valueChanged(UnkNown Source)
at javax.swing.DefaultListSelectionModel.fireValueChanged(UnkNown Source)
at javax.swing.DefaultListSelectionModel.fireValueChanged(UnkNown Source)
at javax.swing.DefaultListSelectionModel.setValueIsAdjusting(UnkNown Source)
at javax.swing.JList.setValueIsAdjusting(UnkNown Source)
at javax.swing.plaf.basic.BasicListUI$Handler.mouseReleased(UnkNown Source)
at java.awt.AWTEventMulticaster.mouseReleased(UnkNown Source)
at java.awt.AWTEventMulticaster.mouseReleased(UnkNown Source)
at java.awt.Component.processMouseEvent(UnkNown Source)
at javax.swing.JComponent.processMouseEvent(UnkNown Source)
at java.awt.Component.processEvent(UnkNown Source)
at java.awt.Container.processEvent(UnkNown Source)
at java.awt.Component.dispatchEventImpl(UnkNown Source)
at java.awt.Container.dispatchEventImpl(UnkNown Source)
at java.awt.Component.dispatchEvent(UnkNown Source)
at java.awt.Lightweightdispatcher.retargetMouseEvent(UnkNown Source)
at java.awt.Lightweightdispatcher.processMouseEvent(UnkNown Source)
at java.awt.Lightweightdispatcher.dispatchEvent(UnkNown Source)
at java.awt.Container.dispatchEventImpl(UnkNown Source)
at java.awt.Window.dispatchEventImpl(UnkNown Source)
at java.awt.Component.dispatchEvent(UnkNown Source)
at java.awt.EventQueue.dispatchEventImpl(UnkNown Source)
at java.awt.EventQueue.access$500(UnkNown Source)
at java.awt.EventQueue$3.run(UnkNown Source)
at java.awt.EventQueue$3.run(UnkNown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(UnkNown Source)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(UnkNown Source)
at java.awt.EventQueue$4.run(UnkNown Source)
at java.awt.EventQueue$4.run(UnkNown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(UnkNown Source)
at java.awt.EventQueue.dispatchEvent(UnkNown Source)
at java.awt.EventdispatchThread.pumpOneEventForFilters(UnkNown Source)
at java.awt.EventdispatchThread.pumpEventsForFilter(UnkNown Source)
at java.awt.EventdispatchThread.pumpEventsForFilter(UnkNown Source)
at java.awt.WaitdispatchSupport$2.run(UnkNown Source)
at java.awt.WaitdispatchSupport$4.run(UnkNown Source)
at java.awt.WaitdispatchSupport$4.run(UnkNown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitdispatchSupport.enter(UnkNown Source)
at java.awt.Dialog.show(UnkNown Source)
at javax.swing.JFileChooser.showDialog(UnkNown Source)
at javax.swing.JFileChooser.showSaveDialog(UnkNown Source)
at edu.rice.cs.drjava.ui.MainFrame.getSaveFile(MainFrame.java:4662)
at edu.rice.cs.drjava.ui.MainFrame$8.getFile(MainFrame.java:412)
at edu.rice.cs.drjava.model.AbstractGlobalModel$ConcreteOpenDefDoc.saveFileAs(AbstractGlobalModel.java:3223)
at edu.rice.cs.drjava.model.AbstractGlobalModel$ConcreteOpenDefDoc.saveFile(AbstractGlobalModel.java:3178)
at edu.rice.cs.drjava.model.AbstractGlobalModel.saveAllFilesHelper(AbstractGlobalModel.java:1558)
at edu.rice.cs.drjava.model.AbstractGlobalModel.saveAllFiles(AbstractGlobalModel.java:1535)
at edu.rice.cs.drjava.ui.MainFrame._saveAll(MainFrame.java:5324)
at edu.rice.cs.drjava.ui.MainFrame$ModelListener._saveAllBeforeProceeding(MainFrame.java:9757)
at edu.rice.cs.drjava.ui.MainFrame$ModelListener.saveBeforeCompile(MainFrame.java:9686)
at edu.rice.cs.drjava.model.GlobalEventNotifier.saveBeforeCompile(GlobalEventNotifier.java:428)
at edu.rice.cs.drjava.model.compiler.CompilerEventNotifier.saveBeforeCompile(CompilerEventNotifier.java:98)
at edu.rice.cs.drjava.model.compiler.DefaultCompilerModel._prepareForCompile(DefaultCompilerModel.java:222)
at edu.rice.cs.drjava.model.compiler.DefaultCompilerModel.compileAll(DefaultCompilerModel.java:163)
at edu.rice.cs.drjava.ui.MainFrame._compileAll(MainFrame.java:5749)
at edu.rice.cs.drjava.ui.MainFrame.access$5300(MainFrame.java:129)
at edu.rice.cs.drjava.ui.MainFrame$55.actionPerformed(MainFrame.java:970)
at javax.swing.AbstractButton.fireActionPerformed(UnkNown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(UnkNown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(UnkNown Source)
at javax.swing.DefaultButtonModel.setpressed(UnkNown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(UnkNown Source)
at java.awt.Component.processMouseEvent(UnkNown Source)
at javax.swing.JComponent.processMouseEvent(UnkNown Source)
at java.awt.Component.processEvent(UnkNown Source)
at java.awt.Container.processEvent(UnkNown Source)
at java.awt.Component.dispatchEventImpl(UnkNown Source)
at java.awt.Container.dispatchEventImpl(UnkNown Source)
at java.awt.Component.dispatchEvent(UnkNown Source)
at java.awt.Lightweightdispatcher.retargetMouseEvent(UnkNown Source)
at java.awt.Lightweightdispatcher.processMouseEvent(UnkNown Source)
at java.awt.Lightweightdispatcher.dispatchEvent(UnkNown Source)
at java.awt.Container.dispatchEventImpl(UnkNown Source)
at java.awt.Window.dispatchEventImpl(UnkNown Source)
at java.awt.Component.dispatchEvent(UnkNown Source)
at java.awt.EventQueue.dispatchEventImpl(UnkNown Source)
at java.awt.EventQueue.access$500(UnkNown Source)
at java.awt.EventQueue$3.run(UnkNown Source)
at java.awt.EventQueue$3.run(UnkNown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(UnkNown Source)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(UnkNown Source)
at java.awt.EventQueue$4.run(UnkNown Source)
at java.awt.EventQueue$4.run(UnkNown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(UnkNown Source)
at java.awt.EventQueue.dispatchEvent(UnkNown Source)
at java.awt.EventdispatchThread.pumpOneEventForFilters(UnkNown Source)
at java.awt.EventdispatchThread.pumpEventsForFilter(UnkNown Source)
at java.awt.EventdispatchThread.pumpEventsForHierarchy(UnkNown Source)
at java.awt.EventdispatchThread.pumpEvents(UnkNown Source)
at java.awt.EventdispatchThread.pumpEvents(UnkNown Source)
at java.awt.EventdispatchThread.run(UnkNown Source)

System Properties:
drjava Version drjava-20190813-220051
drjava Build Time 20190813-220051

drjava.debug.port = 59754
java.runtime.name = Java(TM) SE Runtime Environment
sun.boot.library.path = C:\Program Files\Java\jre1.8.0_144\bin
java.vm.version = 25.144-b01
java.vm.vendor = Oracle Corporation
java.vendor.url = http://java.oracle.com/
path.separator = ;
java.vm.name = Java HotSpot(TM) 64-Bit Server VM
file.encoding.pkg = sun.io
user.country = US
user.script =
sun.java.launcher = SUN_STANDARD
sun.os.patch.level =
java.vm.specification.name = Java Virtual Machine Specification
user.dir = <anonymized user.dir>
java.runtime.version = 1.8.0_144-b01
java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment
java.endorsed.dirs = C:\Program Files\Java\jre1.8.0_144\lib\endorsed
os.arch = amd64
java.io.tmpdir = <anonymized user.home>\AppData\Local\Temp\
line.separator = "\u000d\u000a"
java.vm.specification.vendor = Oracle Corporation
user.variant =
os.name = Windows 10
sun.jnu.encoding = Cp1252
java.library.path = C:\Program Files\Java\jre1.8.0_144\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\python36\Scripts\;C:\Program Files\python36\;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Sennheiser\SoftphonesDK\;<anonymized user.home>\AppData\Local\Microsoft\WindowsApps;;.
sun.awt.enableExtraMouseButtons = true
java.specification.name = Java Platform API Specification
java.class.version = 52.0
sun.management.compiler = HotSpot 64-Bit Tiered Compilers
os.version = 10.0
user.home = <anonymized user.home>
user.timezone = America/New_York
java.awt.printerjob = sun.awt.windows.WPrinterJob
file.encoding = Cp1252
java.specification.version = 1.8
java.class.path = <anonymized user.dir>\drjava-beta-20190813-220051.jar
user.name = <anonymized user.name>
java.vm.specification.version = 1.8
sun.java.command = <anonymized user.dir>\drjava-beta-20190813-220051.jar
java.home = C:\Program Files\Java\jre1.8.0_144
sun.arch.data.model = 64
user.language = en
java.specification.vendor = Oracle Corporation
awt.toolkit = sun.awt.windows.WToolkit
java.vm.info = mixed mode
java.version = 1.8.0_144
java.ext.dirs = C:\Program Files\Java\jre1.8.0_144\lib\ext;C:\WINDOWS\Sun\Java\lib\ext
sun.boot.class.path = C:\Program Files\Java\jre1.8.0_144\lib\resources.jar;C:\Program Files\Java\jre1.8.0_144\lib\rt.jar;C:\Program Files\Java\jre1.8.0_144\lib\sunrsasign.jar;C:\Program Files\Java\jre1.8.0_144\lib\jsse.jar;C:\Program Files\Java\jre1.8.0_144\lib\jce.jar;C:\Program Files\Java\jre1.8.0_144\lib\charsets.jar;C:\Program Files\Java\jre1.8.0_144\lib\jfr.jar;C:\Program Files\Java\jre1.8.0_144\classes
java.vendor = Oracle Corporation
file.separator = \
java.vendor.url.bug = http://bugreport.sun.com/bugreport/
sun.io.unicode.encoding = UnicodeLittle
sun.cpu.endian = little
java.rmi.server.hostname = 127.0.0.1
sun.desktop = windows
sun.cpu.isalist = amd64

drjava 配置文件 在资源包 edu.rice.cs.drjava.config.options 中: 什么都没有

在阴影配置中:

extra.classpath = G:\\ICS4U0- Computer Science(Mr. Burns)\\becker.jar;G:\\ICS4U0- Computer Science(Mr. Burns)\\becker.jar
key.delete.next = [shift DELETE]
key.delete.prevIoUs = [shift BACK_SPACE]
window.height = 744
window.width = 1382
window.x = -8
window.y = -8
window.state = 6
last.dir = G:\\ICS4U0- Computer Science(Mr. Burns)
last.interactions.dir = G:\\ICS4U0- Computer Science(Mr. Burns)
tabbedpanes.state = 683 384 700 400
new.version.notification = all release versions
new.version.notification.last = 1614097735431


Used memory: about 52.96 megabytes
Free memory: about 38.54 megabytes
Total memory: about 91.50 megabytes
Total memory can expand to: about 1.65 gigabytes

Number of processors/cores: 4

Compiler discovery Log:
}

我无法卸载或更新。我从学校借了我的笔记本电脑,我对卸载或更新的内容没有太多控制权。我尝试下载一个新版本来覆盖旧版本,但由于某种原因,我没有谈论我几乎没有不到 1 GB 的空间这一事实。

除此之外,我的笔记本电脑迫使我重新启动以进行某些更新或其他操作,现在当我打开 Dr.Java 时,我不再收到该错误,但编译和运行问题仍然存在。这使我无法运行程序并对其进行测试。

关于这个问题的更多细节,我做了一些故障排除,包括更改代码,以便它所做的只是创建一个普通类和主方法,但它仍然会编译,但当我尝试运行它时会要求重新编译。

另外,我现在在底部的控制台选项卡中得到了这个:

"Compiler is using classpath = '[G:\ICS4U0- Computer Science(Mr. Burns),G:\ICS4U0- Computer Science(Mr. Burns)\becker.jar,G:\Downloads\drjava-beta-20190813-220051.jar]'; bootclasspath = 'null'
Fatal error: Unable to find package java.lang in classpath or bootclasspath
Compiler is using classpath = '[G:\ICS4U0- Computer Science(Mr. Burns),G:\Downloads\drjava-beta-20190813-220051.jar]'; bootclasspath = 'null'
Compiler is using classpath = '[G:\ICS4U0- Computer Science(Mr. Burns),G:\Downloads\drjava-beta-20190813-220051.jar]'; bootclasspath = 'null'
Fatal error: Unable to find package java.lang in classpath or bootclasspath"

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。