Re: JCK licensing restriction (was: JDK1.2)

1999-01-13 Thread nmeyers

Trevor Harmon wrote:
> I disagree on that last point, and I was wondering if anyone else feels
> the same. (I'm  referring to the part about not releasing any version of
> the Linux JDK 1.2 until  passing compatibility tests being a good thing.)

If you really want to be a beta tester, then I concede that it's not a good
thing. If your intent is to use the JDK as a development kit for applications,
you're better off with one that has achieved at least a nominal certification of
correctness -- rather than spending your time tracking down someone else's bugs.
Turning customers into beta testers is supposed to be the hallmark of that
*other* software company :-).

Nathan

> Nathan Meyers wrote:
> 
> > The answer is that it's being worked on, it'll be out soon (no date
> > promised), and the Blackdown team is forbidden by the license to release
> > anything until it has passed the compatibility tests (this is a good
> > thing).




Re: Performance

1999-01-14 Thread nmeyers

Helge Hielscher wrote:
> 
> I just wondered why my JAVA Programm runs so slow. xosview display
> seldom more than 60% cpu load and a load of max. 0.2  and the Database
> Server I use is also on low load 0.1, cpu<40%.
> How can I increase the speed? TYA 1.2 doesnt work (problem with
> JEditorPane).
> Are there free (and easy to use) profilers for Linux (libc5) available?
> Or what would you suggest?
> 
> Helge Hielscher
> 

One free profiler is the "java" executable: look at the "-prof" option. That'll
tell you where in your Java code you're spending time... but not necessarily why
the JVM is spending so much time there.

Nathan



Re: web server

1999-01-20 Thread nmeyers

Jinpeng Xie wrote:
> I am wondering whether there is a web server that can process jhtml
> files and can run on Linux platforms.
> 
> Java web server can process jhtml, but only run on NT and Solaris.
> I didn't read documentation about apache very recently.

Try Jigsaw from the W3 Consortium -- it's fully Java:

http://www.w3.org/Jigsaw/

Nathan Meyers
[EMAIL PROTECTED]



Re: Reading the /proc directory of other computers

1999-03-11 Thread nmeyers

Juan Carlos wrote:

> How can I read the /proc directory of other computers?

Did you really mean to send your questions about /proc and SNMP to the
Java-Linux mailing list?

You'll find some good Linux how-to's at http://www.linux.org/help/index.html . I
recommend you start there. That page will also lead you to mailing lists -- such
as linux-net -- that deal with the sort of problems you're trying to address.

Nathan


-
This message was sent using Endymion MailMan.
http://www.endymion.com/products/mailman/



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



Re: anyone got jar working with jdk1.2???

1999-03-17 Thread nmeyers

> hello,
> 
> am i the only one to have problems with the jar prog of the jdk1.2-prev1
> version???
> 
> each time i try to packege something i get the message: Can't determine
> application home 

Works fine for me on RH5.2.

Nathan

-
This message was sent using Endymion MailMan.
http://www.endymion.com/products/mailman/



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



Re: java -X coredumps?

1999-03-22 Thread nmeyers

Dimitris Vyzovitis wrote:
> Hi,
> 
> I am trying to java -X in order to see the non-standard vm arguments,
> but it coredumps after printing the message!

Well, yes... but at least it happens *after* the message :-). If you want more 
detail on the profiling option (-Xrunhprof:help) you won't get a core dump. 
It's a bug, but not a very critical one.

Nathan

> 
> [dimitris@gauss dimitris]$ java -X
> -Xbootclasspath:
>   set search path for bootstrap classes and
> resources
> -Xnoclassgc   disable class garbage collection
> -Xmsset initial Java heap size
> -Xmxset maximum Java heap size
> -Xrs  reduce the use of OS signals
> -Xcheck:jni   perform additional checks for JNI functions
> -Xrunhprof[:help]|[:=, ...]
>   perform heap, cpu, or monitor profiling
> -Xdebug   enable remote debugging
> 
> The -X options are non-standard and subject to change without notice.
> Segmentation fault (core dumped)


-
This message was sent using Endymion MailMan.
http://www.endymion.com/products/mailman/



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



