Re: JAVA PROJECT! CODER WANTED!!

1998-09-03 Thread Nelson Minar

>> What, are you kidding?
>HE'S COMPLETELY NUTS

Maybe a refugee from the Freedows project :-)



Re: JAVA PROJECT! CODER WANTED!!

1998-09-03 Thread Michael Rohleder

Nelson Minar writes:
 > >> What, are you kidding?
 > >HE'S COMPLETELY NUTS
 > 
 > Maybe a refugee from the Freedows project :-)

Can please stop this stupid thread...

-- 
+#if defined(__alpha__) && defined(CONFIG_PCI)
+   /*
+* The meaning of life, the universe, and everything. Plus
+* this makes the year come out right.
+*/
+   year -= 42;
+#endif
(From the patch for 1.3.2: (kernel/time.c), submitted by Marcus Meissner)



Re: JAVA PROJECT! CODER WANTED!!

1998-09-03 Thread Dimitris Vyzovitis


Well, and where is this kernel going to run?
You still need a virtual machine underneath.
I think we should get serious...
 
-- 

 Dimitrios Vyzovitis
  Information Processing Laboratory
 Aristotle University of Thessaloniki
   [EMAIL PROTECTED] or [EMAIL PROTECTED]
    http://egnatia.ee.auth.gr/~dviz
 

begin:  vcard
fn: Dimitrios Vyzovitis
n:  Vyzovitis;Dimitrios
org:AUTH
adr:142 V. Olgas Avenue;;;Thessaloniki;;54645;Greece
email;internet: [EMAIL PROTECTED]
tel;work:   ++30-31-996359
tel;home:   ++30-31-817780
note:   Orientation in space and time is the framework of cognition.
x-mozilla-cpt:  ;0
x-mozilla-html: TRUE
version:2.1
end:vcard




Compile Java to Native?

1998-09-03 Thread Eugene Teh


Hi, 

I keep hearing people telling me that you can do this
But I have never found info about how to do this? 
Is there such a utility - AFAIK Sun does not provide one?
Also what's the performance issue? How can it be tuned?

Eugene Teh
Berkeley, CA 



Re: Exception handling broken by jni?

1998-09-03 Thread Robert Lynch

Dan Kegel wrote:
> I'm having a wee bit of trouble with Blackdown JDK for Linux
> and exception handling inside code called from JNI.
> It seems that try/catch blocks don't work if they are
> contained in a method called directly or indirectly by JNI.
[snip]

Hiya-

I'm not exactly sure we're on the same wavelength, however...

I built an try/catch JNI example some time ago, which worked for me. 
You might want to try it with your Blackdown JDK.  You can get a
complete set of source, C code, etc. at:

ftp://shell3.ba.best.com/pub/rmlynch/Java_Stuff/try_catch.tar.gz

Hope it helps.

Bob L. 
-- 
Robert Lynch-Berkeley CA [EMAIL PROTECTED]
http://www.best.com/~rmlynch/



Re: Compile Java to Native?

1998-09-03 Thread Charles Forsythe

Eugene Teh wrote:
> I keep hearing people telling me that you can do this
> But I have never found info about how to do this?

Checkout www.twr.com for a product called "TowerJ".  It's currently my
favorite product for doing this.  Also, the Open Group
(www.opengroup.org) has a product called "TurboJ".  TowerJ is 100%
native, which TurboJ can mix native/interpreted.   TurboJ is a little
slower and integrates with a platform's native JDK.

Both of these products run on Linux.

Symantec's product will compile for Windows.  Yippee.

-- Charles



Modal dialog bug?

1998-09-03 Thread Brad Pepers

I have some fairly simple code derived from code generated
by JBuilder 2.  I've stripped it down to make it easier to
see the problem.

The problem is that JBuilder generated code for an About type
dialog and when I run the code on Linux the dialog window
just flashes on the screen and then disappears.  In hunting
for the problem I found I could make the dialog window work
by just commenting out the setModal(true) call.  I think the
code should work as it is and did try a slightly older version
on my Windows 95 JDK 1.1.6 and it worked there so it seems to
be Linux specific.

