[Q] JAVA ERROR OR BUG

1999-01-25 Thread Ninja

When I run my program I got this messge;

OUCH: nested memory code, to 1 levels.
Killed

But the problem is that I cannot reproduce this at will.
That is, this occurs in different case.

Thanks in advance. And Please reply me via e-mail.



Java source Obfuscation Tools[specially Crema]

1999-01-25 Thread ByoungLae Kim

Hello.
Is there anybody has crema[obfuscation tool] written by Hanpeter van Vliet?
or Could you tell me other obfuscation tool?(freeware welcomed. :).

==
ByoungLae Kim 
School of Electrical Engineering, Seoul National University



jdk2.0 (jdk.12) options ?

1999-01-25 Thread Matt Zagni

Hi,

Has anyone downloaded the solaris intel version of jdk2.0
Solaris_JDK_1_2_01_dev06_i386.tar.Z from javasoft.com (solaris developers
collection site) yet and attempted to run it under Linux using glib2.0.7pre6 ?

Although the libs look as though they may need connecting together
it may work ?

I am running glibc2.0.7 due to staroffice5.0 and Oracle8.0.5 but
my knowedge of libs is not that great linking them etc it may fail
but then again it just might work has anyone tried this version of
jdk2.0 yet ?

Any ideas ?

Many thanks

Matt

ie..
/usr/local/jdk1.2/SUNWjvdev/reloc/usr/java1.2/bin/i386/native_theads/

ldd appletviewer
libthread.so.1 => not found
libX11.so.4 => not found
libjvm.so => not found
libjava.so => not found
libdl.so.1 => /lib/libdl.so.1 (0x40004000)
libc.so.1 => /lib/libc.so.1 (0x40007000)
libx.so.5 => /lib/libc.so.5 (0x40036000)

ldd javac
libthread.so.1 => not found
libjvm.so => not found
libjava.so => not found
libdl.so.1 => /lib/libdl.so.1 (0x40005000)
libc.so.1 => /lib/libc.so.1 (0x40008000)
libx.so.5 => /lib/libc.so.5 (0x40037000)

ldd java
libthread.so.1 => not found
libjvm.so => not found
libjava.so => not found
libdl.so.1 => /lib/libdl.so.1 (0x40004000)
libc.so.1 => /lib/libc.so.1 (0x40008000)
libX11.so.4 => not found
libx.so.5 => /lib/libc.so.5 (0x40037000)





Re: TCP & SIGIO & SO_NOSPACE(sock_wmalloc() failure)

1999-01-25 Thread Alan Cox

> Is this something simple to fix ( a missing reference to callback3() ), or
> is this a rewrite?

I've no idea

> This is linux 2.0.33 on alpha ( the last 2.0.xx kern that had an acceptable
> adaptec controller code! )

Thats between you, adaptec and the adaptec code people. You can get adaptec
updates. I'm not interested in 2.0.33 network problems unless they are also
duplicatable on .35/36.

Alan




downlaod Swing

1999-01-25 Thread Ozer Irfan

Hello.

Where can I download swing for Linux?
I use jdk 1.1.7

Thanks






RE: downlaod Swing

1999-01-25 Thread Jaco Greeff

> Where can I download swing for Linux?

Swing is _pure_ Java so it works on any compliant JVM. Just download it from
JavaSoft at http://java.sun.com.

greetings,

-- jaco greeff

IS e-Commerce Integration
Tel: +27 (0)11 283 5684
Cell: +27 (0)83 301 5005

"Don't relax! It's only your tension that's holding you together."



Re: downlaod Swing

1999-01-25 Thread Larry Arnoldy



On Mon, 25 Jan 1999, Ozer Irfan wrote:

> Hello.
> 
> Where can I download swing for Linux?
> I use jdk 1.1.7
> 
> Thanks
> 
>
Swing can be downloaded from 
http://www.javasoft.com/products/jfc/index.html

It is written in Java and is okay for all 1.1.x platforms.

... larry arnoldy 
 



timezone

1999-01-25 Thread Jeroen Siffels

Dear Reader,

It is not clear to me who is reading this message. But I hope you can
help me with my question or give me a reference where I can find help.

I'm running on a Pentium based system Linux 2.0.36 with JDK 1.1.6. My
problem is that when I use the data command om the commandline
(/bin/date) the date I see is corrent, but when I use in Java 'Data d =
new Date()'. The reported time is one hour late. In Linux the CET is
reported (I live in the Netherlands) as wanted but Java reports the UTC.
How can I make my Java software report the localtime without making my
code timezone depended (addind one hour is not a wanted solution) ?

