Article View: borland.public.jbuilder.java.language
Article #18465Re: How can I execute a class file from a jar file directly?
From: Richard Wilkman
Date: Wed, 24 Jun 1998 00:00
Date: Wed, 24 Jun 1998 00:00
35 lines
1661 bytes
1661 bytes
Anthony: Stick the jar on your classpath (i.e., classpath=c:\dev\lib\Image.jar) with the rest of the classes you need and you should be able to run it with java.exe. Find the docs on the JRE from Javasoft for the more "proper" way. -Rich Anthony Mak wrote: > > I have a file called ImageViewer.class which is packed along with other > files in a Image.jar file. > Is there any way to tell the interpreter to execute the class file directly? > For the moment, I have to do a jar xvf to uncompress the jar file and then > do java on the class file. > > Anthony Mak > z2155678@student.unsw.edu.au -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Rich Wilkman Senior Quality Assurance Engineer Borland JBuilder Team If you see something that looks like an opinion up there, it's mine and mine alone. Mail sent to me from the newsgroups won't bounce but will be ignored. If I have time, I'll respond, but you have a better chance if you confine your posts to the newsgroups =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID:
<35914635.41D12DFF@inprise.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<6mqv5q$kn114@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,4c46a10d925dddb X-Google-Attributes: gidf74b3,public From: Richard Wilkman <rwilkman@inprise.com> Subject: Re: How can I execute a class file from a jar file directly? Date: 1998/06/24 Message-ID: <35914635.41D12DFF@inprise.com> X-Deja-AN: 365722369 Content-Transfer-Encoding: 7bit References: <6mqv5q$kn114@forums.borland.com> Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language