Menu

#902 cannot run program

4: Serious
closed-duplicate
nobody
Other (88)
5
2011-06-11
2011-02-02
No

i could not run any java program code. im using the latest dr java and jdk.

Discussion

  • kasambu junior

    kasambu junior - 2011-02-02

    the error that was shown.

     
  • Mathias Ricken

    Mathias Ricken - 2011-06-11

    The error from the attached file is

    edu.rice.cs.util.UnexpectedException: java.util.concurrent.TimeoutException
    at edu.rice.cs.drjava.model.repl.newjvm.MainJVM$StartingState.restart(MainJVM.java:826)
    at edu.rice.cs.drjava.model.repl.newjvm.MainJVM.restartInterpreterJVM(MainJVM.java:161)
    at edu.rice.cs.drjava.model.repl.RMIInteractionsModel._resetInterpreter(RMIInteractionsModel.java:120)
    at edu.rice.cs.drjava.model.repl.InteractionsModel.resetInterpreter(InteractionsModel.java:314)
    at edu.rice.cs.drjava.model.DefaultGlobalModel.resetInteractions(DefaultGlobalModel.java:370)
    at edu.rice.cs.drjava.model.DefaultGlobalModel$ConcreteOpenDefDoc._runInInteractions(DefaultGlobalModel.java:560)
    at edu.rice.cs.drjava.model.DefaultGlobalModel$ConcreteOpenDefDoc.runSmart(DefaultGlobalModel.java:610)
    at edu.rice.cs.drjava.ui.MainFrame._runMain(MainFrame.java:5671)
    at edu.rice.cs.drjava.ui.MainFrame.access$5400(MainFrame.java:121)
    at edu.rice.cs.drjava.ui.MainFrame$58.actionPerformed(MainFrame.java:968)
    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.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)
    Caused by: java.util.concurrent.TimeoutException
    at edu.rice.cs.plt.concurrent.ConcurrentUtil.waitUntilNanos(ConcurrentUtil.java:159)
    at edu.rice.cs.plt.concurrent.StateMonitor.ensureNotState(StateMonitor.java:199)
    at edu.rice.cs.plt.concurrent.StateMonitor.ensureNotState(StateMonitor.java:185)
    at edu.rice.cs.drjava.model.repl.newjvm.MainJVM$StartingState.restart(MainJVM.java:825)
    ... 34 more

    Caused by:
    java.util.concurrent.TimeoutException
    at edu.rice.cs.plt.concurrent.ConcurrentUtil.waitUntilNanos(ConcurrentUtil.java:159)
    at edu.rice.cs.plt.concurrent.StateMonitor.ensureNotState(StateMonitor.java:199)
    at edu.rice.cs.plt.concurrent.StateMonitor.ensureNotState(StateMonitor.java:185)
    at edu.rice.cs.drjava.model.repl.newjvm.MainJVM$StartingState.restart(MainJVM.java:825)
    at edu.rice.cs.drjava.model.repl.newjvm.MainJVM.restartInterpreterJVM(MainJVM.java:161)
    at edu.rice.cs.drjava.model.repl.RMIInteractionsModel._resetInterpreter(RMIInteractionsModel.java:120)
    at edu.rice.cs.drjava.model.repl.InteractionsModel.resetInterpreter(InteractionsModel.java:314)
    at edu.rice.cs.drjava.model.DefaultGlobalModel.resetInteractions(DefaultGlobalModel.java:370)
    at edu.rice.cs.drjava.model.DefaultGlobalModel$ConcreteOpenDefDoc._runInInteractions(DefaultGlobalModel.java:560)
    at edu.rice.cs.drjava.model.DefaultGlobalModel$ConcreteOpenDefDoc.runSmart(DefaultGlobalModel.java:610)
    at edu.rice.cs.drjava.ui.MainFrame._runMain(MainFrame.java:5671)
    at edu.rice.cs.drjava.ui.MainFrame.access$5400(MainFrame.java:121)
    at edu.rice.cs.drjava.ui.MainFrame$58.actionPerformed(MainFrame.java:968)
    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.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-20100913-r5387
    DrJava Build Time 20100913-2126

    drjava.debug.port = 50189
    java.runtime.name = Java(TM) SE Runtime Environment
    sun.boot.library.path = C:\Program Files\Java\jre6\bin
    java.vm.version = 19.0-b09
    java.vm.vendor = Sun Microsystems Inc.
    java.vendor.url = http://java.sun.com/
    path.separator = ;
    java.vm.name = Java HotSpot(TM) Client VM
    file.encoding.pkg = sun.io
    sun.java.launcher = SUN_STANDARD
    user.country = US
    sun.os.patch.level =
    java.vm.specification.name = Java Virtual Machine Specification
    user.dir = <anonymized user.dir>
    java.runtime.version = 1.6.0_23-b05
    java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment
    java.endorsed.dirs = C:\Program Files\Java\jre6\lib\endorsed
    os.arch = x86
    java.io.tmpdir = <anonymized user.home>\AppData\Local\Temp\ line.separator = "\u000d\u000a"
    java.vm.specification.vendor = Sun Microsystems Inc.
    user.variant =
    os.name = Windows 7
    sun.jnu.encoding = Cp1252
    java.library.path = C:\Program Files\Java\jre6\bin;.;C:\Windows\Sun\Java\bin;<anonymized user.dir>;C:\Windows;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\watcom-1.3\binnt;C:\watcom-1.3\binw;<anonymized user.dir>;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\MATLAB\R2010a\runtime\win32;C:\Program Files\MATLAB\R2010a\bin;C:\Program Files\Windows Live\Shared;;C:\Program Files\Java\jre6\bin
    java.specification.name = Java Platform API Specification
    java.class.version = 50.0
    sun.management.compiler = HotSpot Client Compiler
    os.version = 6.1
    user.home = <anonymized user.home>
    user.timezone = America/New_York
    java.awt.printerjob = sun.awt.windows.WPrinterJob
    file.encoding = Cp1252
    java.specification.version = 1.6
    java.class.path = <anonymized user.home>\Downloads\Programs\drjava-stable-20100913-r5387.exe
    user.name = <anonymized user.name>
    java.vm.specification.version = 1.0
    java.home = C:\Program Files\Java\jre6
    sun.arch.data.model = 32
    user.language = en
    java.specification.vendor = Sun Microsystems Inc.
    awt.toolkit = sun.awt.windows.WToolkit
    java.vm.info = mixed mode, sharing
    java.version = 1.6.0_23
    java.ext.dirs = C:\Program Files\Java\jre6\lib\ext;C:\Windows\Sun\Java\lib\ext
    sun.boot.class.path = C:\Program Files\Java\jre6\lib\resources.jar;C:\Program Files\Java\jre6\lib\rt.jar;C:\Program Files\Java\jre6\lib\sunrsasign.jar;C:\Program Files\Java\jre6\lib\jsse.jar;C:\Program Files\Java\jre6\lib\jce.jar;C:\Program Files\Java\jre6\lib\charsets.jar;C:\Program Files\Java\jre6\lib\modules\jdk.boot.jar;C:\Program Files\Java\jre6\classes
    java.vendor = Sun Microsystems Inc.
    file.separator = \ java.vendor.url.bug = http://java.sun.com/cgi-bin/bugreport.cgi
    sun.io.unicode.encoding = UnicodeLittle
    sun.cpu.endian = little
    java.rmi.server.hostname = 127.0.0.1
    sun.desktop = windows
    sun.cpu.isalist = pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86

    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]
    interactions.reset.prompt = false
    save.before.compile = true
    recent.files = [C:\\Users\\&lt;anonymized user.name>\\Desktop\\&lt;anonymized user.name>_test2\\Test.java,C:\\Users\\&lt;anonymized user.name>\\Desktop\\&lt;anonymized user.name>_test2\\Test1.java,C:\\Users\\&lt;anonymized user.name>\\Desktop\\&lt;anonymized user.name>_test2\\Circle.java,C:\\Users\\&lt;anonymized user.name>\\Desktop\\&lt;anonymized user.name>_test2\\delete.java]
    window.x = 247
    window.y = 61
    last.dir = C:\\Users\\&lt;anonymized user.name>\\Desktop\\&lt;anonymized user.name>_test2\\Test.java
    last.interactions.dir = C:\\Users\\&lt;anonymized user.name>\\Desktop\\&lt;anonymized user.name>_test2
    tabbedpanes.state = 640 400 700 400
    dialog.drjava.survey.enabled = false
    new.version.notification = stable versions only
    new.version.notification.last = 1296604031734
    drjava.survey.notification.last = 1296678644607
    drjava.survey.result.last = http://www.drjava.org/submit-usage.php?rev=5387&os.name=Windows%207&os.version=6.1&java.version=1.6.0_23&java.vendor=Sun%20Microsystems%20Inc.
    file.ext.registration = always

    Used memory: about 14.98 megabytes
    Free memory: about 11.83 megabytes
    Total memory: about 26.81 megabytes
    Total memory can expand to: about 247.50 megabytes

    Number of processors/cores: 2

    Compiler Discovery Log:
    From config: not set
    makeFromRuntime: compilerAdapter=edu.rice.cs.drjava.model.compiler.Javac160Compiler
    attempt = JDK 6.0_23, isAvailable() = false
    compiler=edu.rice.cs.drjava.model.compiler.NoCompilerAvailable
    at least Java 6, try EclipseCompiler
    version for Eclipse: Java 6.0
    attempt = Eclipse Compiler 0.A48, isAvailable() = true
    compiler=edu.rice.cs.drjava.model.compiler.EclipseCompiler
    compiler found
    compilers found: 1
    From runtime: JDK library 6.0
    Dir added: C:\Program Files\Java\jre6
    Dir added: C:\Program Files\Java
    Dir added: C:\Program Files
    Dir added: C:\Program Files\Java
    Dir added: C:\Program Files
    Dir added: C:\Program Files\Java
    Dir added: C:\Program Files
    Dir not added: C:\Java
    Dir added: C:\Windows\System32
    Dir not added: C:\Java
    Dir added: C:\Windows\System32
    Dir not added: C:\System\Library\Frameworks\JavaVM.framework\Versions
    Dir not added: C:\usr\java
    Dir not added: C:\usr\j2se
    Dir not added: C:\usr
    Dir not added: C:\usr\local\java
    Dir not added: C:\usr\local\j2se
    Dir not added: C:\usr\local
    Dir not added: C:\usr\lib\jvm
    Dir not added: C:\usr\lib\jvm\java-6-sun
    Dir not added: C:\usr\lib\jvm\java-1.5.0-sun
    Dir not added: C:\usr\lib\jvm\java-6-openjdk
    Dir not added: C:\home\javaplt\java\Linux-i686
    File not added: C:\Program Files\Java\lib\tools.jar
    File not added: C:\Program Files\Java\Classes\classes.jar
    File not added: C:\Windows\System32\java.exe\lib\tools.jar
    File not added: C:\Windows\System32\java.exe\Classes\classes.jar
    File not added: C:\Windows\System32\javaw.exe\lib\tools.jar
    File not added: C:\Windows\System32\javaw.exe\Classes\classes.jar
    File not added: C:\Windows\System32\javaws.exe\lib\tools.jar
    File not added: C:\Windows\System32\javaws.exe\Classes\classes.jar
    File not added: C:\Program Files\JavaMint\langtools\dist\lib\classes.jar
    File not added: C:\Program Files\JavaMint\langtools\dist\lib\tools.jar
    File not added: C:\usr\local\soylatte\lib\classes.jar
    File not added: C:\usr\local\soylatte\lib\tools.jar
    File not added: C:\usr\local\JavaMint\langtools\dist\lib\classes.jar
    File not added: C:\usr\local\JavaMint\langtools\dist\lib\tools.jar
    MINT_HOME not set
    File added: <anonymized user.home>\Downloads\Programs\drjava-stable-20100913-r5387.exe
    Result:

    It seems like this is a duplicate of

    https://sourceforge.net/tracker/?func=detail&atid=438935&aid=3078257&group_id=44253

    Unfortunately, we don't have a solution for this problem.

     
  • Mathias Ricken

    Mathias Ricken - 2011-06-11
    • status: open --> closed-duplicate
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.