Menu

#342 DrJava has main method but keeps saying do not have for every file

v1.0 (example)
open
nobody
None
5
2018-05-19
2018-05-19
yuqi_yang
No

Hello I really need help!

I am using Windows 10, latest DrJava and JDK as Java SE Development Kit 8u171

Dr Java was working fine but now can comply some of the code files I did which were all compiled and ran perfectly. They all show the same message as following. Those code files do not have other methods other than main methods.

Welcome to DrJava. Working directory is C:\Users\Fatoumata\Dropbox\Assignment\code

run Practice1
Static Error: This class does not have a static void main method accepting String[].

At first I thought it was my Mac then I switched to my Windows pc, but same error, then I thought it is my java environment problem, I uninstalled and installed again JDK and DrJava but problem did not solve. When I created methods, it shows error message-please see attachment. Could you please tell me how should I solve these problems? Because now I can not do any practice. Thank you.

My DrJava shows error message as following

java.lang.NullPointerException: peer
at sun.awt.windows.WInputMethod.openCandidateWindow(Native Method)
at sun.awt.windows.WInputMethod.access$400(Unknown Source)
at sun.awt.windows.WInputMethod$1.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(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:4671)
at edu.rice.cs.drjava.ui.MainFrame$8.getFile(MainFrame.java:415)
at edu.rice.cs.drjava.model.AbstractGlobalModel$ConcreteOpenDefDoc.saveFileAs(AbstractGlobalModel.java:3257)
at edu.rice.cs.drjava.model.AbstractGlobalModel$ConcreteOpenDefDoc.saveFile(AbstractGlobalModel.java:3212)
at edu.rice.cs.drjava.model.AbstractGlobalModel.saveAllFilesHelper(AbstractGlobalModel.java:1577)
at edu.rice.cs.drjava.model.AbstractGlobalModel.saveAllFiles(AbstractGlobalModel.java:1554)
at edu.rice.cs.drjava.ui.MainFrame._saveAll(MainFrame.java:5327)
at edu.rice.cs.drjava.ui.MainFrame$ModelListener._saveAllBeforeProceeding(MainFrame.java:9812)
at edu.rice.cs.drjava.ui.MainFrame$ModelListener.saveBeforeCompile(MainFrame.java:9728)
at edu.rice.cs.drjava.model.GlobalEventNotifier.saveBeforeCompile(GlobalEventNotifier.java:437)
at edu.rice.cs.drjava.model.compiler.CompilerEventNotifier.saveBeforeCompile(CompilerEventNotifier.java:106)
at edu.rice.cs.drjava.model.compiler.DefaultCompilerModel._prepareForCompile(DefaultCompilerModel.java:230)
at edu.rice.cs.drjava.model.compiler.DefaultCompilerModel.compileAll(DefaultCompilerModel.java:171)
at edu.rice.cs.drjava.ui.MainFrame._compileAll(MainFrame.java:5752)
at edu.rice.cs.drjava.ui.MainFrame.access$5300(MainFrame.java:132)
at edu.rice.cs.drjava.ui.MainFrame$55.actionPerformed(MainFrame.java:973)
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-20160913-225446
DrJava Build Time 20160913-225446

