Re: JNI Multithread Question in Linux

2004-01-07 Thread Paul Mclachlan
Kok Choon Kiat wrote: It appears to me that the native thread has *seized the entire flow of control* from java program and it is not running independently. Why is that so? How can I make the native thread independent and not seize the flow of control from the java program? I would really appre

Re: is this a bug?

2002-09-06 Thread Paul Mclachlan
Jochen Georges wrote: >hello dan, >thanks for your help. >i changed the line in /etc/profile from: >export CLASSPATH=$CLASSPATH:/usr/lib/j2sdk1.3/lib/tools.jar >to >export CLASSPATH=$CLASSPATH:/usr/lib/j2sdk1.3/lib/tools.jar:. >now it works. >don't know why, but it works. > The way the Java boo

Re: [ANNOUNCE] Java 2 Standard Edition v1.3.1-02b-FCS for Linux on i386, PPC and Sparc

2002-03-29 Thread Paul Mclachlan
At :28 03 Mar 2002 +0800, PChaos wrote: > what's the meaning "FCS" in "v1.3.1-02b-FCS"? > anybody know ? "First Customer Ship" - Paul -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Con

Re: JVM Size Limitations on Linux x86

2002-02-12 Thread Paul Mclachlan
At :47 02 Feb 2002 -0600, Eric wrote: > Does anyone have any idea how to fix this? Would it be a big job to > fix it in the JVM? You could grab the source to 1.3.1 at: http://www.sun.com/software/communitysource/ and edit jdk131src/j2sdk1.3.1/src/solaris/hpi/src/memory_md.c

Re: Detecting executable jar files

2001-01-24 Thread Paul Mclachlan
even be compressed. I would recommend relying upon the .jar extension, and, if you're paranoid, verifying that it's in the format of a .zip file. I'm pretty sure you can't make any guarantees about the first 128 bytes and executable jar files. - Paul -- Pa

Re: Does -Xrunhprof work correctly with Hotspot? Or does -green turn HotSpot off?

2001-01-19 Thread Paul Mclachlan
n screaming my head off, too. Short answer: wait for 1.3.1 to make it to beta / early access - at the moment it's only available within Sun and a few companies Sun allows to access such things. Most of these bugs have been fixed in that (already). Until then, turn off hotspot if you want to

Re: JRE as part of Linux

2001-01-19 Thread Paul Mclachlan
what they do. (Compare IE load times vs Netscape. Remember the complaints that it was because IE is half in memory all the time? The answer, of course, is 'who cares?' - it still starts in 50%/20%/10% of the time) Not quite pure speculation on my part, but close. ;) Paul

Re: JNI problem

2001-01-09 Thread Paul Mclachlan
with the time to answer knows ;) > java version "1.2.2" > Classic VM (build 1.2.2-L, green threads, nojit) Have you tried native threads? Set THREADS_FLAG=native and see what happens. You might get lucky. Paul -- Paul Mclachlan ([EMAIL PROTECTED]) Software Eng

Re: JNI pthreads problem

2000-12-14 Thread Paul Mclachlan
at, I'm still in agreement with you about the outcome - do it in a seperate VM, not using the invocation API. Yes, it's quicker, yes it will work better on Windows (where all threads are equal ;), and yes it's more work. But I'd expect some unstability to come from trying to d

Re: JNI & _init() function in .so file

2000-02-07 Thread Paul Mclachlan
At 10:17 02 Feb 2000 -0600, [EMAIL PROTECTED] wrote: > Q1: I was told that when java jni loads .so file, the first function been > called is _init(). Can I use it as a constructor to setup something when > java app loads the .so file? If I put _init() func in .so C source file, > compiler gener

Re: starting a java server at boot time

2000-02-04 Thread Paul Mclachlan
At 8:58 02 Feb 2000 -0800, [EMAIL PROTECTED] wrote: > Brett, > If the boot up process stalls, it could be caused by > an unresolved hostname, or something else the server is trying > to find out at startup. > > You could start the server in the background, by adding a > '&' after the command

Re: Odd Sun JDK problem

2000-02-04 Thread Paul Mclachlan
At 14:52 02 Feb 2000 -0500, Timothy Reaves wrote: > I'm trying to end my use of windows. Now that JBuilder is available > for linux this MIGHT happen. I say might because I'm having a very > strange problem. > > I have an RMI server. When I brought it over this morning, I > compiled,

