green box!

1999-02-25 Thread Matt Butler




Hi... I am new to the list.
 
Congrats to the porting team on the green 
box!  I think the chart is a good idea to keep us up
to date on port progress.  Doesn't seem 
like it would take long to update and it's very clear.
 
Late-
Butler
[EMAIL PROTECTED]
 


Re: calling compiler withing a program?

1999-02-25 Thread SHUDO Kazuyuki

> Does anyone know how to call the java compiler from within a java
> program and without using Runtime.exec()?

It is not a question specific to Java and *Linux*.
Here is not just proper place to ask it.


You can make use of the class sun.tools.javac.Main as:

  sun.tools.javac.Main javac = new sun.tools.javac.Main(System.out, "javac");
  javac.compile(new String[]{"Foo.java"});

Sun don't make the sun.* API open to the public.
We can't find usage of sun.* classes in Sun's documents.

With Java 2 SDK, you have to add tools.jar to your
classpath.  And on Win32, you have to specify a property
`env.class.path' to make javac find soruce codes.

  System.setProperty("env.class.path", System.getProperty("java.class.path"));


Kazuyuki SHUDO  Happy Hacking!
  Muraoka Lab., Grad. School of Sci. & Eng., Waseda Univ.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Sun's License for Java 2

1999-02-25 Thread Oliver Fels

> Uli Luckas writes:
>  > Why can IBM publish an 'almost' ready java 2 VM and why can't the linux
>  > porters?
>  > Maybe they can and don't know it?
> 
> I'm sorry, it clearly states in our license agreement (which I don't think I
> can quote) that we have to pass JCK first.   IBM has different licensing terms,
> but this is not unusual -- each organization that licenses JDK works out terms,
> including commercial terms with Sun, and those terms will vary.  I should have
> pushed harder on the pre-release w/o ability; at the time I didn't have access
> to the JCK, and therefore had no knowledge of how far off getting things to
> pass JCK really was.

Besides, one should notice how big the JAVA development team is 
IBM has and how much financial input IBM can give to speed 
things up in contrast to the Linux team.

> On a happier note: we now pass one of the JCK tests, so I've changed the
> runtime-vm box in the status page to green (YAY!).  Thanks to Anand P. from Sun
> who diagnosed and provided the fixes!

Great, I appreciate any progress and it seems I happen to like that 
color on your web site. Go on and colorize it  :-)

Oliver

___
Oliver Fels| e-mail: 
Neurotec Hochtechnologie GmbH  | [EMAIL PROTECTED]
Team Manager JAVA-/IT-Security | Phone:
Friedrichshafen, Germany   | +49 7541 3012 351
---


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



HotSpot (was Re: Linux jdk 1.,2 Jit )

1999-02-25 Thread Oliver Fels

> > Both TYA and the ShuJIT are free JIT's which work with Linux and JDK 1.1 ...
> > I am assuming that porting them to work with JDK 1.2 will not be (too)
> > difficult.
> 
> I know nothing, but I've heard that the interface for JITs has changed a
> lot between 1.1 and 1.2.

In the long term, we should start thinking about porting the HotSpot 
compiler from Sun to the Linux side.
It is still in early beta stage but the sooner we start thinking about 
it, the better it is.
It is only half as good as promised there is no need for porting 1.1 
JITs to 1.2.

BTW I will revise the above statement if someone can write a free 
JIT with similar features and performance, but I doubt it.

Oliver
___
Oliver Fels| e-mail: 
Neurotec Hochtechnologie GmbH  | [EMAIL PROTECTED]
Team Manager JAVA-/IT-Security | Phone:
Friedrichshafen, Germany   | +49 7541 3012 351
---


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: HotSpot (was Re: Linux jdk 1.,2 Jit )

1999-02-25 Thread Moses DeJong

On Thu, 25 Feb 1999, Oliver Fels wrote:

> > > Both TYA and the ShuJIT are free JIT's which work with Linux and JDK 1.1 ...
> > > I am assuming that porting them to work with JDK 1.2 will not be (too)
> > > difficult.
> > 
> > I know nothing, but I've heard that the interface for JITs has changed a
> > lot between 1.1 and 1.2.
> 
> In the long term, we should start thinking about porting the HotSpot 
> compiler from Sun to the Linux side.
> It is still in early beta stage but the sooner we start thinking about 
> it, the better it is.
> It is only half as good as promised there is no need for porting 1.1 
> JITs to 1.2.
> 
> BTW I will revise the above statement if someone can write a free 
> JIT with similar features and performance, but I doubt it.
> 
> Oliver

Sorry but that whole "hot spot" thing looks like vapor ware. Besides
even if Sun is able to get "something" out the door they have already
stated that it will be given to "paying customers only". Instead of
waiting and hoping that Sun will do us a favor why not help out with
the free JIT projects like TYA? I have already found a bug in TYA
and I plan on making a small test case so that I can track down
the problem or send it to the TYA folks. If you help out with the
free Java projects then free Java will get better than
"paying customers only" Java that Sun wants you to buy into.


Mo DeJong
dejong at cs.umn.edu


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Multi-Threading: Preemptive?

1999-02-25 Thread Robert Kosara


On Wed, 24 Feb 1999, Robert McConnell wrote:

> Ok, what happens if the point moves again before the sort is complete?
> Do you complete that one, or terminate and start over? If you terminate
> and start over, what happens if the sort never gets out to some points?

  Interesting question ... but that probably depends on the problem. I
would guess that the sorting doesn´t make much sense if it isn´t fast
enough to complete before the point moves again (at least half the time or
so). Because if it is too slow, the array will be unsorted most of the
time! In that case, you´d need a better algorithm or faster JIT or
machine. I´d guess that Chris doesn´t sort the array just for fun, but
wants to use the values in it for something - so a "sorted" state needs
to be achieved every once in a while. Using a listener, you could also
have a flag indicate whether or not the array is sorted at the moment,
which is set to false as soon as the point moves. You can´t do that when
the sorting algorithm runs all the time.

  But this is already going off topic for this list (albeit an interesting
question, I have to say ...).


Best,

Robert

***
Try to value useful qualities in one who loves you.
***
   _email: [EMAIL PROTECTED]
  /_)_  /  __ __ 7  //_  _ __ __ __   or: [EMAIL PROTECTED]
 / \(_)/_)(- /  /  /\(_)_\(_//  (_/   http://www.ifs.tuwien.ac.at/~rkosara/
*** Student of Computer Science and Medicine in Vienna, Austria, Europe ***
***


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Uh oh...

1999-02-25 Thread Christopher Rowan

Bet?  What bet?  ;-)

Hmmm...

Green threads solved my problems (I hope this is NOT a case of false
security!)...

Is your version of glibc5 thread safe?

Regardless, this is a very serious issue that I hope the developers can
take a look at.

Now I am REALLY scared.  The stuff I work on is as threaded as the shirt
on my back and has to be stable!

Dustin Lang wrote:
> 
> Hi,
> 
> > I am willing to bet you are using native threads linked against glibc
> > 2.0.x.
> >
> > DON'T!
> 
> I'd be willing to bet against you on that one :)
> 
> Green threads only.  I don't even have the native threads pack, and I'm on
> a slackware system with libc5 :)  But I'll take any money you want to bet
> against me :)
> 
> dstn.
> 
> --
>Dustin Lang,  [EMAIL PROTECTED]
> (java developer,linux guy, all-round goofball)
> --


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: HotSpot (was Re: Linux jdk 1.,2 Jit )

1999-02-25 Thread Oliver Fels

> Sorry but that whole "hot spot" thing looks like vapor ware. Besides
> even if Sun is able to get "something" out the door they have already
> stated that it will be given to "paying customers only". Instead of

Easy answer on this: Let´s wait and see.

> waiting and hoping that Sun will do us a favor why not help out with
> the free JIT projects like TYA? I have already found a bug in TYA
As I said, if there is a JIT for Linux which overruns all benchmarks  
and which comes close to what HostSpot is promised to do, I will 
be glad to use it.

> and I plan on making a small test case so that I can track down
> the problem or send it to the TYA folks. If you help out with the
> free Java projects then free Java will get better than
> "paying customers only" Java that Sun wants you to buy into.
Sun does nothing for pure charity reasons, this is absolutely clear.
JAVA Linux has to compete with other platforms to be accepted 
and I am not sure if it can do it by relying on free teams only.
>From my point of view, I am managing projects which heavily rely 
on performance and would love to pay for a Linux HotSpot like 
runtime.

In the meantime, we will give TYA a try as standard JIT for testing 
purposes.

Oliver


___
Oliver Fels| e-mail: 
Neurotec Hochtechnologie GmbH  | [EMAIL PROTECTED]
Team Manager JAVA-/IT-Security | Phone:
Friedrichshafen, Germany   | +49 7541 3012 351
---


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: execute cgi withinjava

1999-02-25 Thread Brett W. McCoy

On Wed, 24 Feb 1999 [EMAIL PROTECTED] wrote:

> Can someone point me to a FAQ or resource about executing a CGI script from
> within Java. I don't want to display the result, which I have done, just
> execute the CGI.

There's a HOWTO by David Silber on writing Java CGI.  It can be found on
most Linux distributions or at sites like metalab.

Brett W. McCoy   
http://www.lan2wan.com/~bmccoy/
---
He that would govern others, first should be the master of himself.

-BEGIN GEEK CODE BLOCK-
Version: 3.12
GAT dpu s:-- a C UL$ P+ L+++ E W++ N+ o K- w--- O@ M@ !V PS+++
PE Y+ PGP- t++ 5- X+ R+@ tv b+++ DI+++ D+ G++ e>++ h+(---) r++ y
--END GEEK CODE BLOCK--


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



RE: Hatred of 1.2 messages

1999-02-25 Thread Steve Delahunty

FYI: I have an application using JDK1.2 on Digital UNIX 4.0D.

-Original Message-
From: Jean-Pierre Dube [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 24, 1999 11:03 AM
To: [EMAIL PROTECTED]
Subject: Re: Hatred of 1.2 messages


Hi,

After following this story about the port. I blame is SUN for not doing
his job. SUN should have taken the Linux platform seriously from the
start and provided the porting team with early betas. They are in a war
with Micro$oft and their only way to beat them right now is not with
Solaris but with Linux. They should support the Linux platform more then
Windoze and even more then Solaris for i386, a platform that nobody is
using. And let's talk about that write-once run anywhere crap. Right now
only Windoze and Solaris run jdk1.2. What happen to the Mac, HP-UX, SGI,
Digital UNIX, IBM AIX etc... I think SUN should wake-up and support what
they advertise.



--
Jean-Pierre Dubi
Infocom enr.
Developpement de logiciel
Software development


Nelson Minar wrote:
>
> Gerald Gutierrez writes:
> >What I propose is simple. FIRST, for every message regarding the
> >status of JDK1.2 on Linux, refer the inquirer to the 1.2 Status web
> >page, and refain from degrading the reply by any of your personal
> >comments. SECOND, the web page should provide a best guess as to when
> >the porting should be finished.
>
> And you're volunteering to do both of these things! Fabulous! Go for
> it. You're probably going to have a hard time doing the SECOND thing,
> but hey, good luck.
>
> Just to give a little perspective on the JDK 1.2 situation, has anyone
> other than Sun released a Java 2 platform yet?
>
>   [EMAIL PROTECTED]
> .   .  . ..   .  . . http://www.media.mit.edu/~nelson/
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact
[EMAIL PROTECTED]

--


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



OMG Java Linux ???

1999-02-25 Thread Augusto Sellhorn


http://www.zdnet.com/pcweek/stories/columns/0,4351,389623,00.html

"Sun and the Object Management Group are working on a new
 hybrid (?) Linux Java Development Kit."

Anybody has any info on this ???

I think the author is wrong. Maybe the OMG and Sun are working on a
Java ORB, but a "hybrid" Linux JDK ?

-- 
Augusto Sellhorn
GE Harris Energy Control Systems


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



JAVA2 source code

1999-02-25 Thread Oliver Fels

Just for your interest and in case noone has mentioned it yet:

Sun is now making the source code to the Java® 2 platform 
available to the developer community. 

Further information is available via 

http://www.javasoft.com/communitysource/
and
http://www.sun.com/software/communitysource/java2/

Oliver


___
Oliver Fels| e-mail: 
Neurotec Hochtechnologie GmbH  | [EMAIL PROTECTED]
Team Manager JAVA-/IT-Security | Phone:
Friedrichshafen, Germany   | +49 7541 3012 351
---


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: OMG Java Linux ???

1999-02-25 Thread Brett W. McCoy

On Thu, 25 Feb 1999, Augusto Sellhorn wrote:

> http://www.zdnet.com/pcweek/stories/columns/0,4351,389623,00.html
> 
> "Sun and the Object Management Group are working on a new
>  hybrid (?) Linux Java Development Kit."
> 
> Anybody has any info on this ???
> 
> I think the author is wrong. Maybe the OMG and Sun are working on a
> Java ORB, but a "hybrid" Linux JDK ?

I searched the OMG site and didn't find any references to this.  I wonder 
where the guy got his info?

Brett W. McCoy   
 http://www.lan2wan.com/~bmccoy
---
Newton's Fourth Law:  Every action has an equal and opposite satisfaction.

- BEGIN GEEK CODE BLOCK -
Version: 3.12
GAT dpu s:-- a C UL$ P+ L+++ E W++ N- o K- w--- O@ M-@ !V PS+++ 
PE Y+ PGP- t++ 5- X+ R+@ tv b+++ DI+++ D+ e>++ h+ r++ y
-- END GEEK CODE BLOCK --


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: OMG Java Linux ???

1999-02-25 Thread Augusto Sellhorn

Uli Luckas wrote:
> Augusto Sellhorn wrote:
> 
> > http://www.zdnet.com/pcweek/stories/columns/0,4351,389623,00.html

> Are you sure, you posted the right URL?
> 
> Uli

Yeah. The statement is in the 4th paragraph.

-- 
Augusto Sellhorn
GE Harris Energy Control Systems


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Best JIT for linux

1999-02-25 Thread mojahed

Hi,

I'm a newbie in java-land. Can anyone please tell me what is the
best JIT for linux.

I used kaffe, it's very good except that it core dumps on a large
applet (with 600 textfields) where this same applet runs
perfectly in blackdown's JVM and even netscape 4.04's one.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: calling compiler withing a program?

1999-02-25 Thread Dustin Lang


> > Does anyone know how to call the java compiler from within a java
> > program and without using Runtime.exec()?
> 
> It is not a question specific to Java and *Linux*.
> Here is not just proper place to ask it.
> 
> You can make use of the class sun.tools.javac.Main as:
> 
>   sun.tools.javac.Main javac = new sun.tools.javac.Main(System.out, "javac");
>   javac.compile(new String[]{"Foo.java"});
> 
> Sun don't make the sun.* API open to the public.

But you can javap them :)

If you plan on distributing this, check to make sure the JRE classes.zip
actually contains the sun.tool.* hierarchy.  I don't think it does.

dstn.

--
   Dustin Lang,  [EMAIL PROTECTED]
(java developer,linux guy, all-round goofball)
--


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Sun's Java Web Server

1999-02-25 Thread Dan Finkelstein

Hi-

I'm using Sun's Java Web Server with Red Hat 5.2 and the Backdown 1.1.7A
jdk.  Works great!

Now, I want to move the web server to port 80 and I need to recompile some
"native" libraries that come with the web server.  (Sun's native libraries
seems to have some Solaris dependencies, as one might expect.)

If anyone has the modifications needed, that would really be appreciated!

Thanks,
Dan


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



calling cgi from java

1999-02-25 Thread rbottoms

Thanks for the reference of the Java HOWTO, but I am not looking the
execute java as a CGI. What I need to do is call a CGI from within Java.
This is an applet and I do not have access to modify the server in any way.
In this case showDocument(0 won't work.

Thanks,
r.b.



Linuxsoft
http://www.linuxsoft.net
408.289.1286




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



ElectricalFire?

1999-02-25 Thread Chad House

Amidst all the talk about Java JITs ... I hadn't noticed anyone on the
list mention anything about the recently released Mozilla
ElectricalFire project:

   http://www.mozilla.org/projects/ef/

To quote blatantly from the website:

   ElectricalFire is a Java Virtual Machine that uses JIT (Just In
   Time) compilation techniques to accelerate Java code execution.
   ElectricalFire was designed from the start to generate
   high-performance machine code and to be portable to many different
   processor architectures.

The FAQ says x86 Linux and Win(95|98|NT) are currently supported. Just
curious if people were aware of it, or if anyone's had a look. It's
released under the Netscape Public Licence.

Cheers,

-- Chad



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: HotSpot (was Re: Linux jdk 1.,2 Jit )

1999-02-25 Thread Michael Emmel

Here is a email I sent to Sun concering there licnese. It seems to me
the Sun Community Licens precludes me distributing  my work if I include Sun
source.
I see no easy answer here.

Mike



I have a question.

I have developed a windowing System written almost entirely in Java.
Doing this I replaced most of the platform dependent parts of Sun's java
implementation
with java code.

In doing so I found several areas in the JDK where changes would help my
implementation.
In particular I have a bootstrap driver which uses the AWT for graphics.

This driver requires a small changes to Suns source or the addition of a
new public class.

 Windowing Systems are not exactly a hot seller. Most platforms today
have one.
So the commercial value is fairly low at best the embedded market may be
interested.

The one market where it may find a substantial following is as a
alternative windowing system for linux
and other experimental OS's but this requires me to be able to freely
distribute it.

My concern s that your current license is such that it precludes the
distribution of a technology
such as my  java windowing system to it's target market.

Since I  distribute the system for free in hopes of gaining "mind share"
I'm not in a position to pay royalties.
Also since this is true Java based technology it can not hurt Java
considering the only gui programs which it
runs must be written in java ( for the most part  It can interface with
X11. )

If this project or one like it becomes successful it will only help the
Java platform.

But I see no way to release it under your current license.

Hotspot ???

Extending my all java windowing system down to the graphics layer
requires a high speed Java implementation.
I have already written and tested the performance of Java video drivers
and they are usable but about 10-20 times slower than there
C counterparts.  JIT'S make the drivers usable but certainly not the
fastest or even close to native drivers.
Most of the problems lie in Slow  memory copy calls and lack of a memset
function in java.
Using native code via the JNI does not help much because the overhead of
a JNI call precludes its use.
Most code of the nature  in C contains a lot of macros for inlining. In
fact a lot is still written in assembler.

Hotspot from what I read has the exactly the  characteristics to allow
one to write portable graphics code in java and
still get great performance. I' extremely interested in it. another
project is extending hot spot to allow it to replace java byte code
not only with native machine code but also graphics hardware based
acceleration. This extends hotspot to not only compile java code for
your particular processor but also optimize the graphics part for your
particular graphics subsystem.

I plan on doing this by adding the idea of a signature compiler to
hotspot. This hotspot is aware that the method

graphics.drawLine() is required to meet a certain spec. Thus it can
replace the drawLine method with a hardware accelerated version.
Since both have the same "signature". This is quit different from
translation of the byte code to machine code.
The signature compiler thus accepts on faith the the native code snippet
is a correct replacement for the java code.
Since it contains calls to a foreign processor  the graphics card it can
never compile such code.
Thus the code normally found in lowlevel drivers and graphics libraries
is free to be inlined in the java code.
Also since a basice java implemenation for a dumb linear frame buffer is
provided. The native code need only override
mthods wich can be effectivly acclerated by the particular graphics
hardware. This is similar to the X11 sample server
but removes the eleborate interfaces required to seperate
machine/platform dependent code behind a portability interface.
I beleive that this is a fairly basic and intersing reasearch topic. A
solution in the area of graphics should help the
Java community as a whole in may areas. Currently the dumb frame buffer
design can be ported to a new platform in
about a week. This immediatly gives a fully funtional windowing system.
Assuming fiarly standard keyboard/mose input devices.
I currently try to maintian thre drivers. One ont top of the AWT. On on
X11 and a hardware port to the CirrusLogic 5430.
I plan to look and the new Linux frame buffer devics and a project
called GGI.  None of these solutions allows the
removal of the rigid hardware/graphics lib/java interfaces like a
extended hotspot would.


I do not see that your current license allows me to achieve these goals
unless you have have made exceptions for
free software that enhances the java community goals.

Also I'm very worried that Hotspot will not ever be available  for
research use.  I think that may work may be useful
to the entire java community but I feel that your current license  in
this case restricts the advancement of the java platform
for the benefit of all and I fear that  Sun will not open up the hotspot
technolo

Problem!

1999-02-25 Thread boyle




When I try to compile a java program that I have 
written, I get the error:
unable to initialize threads: cannot find class 
java/lang/Thread
Could you please help me?
 
Boyle