Re: [SLUG] How to join the secret Java Society

From: Tim Jones (tim@timjones.com)
Date: Tue Aug 06 2002 - 09:17:29 EDT


On Tuesday 06 August 2002 04:46, Ronan Heffernan wrote:
> >>So based on your post, is it true that you can run a Java app outside a
> >
> > browser?
> >
> > Yes, you can run Java applications on any platform, GUI or not. Check
> > out DBVisualiser from minq.se. That is a wonderful example of a Java
> > based program that is very useful in an enterprise (lets you access any
> > database that has a JDBC driver, which is pretty much all of them, these
> > days), and IS graphical, and runs fine on Solaris, Windows and Linux
> > (maybe Mac, too, but I don't have one to play with).
> >
> > Java's GUI was kinda clunky at first, it was called AWT. With 1.1 they
> > started distributing an additional JAR file called Swing, that had much
> > better graphical UI elements. With 1.2, that renamed the package, and
> > made it part of Java proper.
>
> The above answer sort of side-steps the question. Yes, there are
> non-graphical JAVA applications that use stdin and stdout, and/or parse
> argv[] (mostly small utilities). There are also JAVA applications that
> run as EJB or CORBA or Sockets servers that do not need GUI. However, I
> think that there is no equivalent of ncurses in JAVA (you could probably
> implement one, though it may require hacks to the JVM to access video
> hardware or to properly use the termcap mechanism). If a JAVA app has
> only an AWT or Swing interface, you will not be able to use that app
> outside of a supported GUI environment (X, M$ Windows, MacOS, BeOS?, ...).

Quite right - I didn't actually address curses, but it didn't occur to me that
anyone in this day and age would wants to!

But if you Google for "java curses" - there are people out there who have
re-implemented the termcap interface to provide curses functionality. It's
not part of Sun's Java distribution, of course. Hardware access is not
necessary to do curses, just knowing what escape codes to emit (that's what
termcap is). And if Windows still does ANY terminal emulation in CMD.EXE it
is probably limited to the ANSI.SYS stuff we used to serve up in the BBS
days. Enjoy!

Tim

-- 
------------------------------------------------
Timothy Jones - tim@timjones.com / tjones@tsiconnections.com
Unix/Linux/Java Programmer/DBA/SystemAdmin & Brasswind Player



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 15:58:06 EDT