Here are the source code files:

LinuxRetail.java:

import java.awt.*;
import java.util.*;

public class LinuxRetail {

public LinuxRetail() {
LinuxRetailFrame frame = new LinuxRetailFrame();
frame.validate();

Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
Dimension frameSize = frame.getSize();
if (frameSize.height > screenSize.height)
frameSize.height = screenSize.height;
if (frameSize.width > screenSize.width)
frameSize.width = screenSize.width;
frame.setLocation((screenSize.width - frameSize.width) / 2,
(screenSize.height - frameSize.height) / 2);
frame.setVisible(true);
}

public static void main(String[] args) {
new LinuxRetail();
}
}


LinuxRetailFrame.java:

import java.util.*;
import java.awt.*;
import java.awt.event.*;

public class LinuxRetailFrame extends Frame {
BorderLayout borderLayout1 = new BorderLayout();
MenuBar menuBar1 = new MenuBar();
Menu menuFile = new Menu();
MenuItem menuFileExit = new MenuItem();
Menu menuHelp = new Menu();
MenuItem menuHelpAbout = new MenuItem();

public LinuxRetailFrame() {
try  {
jbInit();
}
catch (Exception e) {
e.printStackTrace();
}
}

private void jbInit() throws Exception  {
this.setLayout(borderLayout1);
this.setSize(new Dimension(400, 300));
this.setTitle("LinuxRetail");

menuFile.setLabel("File");
menuFileExit.setLabel("Exit");
menuFileExit.addActionListener(new ActionListener()  {
public void actionPerformed(ActionEvent e) {
fileExit_actionPerformed(e);
}
});

menuHelp.setLabel("Help");
menuHelpAbout.setLabel("About");
menuHelpAbout.addActionListener(new ActionListener()  {
public void actionPerformed(ActionEvent e) {
helpAbout_actionPerformed(e);
}
});

menuFile.add(menuFileExit);
menuHelp.add(menuHelpAbout);
menuBar1.add(menuFile);
menuBar1.add(menuHelp);
this.setMenuBar(menuBar1);
}

public void fileExit_actionPerformed(ActionEvent e) {
System.exit(0);
}

public void helpAbout_actionPerformed(ActionEvent e) {
LinuxRetailFrame_AboutBox dlg = new LinuxRetailFrame_AboutBox(this);
dlg.setModal(true);
dlg.show();
}
}

And finally LinuxRetailFrame_AboutBox.java:

import java.util.*;
import java.awt.*;
import java.awt.event.*;
import com.sun.java.swing.*;

public class LinuxRetailFrame_AboutBox extends Dialog implements
ActionListener{
Panel panel1 = new Panel();
JButton button1 = new JButton();
BorderLayout borderLayout1 = new BorderLayout();

public LinuxRetailFrame_AboutBox(Frame parent) {
super(parent);
enableEvents(AWTEvent.WINDOW_EVENT_MASK);
try  {
jbInit();
}
catch (Exception e) {
e.printStackTrace();
}
pack();
}

private void jbInit() throws Exception  {
this.setTitle("About");
setResizable(false);
panel1.setLayout(borderLayout1);
button1.setText("OK");
button1.addActionListener(this);
panel1.add(button1, BorderLayout.CENTER);
this.add(panel1, null);
}

protected void processWindowEvent(WindowEvent e) {
if (e.getID() == WindowEvent.WINDOW_CLOSING) {
dispose();
}
super.processWindowEvent(e);
}

public void actionPerformed(ActionEvent e) {
if (e.getSource() == button1) {
dispose();
}
}
}

Hopefully someone can help me track this bug down!

-- 
Brad Pepers
Linux Canada Inc.Home of Linux products in Canada!
http://www.linuxcanada.com   Proud supporter of Cyclades, Red
[EMAIL PROTECTED] Hat, and Caldera.



RE: Java-Linux

1998-09-03 Thread Kegel, Dan

http://www.blackdown.org/java-linux.html has the ports.
Be sure to read http://www.blackdown.org/java-linux/docs/libraries.html
and http://www.blackdown.org/java-linux/docs/faq/FAQ-java-linux.html
first!
- Dan

