🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to launch a Java App?

#15821
From: Chris Hill
Date: Wed, 21 Apr 1999 00:00
38 lines
1982 bytes
It depends on the specific application.  It would help if you posted
the contents .bat file (assuming it isn't huge).  I would guess that
the .bat file assumes that you are using the Sun VM (instead of the MS
JVM) and tries to run jre.  I believe the MS version of jre is jview.
You might try replacing jre with jview in the .bat file.  It could
also be a poorly written bat file.

Java 2 (JDK 1.2) added the ability for programmers to specify a class
within the jar to run, but not all applications use it.  Technically,
you don't run a jar. A jar is an archive file that contains the real
information.  

The programmer knows the correct way to run the contents of the jar,
and this is why the bat file was supplied.  I know that is seems very
silly that it is so hard to lauch a Java application, but that is the
way it is.  As I mentioned, Sun tried to improve the situation with
the most recent version of Java.  

If you have the 1.2 version of the JRE on you system, you can double
click on a properly written jar file in Explorer and launch the
application.

On Wed, 21 Apr 1999 09:36:11 +0400, "Vitaly Zayko" <zayko@mail.ru>
wrote:

>Sorry for the question but I'm not Java programmer. 
>I've downloaded a Java application. But when I try to launch it 
>by *BAT* file included in the package I get message "File not found". 
>What's wrong? I use Microsoft VJM installed with IE 5.0. 
>Also how to launch Java app from a *JAR* archive? 
>
>Best regards! 
>Vit.
>
>

Chris Hill
Chris244@aol.com
Technical Details
Message-ID: <371d77a0.3130079466@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7fjns6$3mu2@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,3fa232512d376bd2
X-Google-Attributes: gidf74b3,public
From: Chris244@aol.com (Chris Hill)
Subject: Re: How to launch a Java App?
Date: 1999/04/21
Message-ID: <371d77a0.3130079466@forums.borland.com>
X-Deja-AN: 469038880
References: <7fjns6$3mu2@forums.borland.com>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.language