hotjava/jdk1.2?

1999-03-30 Thread nmeyers

Does anyone know if the Sun hotjava browser is supposed to work
under JDK1.2? I've had no luck to date -- failing on startup with
AccessControlException. Wondering whether to suspect hotjava, 1.2,
or the Linux port.

Nathan Meyers
[EMAIL PROTECTED]

-
This message was sent using Endymion MailMan.
http://www.endymion.com/products/mailman/



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



Re: javax.swing.preview not found

1999-05-01 Thread nmeyers

> At 03:12 a.m. 01/05/99 -0600, you wrote:
> >Keep the javax.swing.* line, only remove javax.swing.preview.
> >
> >--Jeff
> 
> Ok, thankyou,  I understand, my problem is that I dont have the
javax>  package
> How could I find it, I´m using Linux 5.2 whith JDK 1.1.7 and there is
> not any "javax" in the crs.zip (?) directory.

Pick it up from Sun. You can get the current released Swing for JDK1.1 at 
http://java.sun.com/products/jfc/download.html , or the Beta version for the 
next release at http://developer.java.sun.com/developer/earlyAccess/jfc .

Nathan

-
This message was sent using Endymion MailMan.
http://www.endymion.com/products/mailman/



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



Re: AW: java and multithreading

1999-05-11 Thread nmeyers

Threads are independent streams of execution that run concurrently (or at least
with the appearance of concurrency), possibly on multiple CPUs. If you want to
coordinate activity between threads -- such as determining a sequence in which
output appears -- you have to use the tools available for thread coordination.
That's why Java gives you constructs such as "synchronize" as part of the
language.

You cannot, should not, must not, rely on unspecified behavior, such as how much
of a time slice each thread gets, whether threading is preemptive, the order in
which threads get time slices, the relative time threads get for different
priorities, etc. If you want to coordinate activity between threads, you're
going to have to deal with "inconvenient and very difficult" programming. Java
makes this task much easier than do other environments, but you still have work
to do.

Nathan


> hi,
> i still have some more questions about threads and the differences
> between
> linux-windows95.
> In my application I got a similar behaviour between linuxwin95 if I set
> the
> Priority = 1 on linux. On win95 it is 5. Is the behaviour of these
> values
> somewhere defiened or does it depende on the virtual machine. If it
> depends
> on the virtual machine how  can I write programms which behave same or
> similar on both platforms ?  
> One solution might be that all threads must communicate during there
> execution about the methode interrupt(). But I think that this is often
> very
> inconvinient and (in my case) very difficult to implemente. So in my
> case it
> would be the best if the behaviour of a thread is well defiened.


-
This message was sent using Endymion MailMan.
http://www.endymion.com/products/mailman/



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



Re: Problem with fonts (Font specified in font.properties not found )

1999-05-22 Thread nmeyers

This is discussed in the mail archives and maybe even the FAQ. If you're
not using the Zapf Dingbat fonts, it's nothing to lose sleep over.

Nathan


