Menu

#962 can't compile when using beta version

4: Serious
open
nobody
None
5
2016-09-15
2016-09-15
No

I use Windows 7, HP. I installed the beta version of the jar (0913-225446) available for download today (9/14/16), opened an existing java program, tried to compile and got this error message:

edu.rice.cs.util.UnexpectedException: java.lang.NoClassDefFoundError: com/sun/tools/javac/util/DefaultFileManager
at edu.rice.cs.drjava.model.compiler.DefaultCompilerModel._doCompile(DefaultCompilerModel.java:277)
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$200(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$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.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$1.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)
Caused by: java.lang.NoClassDefFoundError: com/sun/tools/javac/util/DefaultFileManager
at edu.rice.cs.drjava.model.compiler.Javac160Compiler.compile(Javac160Compiler.java:130)
at edu.rice.cs.drjava.model.compiler.DefaultCompilerModel._compileFiles(DefaultCompilerModel.java:363)
at edu.rice.cs.drjava.model.compiler.DefaultCompilerModel._doCompile(DefaultCompilerModel.java:272)
... 40 more
Caused by: java.lang.ClassNotFoundException: com.sun.tools.javac.util.DefaultFileManager
at java.lang.ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at edu.rice.cs.plt.reflect.PreemptingClassLoader.loadClass(PreemptingClassLoader.java:91)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 43 more

Caused by:
java.lang.NoClassDefFoundError: com/sun/tools/javac/util/DefaultFileManager
at edu.rice.cs.drjava.model.compiler.Javac160Compiler.compile(Javac160Compiler.java:130)
at edu.rice.cs.drjava.model.compiler.DefaultCompilerModel._compileFiles(DefaultCompilerModel.java:363)
at edu.rice.cs.drjava.model.compiler.DefaultCompilerModel._doCompile(DefaultCompilerModel.java:272)
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$200(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$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.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$1.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)
Caused by: java.lang.ClassNotFoundException: com.sun.tools.javac.util.DefaultFileManager
at java.lang.ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at edu.rice.cs.plt.reflect.PreemptingClassLoader.loadClass(PreemptingClassLoader.java:91)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 43 more

System Properties:
DrJava Version drjava-20160913-225446
DrJava Build Time 20160913-225446

drjava.debug.port = 54082
java.runtime.name = Java(TM) SE Runtime Environment
sun.boot.library.path = <anonymized user.home="">\introcs\java\bin
java.vm.version = 24.65-b04
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 = Service Pack 1
java.vm.specification.name = Java Virtual Machine Specification
user.dir = <anonymized user.home="">\Desktop
java.runtime.version = 1.7.0_67-b01
java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment
java.endorsed.dirs = <anonymized user.home="">\introcs\java\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 7
sun.jnu.encoding = Cp1252
java.library.path = <anonymized user.home="">\introcs\java\bin;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;<anonymized user.home="">\algs4\java\bin;<anonymized user.home="">\introcs\java\bin;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)\Hewlett-Packard\HP ProtectTools Security Manager\Bin\;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;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\HashiCorp\Vagrant\bin;<anonymized user.home="">\algs4\bin;<anonymized user.home="">\algs4\java\bin;<anonymized user.home="">\introcs\j3d\bin;<anonymized user.home="">\introcs\bin;<anonymized user.home="">\introcs\java\bin;C:\Program Files (x86)\SSH Communications Security\SSH Secure Shell;.
sun.awt.enableExtraMouseButtons = true
java.specification.name = Java Platform API Specification
java.class.version = 51.0
sun.management.compiler = HotSpot 64-Bit Tiered Compilers
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.7
java.class.path = <anonymized user.home="">\introcs\drjava.jar
user.name = <anonymized user.name="">
java.vm.specification.version = 1.7
sun.java.command = <anonymized user.home="">\introcs\drjava.jar
java.home = <anonymized user.home="">\introcs\java
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.7.0_67
java.ext.dirs = <anonymized user.home="">\introcs\java\lib\ext;C:\windows\Sun\Java\lib\ext
sun.boot.class.path = <anonymized user.home="">\introcs\java\lib\resources.jar;<anonymized user.home="">\introcs\java\lib\rt.jar;<anonymized user.home="">\introcs\java\lib\sunrsasign.jar;<anonymized user.home="">\introcs\java\lib\jsse.jar;<anonymized user.home="">\introcs\java\lib\jce.jar;<anonymized user.home="">\introcs\java\lib\charsets.jar;<anonymized user.home="">\introcs\java\lib\jfr.jar;<anonymized user.home="">\introcs\java\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:
javac.location = C:\Users\<anonymized user.name="">\introcs\java\lib\tools.jar
extra.classpath = C:\Users\<anonymized user.name="">\introcs\stdlib.jar;C:\Users\<anonymized user.name="">\introcs\algs4.jar;C:\Users\<anonymized user.name="">\introcs\j3d\lib\ext\j3dcore.jar;C:\Users\<anonymized user.name="">\introcs\j3d\lib\ext\j3dutils.jar;C:\Users\<anonymized user.name="">\introcs\j3d\lib\ext\vecmath.jar
all.compiler.versions = true
definitions.normal.color = #ffffff
definitions.keyword.color = #c389fb
definitions.type.color = #66ccff
definitions.comment.color = #a5a2b8
definitions.double.quoted.color = #ff66cc
definitions.number.color = #ff9346
system.out.color = #99ff99
system.err.color = #ff9999
system.in.color = #ffff66
interactions.error.color = #ff9999
debug.message.color = #9999ff
definitions.background.color = #1f1f21
definitions.line.number.background.color = #333333
definitions.line.number.color = #cccccc
definitions.match.color = #666666
compiler.error.color = #666666
drjava.errors.button.color = #333333
right.margin.columns = 80
lineenum.enabled = true
key.delete.next = [shift DELETE]
key.delete.previous = [shift BACK_SPACE]
interactions.exit.prompt = false
interactions.reset.prompt = false
save.before.compile = true
compile.before.junit = true
save.before.javadoc = true
indent.level = 4
auto.close.comments = true
run.with.assert = false
files.backup = false
recent.files = [C:\226\student\RectHV.java,C:\226\student\KdTree.java,C:\226\autocomplete\Autocomplete.java,C:\226\autocomplete\BinarySearchDeluxe.java]
window.x = 134
window.y = 11
last.dir = C:\226\wordnet
last.interactions.dir = C:\226\wordnet
dialog.completeword.javaapi = true
tabbedpanes.state = 683 384 700 400
dialog.drjava.survey.enabled = false
new.version.notification = none (disabled)
file.ext.registration = always

Used memory: about 61.40 megabytes
Free memory: about 114.60 megabytes
Total memory: about 176 megabytes
Total memory can expand to: about 880 megabytes

Number of processors/cores: 4

Compiler Discovery Log:

Discussion


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.