DrJava: Cannot run code using JDK8.0

北城余情 提交于 2019-12-01 22:57:18

I'm getting errors when I try to run it with JDK 8 as well.

My temporary solution: download JRE (or JDK) 7 as a tar.gz, and DrJave as a jar. Unzip the JRE/JDK, and just run the jar with the v7 java

Works for now. I'm sure they'll get it sorted eventually, but meanwhile...

I am running DrJava on JDK 8 and I faced the same issue when I ran DrJava Windows App. I now run DrJava jar file instead of windows app.

This may also happen if you're trying to run your code which has been modified(accidently or otherwise) after your last compilation. Just compile it again (shift + F5) and run (keyboard - F2). Unlike Eclipse and other sophisticated IDEs, DrJava requires you to compile all modified code before you run it.

Guri Singh

Firstly, try to change the compiler from compiler output option given as shown. I hope it works. If it doesn't, download the jar file of dr java and do the necessary changes.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!