Thanx in advance,

Jeroen



segmentation violation - any developers listening?

1999-01-25 Thread John Summerfield

I've just had a couple of crashes occasioned by power failures. Now java's
not working:
[summer@possum data]$ javac -d ~/Classes/ DBTrades.java
SIGSEGV   11*  segmentation violation
stackbase=(nil), stackpointer=0xbfffe9b0

Full thread dump:
"Clock" (TID:0x404aa088, sys_thread_t:0x4134be0c, state:CW) prio=12
NULL (TID:0x404aa0b0, sys_thread_t:0x82236c0, state:R) 
prio=5/usr/lib/jdk117_v1a/bin/i686/green_threads/javac: line 19:  1957 Killed  
`dirname $0`/${progname} $RUNTIME_ARGS -ms8m $RUNTIME_ARGS 
sun.tools.javac.Main $APP_ARGS
[summer@possum data]$ 
[summer@possum data]$ java -fullversion
java full version "Linux_JDK_1.1.7_v1a_green_threads"
[summer@possum data]$ 


On the offchance java itself got broken I removed its directory and
reuntarred it.

What else should I try reinstalling?
[summer@possum data]$ uname -a
Linux possum.os2.ami.com.au 2.2.0-pre7 #2 Thu Jan 21 16:28:56 WST 1999 i686 unknown

Last time I installed this box, it was RH 5.0.

-- 
Cheers
John Summerfield
http://os2.ami.com.au/os2/ for OS/2 support.
Configuration, networking, combined IBM ftpsites index.



segmentation violation - any developers listening - fixed

1999-01-25 Thread John Summerfield

ypbind and its friends had been misbehaving: fo some reason I can;'t fathom
they weren't being started at boot time on server or workstation. Rebooted
both machines, and java's working again.

So are ypbind and its friends.


Sheesh, and I heard winders was bad.

Back to your regular program all.
-- 
Cheers
John Summerfield
http://os2.ami.com.au/os2/ for OS/2 support.
Configuration, networking, combined IBM ftpsites index.



JDK 1.2

1999-01-25 Thread Ian K. Williams

I'm sorry to bother you with this, as I'm sure you have had many
requests for the same information, but do you have anything further on
when JDK1.2 will be released?

Many thanks for an excellent port.

Ian.



Re: jdk2.0 (jdk.12) options ?

1999-01-25 Thread Matt Zagni

Well,

I haven't received any mail from anyone concerning this yet so I imagine
you all must be downloading it to try ?

Does the original message look like a good possiblity that it may work 
on Linux ?

Any responces ?

Matt


> Resent-Date: Mon, 25 Jan 1999 04:36:55 -0500
> Date: Mon, 25 Jan 1999 09:34:54 + (GMT)
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED], [EMAIL PROTECTED]
> 
> Hi,
> 
> Has anyone downloaded the solaris intel version of jdk2.0
> Solaris_JDK_1_2_01_dev06_i386.tar.Z from javasoft.com (solaris developers
> collection site) yet and attempted to run it under Linux using glib2.0.7pre6 ?
> 
> Although the libs look as though they may need connecting together
> it may work ?
> 
> I am running glibc2.0.7 due to staroffice5.0 and Oracle8.0.5 but
> my knowedge of libs is not that great linking them etc it may fail
> but then again it just might work has anyone tried this version of
> jdk2.0 yet ?
> 
> Any ideas ?
> 
> Many thanks
> 
> Matt
> 
> ie..
> /usr/local/jdk1.2/SUNWjvdev/reloc/usr/java1.2/bin/i386/native_theads/
> 
> ldd appletviewer
> libthread.so.1 => not found
> libX11.so.4 => not found
> libjvm.so => not found
> libjava.so => not found
> libdl.so.1 => /lib/libdl.so.1 (0x40004000)
> libc.so.1 => /lib/libc.so.1 (0x40007000)
> libx.so.5 => /lib/libc.so.5 (0x40036000)
> 
> ldd javac
> libthread.so.1 => not found
> libjvm.so => not found
> libjava.so => not found
> libdl.so.1 => /lib/libdl.so.1 (0x40005000)
> libc.so.1 => /lib/libc.so.1 (0x40008000)
> libx.so.5 => /lib/libc.so.5 (0x40037000)
> 
> ldd java
> libthread.so.1 => not found
> libjvm.so => not found
> libjava.so => not found
> libdl.so.1 => /lib/libdl.so.1 (0x40004000)
> libc.so.1 => /lib/libc.so.1 (0x40008000)
> libX11.so.4 => not found
> libx.so.5 => /lib/libc.so.5 (0x40037000)
> 
> 
> 



