Re: JDBC for mysql?

1999-10-15 Thread jools enticknap
Hi Brian There are two available drivers for MySQL. http://www.tcx.se/Contrib/ Look for JDBC. :-) I use the mm.mysql driver, the twz driver seems to be a little overkil. Best regards --Jools P.S. If you have any Linux JDBC questions, TCX have there own mailing list, I suggest that you jo

Re: Const in java

1999-10-13 Thread jools enticknap
Hi Robert, Adding the final keyword to a variable in an argument list only means that the reference is final, ie you can't make the reference refer to another object. I does not mean that I can't call certain methods in the same way as C++. Regards --Jools >From: "Robert Simmons" <[EMAIL PR

OT Re: Class information in a static method

1999-10-07 Thread jools enticknap
>This might be slightly off topic, but I really need help with this. > >Is there any way to obtain the Class-instance associated with the current >class in a static method? Obviously, this.getClass() doesn't work ;) > If the class is call com.blah.Stuff, use com.blah.Stuff.class; to get the jav

Re: debuggers for Java-JNI-C++

1999-09-21 Thread jools enticknap
Hi I was hoping that somebody might come up with a better solution to the one I currently use ( as it's very flaky ) so I though I'd post the way I debug JNI on Linux. 1) Get a copy of ddd. ( Plase don't post messages as to how you get it, it'll just piss of the rest of the guys ) 2) Us

Re: Problem with JNI_CreateJavaVM()

1999-09-20 Thread jools enticknap
Hi Add the JNIGetDefaultJavaVMInitArgs, plus you need to add your class path to vm_args.classpath I have a C++ class which does all this for you, email me off list and I'll send it to you. Regards --Jools >From: Pierre Heroux <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Problem

Re: Gosling says he wants to support Java on Linux

1999-09-09 Thread jools enticknap
This is not a flame, just a comment :-) Or perhaps it's just down to the fact that the JVM was originally coded on Solaris. Although Solaris and Linux are fairly common on a number of fronts, they differ on a great many too. Perhaps the best way to solve the problem ( although it's more

Re: Off-Topic (JNI)

1999-07-26 Thread jools enticknap
Hi Hope this code answers your question .. Best of luck. --Jools JNIEXPORT void JNICALL Java_MyFunction (JNI Env *env, jobject my_object,jobjectArray my_array) { // It's always a good Idea to get the length of the array first. jint len = (*env)->GetArrayLength( my_array ); // Check th

Re: JNI/Linux pointers?

1999-07-15 Thread jools enticknap
Hi > >Does anybody have any pointers to using JNI on Linux? I'm starting a >project where I'll be hacking pine to access a running Java process. > JNI on Linux is much the same on all platforms( more or less:). If you want a good book on JNI I suggest you try 'Essential JNI' by Rob Gordon. It'

Re: JAVA multithread questions.

1999-07-13 Thread jools enticknap
Hi This sort of problem is fairly common and Java is more than capable of dealing with it. I would guess from the questions that you have asked, you need a little information on both Threads and the networking API. There are two resources that I would recommend; 1) The Java Tutorial

Re: Has Sun Overstretch Themselves With So Many APIs?

1999-07-08 Thread jools enticknap
>I am wondering if Sun has overstretch itself in trying to develop so >many APIs? It seems to me that they are struggling and there is enough >support and help to help outsiders (like Blackdown who done an excellent >job porting the software)? Perhaps this is a direct result of trying to bring

Re: IBM-jdk

1999-07-08 Thread jools enticknap
>how would you go about upgrading from glibc 2.0 to 2.1. >(it is glibc2.0 in redhat5.1, is it?) and is it a trivial matter, >or can it be very messy? I'm relatively new in Linux. It's not for the faint hearted, and it can get a bit messy. Use a 2.1 based distribution if you can. Check out the n

Re: Swing -- AWT dependencies

1999-07-08 Thread jools enticknap
>I was wondering to what extent Swing depends on the native AWT Toolkit in >the JVM. In (simplistic) theory the toolkit primarily needs to be able to >supply a particular platform's implementation of a frame, and a drawing >surface. In other words, the only heavyweight peers involved are for fram

Re: IBM-jdk

1999-07-08 Thread jools enticknap
>Anybody played around with the IBM-JDK for Linux? I've run one >test-program that creates 10 threads, allocates an array and puts some >random numbers in that array. It seems extremely fast. It beats kaffe >(by a large margin) and even the SUN-JDK on Solaris (with a faster >processor)! > Yep

Re: Java3D and 'main()'

1999-07-07 Thread jools enticknap
Ops Sorry. Forget this post, I just noticed that you did have setVisible( true ) in your code. Time to crawl under a stone !!! --Jools >From: jools enticknap <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED], [EMAIL PROTECTED] >Subject: Re: Java3D and 'main()' >Dat

Re: Java3D and 'main()'

1999-07-07 Thread jools enticknap
Hi Rob I would suggest that you add win.setVisible( true ) after initialization in order to get AWT to manage the window. Regards --Jools >From: Rob Nugent <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Java3D and 'main()' >Date: Wed, 07 Jul 1999 15:57:05 +0100 > >I am sure that the

Re: UnsatisfiedLinkErr in JNI

1999-07-07 Thread jools enticknap
Hi I use JNI a great in my current work, and normally find that when I get this exception it is a typo. Try running javap -s and make sure that signatures match up. Regards --Jools >Hi, > >I got an UnsatisfiedLinkErr exception in calling a second native method >from Java (not a nested

Re: favorite code beautifiers?

1999-07-06 Thread jools enticknap
> >Hendrik Schreiber wrote: > > Michael Thome wrote: > > > > > Any suggestions for nice code beautifiers (for java)? Beautifiers > > > written in java would, of course, be preferred, but as long as it runs > > > under linux (C/C++/whatever)... > >Artistic Style was quite nice. > >-- >Rachel Chec

Re: JVMDI ( Calvin perhaps ? )

1999-07-06 Thread jools enticknap
>jools enticknap wrote: > > > > Hi > > > > I was wondering if anyone can shed any light on how SUN are going to >license > > the JVMDI code. > > > > I've loocked around on the Community license web page, but failed to >locate > > an

JVMDI ( Calvin perhaps ? )

1999-07-06 Thread jools enticknap
Hi I was wondering if anyone can shed any light on how SUN are going to license the JVMDI code. I've loocked around on the Community license web page, but failed to locate anything. I noticed we currently have the header file in the 1.2 release, but alas there is no library to accompany it.