Author Topic: java and the terminal  (Read 2437 times)

Offline joe9173

  • Poster Child
  • *
  • Posts: 28
    • View Profile
java and the terminal
« on: April 11, 2003, 05:41:00 PM »
is it possible to run a java program that i wrote in the terminal? i'm currently running it through the "program builder" in the developer's tools package.... i'd imagine it would run reasonably faster in the terminal?

thanks

Offline kps

  • TS Addict
  • *****
  • Posts: 1693
    • View Profile
    • http://
java and the terminal
« Reply #1 on: April 11, 2003, 08:57:00 PM »
apropos java returned this:
code:
Policytool(1)            - graphical tool for managing Java policy files
appletviewer(1)          - Java applet viewer
idlj(1)                  - IDL-to-Java compiler
jar(1)                   - Java archive tool
java(1)                  - Java interpreter
javac(1)                 - Java compiler
javadoc(1)               - Java API documentation generator
javah(1)                 - C header and stub file generator
javap(1)                 - Java class file disassembler
jdb(1)                   - Java debugger
jikes(1)                 - java source to bytecode compiler
rmic(1)                  - Java RMI stub compiler
rmiregistry(1)           - Java remote object registry
tnameserv(1)             - Java IDL name server starter script

man java shows this:(in part)

code:
NAME
       java - Java interpreter

SYNOPSIS
       java [ options ] class [ argument ...  ]

       java [ options ] -jar file.jar
            [ argument ...  ]

PARAMETERS
       Options  may be in any order.  For a discussion of parame-
       ters which apply to a specific option, see OPTIONS  below.

       options        Command-line options.  See OPTIONS below.

       class          Name of the class to be invoked.

       file.jar       Name  of  the jar file to be invoked.  Used
                      only with the -jar option.

DESCRIPTION
       The java utility launches a  Java  application.   It  does
       this  by  starting  a  Java runtime environment, loading a
       specified class, and invoking that  class's  main  method.
       The method must have the following signature:

          public static void main(String args[])

I'm not a programmer, but that may do it for you.

Offline joe9173

  • Poster Child
  • *
  • Posts: 28
    • View Profile
java and the terminal
« Reply #2 on: April 11, 2003, 09:25:00 PM »
wow thanks i'll check this out