JBasic is a BASIC interpreter, written entirely in Java.
Version: 2.0JBasic is a BASIC interpreter, written entirely in Java. It operates in “console” mode which means you run it from the command line of a shell. JBasic can run on most Unix systems including Mac OS X, the Windows command shell, or a VMS DCL command line.
Operating System: Linux
Start by making sure you have Java 1.4.2. It is entirely likely that JBasic works on earlier versions of Java, but I haven't tried it out. If you do, please let me know how it works out!
Download the jbasic.jar file. This file contains the application, sample and test programs, and the (currently weak) online help.
Start up a suitable command-line window or shell. Most of my work is done on Mac OS X, so I use the Terminal utility to open a window with a Bash shell.
Start up JBasic with the command:
java -jar jbasic.jar
You can get help by typing HELP at the prompt. Have fun!
· Java 1.4.2 or later
What's New in This Release:
· Added mulii-user mode. This lets an instance of JBasic act as a mutli-user server. Users connect via a telnet client (port 6100, by default) and each connected user has their own shell. The global variables of each shell are configured for the remote users rather than based on the user running the JBasic server. The users run in "Sandbox" mode to prevent damage to the local file system.
· SET MULTIUSER enables the multiuser mode. At the time of this command, the array SYS$USERLIST is read to describe the user id's allowed to connect this mode. Note - this is pretty clunky now and should be modified to support a control file, etc.
· This is implemnted by an adaptation of the wimpi.net TelnetD open source product, used under the terms of the GPL license. This portion of JBasic is Copyright (c) 2000-2005 Dieter Wimberger.
· Fix security hole where ASM statement could be used to generate code to get the user out of sandbox mode.
· The USERS() function returns an array with the names of all currently connected users.