set cursor in the TextField

1999-01-25 Thread swang


Hi,

I am building a java Frame with a TextField and a couple Buttons.
I would like by default, setting up the cursor in the TextField so the
user can directly type in the textfield when the frame shows.


Any help is greatly appreciated.

Stephen Wang



Re: timezone

1999-01-25 Thread Martin Little

> It is not clear to me who is reading this message. But I hope you can
> help me with my question or give me a reference where I can find help.
>

*Obligatory bad dog message*
This isn't really a list for discussing general java programming.

>
> problem is that when I use the data command om the commandline
> (/bin/date) the date I see is corrent, but when I use in Java 'Data d =
> new Date()'. The reported time is one hour late. In Linux the CET is
> reported (I live in the Netherlands) as wanted but Java reports the UTC.
> How can I make my Java software report the localtime without making my
> code timezone depended (addind one hour is not a wanted solution) ?

Look at java.util.TimeZone.

../Martin



Re: timezone

1999-01-25 Thread Rob Nugent

This may well be the JavaSoft defect

http://developer.javasoft.com/developer/bugParade/bugs/4124203.html

or one of the related ones.

Basically, they stuffed up daylight savings time in a number of European
countries
including Britain. The correct solution is only implemented in JDK 1.2, so
you
may have to wait until then.

Rob

Jeroen Siffels wrote:

> Dear Reader,
>
> It is not clear to me who is reading this message. But I hope you can
> help me with my question or give me a reference where I can find help.
>
> I'm running on a Pentium based system Linux 2.0.36 with JDK 1.1.6. My
> problem is that when I use the data command om the commandline
> (/bin/date) the date I see is corrent, but when I use in Java 'Data d =
> new Date()'. The reported time is one hour late. In Linux the CET is
> reported (I live in the Netherlands) as wanted but Java reports the UTC.
> How can I make my Java software report the localtime without making my
> code timezone depended (addind one hour is not a wanted solution) ?
>
> Thanx in advance,
>
> Jeroen



--


Rob Nugent
Development Manager
UniKix Technologies Europe
[EMAIL PROTECTED]
Tel: +44 (0) 1489 585503
Fax: +44 (0) 1489 881363




Re: Swing Core Dump...?

1999-01-25 Thread TJ Saunders


Hmmm...The new kernel didn't require glibc, as it compiled and now boots
fine using just libc5.  As a double-check, I downloaded and reinstalled
the Blackdown JDK1.1.5v6, which now works as well, Swing and all.  That
problem is solved, but it begs the question:  what was it about the
JDK1.1.6 that failed?  What I would really to like to read is some of the
documentation on what software and version, graphics libraries, etc are
assumed in the use of the Linux JDKs...

Thanks for the help!

TJ

On Sat, 23 Jan 1999, peter johnson wrote:

> It's not xfree, per se.  But your new kernel may require libc6 (glibc); this would 
>mean you
> have to install the glibc version of JDK.  If this is the problem, you may want to 
>go ahead
> and install 1.1.7 while you're at it.
> 
> TJ Saunders wrote:
> 
> > Hello, all.  Up until recently, I was doing just fine working with the
> > Blackdown JDK 1.1.6 and Swing 1.1 on my Linux 2.0.33 box.  Then, I
> > upgraded a lot things.  I changed from XFree86 3.2 to 3.3.3.1, and from
> > the 2.0.33 kernel to 2.0.36.  Now, when I try to run the MenuDemo from the
> > Java Tutorial, I inevitably get the following message:
> >
> > SIGSEGV   11*  segmentation violation
> > stackbase=0xb0f8, stackpointer=0xb000
> >
> > Full thread dump:
> > "AWT-Motif" (TID:0x4066fab8, sys_thread_t:0x41421f04, state:R) prio=5
> > "AWT-Input" (TID:0x4066f998, sys_thread_t:0x41400f04, state:R) prio=5
> > "AWT-EventQueue-0" (TID:0x4066f9d0, sys_thread_t:0x413dff04, state:R)
> > prio=5
> > "Finalizer thread" (TID:0x4066b1e0, sys_thread_t:0x413bef04, state:R)
> > prio=1
> > "Async Garbage Collector" (TID:0x4066b228, sys_thread_t:0x4139df04,
> > state:R) prio=1
> > "Idle thread" (TID:0x4066b270, sys_thread_t:0x4137cf04, state:R)
> > prio=0
> > "Clock" (TID:0x4066b088, sys_thread_t:0x4135bf04, state:CW) prio=12
> > "main" (TID:0x4066b0b0, sys_thread_t:0x81e7d78, state:R) prio=5
> > *current thread*
> > sun.awt.motif.MComponentPeer.initialize(MComponentPeer.java:61)
> > sun.awt.motif.MComponentPeer.(MComponentPeer.java:114)
> > sun.awt.motif.MCanvasPeer.(MCanvasPeer.java:39)
> > sun.awt.motif.MPanelPeer.(MPanelPeer.java:33)
> > sun.awt.motif.MFramePeer.(MFramePeer.java:64)
> > sun.awt.motif.MToolkit.createFrame(MToolkit.java:127)
> > java.awt.Frame.addNotify(Frame.java:214)
> >
> > javax.swing.plaf.metal.BumpBuffer.createComponent(MetalBumps.java:235)
> > javax.swing.plaf.metal.BumpBuffer.(MetalBumps.java:151)
> > javax.swing.plaf.metal.MetalBumps.createBuffer(MetalBumps.java:65)
> >
> > javax.swing.plaf.metal.MetalBumps.setBumpColors(MetalBumps.java:100)
> > javax.swing.plaf.metal.MetalBumps.(MetalBumps.java:57)
> >
> > javax.swing.plaf.metal.MetalBorders$ToolBarBorder.(MetalBorders.java:281)
> >
> > 
>javax.swing.plaf.metal.MetalLookAndFeel.initComponentDefaults(MetalLookAndFeel.java:322)
> >
> > javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(BasicLookAndFeel.java:65)
> >
> > javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(MetalLookAndFeel.java:659)
> > javax.swing.UIManager.setLookAndFeel(UIManager.java:339)
> > javax.swing.UIManager.setLookAndFeel(UIManager.java:366)
> > javax.swing.UIManager.initializeDefaultLAF(UIManager.java:820)
> > javax.swing.UIManager.initialize(UIManager.java:896)
> > Monitor Cache Dump:
> > java.lang.Class@1080488336/1080855960: owner "main" (0x81e7d78, 2
> > entries)
> > Registered Monitor Dump:
> > Thread queue lock: 
> > Name and type hash table lock: 
> > String intern lock: 
> > JNI pinning lock: 
> > JNI global reference lock: 
> > BinClass lock: 
> > Class loading lock: 
> > Java stack lock: 
> > Code rewrite lock: 
> > Heap lock: 
> > Has finalization queue lock: 
> > Finalize me queue lock: 
> > Monitor IO lock: 
> > Child death monitor: 
> > Event monitor: 
> > I/O monitor: 
> > Alarm monitor: 
> > Waiting to be notified:
> > "Clock" (0x4135bf04)
> > Monitor registry: owner "main" (0x81e7d78, 1 entry)
> > Thread Alarm Q:
> > Abort (core dumped)
> >
> > What just happened?  Any ideas?  TIA.
> >
> > 
> > TJ Saunders [EMAIL PROTECTED]
> > System AdministratorPhone: (206) 685-8266
> > Remote Sensing Lab
> > University of Washington
> > 
> 


TJ Saunders [EMAIL PROTECTED]
System AdministratorPhone: (206) 685-8266
Remote Sensing Lab
University of Washington




Re: Save a canvas as a GIF file

1999-01-25 Thread Mike Mondragon

You can use the class
java.awt.image.PixelGrabber
to "grab" the pixels from an image into an array of integers.  Remember
that a java pixel is just an integer with the high bits being "alpha"
going down from Red then Green then Blue ... RGB.  Here's the code
snippet for monkeying the pixels from the API:

public void handlesinglepixel(int x, int y, int pixel) {
int alpha = (pixel >> 24) & 0xff;
int red   = (pixel >> 16) & 0xff;
int green = (pixel >>  8) & 0xff;
int blue  = (pixel  ) & 0xff;
// Deal with the pixel as necessary...
}

Now once you have an array of ints that the pixel grabber has stuffed
with the pixels from an images, or an array you have created and done
your own image alogrithms to, the array is basically in the format of a
Windows BMP file and at this time you could write the pixels to disk
with a *.bmp file extension and Winblows would be able to read/show the
file A-OK in MSPaint.  But you want a GIF right??  A GIF has its own
format so you would either have to roll your own GIF formatting
algorithm to work on the array or find something from a third party that
takes the array and makes a gif out of it.

Hope this helps.

Mike Mondragon



Messed Up Date Validation In 1.1.7