drjava.debug.port = 51768
java.runtime.name = Java(TM) SE Runtime Environment
sun.boot.library.path = C:\Program Files\Java\jre1.8.0_171\bin
java.vm.version = 25.171-b11
user.country.format = CA
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 = FR
user.script =
sun.java.launcher = SUN_STANDARD
sun.os.patch.level =
java.vm.specification.name = Java Virtual Machine Specification
user.dir = <anonymized user.home="">\Desktop
java.runtime.version = 1.8.0_171-b11
java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment
java.endorsed.dirs = C:\Program Files\Java\jre1.8.0_171\lib\endorsed
os.arch = amd64
java.io.tmpdir = C:\Users\FATOUM~1\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_171\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;<anonymized user.home="">\AppData\Local\Microsoft\WindowsApps;;C:\Program Files\Java\jre1.8.0_171\bin;.
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.home="">\Desktop\drjava-beta-20160913-225446.exe
user.name = <anonymized user.name="">
java.vm.specification.version = 1.8
sun.java.command = <anonymized user.home="">\Desktop\drjava-beta-20160913-225446.exe
java.home = C:\Program Files\Java\jre1.8.0_171
sun.arch.data.model = 64
user.language = fr
java.specification.vendor = Oracle Corporation
user.language.format = en
awt.toolkit = sun.awt.windows.WToolkit
java.vm.info = mixed mode
java.version = 1.8.0_171
java.ext.dirs = C:\Program Files\Java\jre1.8.0_171\lib\ext;C:\WINDOWS\Sun\Java\lib\ext
sun.boot.class.path = C:\Program Files\Java\jre1.8.0_171\lib\resources.jar;C:\Program Files\Java\jre1.8.0_171\lib\rt.jar;C:\Program Files\Java\jre1.8.0_171\lib\sunrsasign.jar;C:\Program Files\Java\jre1.8.0_171\lib\jsse.jar;C:\Program Files\Java\jre1.8.0_171\lib\jce.jar;C:\Program Files\Java\jre1.8.0_171\lib\charsets.jar;C:\Program Files\Java\jre1.8.0_171\lib\jfr.jar;C:\Program Files\Java\jre1.8.0_171\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 configuration file
In resource bundle edu.rice.cs.drjava.config.options:
nothing

In shadowed configuration:
lineenum.enabled = true
key.delete.next = [shift DELETE]
key.delete.previous = [shift BACK_SPACE]
save.before.compile = true
recent.files = [C:\Users\<anonymized user.name="">\Dropbox\Assignment\code\Practice1.java,C:\Users\<anonymized user.name="">\Dropbox\Assignment\code\Practice2.java,C:\Users\<anonymized user.name="">\Dropbox\Assignment\code\While.java,C:\Users\<anonymized user.name="">\Dropbox\Assignment\code\Multiple.java,C:\Users\<anonymized user.name="">\Dropbox\Assignment\code\Echo1.java]
window.height = 744
window.width = 1382
window.x = -8
window.y = -8
window.state = 6
last.dir = C:\Users\<anonymized user.name="">\Desktop\code\ThreeInteger.java
last.interactions.dir = C:\Users\<anonymized user.name="">\Desktop\code
tabbedpanes.state = 683 384 700 400
new.version.notification.last = 1526685603679
file.ext.registration = always

Used memory: about 45.74 megabytes
Free memory: about 121.76 megabytes
Total memory: about 167.50 megabytes
Total memory can expand to: about 1.74 gigabytes

Number of processors/cores: 8

Compiler Discovery Log:

1 Attachments

Related

Support Requests: #342

