diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el index 213ebef92f5..26fecf9c9f1 100644 --- a/lisp/progmodes/gud.el +++ b/lisp/progmodes/gud.el @@ -2460,7 +2460,7 @@ during jdb initialization depending on the value of ;; not supported/followed) (if (and gud-jdb-use-classpath (not gud-jdb-classpath-string) - (or (string-match "classpath:[ \t[]+\\([^]]+\\)" gud-marker-acc) + (or (string-match "classpath:[ \t[]+\\([^]]*\\)" gud-marker-acc) (string-match "-classpath[ \t\"]+\\([^ \"]+\\)" gud-marker-acc))) (setq gud-jdb-classpath (gud-jdb-parse-classpath-string