> Stephen Lohning wrote:
> 
> > I am having trouble getting java 2 running on my redhat 5.2 PC(386)
> > system.
> > bash$ javac SimpleExample.java
> > bash$ ls
> > SimpleExample$1.class  SimpleExample.class
> > SimpleExample$RadioListener.class  SimpleExample.java
> > bash$ java SimpleExample
> > Font specified in font.properties not found [--zapf
> > dingbats-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
> > Font specified in font.properties not found [--zapf
> > dingbats-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
> >
> > --
> 
> i got this prob too, did you find the answer?


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



Re: Working with many .java files jikes Compiler

1999-07-30 Thread nmeyers

Michael Emmel wrote:
> >
> > We use make to great advantage.  Our system has ~1000 java files and
> > make reduces compile time dramatically.  ( We use jikes, too, so that
> > helps. )  Using production rules, make will only compile a java file
> > when the timestamp on the .java file is later than the timestamp on the
> > .class.
> >
> 
> I compiled some code with jikes ans a normally do then with thek jdk1.2
compilier
> I noticed that the code ran visibly faster with javac has anyone else seen
this ??
> It seems javac is a much better optimizing compiler.
> 
> I like jikes for development but javac seems to be a better production
compiler

Interesting. That raises a point of curiosity for me.

There's a GPL'd compiler, Kopi (http://www.dms.at/kjc/), that Kaffe is
apparently considering adopting. I've played with it a little... seems to run
faster than javac. Kopi puts some effort into optimization, and I'm curious if
anyone has tried it and has opinions.

Nathan


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



Re: How big a server is required to deploy JServ?

1999-10-01 Thread nmeyers

On  1 Oct, Tim Reilly wrote:
> Can anyone confirm this?  Honestly, this scares the hell out of me.

Marc's warning is a wise one, but Solaris is not the last or most
perfect word in good deployment options. The Volano benchmarks report
on the performance of Java server environments
(http://www.volano.com/report.html). A look at the page shows a couple
of bits of good news on the Linux side:

1) The IBM JDK1.1.8 shows promising results (but still badly lagging
NT).

2) The TowerJ product is kicking everyone's collective butts in
performance and scalability.

TowerJ isn't a JDK port, it's a commercial (not cheap)
1.1-compliant environment that relies on ahead-of-time compilation and
dynamic loading to do its magic (but can still interpret bytecoded
classes). If you want a serious Java server solution, don't give up on
Linux until you've looked at TowerJ.

Nathan

> 
> We're planning on using the IBM 1.1.8 JDK for Linux.  In a perfect world,
> we'd be deploying on Solaris, but unfortunately we're a startup company
> and we just can't afford it as of yet.
> 
> -Tim
> 
> On Thu, 30 Sep 1999, Marc Slemko wrote:
> 
>> On Thu, 30 Sep 1999, Tim Reilly wrote:
>> 
>> > The company I work for is in the late stages of re-architecting our entire
>> > website using Apache JServ, RedHat Linux 6.0, and MySQL.  The code is just
>> > about finished (version 1.0 freezes in the two weeks), and we're trying to
>> > spec the servers we will need for deployment.  The problem is that I
>> > really have no idea what class of machine is required.
>> 
>> Be very very very cautious about even thinking of deploying any site that
>> has a high load and significant Java code using Linux.  This is not a
>> slight to Linux, but simply due to the immaturity and poor performance of
>> JVMs on Linux.
>> 
>> The JVMs that are out there either have horrible performance or are
>> unstable under load.  The blackdown 1.1 one is pretty stable using green
>> threads, but is horribly slow for IO due to green threads, and IO is about
>> all most server side java code does.
>> 
>> The current blackdown 1.2 using native threads (with or without jit) is
>> quite unstable under high load. Some bits of code will crash it fairly
>> reliably, other times it just hangs or SEGVs under heavy load.
>> 
>> IBM's JVM is so-so in terms of performance, but may have problems under
>> load due to the immaturity of Linux threads.  Until recently, there were
>> also problems that made it not work right with jserv due to it improperly
>> reporting that there was no more data to be read on a socket instead of
>> blocking.
>> 
>> In my experience, the price/performance for a sparc box running Solaris is
>> actually _better_ than that on Linux (even if the box is 5x as expensive),
>> and a whole lot more reliable, since the JVMs are so much better.
>> 
>> You also need to be very careful about what queries you give to mysql.  It
>> does not (at least did not) handle concurrent queries; ie. it finishes one
>> before starting the next, so a single expensive query can kill the whole
>> site for some time, make things backup, etc.  As long as everything is an
>> easy select that can be done via indexes, things are reasonable but it
>> requires careful design of accesses and updates.
>> 
>> Now, my definition of "high traffic" may or may not be more than your
>> definition.  But the above is based on my experience trying to deploy a
>> fairly high traffic site running a JVM on Linux.
>> 
>> 
>> --
>> 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]



Re: How do you get to process list ?(ps auwwx in Java)

2000-11-21 Thread nmeyers

Peter Pilgrim wrote:

> Hi
>
> I am considering writing a JNI to the process list.
> How do you do this in Linux/Unix?

Most such things are done on Linux using information available from the /proc 
filesystem - you should be able to write a very thorough ps, just by reading from that 
filesystem without having to go anywhere near JNI code. The "proc" man page has a good 
intro, and you may want to grab the source for ps (available at a
Linux distro near you) to see how they do it.

Nathan

>
>
> --
> Peter Pilgrim
> G.O.A.T
> "The Greatest of All Time"
>
> --
>
> This e-mail may contain confidential and/or privileged information. If you are not 
>the intended recipient (or have received this e-mail in error) please notify the 
>sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or 
>distribution of the material in this e-mail is strictly forbidden.
>
> --
> 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]