Discussion

  • Mathias Ricken

    Mathias Ricken - 2018-05-19

    I cannot reproduce this, but we have a bug report with the same stack trace, so this is definitely an issue:
    https://sourceforge.net/p/drjava/bugs/968/

    It looks like it has something to do with saving the file. Have you tried making sure the file is saved before you try to run it?

     
    • yuqi_yang

      yuqi_yang - 2018-05-19

      Hello Mathias!

      My prof helped me, it was due to i saved a file called String.java! I was stupid and everything is fine now!

      Thank you

      yuqi


      From: Mathias Ricken mgricken@users.sourceforge.net
      Sent: Saturday, May 19, 2018 1:32:33 PM
      To: [drjava:support-requests]
      Subject: [drjava:support-requests] #342 DrJava has main method but keeps saying do not have for every file

      I cannot reproduce this, but we have a bug report with the same stack trace, so this is definitely an issue:
      https://sourceforge.net/p/drjava/bugs/968/

      It looks like it has something to do with saving the file. Have you tried making sure the file is saved before you try to run it?


      [support-requests:#342]https://sourceforge.net/p/drjava/support-requests/342/ DrJava has main method but keeps saying do not have for every file

      Status: open
      Group: v1.0 (example)
      Created: Sat May 19, 2018 03:21 PM UTC by yuqi_yang
      Last Updated: Sat May 19, 2018 03:21 PM UTC
      Owner: nobody
      Attachments:

      Hello I really need help!

      I am using Windows 10, latest DrJava and JDK as Java SE Development Kit 8u171

      Dr Java was working fine but now can comply some of the code files I did which were all compiled and ran perfectly. They all show the same message as following. Those code files do not have other methods other than main methods.

      Welcome to DrJava. Working directory is C:\Users\Fatoumata\Dropbox\Assignment\code

      run Practice1
      Static Error: This class does not have a static void main method accepting String[].

      At first I thought it was my Mac then I switched to my Windows pc, but same error, then I thought it is my java environment problem, I uninstalled and installed again JDK and DrJava but problem did not solve. When I created methods, it shows error message-please see attachment. Could you please tell me how should I solve these problems? Because now I can not do any practice. Thank you.

      My DrJava shows error message as following

      java.lang.NullPointerException: peer
      at sun.awt.windows.WInputMethod.openCandidateWindow(Native Method)
      at sun.awt.windows.WInputMethod.access$400(Unknown Source)
      at sun.awt.windows.WInputMethod$1.run(Unknown Source)
      at java.awt.event.InvocationEvent.dispatch(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:4671)
      at edu.rice.cs.drjava.ui.MainFrame$8.getFile(MainFrame.java:415)
      at edu.rice.cs.drjava.model.AbstractGlobalModel$ConcreteOpenDefDoc.saveFileAs(AbstractGlobalModel.java:3257)
      at edu.rice.cs.drjava.model.AbstractGlobalModel$ConcreteOpenDefDoc.saveFile(AbstractGlobalModel.java:3212)
      at edu.rice.cs.drjava.model.AbstractGlobalModel.saveAllFilesHelper(AbstractGlobalModel.java:1577)
      at edu.rice.cs.drjava.model.AbstractGlobalModel.saveAllFiles(AbstractGlobalModel.java:1554)
      at edu.rice.cs.drjava.ui.MainFrame._saveAll(MainFrame.java:5327)
      at edu.rice.cs.drjava.ui.MainFrame$ModelListener._saveAllBeforeProceeding(MainFrame.java:9812)
      at edu.rice.cs.drjava.ui.MainFrame$ModelListener.saveBeforeCompile(MainFrame.java:9728)
      at edu.rice.cs.drjava.model.GlobalEventNotifier.saveBeforeCompile(GlobalEventNotifier.java:437)
      at edu.rice.cs.drjava.model.compiler.CompilerEventNotifier.saveBeforeCompile(CompilerEventNotifier.java:106)
      at edu.rice.cs.drjava.model.compiler.DefaultCompilerModel._prepareForCompile(DefaultCompilerModel.java:230)
      at edu.rice.cs.drjava.model.compiler.DefaultCompilerModel.compileAll(DefaultCompilerModel.java:171)
      at edu.rice.cs.drjava.ui.MainFrame._compileAll(MainFrame.java:5752)
      at edu.rice.cs.drjava.ui.MainFrame.access$5300(MainFrame.java:132)
      at edu.rice.cs.drjava.ui.MainFrame$55.actionPerformed(MainFrame.java:973)
      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-20160913-225446
      DrJava Build Time 20160913-225446

      drjava.debug.port = 51768
      java.runtime.name = Java(TM) SE Runtime Environment
      sun.boot.library.path = C:\Program Files\Java\jre1.8.0_171\bin
      java.vm.version = 25.171-b11
      user.country.format = CA
      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 = FR
      user.script =
      sun.java.launcher = SUN_STANDARD
      sun.os.patch.level =
      java.vm.specification.name = Java Virtual Machine Specification
      user.dir = <anonymized user.home="">\Desktop
      java.runtime.version = 1.8.0_171-b11
      java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment
      java.endorsed.dirs = C:\Program Files\Java\jre1.8.0_171\lib\endorsed
      os.arch = amd64
      java.io.tmpdir = C:\Users\FATOUM~1\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_171\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;<anonymized user.home="">\AppData\Local\Microsoft\WindowsApps;;C:\Program Files\Java\jre1.8.0_171\bin;.
      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.home="">\Desktop\drjava-beta-20160913-225446.exe
      user.name = <anonymized user.name="">
      java.vm.specification.version = 1.8
      sun.java.command = <anonymized user.home="">\Desktop\drjava-beta-20160913-225446.exe
      java.home = C:\Program Files\Java\jre1.8.0_171
      sun.arch.data.model = 64
      user.language = fr
      java.specification.vendor = Oracle Corporation
      user.language.format = en
      awt.toolkit = sun.awt.windows.WToolkit
      java.vm.info = mixed mode
      java.version = 1.8.0_171
      java.ext.dirs = C:\Program Files\Java\jre1.8.0_171\lib\ext;C:\WINDOWS\Sun\Java\lib\ext
      sun.boot.class.path = C:\Program Files\Java\jre1.8.0_171\lib\resources.jar;C:\Program Files\Java\jre1.8.0_171\lib\rt.jar;C:\Program Files\Java\jre1.8.0_171\lib\sunrsasign.jar;C:\Program Files\Java\jre1.8.0_171\lib\jsse.jar;C:\Program Files\Java\jre1.8.0_171\lib\jce.jar;C:\Program Files\Java\jre1.8.0_171\lib\charsets.jar;C:\Program Files\Java\jre1.8.0_171\lib\jfr.jar;C:\Program Files\Java\jre1.8.0_171\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 configuration file
      In resource bundle edu.rice.cs.drjava.config.options:
      nothing

      In shadowed configuration:
      lineenum.enabled = true
      key.delete.next = [shift DELETE]
      key.delete.previous = [shift BACK_SPACE]
      save.before.compile = true
      recent.files = [C:\Users\<anonymized user.name="">\Dropbox\Assignment\code\Practice1.java,C:\Users\<anonymized user.name="">\Dropbox\Assignment\code\Practice2.java,C:\Users\<anonymized user.name="">\Dropbox\Assignment\code\While.java,C:\Users\<anonymized user.name="">\Dropbox\Assignment\code\Multiple.java,C:\Users\<anonymized user.name="">\Dropbox\Assignment\code\Echo1.java]
      window.height = 744
      window.width = 1382
      window.x = -8
      window.y = -8
      window.state = 6
      last.dir = C:\Users\<anonymized user.name="">\Desktop\code\ThreeInteger.java
      last.interactions.dir = C:\Users\<anonymized user.name="">\Desktop\code
      tabbedpanes.state = 683 384 700 400
      new.version.notification.last = 1526685603679
      file.ext.registration = always

      Used memory: about 45.74 megabytes
      Free memory: about 121.76 megabytes
      Total memory: about 167.50 megabytes
      Total memory can expand to: about 1.74 gigabytes

      Number of processors/cores: 8

      Compiler Discovery Log:


      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/drjava/support-requests/342/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       

      Related

      Support Requests: #342

    • Robert Cartwright

      Hi Mathias,

      It is great to see you participating on the DrJava support team. I think I
      am the only other person who looks at DrJava support issues and I only do
      it occasionally. I have started working with a Chinese master's degree
      student who is interested in porting DrJava to run on Java 9+. I told him
      that the requisite changes may be major given that rt.jar has been
      eliminated. He is a surprisingly good software developer and is not
      intimidated/baffled by the DrJava build process. (We may try to move from
      ant to gradle as well.)

      If you are interested, I can cc you on the email exchanges that I have with
      this student. We have not yet started the project since he only left Rice
      a week ago to return to his home in China for the summer.

      Best,

      Corky

      On Sat, May 19, 2018 at 12:32 PM, Mathias Ricken mgricken@users.sourceforge.net wrote:

      I cannot reproduce this, but we have a bug report with the same stack
      trace, so this is definitely an issue:
      https://sourceforge.net/p/drjava/bugs/968/

      It looks like it has something to do with saving the file. Have you tried
      making sure the file is saved before you try to run it?


      Status: open
      Group: v1.0 (example)
      Created: Sat May 19, 2018 03:21 PM UTC by yuqi_yang
      Last Updated: Sat May 19, 2018 03:21 PM UTC
      Owner: nobody
      Attachments:

      Hello I really need help!

      I am using Windows 10, latest DrJava and JDK as Java SE Development Kit
      8u171

      Dr Java was working fine but now can comply some of the code files I did
      which were all compiled and ran perfectly. They all show the same message
      as following. Those code files do not have other methods other than main
      methods.

      Welcome to DrJava. Working directory is C:\Users\Fatoumata\Dropbox\ Assignment\code

      run Practice1
      Static Error: This class does not have a static void main method accepting
      String[].

      At first I thought it was my Mac then I switched to my Windows pc, but
      same error, then I thought it is my java environment problem, I uninstalled
      and installed again JDK and DrJava but problem did not solve. When I
      created methods, it shows error message-please see attachment. Could you
      please tell me how should I solve these problems? Because now I can not do
      any practice. Thank you.

      My DrJava shows error message as following

      java.lang.NullPointerException: peer
      at sun.awt.windows.WInputMethod.openCandidateWindow(Native Method)
      at sun.awt.windows.WInputMethod.access$400(Unknown Source)
      at sun.awt.windows.WInputMethod$1.run(Unknown Source)
      at java.awt.event.InvocationEvent.dispatch(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:4671)
      at edu.rice.cs.drjava.ui.MainFrame$8.getFile(MainFrame.java:415)
      at edu.rice.cs.drjava.model.AbstractGlobalModel$
      ConcreteOpenDefDoc.saveFileAs(AbstractGlobalModel.java:3257)
      at edu.rice.cs.drjava.model.AbstractGlobalModel$
      ConcreteOpenDefDoc.saveFile(AbstractGlobalModel.java:3212)
      at edu.rice.cs.drjava.model.AbstractGlobalModel.saveAllFilesHelper(
      AbstractGlobalModel.java:1577)
      at edu.rice.cs.drjava.model.AbstractGlobalModel.saveAllFiles(
      AbstractGlobalModel.java:1554)
      at edu.rice.cs.drjava.ui.MainFrame._saveAll(MainFrame.java:5327)
      at edu.rice.cs.drjava.ui.MainFrame$ModelListener._saveAllBeforeProceeding(
      MainFrame.java:9812)
      at edu.rice.cs.drjava.ui.MainFrame$ModelListener.
      saveBeforeCompile(MainFrame.java:9728)
      at edu.rice.cs.drjava.model.GlobalEventNotifier.saveBeforeCompile(
      GlobalEventNotifier.java:437)
      at edu.rice.cs.drjava.model.compiler.CompilerEventNotifier.
      saveBeforeCompile(CompilerEventNotifier.java:106)
      at edu.rice.cs.drjava.model.compiler.DefaultCompilerModel.
      _prepareForCompile(DefaultCompilerModel.java:230)
      at edu.rice.cs.drjava.model.compiler.DefaultCompilerModel.compileAll(
      DefaultCompilerModel.java:171)
      at edu.rice.cs.drjava.ui.MainFrame._compileAll(MainFrame.java:5752)
      at edu.rice.cs.drjava.ui.MainFrame.access$5300(MainFrame.java:132)
      at edu.rice.cs.drjava.ui.MainFrame$55.actionPerformed(MainFrame.java:973)
      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-20160913-225446
      DrJava Build Time 20160913-225446

      drjava.debug.port = 51768
      java.runtime.name = Java(TM) SE Runtime Environment
      sun.boot.library.path = C:\Program Files\Java\jre1.8.0_171\bin
      java.vm.version = 25.171-b11
      user.country.format = CA
      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 = FR
      user.script =
      sun.java.launcher = SUN_STANDARD
      sun.os.patch.level =
      java.vm.specification.name = Java Virtual Machine Specification
      user.dir = <anonymized user.home="">\Desktop
      java.runtime.version = 1.8.0_171-b11
      java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment
      java.endorsed.dirs = C:\Program Files\Java\jre1.8.0_171\lib\endorsed
      os.arch = amd64
      java.io.tmpdir = C:\Users\FATOUM~1\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_171\bin;C:
      \WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files
      (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS
      Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:
      \WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\ WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\OpenCL
      SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL
      SDK\2.0\bin\x64;C:\Program Files\Intel\Intel(R) Management Engine
      Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine
      Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine
      Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine
      Components\IPT;<anonymized user.home="">\AppData\Local\ Microsoft\WindowsApps;;C:\Program Files\Java\jre1.8.0_171\bin;.
      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.home="">\Desktop\drjava-
      beta-20160913-225446.exe
      user.name = <anonymized user.name="">
      java.vm.specification.version = 1.8
      sun.java.command = <anonymized user.home="">\Desktop\drjava-
      beta-20160913-225446.exe
      java.home = C:\Program Files\Java\jre1.8.0_171
      sun.arch.data.model = 64
      user.language = fr
      java.specification.vendor = Oracle Corporation
      user.language.format = en
      awt.toolkit = sun.awt.windows.WToolkit
      java.vm.info = mixed mode
      java.version = 1.8.0_171
      java.ext.dirs = C:\Program Files\Java\jre1.8.0_171\lib\ ext;C:\WINDOWS\Sun\Java\lib\ext
      sun.boot.class.path = C:\Program Files\Java\jre1.8.0_171\lib\resources.jar;C:\Program
      Files\Java\jre1.8.0_171\lib\rt.jar;C:\Program Files\Java\jre1.8.0_171\lib\sunrsasign.jar;C:\Program
      Files\Java\jre1.8.0_171\lib\jsse.jar;C:\Program
      Files\Java\jre1.8.0_171\lib\jce.jar;C:\Program
      Files\Java\jre1.8.0_171\lib\charsets.jar;C:\Program
      Files\Java\jre1.8.0_171\lib\jfr.jar;C:\Program Files\Java\jre1.8.0_171\ 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 configuration file
      In resource bundle edu.rice.cs.drjava.config.options:
      nothing

      In shadowed configuration:
      lineenum.enabled = true
      key.delete.next = [shift DELETE]
      key.delete.previous = [shift BACK_SPACE]
      save.before.compile = true
      recent.files = [C:\Users\<anonymized user.name="">\Dropbox\ Assignment\code\Practice1.java,C:\Users\<anonymized user.name="">\Dropbox\ Assignment\code\Practice2.java,C:\Users\<anonymized user.name="">\Dropbox\ Assignment\code\While.java,C:\Users\<anonymized user.name="">\Dropbox\ Assignment\code\Multiple.java,C:\Users\<anonymized user.name="">\Dropbox\ Assignment\code\Echo1.java]
      window.height = 744
      window.width = 1382
      window.x = -8
      window.y = -8
      window.state = 6
      last.dir = C:\Users\<anonymized user.name="">\Desktop\code\ ThreeInteger.java
      last.interactions.dir = C:\Users\<anonymized user.name="">\Desktop\code
      tabbedpanes.state = 683 384 700 400
      new.version.notification.last = 1526685603679
      file.ext.registration = always

      Used memory: about 45.74 megabytes
      Free memory: about 121.76 megabytes
      Total memory: about 167.50 megabytes
      Total memory can expand to: about 1.74 gigabytes

      Number of processors/cores: 8

      Compiler Discovery Log:

      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/drjava/support-requests/342/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Support Requests: #342


Log in to post a comment.