> -Original Message-
> From: Günter Zell [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, September 02, 1998 11:59 PM
> To:   [EMAIL PROTECTED]
> Subject:  Java-Linux
> 
> Steve Byrne ,
> 
> I got your e-mail address from a Linux-Usergroup.
> Iám looking for a JDK-Port for Linux.
> Can you give me a hint
> from where I can get one ?
> 
> Best Regards,
> Günter Zell, FvS School, Germany



Dialog problem

1998-09-03 Thread Brad Pepers

Just an update on the problem with Dialogs:

1. I copied the .class files over to Windows 95 and ran them
   using the 1.1.6 JDK from Sun and the About dialog box worked
   there so its definitely a Linux Java bug.

2. I tried the latest 1.1.6v3a and I still get the error

-- 
Brad Pepers
Linux Canada Inc.Home of Linux products in Canada!
http://www.linuxcanada.com   Proud supporter of Cyclades, Red
[EMAIL PROTECTED] Hat, and Caldera.



Java Servlets -N- Linux?

1998-09-03 Thread Steve Curry

Hello,

Can Java Servlets be developed on a Linux box? We are setting up a 
Linux
web server and want to use Java Servlets if possible. Is there a Linux
version of the Java Servlet Development Kit or do I need something like
JRun from livesoftware ( http://www.livesoftware.com )? Any help is
appreciated


Steve Curry



Re: JAVA PROJECT! CODER WANTED!!

1998-09-03 Thread Mats Petersson

On Wed, 2 Sep 1998, dan wrote:

> What, are you kidding?
> 
> 
> 
> 
> 
> keith schmauss wrote:
> 
> >
> >
> >
> > some of the project[s] [for fun!] are ==>>
> > 1] creating a very simple windowing manager coded in
> >   JAVA!  [mult-threading windows manager! ]
> 
> 1)  What are you going to use for your gui on this window manager?  AWT
> is not thread safe, so you ultimately have to have all your events
> handled by one thread.  Yes, you can distribute the work out to multiple
> threads, but the benefits of this are dubious.
> 
> >
> >
> >
> > 2] porting the linux kernel from gnu c++ to java1.??
> > [just think! write once Linux kernel run ANYWHERE!!]
> >  [cool idea! comments please! :) ]
> 
> 2)  HAHAHAHA!  That's really funny!
> 
> >
> >
> >
> > 3] java and mmx + AMD k6 3d cpu
> >for games!
> > a gaming toolkit for linux writing in java or
> >game writing in linux java using mmx/k6 3d cpu mxx.
> >
> 
> 3)  I've done a fair bit of Java3D coding (the company I work for makes
> graphics libraries in Java & c++).  Unless you've got good hardware
> acceleration (i.e. not simply MMX or K6 3D), everything gets done in
> software.  Speed sucks.  Now, if you've got good hardware acceleration,
> then performance is quite good.  But it seems like you want to use java
> to reach more machines.  Listen--just code it natively, and use one of
> the various gaming libraries out there.  You'll do far better doing it
> this way.
> 
> >
> >
> >
> > 4] a wsftp style gui ftp programme written in java for linux
> >so that someone can ftp in X gui.
> >
> 
> 4)  I think you can probably find one of these on one of the various
> java books out there.  It seems like I've seen one or two, now that I
> think about it.  With the new drag-and-drop stuff, these can be quite
> nice.  However, this one is "been there, done that, what's next?"
> 
> >
> >
> >
> > 5] a 3D login in XDM mgr in java .
> >
> 
> 5)  Why 3D?  What do you want done in 3D?  Why don't you just replace
> the gif in XDM with some cool 3D gif that you whip up in gimp?  Quite
> frankly, I don't see the value added by a 3D login prompt, either in
> beauty or in functionality.
> 
> >
> >
> >
> > if any one would like to help me with these ideas/project
> > please kindly email.
> >
> > If you have any cool java ideas/project share them with me/
> > and post them here!
> >
> > Thanks !
> > Keith Schmauss
> > Pob 704
> > Laramie,Wyoming 82070
> >
> > [EMAIL PROTECTED]
> >
> > MAXIMUM POWER!SPEED!3Dgraphics! = MAXIMUM-LINUX!! :) !!
> >
> 
> Java is not nearly so slow as many of its pundits would have you believe
> (at least, not with TowerJ or a good JIT).  However, it quite simply is
> *not* MAXIMUM POWER!SPEED!  And quit yelling, for God's sake.
> 
> At least you got the 3D graphics thing right.  While Java3D is not near
> being complete yet, it's got a pretty darn good design.
> 
> Oh, and get off the Microsoft gravy train.  Stop using hotmail.
> Remember, this is a Linux newsgroup, and we Linux users don't much like
> Microsoft.  Try iname if you want a decent web-based e-mail (and when
> you get a real e-mail address, they'll forward the mail to your new
> place for free, for life, whilst also filtering out spam).
> 
> 
> 