Re: What is JDK 1.3 like?

1999-11-15 Thread Paul Mclachlan
At 12:05 11 Nov 1999 -0700, Riyad Kalla wrote: > This is a question for the developers/porters on the > Blackdown team. > > Q: After looking at the JDK 1.3 code, how portable does it > look? Is it much different from 1.2? Or do you think you'll > have a much easier time porting it? I understand

Re: A Global instance ?

1999-10-13 Thread Paul Mclachlan
At 5:31 10 Oct 1999 -0600, Robert Simmons Jr. wrote: > I have a gizmo that keeps track of resources for a program. The problem > is that Im ending up passing this gizmo to every child component and > that is beginning to bug me. In C++ I ould just create a global static > var and let everyone ac

Re: Stupid Newbie Questions: Catching unanticipated null pointer exceptions (Are there really any other kind =^)

1999-10-11 Thread Paul Mclachlan
At 1:07 10 Oct 1999 -0500, James G. Stallings II wrote: > I guess what I'm looking for is some solid suggestions for debugging. > Should I write some kind of exception catcher for the null pointer > exception? It happens early in the code execution; here's the dump: > > Exception in thread "mai

Re: Applet transparency?

1999-10-07 Thread Paul Mclachlan
At 12:24 10 Oct 1999 -0500, Roll, Greg wrote: > Anyone know if there a way to set an applets background color to be > transparent? Wouldn't that be wonderful? I wish there was, too. A couple of ideas. If it's just a colour you're after, just set it in the applet. An option is to have a tiny

Re: Class information in a static method

1999-10-07 Thread Paul Mclachlan
At 8:32 10 Oct 1999 -0500, Weiqi Gao wrote: > Jesper Nordenberg wrote: > > > > Is there any way to obtain the Class-instance associated with the > > current class in a static method? Obviously, this.getClass() doesn't > > work ;) > Use the special variable 'MyClass.class'. (not in 1.0.2) Pa

Re: JSP Examples in Jetty

1999-06-27 Thread Paul Mclachlan
om.mortbay.HTTP.Handler.NotFoundHandler #--- Exception --- # # If we catch an exception, just output it with the default exception # handler. # main.root.Default.CLASS : com.mortbay.HTTP.Handler.DefaultExceptionHandle

Re: FW: Warning: could not send message for past 4 hours

1999-06-14 Thread Paul Mclachlan
--- "Herbel, Rick" <[EMAIL PROTECTED]> wrote: > + exec /usr/local/java/bin/i686/green_threads/java -verbose > -verbosegc > -cs -verify -classpath ./ HelloWorld.class > Unable to initialize threads: cannot find class > java/lang/Thread It's this last line that's having the problem. -classpath ove

Re: TYA-problems

1999-06-07 Thread Paul Mclachlan
--- "Nolte, Holger" <[EMAIL PROTECTED]> wrote: > Does anybody knows something about errors in the tya jit ? (It > is not so > easy to eliminate our error) > Can anybody tell me if thereare other JITs working fine for > jdk1.1.7 or can > someone share his experience using JIT under linux ? I run

Re: Release?

1999-05-25 Thread Paul Mclachlan
--- Christer Olsson <[EMAIL PROTECTED]> wrote: > You have probably heard this question a thousands times by now > but... > When are you planning to release an official JDK1.2? Are you subscribed to this list or just posting a question? I never can tell. Just the other day Steve posted a messag

Re: Thread in the Linux's JVM

1999-01-16 Thread Paul Mclachlan
At 11:59 11 Nov 1999 -0600, [EMAIL PROTECTED] wrote: > This sounds to me like Java and C/C++ native code can talk to each other > only if they (java and native code) are in the same thread. Is it right, or > in the same process? > > Suppose C/C++ native code creates another thread within the sh

Re: [Partially OT] A Java parser - part 2

1999-01-16 Thread Paul Mclachlan
At 18:43 11 Nov 1999 +0100, Kontorotsui wrote: > What I want to do is a tool that "flattens" the class hierachy to improve > performance. In this way I'll be able to write properly structured code but the > tool will cut away performance-wise useless classes and method before I compile. > I know