Swing Problems

1999-09-14 Thread Robert Mullen

Are the swing classes supported in the blackdown port of the 1.2 JDK? I can
write, compile and execute code properly if I don't use swing but anything
that uses swing bombs with and a class not found error. This includes the
demo's that came with the installation. Do I need to set a classpath
specific for swing or do I need to download another package? TIA


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



java.lang.UnsatisfiedLinkError: native method java/security/AccessController.doPrivileged not found

1999-09-14 Thread Dr. Edmund Mergl US/EA4 60/2/146 #44006

Hello,

running a specific applet on Linux gives the following error
in the Netscape Java Console:


warning: running 1.2 version of SwingUtilities
# Applet exception: error: java.lang.UnsatisfiedLinkError: native method 
java/security/AccessController.doPrivileged not found: 
/usr/lib/netscape/netscape-communicator: undefined symbol: 
Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2
java.lang.UnsatisfiedLinkError: native method 
java/security/AccessController.doPrivileged not found: 
/usr/lib/netscape/netscape-communicator: undefined symbol: 
Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2
  at 
  at 
  at javax.swing.TimerQueue.sharedInstance(TimerQueue.java:48)
* at javax.swing.JApplet.(JApplet.java:107)
  at pctClient.ProductionFrame.(ProductionFrame.java:32)
  at 
netscape.applet.DerivedAppletFrame$LoadAppletEvent.dispatch(DerivedAppletFrame.java:456)
  at java.awt.EventDispatchThread$EventPump.dispatchEvents(EventDispatchThread.java:81)
  at java.awt.EventDispatchThread.run(EventDispatchThread.java:135)
  at 
netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(DerivedAppletFrame.java:911)
#


environment:  RH 6.0,  Netscape 4.6, jdk1.2pre-v2.tar.bz2
  CLASSPATH=/usr/local/jdk1.2/jre/lib/rt.jar


The  same applet runs without problems on NT-4 and on Solaris 2.6
with a similar setup.


any help appreciated

Edmund


-- 
Edmund Mergl   Alcatel SEL AG
fon +49 711 821 44006  Lorenzstrasse 10
fax +49 711 821 42303  70435 Stuttgart
mailto:[EMAIL PROTECTED]  Germany


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



Re: JNI on linux.

1999-09-14 Thread Jacob Nikom

There is no real difference between JNI on Linux and JNI on other
operating
systems (and not suppose to be). Look at Sun Java tutorial on JNI:
http://java.sun.com/docs/books/tutorial/native1.1/index.html

Take the source code for HelloWorld example and follow the instructions:
after the first step the directory listing will be:
step 1: Writing HelloWorld.java file

my_directory>ls -l
HelloWorld.java

step 2: Java compilation
javac HelloWorld.java

my_directory>ls -l
HelloWorld.java
HelloWorld.class

step 3: Generating HelloWorld.h file  (Don't use .java extension)
javah -jni HelloWorld

my_directory>ls -l
HelloWorld.java
HelloWorld.class
HelloWorld.h

step 4: Writing HelloWorldImp.c file
my_directory>ls -l
HelloWorld.java
HelloWorld.class
HelloWorld.h
HelloWorldImp.c

step 5a: Compilation of C file
gcc -I//homes/nikom/work/Java/jdk1.2/include \
 -I//homes/nikom/work/Java/jdk1.2/include/linux \
 -c HelloWorldImp.c \
 -o HelloWorldImp.o

Notice, you need to provide path to C include directory. 
It is not obvious thing to do.

my_directory>ls -l
HelloWorld.java
HelloWorld.class
HelloWorld.h
HelloWorldImp.c
HelloWorldImp.o

step 5b: creating the shared library
gcc -shared HelloWorldImp.o -o libhello.so

my_directory>ls -l
HelloWorld.java
HelloWorld.class
HelloWorld.h
HelloWorldImp.c
HelloWorldImp.o
libhello.so

step 6: Run the Program
java HelloWorld

Hello world!


Good luck,

Jacob Nikom


Justin Lawler wrote:
> 
> Hi all,
> 
> is there anywhere i can get information/documentation on using JNI on linux.
> I know you use the javah tool to create a header file for your c program, but
> where do you go from there.
> 
> any help much appreciated,
> 
> Justin.
> 
> --
> 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]



JNI and packages

1999-09-14 Thread JB


Hi all. I have created and successfully run a JNI *.so on RH6 but for
one thing.
When I package the java src that contains the native methods, I get an
UnsatifiedLinkerError for the method call. When I try to package it, it
seems to load properly but dies when I call any native methods. The
package name is fine. I thought it may be a namespace issue. Any
pointers would help.

cheers
jb


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



Help Out on Java Plug-In 1.2

1999-09-14 Thread John C. Toman

Hi,

It's difficult to tell from past posts and status page if there are
people actively working on the Java Plug-In 1.2 port to linux. I am
willing to help speed this effort in what ever way I can. Please contact
me !

Regards,

John Toman


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



JNI on linux.

1999-09-14 Thread Justin Lawler

Hi all,

is there anywhere i can get information/documentation on using JNI on linux.
I know you use the javah tool to create a header file for your c program, but
where do you go from there.

any help much appreciated,

Justin.


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



jre and native thread

1999-09-14 Thread Pierre Legay

Hello,
when I execute a very simple program ( jre Hello.class) with the
THREADS_FLAG=native
I have the message:
SIGSEGV11* segmentation violation
full thread dump:
Monitor Cache Dump:
registered monitor dump:

What is the solution ?


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



Class not found

1999-09-14 Thread Christian Posse

Hi,

sorry for maybe asking an obvious question. I have seen that problem
posted in
the past but I can't find the answer to it.

I just upgraded to  jdk 1.2pre_v2 (glibc 2.1) from 1.1.7_v3.
I have  RH 6.0. What worked before under 1.1.7 v3 does not work any
more.
(The problem is not Kaffee, I did not install it).

set MYCLASSPATH=  .:
java -classpath $MYCLASSPATH com.dir1.dir2.MyApp

Exception in thread "main" java.lang.NoClassDefFoundError:
com/dir1/dir2/MyApp

any clue would be greatly appreciated. Thanks in advance.
Christian


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



Re: JNI and packages

1999-09-14 Thread Nathan Meyers

JB wrote:
> 
> Hi all. I have created and successfully run a JNI *.so on RH6 but for
> one thing.
> When I package the java src that contains the native methods, I get an
> UnsatifiedLinkerError for the method call. When I try to package it, it
> seems to load properly but dies when I call any native methods. The
> package name is fine. I thought it may be a namespace issue. Any
> pointers would help.

The name of the native entry point is derived from the full
package+class+method name. If you rerun javah on your classfile, you'll
see it's now expecting a different name for the native function.

Nathan


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



Re: java.lang.UnsatisfiedLinkError: native method java/security/AccessController.doPrivileged not found

1999-09-14 Thread Nathan Meyers

"Dr. Edmund Mergl US/EA4 60/2/146 #44006" wrote:

Netscape doesn't support JDK1.2 with its built-in JRE. You *might* be
using the Java Plug-in (runs a new JRE with an existing browser) on
those other platforms, although I can't tell without seeing the HTML.
Unfortunately, Java Plug-in is not available for Linux.

Nathan


> Hello,
> 
> running a specific applet on Linux gives the following error
> in the Netscape Java Console:
> 
> warning: running 1.2 version of SwingUtilities
> # Applet exception: error: java.lang.UnsatisfiedLinkError: native method 
>java/security/AccessController.doPrivileged not found: 
>/usr/lib/netscape/netscape-communicator: undefined symbol: 
>Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2
> java.lang.UnsatisfiedLinkError: native method 
>java/security/AccessController.doPrivileged not found: 
>/usr/lib/netscape/netscape-communicator: undefined symbol: 
>Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2
>   at
>   at
>   at javax.swing.TimerQueue.sharedInstance(TimerQueue.java:48)
> * at javax.swing.JApplet.(JApplet.java:107)
>   at pctClient.ProductionFrame.(ProductionFrame.java:32)
>   at 
>netscape.applet.DerivedAppletFrame$LoadAppletEvent.dispatch(DerivedAppletFrame.java:456)
>   at 
>java.awt.EventDispatchThread$EventPump.dispatchEvents(EventDispatchThread.java:81)
>   at java.awt.EventDispatchThread.run(EventDispatchThread.java:135)
>   at 
>netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(DerivedAppletFrame.java:911)
> #
> 
> environment:  RH 6.0,  Netscape 4.6, jdk1.2pre-v2.tar.bz2
>   CLASSPATH=/usr/local/jdk1.2/jre/lib/rt.jar
> 
> The  same applet runs without problems on NT-4 and on Solaris 2.6
> with a similar setup.
> 
> any help appreciated
> 
> Edmund
> 
> --
> Edmund Mergl   Alcatel SEL AG
> fon +49 711 821 44006  Lorenzstrasse 10
> fax +49 711 821 42303  70435 Stuttgart
> mailto:[EMAIL PROTECTED]  Germany
> 
> --
> 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: Class not found

1999-09-14 Thread GLENH


I upgrade to jdk 1.2pre_v2 (glibc 2.1) and it is all fixed now.  It is
strange that the problem occurred right after the upgrade from Redhat 5.2
to 6.0 though.





[EMAIL PROTECTED] on 09/14/99 11:38:47 AM

To:   [EMAIL PROTECTED], [EMAIL PROTECTED]
cc:(bcc: Glen C. Hawkins/Users/Skyway)
Subject:  Class not found




Hi,

sorry for maybe asking an obvious question. I have seen that problem
posted in
the past but I can't find the answer to it.

I just upgraded to  jdk 1.2pre_v2 (glibc 2.1) from 1.1.7_v3.
I have  RH 6.0. What worked before under 1.1.7 v3 does not work any
more.
(The problem is not Kaffee, I did not install it).

set MYCLASSPATH=  .:
java -classpath $MYCLASSPATH com.dir1.dir2.MyApp

Exception in thread "main" java.lang.NoClassDefFoundError:
com/dir1/dir2/MyApp

any clue would be greatly appreciated. Thanks in advance.
Christian


--
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: JNI and packages

1999-09-14 Thread JB

Nathan Meyers wrote:
> 
> JB wrote:
> >
> > Hi all. I have created and successfully run a JNI *.so on RH6 but for
> > one thing.
> > When I package the java src that contains the native methods, I get an
> > UnsatifiedLinkerError for the method call. When I try to package it, it
> > seems to load properly but dies when I call any native methods. The
> > package name is fine. I thought it may be a namespace issue. Any
> > pointers would help.
> 
> The name of the native entry point is derived from the full
> package+class+method name. If you rerun javah on your classfile, you'll
> see it's now expecting a different name for the native function.

I tried that and ran a diff against the *.h's with and without the
package declaration and they come out on my machine exactly the same.
Can I assume then that this is not normal? 

"java -version" reports: 
java version "1.2"
Classic VM (build Linux_JDK_1.2_pre-release-v2, native threads, sunwjit)

cheers
jb


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



Alpha port

1999-09-14 Thread Brian Pomerantz

I didn't notice anything about an Alpha port on the Blackdown page.
Is such a port in progress with anyone?  I just signed the Sun
agreement and downloaded the sources today.  I thought I would start
to familiarize myself with the code on the x86 platform to start with.
Though, the Blackdown diffs probably won't work on this one since it
is JDK1.2.2.  In a couple of weeks I'll be starting a new job with
Lawrence Livermore National Laboratory and will have a couple of Alpha
boxes running Linux on my desktop.  I think I could probably devote
some time to porting the JDK to Alpha Linux since I'll have access to
the right resources.  I'm hoping someone has some pointers to give for
a port in progress.  Also, is this the only mailing list for
java-linux or is there a list that is more tailored to those doing
actually platform development?


BAPper


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



Re: JNI and packages

1999-09-14 Thread Nathan Meyers

Did you specify the right classname (with and without package) in the
two javah invocations? Did you notice that the two javah invocations
produced .h files with different names?

Nathan

JB wrote:
> 
> Nathan Meyers wrote:
> >
> > JB wrote:
> > >
> > > Hi all. I have created and successfully run a JNI *.so on RH6 but for
> > > one thing.
> > > When I package the java src that contains the native methods, I get an
> > > UnsatifiedLinkerError for the method call. When I try to package it, it
> > > seems to load properly but dies when I call any native methods. The
> > > package name is fine. I thought it may be a namespace issue. Any
> > > pointers would help.
> >
> > The name of the native entry point is derived from the full
> > package+class+method name. If you rerun javah on your classfile, you'll
> > see it's now expecting a different name for the native function.
> 
> I tried that and ran a diff against the *.h's with and without the
> package declaration and they come out on my machine exactly the same.
> Can I assume then that this is not normal?
> 
> "java -version" reports:
> java version "1.2"
> Classic VM (build Linux_JDK_1.2_pre-release-v2, native threads, sunwjit)
> 
> cheers
> jb


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



Re: JNI and packages

1999-09-14 Thread JB

Nathan Meyers wrote:
> 
> Did you specify the right classname (with and without package) in the
> two javah invocations? Did you notice that the two javah invocations
> produced .h files with different names?

Aha! So it's not 'javah MyClass' but 'javah 'org.digart.MyClass'. That
did the trick. Thanks very much for your help.

cheers
jb


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



Mapping Classes

1999-09-14 Thread Peter Mount


As I've had several requests from the Java-Linux list, mainly from a reply
I made to a query on the list last week, I've placed an early release of
my mapping class library onto the web.

Now, this is an early version. It works, but I've yet to document it.

It's available at: http://www.retep.org.uk/mapping/

I hope you find it useful.

Peter

--
   Peter T Mount [EMAIL PROTECTED]
  Main Homepage: http://www.retep.org.uk
PostgreSQL JDBC Faq: http://www.retep.org.uk/postgres
 Java PDF Generator: http://www.retep.org.uk/pdf


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