Menu

#867 Eclipse Plugin Cannot Do System.out.println

open
nobody
5
2010-07-22
2010-07-22
No

I'd like to find out whether I should plan on using the DrJava plugin for Eclipse when I teach CS1 at Suffolk University this fall using Mark Guzdial's MeadiaComp/Java book.

In particular, I have run into problems with the Interaction pane on two different platforms.

My students will be using (Ubuntu) Linux workstations for much of their lab work and miscellaneous laptops (probably Windows) for their homework.

I tried using the plugin on my own kubuntu linux box:
Eclipse Galileo SDK
Version: 3.5.2
Build id: M20100211-1343
Plugin jar file:
edu.rice.cs.drjava_0.9.9.20090115-r4708.jar

Here are some typical lines from my recent attempts at interactions:

Welcome to DrJava. Working directory is /home/ezust
> System.out.println(3 * 28);
> System.out.println(3 * 28)
> System.out.print(3 * 28)
> System.out.print(3 * 28);
> String s = "qweqwe"
> s
"qweqwe"
> System.out.print(s)
> System.out.print(s);
> s
"qweqwe"
>

I'll be lecturing using my macbook (Mac OS X 10.6.4).
I installed Eclipse Helios Release (build 20100617-1415) on it
and tried the same plugin jar file.
The Interaction pane evaluated simple arithmetic expressions with no problems.
But when I typed "System.out.println(3 * 4);" into the interaction pane, I got a message box from DrJava that said:
"An error occurred in DrJava.
edu.rice.cs.util.UnexpectedException:java.lang.NoSuch!.
You may wish to save all your work and restart DrJava."

When I clicked the OK button Eclipse was immediately terminated.

Am I doing something wrong - or have I left out a step somewhere?

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.