1999-01-25 Thread Ryan Sutter

I don't know for sure that this specific to Linux Java so my apologies
in advance.  I am using this code for date validation:

DateFormat df = new SimpleDateFormat("MM/dd/");
try {
Date theDate = df.parse(theText);
jtf.setText( df.format( theDate )); //??!!
} catch (ParseException pe) {
System.out.println(pe);
jtf.setText("");
jtf.repaint();
}

This method allows incorrect dates like 13/9/98 without complaining.  My
testers are complaining though.  :-)  Does anybody know of a better/more
accurate date validation class out there?  Or a better way to use this
one?

Thanks in advance,

Ryan



Re: jdk2.0 (jdk.12) options ?

1999-01-25 Thread Aaron Gaudio

I was deep in meditation when Steve Byrne awoke me by saying:
> 
> Matt Zagni writes:
>  > Well,
>  > 
>  > I haven't received any mail from anyone concerning this yet so I imagine
>  > you all must be downloading it to try ?
>  > 
>  > Does the original message look like a good possiblity that it may work 
>  > on Linux ?
>  > 
>  > Any responces ?
> 
> Yes.  No friggin way.  The two are completely different in their threading
> systems.  Solaris native threads uses Solaris LWPs -- Linux doesn't have them.
> 
> Don't waste your time.
> 

Well, if native threading was the only problem, then one could stick with
green threads and everything would be okay.

The problem is that all those system libraries, though they have similar (or the
same) names are not the same, and this is especially true of the C libraries.
This is what prevents someone using Sparc Linux from using the Sparc Solaris
JDK. The question is is the x86 Solaris JDK iBCS (Intel Binary Compatibility
Standard) compliant? If it is, then you should be able to use it in Linux
using the iBCS kernel module. I *highly* doubt it is, though if you want to
give it a try, feel free.

BTW, I am surprised that Sun even bothers with x86 Solaris over (direct)
support for Linux. Easier to port from Sparc Solaris I suppose. 

>  > 
>  > > Hi,
>  > > 
>  > > Has anyone downloaded the solaris intel version of jdk2.0
>  > > Solaris_JDK_1_2_01_dev06_i386.tar.Z from javasoft.com (solaris developers
>  > > collection site) yet and attempted to run it under Linux using glib2.0.7pre6 ?
>  > > 
>  > > Although the libs look as though they may need connecting together
>  > > it may work ?
>  > > 
>  > > I am running glibc2.0.7 due to staroffice5.0 and Oracle8.0.5 but
>  > > my knowedge of libs is not that great linking them etc it may fail
>  > > but then again it just might work has anyone tried this version of
>  > > jdk2.0 yet ?
>  > > 
>  > > Any ideas ?
>  > > 
>  > > Many thanks
>  > > 
>  > > Matt
>  > > 
>  > > ie..
>  > > /usr/local/jdk1.2/SUNWjvdev/reloc/usr/java1.2/bin/i386/native_theads/
>  > > 
>  > > ldd appletviewer
>  > > libthread.so.1 => not found
>  > > libX11.so.4 => not found
>  > > libjvm.so => not found
>  > > libjava.so => not found
>  > > libdl.so.1 => /lib/libdl.so.1 (0x40004000)
>  > > libc.so.1 => /lib/libc.so.1 (0x40007000)
>  > > libx.so.5 => /lib/libc.so.5 (0x40036000)
>  > > 
>  > > ldd javac
>  > > libthread.so.1 => not found
>  > > libjvm.so => not found
>  > > libjava.so => not found
>  > > libdl.so.1 => /lib/libdl.so.1 (0x40005000)
>  > > libc.so.1 => /lib/libc.so.1 (0x40008000)
>  > > libx.so.5 => /lib/libc.so.5 (0x40037000)
>  > > 
>  > > ldd java
>  > > libthread.so.1 => not found
>  > > libjvm.so => not found
>  > > libjava.so => not found
>  > > libdl.so.1 => /lib/libdl.so.1 (0x40004000)
>  > > libc.so.1 => /lib/libc.so.1 (0x40008000)
>  > > libX11.so.4 => not found
>  > > libx.so.5 => /lib/libc.so.5 (0x40037000)
>  > > 
>  > > 
>  > > 
>  > 
> 


-- 

¤¤
| Aaron Gaudio   mailto:[EMAIL PROTECTED] |
|http://www.rit.edu/~adg1653/|
¤¤
|  "The fool finds ignorance all around him. |
|  The wise man finds ignorance within." |
¤¤