HE'S COMPLETELY NUTS



Re: JAVA PROJECT! CODER WANTED!!

1998-09-03 Thread Mats Petersson

On Thu, 3 Sep 1998, Nelson Minar wrote:

> >> What, are you kidding?
> >HE'S COMPLETELY NUTS
> 
> Maybe a refugee from the Freedows project :-)
> 
> 
> 

;)



Re: JAVA PROJECT! CODER WANTED!!

1998-09-03 Thread Kenny Freeman

well, at least it is entertaining - linux kernel in java
LOL

On Thu, 3 Sep 1998, Mats Petersson wrote:

> On Thu, 3 Sep 1998, Nelson Minar wrote:
> 
> > >> What, are you kidding?
> > >HE'S COMPLETELY NUTS
> > 
> > Maybe a refugee from the Freedows project :-)
> > 
> > 
> > 
> 
> ;)
> 



Re: JAVA PROJECT! CODER WANTED!!

1998-09-03 Thread [EMAIL PROTECTED]

Maybe Linus was also completely nuts
If yo do not want to participate, why don4t you just skip these
postings???

On Thu, 3 Sep 1998, Nelson Minar wrote:


> >> What, are you kidding?
> >HE'S COMPLETELY NUTS
> 
> Maybe a refugee from the Freedows project :-)
> 
> 

===
 _ _  _   __ __   __ __
/ /   (_)/ \ / // /  / /\ \  / /|   Jochen Reitzig
   / /   / // / \   / // /  / /  \ \/ / |   
  / /   / // /\  \ / // /  / /\  /  |   Fax: 08151-97
 / /___/ // /  \  \ // /__/ // /\ \ |   Tel. 08151-29199
/_/_//_/\__//__//_/  \_\|   D2: 0172-8783857
|   email: [EMAIL PROTECTED]
In a world without fences, who needs Gates? |   www.eikon.tum.de/~elvis



Re: JAVA PROJECT! CODER WANTED!!

1998-09-03 Thread Kenny Freeman

Oh give me a break, did you read the original posting at all?
I think it warants a few (harmless) jokes. Sometimes people are far too
serious, lighten up. I mean come on, Linux kernel in java?

On Thu, 3 Sep 1998, [EMAIL PROTECTED] wrote:

> Maybe Linus was also completely nuts
> If yo do not want to participate, why don4t you just skip these
> postings???
> 
> On Thu, 3 Sep 1998, Nelson Minar wrote:
> 
> 
> > >> What, are you kidding?
> > >HE'S COMPLETELY NUTS
> > 
> > Maybe a refugee from the Freedows project :-)
> > 
> > 
> 
> ===
>  _ _  _   __ __   __ __
> / /   (_)/ \ / // /  / /\ \  / /| Jochen Reitzig
>/ /   / // / \   / // /  / /  \ \/ / | 
>   / /   / // /\  \ / // /  / /\  /|   Fax: 08151-97
>  / /___/ // /  \  \ // /__/ // /\ \   |   Tel. 08151-29199
> /_/_//_/\__//__//_/  \_\| D2: 0172-8783857
>   |   email: [EMAIL PROTECTED]
> In a world without fences, who needs Gates? | www.eikon.tum.de/~elvis
> 



