[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
RE: Problem with java on linux.
- Subject: RE: Problem with java on linux.
- From: "Chakrabarti, Suvendra (CTS)" <CSUVENDRA@xxxxxxxxxxxxxxxx>
- Date: Fri, 23 Jul 1999 11:45:32 +0530
Hi Akshat,
I use javac on my m/c with 8Mb ram + 16 cache, and it works perfectly.
guavac is fast, but it looks like it is a parser which
uses gcc (please correct me if I am wrong) to generate byte codes. I
don't know about its compatibility on other envs., but
have you compared the speed with Norton Symantec Cafe on Windows, it is
the best JIT compiler around. Talking of JIT
compilers, kaffe on Linux is also a JIT compiler. This can also be used
to complile java codes (though I fail to use this as
it gives a java.runtime error like something as unknown m/c).
Coming to the problem which Aranya is facing, I am totally confused. I
have seen errors as 'Out of Environment Space', but
this error is new. But I can suggest something.
1. The files which 'locate' locates may be scripts which sets the
CLASSPATH etc. and calls the original program. If they
are scripts, find the binary which it refers to. On my m/c it is
/usr/lib/java/bin/i486/javac. (Actually a link to ../i386/javac)
2. Write a script which sets CLASSPATH (be sure to provide . also in it
;-)), LD_LIBRARY_PATH as required by your
program. Invoke binary javac thus, /usr/lib/java/bin/i486/javac $*.
(Change this to match yours)
3. Use this shell to compile the program.
Suvendra
> -----Original Message-----
> From: Aranya [SMTP:akshata@xxxxxxxxxxxxxxxxxxx]
> Sent: Thursday, July 22, 1999 11:09 PM
> To: linux-india@xxxxxxxxx
> Subject: Re: Problem with java on linux.
>
> >Hi,
> >
> >I'm new to Java. I was reading a book, and I tried an example in my
> >system. (Dual boot - Linux(RH5, PCQ) and Win95). But, I'm not able
> >to compile or run the program. This is what I have done.
> >
> ># javac HelloWorldApp.java
>
> ^^^
> I don't like the look of that! You shouldn't be working as root when you
> are
> doing programming.
>
> >bash: javac: command not found
> >
> >#locate javac
> >/usr/local/jdk1.1.5/bin/javac
> >/usr/local/jdk1.1.5/bin/javac_g
> >/usr/local/jdk1.1.5/bin/Linux/green_threads/javac
> >/usr/local/jdk1.1.5/bin/Linux/green_threads/javac_g
> >
> ># /usr/local/jdk1.1.5/bin/javac HelloWorldApp.java
> >**Out of memory, exiting**
> >
> >What is wrong here? I have 16MB RAM, and 20MB swap partition.
> >
>
> Why do you use javac? There's a much better compiler called guavac (a GNU
> Java, I believe) which runs a zillion times faster than Sun's javac -
> probably as fast as gcc. Not just Linux, I've tried java on Windows,
> Digital
> Unix and even Solaris -- none of them come even close to be being as fast
> as
> guava. Although I have 32 megs of RAM, my guess is that
> guavac should be able to manage with 16 megs too. the interpreter (i.e.
> java) is called kaffe. I couldn't run the interpreter on RH5.2, it just
> crashed. However, it works great on RH6.0.
>
>
> Akshat
>
>
>
> --------------------------------------------------------------------
> For more information on Linux in India visit http://www.linux-india.org/
> The Linux India mailing list does not accept postings in HTML format.
- --------------------------------------------------------------------
For more information on Linux in India visit http://www.linux-india.org/
The Linux India mailing list does not accept postings in HTML format.
------------------------------