Skip to content

Commit 18435f1

Browse files
committed
This revision contains a tiny patch that supports trivial uses of the
"run" command button. Previously it was completely broken.
1 parent c2827b5 commit 18435f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drjava/src/edu/rice/cs/drjava/model/DefaultGlobalModel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ public void run() {
671671
* @exception IOException propagated from GlobalModel.compileAll()
672672
*/
673673
public void runMain(String qualifiedClassName) throws ClassNameNotFoundException, IOException {
674-
_runInInteractions("java {0}", qualifiedClassName);
674+
_runInInteractions("{0}.main(null)", qualifiedClassName);
675675
}
676676

677677
/** Runs this document as applet in the interactions pane after resetting interactions with the source

0 commit comments

Comments
 (0)