Use of any of my email addresses is subject to the terms found at
http://www.rit.edu/~adg1653/email.shtml. By using any of my addresses, you
agree to be bound by the terms therein.



vi in win95 or winNT

1999-01-25 Thread Jinpeng Xie

hi,

I just moved to WinNT due to a job. I am using JBuilder to develop
servlet application. I really like to use vi. I hate to use editor
running in WinNT. I don't want to waste time on mouse. Do you have
some sugestion about editor like vi for PC.

I also know weblogic has a package for html development in Java.
I can import weblogic.html to develop servlet application. Do you
know we have a free package that provide a same function as
weblogic.html package.


Jinpeng



JDK1.2 availability

1999-01-25 Thread Philip Lysons

Hi,

>From reading the site, it looks like you thought you would have JDK1.2
out by now.

I was wondering if you had an updated ETA on that.

Thanks,
Phil Lysons



Re: jdk2.0 (jdk.12) options ?

1999-01-25 Thread Steve Byrne

Matt Zagni writes:
 > Well,
 > 
 > I haven't received any mail from anyone concerning this yet so I imagine
 > you all must be downloading it to try ?
 > 
 > Does the original message look like a good possiblity that it may work 
 > on Linux ?
 > 
 > Any responces ?

Yes.  No friggin way.  The two are completely different in their threading
systems.  Solaris native threads uses Solaris LWPs -- Linux doesn't have them.

Don't waste your time.


 > 
 > Matt
 > 
 > 
 > > Resent-Date: Mon, 25 Jan 1999 04:36:55 -0500
 > > Date: Mon, 25 Jan 1999 09:34:54 + (GMT)
 > > To: [EMAIL PROTECTED]
 > > Cc: [EMAIL PROTECTED], [EMAIL PROTECTED]
 > > 
 > > Hi,
 > > 
 > > Has anyone downloaded the solaris intel version of jdk2.0
 > > Solaris_JDK_1_2_01_dev06_i386.tar.Z from javasoft.com (solaris developers
 > > collection site) yet and attempted to run it under Linux using glib2.0.7pre6 ?
 > > 
 > > Although the libs look as though they may need connecting together
 > > it may work ?
 > > 
 > > I am running glibc2.0.7 due to staroffice5.0 and Oracle8.0.5 but
 > > my knowedge of libs is not that great linking them etc it may fail
 > > but then again it just might work has anyone tried this version of
 > > jdk2.0 yet ?
 > > 
 > > Any ideas ?
 > > 
 > > Many thanks
 > > 
 > > Matt
 > > 
 > > ie..
 > > /usr/local/jdk1.2/SUNWjvdev/reloc/usr/java1.2/bin/i386/native_theads/
 > > 
 > > ldd appletviewer
 > > libthread.so.1 => not found
 > > libX11.so.4 => not found
 > > libjvm.so => not found
 > > libjava.so => not found
 > > libdl.so.1 => /lib/libdl.so.1 (0x40004000)
 > > libc.so.1 => /lib/libc.so.1 (0x40007000)
 > > libx.so.5 => /lib/libc.so.5 (0x40036000)
 > > 
 > > ldd javac
 > > libthread.so.1 => not found
 > > libjvm.so => not found
 > > libjava.so => not found
 > > libdl.so.1 => /lib/libdl.so.1 (0x40005000)
 > > libc.so.1 => /lib/libc.so.1 (0x40008000)
 > > libx.so.5 => /lib/libc.so.5 (0x40037000)
 > > 
 > > ldd java
 > > libthread.so.1 => not found
 > > libjvm.so => not found
 > > libjava.so => not found
 > > libdl.so.1 => /lib/libdl.so.1 (0x40004000)
 > > libc.so.1 => /lib/libc.so.1 (0x40008000)
 > > libX11.so.4 => not found
 > > libx.so.5 => /lib/libc.so.5 (0x40037000)
 > > 
 > > 
 > > 
 > 



Re: Messed Up Date Validation In 1.1.7

1999-01-25 Thread Brad Pepers

Ryan Sutter wrote:
> 
> I don't know for sure that this specific to Linux Java so my apologies
> in advance.  I am using this code for date validation:
> 
> DateFormat df = new SimpleDateFormat("MM/dd/");
> try {
> Date theDate = df.parse(theText);
> jtf.setText( df.format( theDate )); //??!!
> } catch (ParseException pe) {
> System.out.println(pe);
> jtf.setText("");
> jtf.repaint();
> }
> 
> This method allows incorrect dates like 13/9/98 without complaining.  My
> testers are complaining though.  :-)  Does anybody know of a better/more
> accurate date validation class out there?  Or a better way to use this
> one?