Re: about exec

1998-09-03 Thread Massimo Conti

Hi |
here is how I made this :

import java.lang.Runtime;

public void startService(String programName) {

try {
 path = "/your/path/";
 (Runtime.getRuntime()).exec(path+programName);
}
 catch (Exception e) {
System.out.println(e);
}
}


Bye bye |



begin:  vcard
fn: Massimo Conti
n:  Conti;Massimo
org:Systeam S.p.A.
adr:Via Eroi di Cefalonia, 39;;;Spinaceto;;00128;Italy
email;internet: [EMAIL PROTECTED]
title:  Ing.
tel;work:   +39-6-5077031
tel;fax:+39-6-50770365
x-mozilla-cpt:  ;0
x-mozilla-html: FALSE
version:2.1
end:vcard




Re: Compile Java to Native?

1998-09-03 Thread dan

Yes, the tool is called TowerJ, from Tower Technology
(http://www.twr.com/).  TowerJ-compiled Java is faster than *any* JIT on
*any* platform (as you might expect).  Currently, this group has only
ported TowerJ to HP's *nix and Linux (I just checked their homepage, and
found out that they have ported it to Digital Unix for Alpha, as well!).

Cygnus (I think) is also creating a front end to egcs (where new code is
alpha/beta tested for gcc).  This project is called gc1, I think.  It is
mentioned in the latest issue of Dr. Dobb's Journal.  The benefit is
that this project will capitalize on gcc's well-tested and robust
optimization stages, as well as the diverse number of platforms under
which gcc runs.  My understanding of this project is that it is not yet
finished, and may not be finished for a while.  However, my sources for
this understanding are dubious at best.

Eugene Teh wrote:

> Hi,
>
> I keep hearing people telling me that you can do this
> But I have never found info about how to do this?
> Is there such a utility - AFAIK Sun does not provide one?
> Also what's the performance issue? How can it be tuned?
>
> Eugene Teh
> Berkeley, CA
>



Re: Compile Java to Native?

1998-09-03 Thread dan

Correction to my previous post -- the Cygnus Java/gcc project is called
jcl.  You can read about it at:
http://www.cygnus.com/news/whitepapers/evaluate.html

It appears that it may be closer to completion than I was originally led
to believe.

-dan
[EMAIL PROTECTED]
[EMAIL PROTECTED]

Eugene Teh wrote:

> Hi,
>
> I keep hearing people telling me that you can do this
> But I have never found info about how to do this?
> Is there such a utility - AFAIK Sun does not provide one?
> Also what's the performance issue? How can it be tuned?
>
> Eugene Teh
> Berkeley, CA
>



Re: Compile Java to Native?

1998-09-03 Thread Vincent Trussart

Eugene Teh wrote:

> Hi,
>
> I keep hearing people telling me that you can do this
> But I have never found info about how to do this?
> Is there such a utility - AFAIK Sun does not provide one?
> Also what's the performance issue? How can it be tuned?
>
> Eugene Teh
> Berkeley, CA
>

There are commercial products that compiles bytecode to native.
Look at ww.towerj.com  (I don't think they support awt however...)


begin:vcard
n:Trussart;Vincent
x-mozilla-html:TRUE
org:Université de Montréal
adr:
version:2.1
email;internet:[EMAIL PROTECTED]
note:ICQ# 4357910
x-mozilla-cpt:;-28736
fn:Vincent Trussart
end:vcard




Re: Compile Java to Native?

1998-09-03 Thread Paul Michael Reilly

dan writes:
 > Yes, the tool is called TowerJ, from Tower Technology
 > (http://www.twr.com/).  TowerJ-compiled Java is faster than *any* JIT on
 > *any* platform (as you might expect).  Currently, this group has only
 > ported TowerJ to HP's *nix and Linux (I just checked their homepage, and
 > found out that they have ported it to Digital Unix for Alpha, as well!).

TowerJ does not support AWT thus severely reducing it's applicability.

-pmr