Re: Max number of threads with NPTL

2004-02-04 Thread nmeyers
On Wed, Feb 04, 2004 at 07:06:24PM +0100, Vincent Touquet wrote:
> On Wed, Feb 04, 2004 at 09:56:57AM -0800, Hui Huang wrote:
> >Default stack size is 512k. You need 3500 * 512k = 1750M address space
> >for 3500 threads. Try -Xss96k. Also check your limit on max #processes
> >(ulimit -u), you can't create more threads than that limit either.
> 
> Is there a common place where these options (eg. -Xss...) are
> documented?

You'll find some brief documentation if you run "java -X".

Nathan


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



Re: Using JNI to run root-priviledged tasks

2004-06-21 Thread nmeyers
On Mon, Jun 21, 2004 at 11:46:39AM +0530, John Varghese wrote:
>  Hello all
> I am using Linux 7.2 and j2sdk1.4.1
> 
> I would like to use JNI to perform some root-priviledged tasks
> say like adding users to system, restarting some daemons,

Hello John,

What exactly are you trying to do? Perform privileged tasks from an
application that isn't running as root, or write Java applications that
will run as root?

If you're trying to get a single JNI method-call to be root for
the duration of a call from a non-privileged program - it can't be
done. Linux authorization doesn't work that way. Instead, you need to
invoke an external process (such as through Runtime.exec()) that will
run as root. You might read up on "sudo", which gives you a way grant
such privileges to individual users in a well-controlled way.

Nathan


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



Re: JDK 1.4.2 fonts issue

2004-07-12 Thread nmeyers
On Mon, Jul 12, 2004 at 08:57:20AM -0500, Amit Kirdatt wrote:
> We have a web application which generates RTFs dynamically (uses jFor). One
> of the RTFs contains the following symbol ? (symbol for section). Now this
> symbol displays correctly if we start our JBoss server from the command
> line, but when it automatically starts (we have some automated scripts)
> starts via crontab the symbol does not display correctly!
> Now this used to work on JDK1.3, any ideas?

By "displays correctly", you mean how it shows up correctly in the
generated Web page? Are you sending these pages down as text or as (for
whatever strange reason) bitmapped images of text pages? Unless you're
doing the latter, I can't imagine why your server would care what fonts
are available.

Nathan

> 
> I have tried copying the ttf files over from the jdk1.3 fonts dir to the
> jdk1.4.2 fonts dir, but no luck so far. I also tried copying the symbol.ttf
> from windows on to the linux server and no luck either.
> 
> Any help appreciated.
> 
> Thanks,
> Amit
> 
> 
> 
> This e-mail, including attachments, may include confidential and/or
> proprietary information, and may be used only by the person or entity to
> which it is addressed. If the reader of this e-mail is not the intended
> recipient or his or her authorized agent, the reader is hereby notified that
> any dissemination, distribution or copying of this e-mail is prohibited. If
> you have received this e-mail in error, please notify the sender by replying
> to this message and delete this e-mail immediately.
> 
> 
> --
> 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]



Re: Highlighted text detection

2005-05-27 Thread nmeyers
On Fri, May 27, 2005 at 09:47:51AM -0600, Mike Adolf wrote:
> If this is the wrong list for this post, let me know.
> 
> I have a form having a mix of JTables, JTextAreas, and JTextFields.  I want 
> to 
> know when a user highlightes/selectes text in any of them (to enable copy 
> button).  To select text a user can (click then shift click) or (double 
> click) or (click and drag).  Isn't there some way to detect highlighting with 
> out multiple listeners?

You could define one listener that implements all the relevant listener
interfaces.

Nathan

> 
> Mike
> 
> 
> --
> 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]