🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #15214

Running External Programs

#15214
From: Matt DeBoer
Date: Tue, 06 Jul 1999 00:00
18 lines
1121 bytes
  Im trying to launch another .jar file from within a java program.
here is the statement i have used so far

Runtime exec("C:/Windows/Desktop/TEST.jar")

and these errors returned

Error: non-static method exec(java.lang.string) cannot be referenced
from a static context.
Error: unreported exception: java.io.IOException; must be caught or
declared to be thrown.


If some one could tell me all the steps to getting a statement like this
to work (such as imports, declarations, anything) I would really
appreciate it.

                                                            Matt
Technical Details
Message-ID: <378224C3.D8289CE4@midwestlabs.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,d207c7dd6be77e9d,start
X-Google-Attributes: gidf74b3,public
From: Matt DeBoer <mjd1@midwestlabs.com>
Subject: Running External Programs
Date: 1999/07/06
Message-ID: <378224C3.D8289CE4@midwestlabs.com>
X-Deja-AN: 497780364
Content-Transfer-Encoding: 7bit
Organization: Another Netscape Collabra Server User
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language