Received: from SOUTH-STATION-ANNEX.MIT.EDU by po7.MIT.EDU (5.61/4.7) id AA13478; Tue, 13 Feb 96 19:28:14 EST
Received: from [206.112.192.127] by MIT.EDU with SMTP
	id AA07179; Tue, 13 Feb 96 19:27:40 EST
Received: by liquor.cabi.net (8.7.3/8.7.3) id OAA11625; Tue, 13 Feb 1996 14:37:45 -0500
Resent-Date: Tue, 13 Feb 1996 14:37:45 -0500
Date: Tue, 13 Feb 1996 11:35:04 -0800
From: geh@mda.ca (Graeme Hiebert)
Message-Id: <9602131935.AA07503@igneous.mda.ca>
To: java-linux@java.blackdown.org
Subject: Re: Performance issues
Cc: mramsey@as.arizona.edu
X-Sun-Charset: US-ASCII
Resent-Message-Id: <"_4ogb.0.Zq2.4XE8n"@liquor>
Resent-From: java-linux@java.blackdown.org
X-Mailing-List: <java-linux@java.blackdown.org> archive/latest/1128
X-Loop: java-linux@java.blackdown.org
Precedence: list
Resent-Sender: java-linux-request@java.blackdown.org

Netscape has an undocumented way to act as a java interpreter.  The
syntax is

   netscape -java <normal "java" command-line arguments>

To compile using netscape, then, you would

   1) Set CLASSPATH environment variable to something like

         /path/to/netscape/moz2_0.zip:/path/to/jdk/lib/classes.zip:.

   2) Execute

         netscape -java -ms8m sun.tools.javac.Main MyClass.java

To make this simple, you could probably download JDK for linux,
and rename its jdk/bin/i586/java to java.bak, and replace it with
a script:

   #/bin/bash

   CLASSPATH=/path/to/netscape/moz2_0.zip:${CLASSPATH}
   /path/to/netscape/netscape -java "$@"

I have not tested this, but I believe it would work.  This would
also allow you to run appletviewer, etc., with Netscape as an
interpreter instead of JDK's java.

   -g
---
> Sender: mramsey@as.arizona.edu
> Date: Tue, 13 Feb 1996 12:19:51 -0700
> From: Marshall Ramsey <mramsey@as.arizona.edu>
> X-Mailer: Mozilla 2.0 (X11; I; SunOS 5.4 sun4m)
> Mime-Version: 1.0
> To: java-linux@java.blackdown.org
> Subject: Re: Performance issues
> Content-Transfer-Encoding: 7bit
> Resent-Message-Id: <"xcmT_1.0.wc2.nHE8n"@liquor>
> Resent-From: java-linux@java.blackdown.org
> X-Mailing-List: <java-linux@java.blackdown.org> archive/latest/1127
> X-Loop: java-linux@java.blackdown.org
> Resent-Sender: java-linux-request@java.blackdown.org
> 
> Neil Archibald wrote:
> > 
> > I'm sad to bring this up, but I've quit using the Linux java kit, (kind
> > of) on the basis that using the netscape hack way of compiling java
> > programs against the linux's try1 classes.zip IS ACTUALLY faster. Even
> > though I barely have enough RAM to run netscape, I get a average compile
> > time for 11 seconds under netscape compared to 28 seconds under javac.
> > So, now I have javac aliased to run netscape with the hack.
> 
> Can you explain how to compile Java using Netscape. I've never heard
> of this.
>  
> --Marshall--
> 
> -----------------------------------------------------------------------
> Marshall Ramsey               "Everywhere is walking distance
> mramsey@as.arizona.edu         if you have the time."
> NICMOS Project                       -Steven Wright
> University of Arizona		
> -----------------------------------------------------------------------
> 
> 

