osx - Problems opening a java file using gedit on terminal -


i'm using terminal test java code. have mac. when compile example:

->javac myjava.java (it compiles perfectly)

->java myjava (it works perfectly)

but problem when i'm trying edit java file using gedit, this:

->gedit *.java

it displays error:

->(gedit:12827): gtk-warning **: cannot open display:

what cause? have installed gedit on mac, still giving same problem.

regards!

you're trying launch editor (gedit) requires xwindows. download , install xserver (like xquartz) or use terminal based editor vim, or use native mac editor.


Comments

Popular posts from this blog

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -