Re: Regexp utility classes..

1998-06-29 Thread Kevin Ryan

I haven't tried these -- but here's a link to an existing package (that
uses perl5-style regexps):

http://www.win.net/~stevesoft/pat/




Re: NETBEANS INSTALL

1998-09-21 Thread Kevin Ryan

Hi, Syed,

To paraphrase Jerry McGuire:

"Show us the CLASSPATH."

Best Regards,
KR

Syed Mubin wrote:
> ...
>   Hi,
> 
> I'm trying to install Netbeans  nbdv20b3.sh on JDK1.1.6 but
> not sucessful.I also have installed SWING1.0.3 the SwingSet example is
>  working fine but when i wrote a simple program it shows the following
> errors.
> 
> -
> CLASSPATH SET
> ...
> ERRORS SHOWN
> 
> SimpleSwing.java:3: '{' expected.
> interface com.sun.java.swing.*;
>  ^
> SimpleSwing.java:7: Superclass JApplet of nested class com. SimpleSwing
> not found.
> public class SimpleSwing extends JApplet
>  ^
> 2 errors
> 
> 
> Is it compulsory to have swing installed for working netbeans?
> 
> Please help
> 
> Syed Mubeen



Re: Swing: Can't find class ClassName

1998-09-22 Thread Kevin Ryan

Since your class is inside a package, you'd need to refer to it this way:

java JFCBook.Chapter2.BasicFrame

(or get rid of the qualifying package name before compiling it)

Separately, do you have SWING_HOME set?  (This may not be necessary under
Linux, but on Solaris and WinXX it is.)



William Tchen wrote:
>  I include the example file that I want to compile here:
> 
>  package JFCBook.Chapter2;
> 
> import com.sun.java.swing.*;
> 
> public class BasicFrame {
> public static void main(String[] args) {
> JFrame f = new JFrame("Simple Frame");
> f.setSize(250, 200);
> f.setVisible(true);
> }
> }
> 
> When I compile this file, there is no error message. But when I run it using
> 'java BasicFrame'
> it says 'Can't find class BasicFrame'. Have you ever experience this before?
> Thanks for time.
>  William Tchen



Re: Slow loading on AMD Elan 486

1999-03-04 Thread Kevin Ryan

The 1.1.7v1a JDK runs great on my AMD DX4-100 w/32Mb RAM.

Since one can get something roughly 20x as fast as my machine for $500
these days, I'm not sure I understand why agonizing over the JDK's
performance on a 486/33 is worthwhile.

Linux itself, of course, will run great even on a 386/25 with 8Mb (I did
this for a long time). 

But the JDK, particularly JDK 1.2 (a/k/a Java2), has a bit more bulk to it.

JDK 1.2 for Linux arrives tomorrow (Thurs.), apparently.  I can assure you
it won't run well on a 486/33 -- but for a few bucks worth of hardware,
you'll have a great JDK on a great OS.


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



Re: Slow loading on AMD Elan 486

1999-03-04 Thread Kevin Ryan

My apologies to the list for my apparently misguided remarks re. buying new
hardware.


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



Re: JDK 1.2 pre-v1: Missing shared library

1999-03-09 Thread Kevin Ryan

RTFM

The workaround was posted many messages ago


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



Re: Java wrappers

1999-05-25 Thread Kevin Ryan

You can use JNI (the Java Native Interface) to accomplish this.

a) your C/C++ functions have to be packaged in a shared library (which
you'd already anticipated)

b) the entry point for your C/C++ code has to use a Java
package-and-class-specific "mangled" name -- e.g., if your Java wrapper
class is "Wrapper" and that class is in package "Enclosure", you might have
a Java class such as:

package Enclosure;

public class Wrapper {

public Wrapper() {
// ...
}

// (only) declare in Java; implement in C/C++ code
public native String[] getKernelStuff();
}

which would result in a C function name for getKernelStuff() that includes
both the package and class names:

#include 

JNIEXPORT jobjectArray JNICALL Java_Enclosure_Wrapper_getKernelStuff
  (JNIEnv *env, jobject theObj) {

// ...
}


You can pass Java data types to your C code, and xfer/convert Java/C data
types in both directions.

Build your C/C++ code as a shared library, then load that library via Java
using the System.loadLibrary("shortLibName") function, as in:

public class TestTheWrapper {

public static void main(String[] argv) {
// this actually loads libWrap.so
//  (name is platform neutral -- pre/suffixes 
//  are added implicitly
System.loadLibrary("Wrap");
Enclosure.Wrapper w = new Enclosure.Wrapper();
w.getKernelStuff();
}
}


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



Re: javacomm

1999-07-04 Thread Kevin Ryan

The Sun comm API stuff is at:
http://java.sun.com/products/javacomm/index.html


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



Re: Bug # 4123598 reintroduced in j2se1.4?

2002-02-22 Thread Kevin Ryan

Nissyen wrote:
> I have recently tried the new sun j2se distro, and I found that a bug which had
> been closed in jdk1.2fcs seems to have reared its ugly head again. Specifically
> bug 4123598
> (http://developer.java.sun.com/developer/bugParade/bugs/4123598.html). After
> trying to interactively place a window it just places it at the upper left hand
> side of the screen.
> Has anyone else had this problem?
> Chris

#4102292, which is still open, is related.

see:
http://search.java.sun.com/Search/java?qt=4123598&col=obug&rf=0

If you think a more specific/focused (new) bug should be filed, you may
want to follow up with Sun:
http://java.sun.com/cgi-bin/bugreport.cgi


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