If I remember right there is something for setting a stricter date
validation.  Just looked it up and its setLenient(boolean) in the
DateFormat class that SimpleDateFormat inherits from.

Let me know if that does the trick!

-- 
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: vi in win95 or winNT

1999-01-25 Thread Maureen Lecuona

Jinpeng Xie wrote:
> 
> hi,
> 
> I just moved to WinNT due to a job. I am using JBuilder to develop
> servlet application. I really like to use vi. I hate to use editor
> running in WinNT. I don't want to waste time on mouse. Do you have
> some sugestion about editor like vi for PC.
> 
> I also know weblogic has a package for html development in Java.
> I can import weblogic.html to develop servlet application. Do you
> know we have a free package that provide a same function as
> weblogic.html package.
> 
> Jinpeng
Hi:

This is not a java-linux question but I will answer briefly.

Check out www.cygnus.com.  There is information about ports of many
unix commands to Windows.  Also check out Interix ( www.interix.com??)
and MKS toolkit.

Please restrict your questions to java-linux issues on this mailing list.

Maureen Lecuona



jdk1.2

1999-01-25 Thread Erich Mayr

more than 1 month has passed since the anouncement of 1.2 beeing ready,
what about???

ciao

Erich



Unidentified subject!

1999-01-25 Thread killer




UNSUBSCRIBE


Re: TCP & SIGIO & SO_NOSPACE(sock_wmalloc() failure)

1999-01-25 Thread Uncle George

got the alpha 2.0.36 kernel from redhat 5.2/updates for alpha

still got the problem. Attached is a demo ( client/server) program that
demonstrates the loss of the SIGIO interrupt after a few EAGAIN failures. I do
not know why the loss, but for most of the failures there is a I "have no more
buffer space" failure in net/core/sock.c. BUT since SIGIO's were gen'd a few
times under the same "lack" of space scenario, i have no hard facts to point a
firm belief that the buffer failure is the absolute cause.
gat
tomm i will fire up the 386, and see how that fairs.

Alan Cox wrote:

> updates. I'm not interested in 2.0.33 network problems unless they are also
> duplicatable on .35/36.
>
> Alan

/* *  server.c
 *  cc -g -o server server.c
 * To demonstrate unexpected SIGIO loss
 * [EMAIL PROTECTED]
 */

#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 

int fd, work_fd;

main()
{
 char *p1, *p2;
 struct iovec iovec[2];
 int i;
 int j = 0;
 open_socket();

 p2 = malloc( 10*1024 );
 iovec[0].iov_len = 10*1024;
 iovec[0].iov_base = p2;

 while( i > 0 ) {
 i = readv(work_fd, &iovec, 1);
 printf("%d\n",j++);
 }
 unlink("X0");
}


open_socket()
{

 struct sockaddr_un sockname, sockname2;
 int i;
 int len;

 fd = socket(1,1,0);
 if ( fd < 0 ) {
  printf("Socket error %d\n", errno);
  exit();
 }

 unlink("X0");
 sockname.sun_family = AF_UNIX;
 len = sprintf(sockname.sun_path,"X0");
 len += sizeof(sockname.sun_family);
 i = bind( fd, &sockname, len);
 if ( i<0 ) {
  printf("Cannot connect to &s, errno=%d\n",
   sockname.sun_path, errno);
  exit();
 }
 i = listen( fd, 2 );
 i = 50;
 work_fd = accept( fd, &sockname2, &i);

#if 0
 i = fcntl( fd, F_GETFL,0);
 fcntl( fd, F_SETFL, O_NONBLOCK | i);
 fcntl( fd, F_SETOWN, getpid());
#endif
}
/ end of server.c */

/*
 *  client.c
 *  cc -g -o client client.c
 * To demonstrate SIGIO loss.
 */

#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 

int fd;
void io_done(int);
void timedout(int);
int myv( int fd, struct iovec *a, size_t b);
long gettime();
#define A_LONG_TIME (30*1000) /* 30 seconds */
enum timeouts { GOT_IO=34,GOT_TIME };
struct {
 long begin_time;
 long end_time;
 enum timeouts flag;
} t;

