I personally use a portable version of GeoGebra as I'm not that fond of installing a full Java environment on my machine, and the portable version of GeoGebra comes with a portable version of JRE as well. So keep that in mind when reading these guides.

Missing GUI

As it turns out Java has a problem with rendering the GUI correctly on non-reparenting window managers, such as DWM -- the one I use. The solution to the problem is easy though. If JDK is patched to check for the environment variable _JAVA_AWT_WM_NONREPARENTING, you can set this to equal 1. I've created a startup script for GeoGebra like so:

 _JAVA_AWT_WM_NONREPARENTING=1 ./geogebra-portable

This workaround is of course not only applicable to GeoGebra, but to all Java applications with similar problems.

Using GTK theming in GeoGebra

If you want to have the same look and feel in GeoGebra, as the rest of your GTK applications, this can be easily achieved by setting Java options through the environment variable _JAVA_OPTIONS, like so:

 _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true'
 (one line)

Again, this is of course applicable to all GUI applications in Java.