main()
{
 char *p1, *p2;
 int loops=0;
 struct iovec iovec[2];

 signal( SIGALRM, timedout);
 signal( SIGIO,   io_done);

 open_socket();

 p1 = malloc(24);
 p2 = malloc( 262123 );

 while(1){
  iovec[0].iov_len = 24;
  iovec[0].iov_base = p1;
  iovec[1].iov_len = 200*1024-24;
  iovec[1].iov_base = p2;

  myv( fd, (struct iovec *)&iovec, 2);
  printf("Loops = %d\n",loops++);
  nod_off(500, "Delay");  /* 500ms */
 }
}

myv( int fd,struct iovec * vec , size_t c)
{
 int wrote, left;
 struct iovec *iov;

 iov = vec;
 while (c > 0 ) {
 t.begin_time = 0;
 t.end_time = 0;
 wrote = writev( fd, iov, c );
 if ( wrote < 0 ) {

 if ( errno == EAGAIN ) {
  nod_off( A_LONG_TIME ,"EAGAIN");
   continue;
 }
  printf("Unexpected writev error %d\n", errno);
 }

 for ( ; c; iov++,c--) {
left = wrote - iov->iov_len;
if ( left >= 0 ) {
wrote -= iov->iov_len;
 continue;
  }
  iov->iov_len -= wrote;
  iov->iov_base += wrote;
  break;
 }
 }
}

nod_off( int time , char *m)
{
 struct itimerval value;
 int i;
 int status;

 value.it_interval.tv_sec  = 0;
 value.it_interval.tv_usec = 0;
 value.it_value.tv_sec  = time/1000;
 value.it_value.tv_usec = (time%1000)*1000;
 setitimer( ITIMER_REAL, &value, 0 );
 if ( t.begin_time || t.end_time ) {
 printf(" Signal Happened after writev. (b=%lx,e=%lx)\n",
  t.begin_time, t.end_time);
 }
 t.begin_time = gettime();
 t.end_time = 0;
 i = pause(); /* Zz */
 if (i >= 0 ) /* ??? */
  ;
 if ( m[0] != 'D') {
 printf("Woke up(%d): time.b=%lx,time.e=%lx,Reason=%s\n",
errno, t.begin_time, t.end_time,
   (t.flag == GOT_IO)?"SIGIO":"TimedOut");
 }

}

open_socket()
{

 struct sockaddr_un sockname;
 int i;
 int len;

 fd = socket(PF_UNIX,SOCK_STREAM,0);
 if ( fd < 0 ) {
  printf("Socket error %d\n", errno);
  exit(1);
 }

 sockname.sun_family = AF_UNIX;
 len = sprintf(sockname.sun_path,"X0");
 len += sizeof(sockname.sun_family);
 i = connect( fd, &sockname, len);
 if ( i<0 ) {
  printf("Cannot connect to %s, errno=%d\n",
   sockname.sun_path, errno);
  exit(2);
 }
 i = fcntl( fd, F_GETFL,0);
 if ( i < 0 ) exit(3);
 i = fcntl( fd, F_SETFL, O_NONBLOCK | O_ASYNC | i);
 if ( i < 0 ) exit(4);
 i = fcntl( fd, F_SETOWN, getpid());
 if ( i < 0 ) exit(4);
 i = fcntl( fd, F_GETFL,0);

}

void
timedout(int sig )
{
 t.end_time = gettime();
 t.flag = GOT_TIME;
 signal(sig, timedout);
}

void
io_done(int sig )
{
 t.end_time = gettime();
 t.flag = GOT_IO;
 signal( sig, io_done);
}

long
gettime()
{
 struct timeval tv;
 gettimeofday( &tv, 0);

 return (tv.tv_sec*1000L + tv.tv_usec/1000L);
}
/***

Running java binaries under Linux

1999-01-25 Thread Steve Cohen

The file java.txt in the /usr/src/linux/documentation directory gives
information on compiling the java kernel to provide support for running
java binaries.  (This file is in the 2.0.36 source trees and I believe
earlier ones as well.

It appears to be somewhat out of date.

For one thing, it mentions a HOWTO file supposedly available at
ftp://sunsite.unc.edu/pub/Linux/docs/HOWTO/Java-HOWTO
that wasn't there last I looked.  Is this available elsewhere?  Or even
relevant?

It then goes onto define a lot of rigamarole to go through either
involving editing the fs/binfmt_java.c source file (no thanks - I'd
rather keep my sources clean if I can) or else issuing a command to
write something to /proc/sys/kernel/java-interpreter.

How the heck do I do this?  /proc/sys/kernel is not writable and I
cannot make it writable.  The chmod command is accepted but does not
actually do anything.  /proc isn't a real directory anyway, is it?

Anyway, does anyone here have the scoop on the real way to set this up.
Also, must the java interpreter be a particular directory for this to
work?