Re: Java interface to MySQL
Corey Shelton wrote: > I was told that there's a JAVA web interface for MySQL that works much > better than the one currently in Perl. Could someone point me in the right > direction? Here's my setup (from a post in comp.databases): I needed to do some web database stuff on Linux. I got up and running fairly quickly, so I thought I'd post a note about exactly what packages I installed. The packages I picked were MySQL, Apache, PHP3, JDK1.1.6, JDBC, and Red Hat Linux 5.1. In particular, the RPM's ftp://ftp.redhat.com/pub/contrib/hurricane/i386/apache_php3-1.3b6-1.i386.rpm ftp://ftp.redhat.com/pub/contrib/hurricane/i386/libgd-1.3-2.i386.rpm http://mysql.he.net/Downloads/MySQL-3.21/RPMS/i386/mysql-client-3.21.32a-rh50.1.i386.rpm (You may need to retrieve the RPM's with plain old FTP, not with a web browser. Web browsers tend to get confused by the extension.) plus Java support (these aren't RPM's) ftp://ftp.tux.org/pub/java/JDK-1.1.6/i386/glibc/v4a/jdk1.1.6v4a-i386-glibc.tar.gz http://www.worldserver.com/~mmatthew/mysql/dist/mm.mysql.jdbc-1.1.zip Here's example PHP2 code (pretty easy to convert to PHP3; PHP3 code available several places I can't recall just now): http://www.webtechniques.com/features/1998/01/note/note.shtml All these things seem to be playing together nicely for me. For more info on PHP3, see http://www.php.net/ For more info on MySQL, see http://mysql.he.net/ For more info on Java under Linux, see http://www.blackdown.org/java-linux.html For more info on a jdbc driver for mysql, see http://www.worldserver.com/~mmatthew/mysql/ Be sure to read the MySQL documentation and try out a few examples. The FAQ in the doc really does get you through most common questions. - Dan
Here's a strange problem ...
I'm using JDK1.1.6v4a on a libc system, and everything seems to be working fine. I installed the SOLID web server database and the SOLID JDBC driver, then tried out their bundled sample applications and applets. Strange thing is , the applets work fine, but the applications do not. Now, the applications require you to type in the jdbc connect string at the prompt. Try as I might, I kept getting an 'No suitable driver' error. BUT, when I run the applet, the connection works fine and I can do all my queries and stuff with the JDBC driver. This tells me a couple of things: 1. the JDBC driver is probably working 2. the SOLID server database is working 3. there's probably something wrong with the syntax. After looking through the code for the sample programs, I couldn't find any difference between the applet code and the application code (where establishing the connection is concerned), so I got to thinking what I'm doing wrong ... Is it possible that the application reads the Carriage Return as another character ? Is that why the connect string is (always) wrong ? If that is so, how can I suppress the Carriage Return ? I'm using Slackware 3.5, running WindowMaker and I have the problem whenever I use Rxvt and/or xterm. Any help will be deeply appreciated ! Regards, Pascal Chong Singapore
urgent help needed please.......Rý??²? ü¢??*sü ^£?³ý¬???ý´?¶¹¥
i am getting undefined symbol errors when System.loadLibrary is loading shared object file. i have a java class called "hello" ( very simple one like we all imagine) it has a single native method and the native method implementation is in "hello.c" the native method implementation in hello.c makes a call to "lstat" my gcc compile options are %gcc -g -shared -lc_nonshared -I/usr/include -I/usr/share/jdk1.1.6/include -I/usr/share/jdk1.1.6/include/genunix -L/lib -L/usr/lib -L/usr/share/jdk1.1.6/lib -L/usr/share/jdk1.1.6/lib/i686/green_threads hello.c -o libhello.so by doing "nm" i find out that libhello.so has "lstat" with "U" meaning that it is still undefined. %java hello ./libhello.so: undefined symbol: lstat (libhello.so) Can't find class hello i know that /lib/lib.so.6 has "lstat" undefined (i mean U) and /usr/lib/libc_nonshared.so has "lstat" defined ( i mean W) why is the libhello.so still having "lstat" as undefined (i mean U) even though i am providing "gcc" the -l/c_nonshared option ur help is greatly appreciated -- seshu [EMAIL PROTECTED] satya seshu kumar dammu|4087332589|[EMAIL PROTECTED] http://www.cslab.uky.edu/~ksdamm0 Dream BIG. because dreams so small ... hath no power to move men More than just email--Get your FREE Netscape WebMail account today at http://home.netscape.com/netcenter/mail
Re: Kaffe and Serialization (was Re: Kaffe and HJBrowser)
>Speaking of things that might be "beyond-spec", are Kaffe's standard >classes and the Sun JDK classes Serialization compatible? For example, >if I were to Serialize a java.awt.Panel generated by a Kaffe VM, and >send it over a network to a Sun VM, could the Sun VM deserialize it >properly to its java.awt.Panel? OK, I'm not Peter, but I can tell as much as that the serialization is NOT compatible Regards Brian
Re: urgent help needed please.......Rý??²?ü¢??*sü^£?³ý¬???ý´?¶¹¥
satya seshu kumar dammu wrote: > %gcc -g -shared -lc_nonshared -I/usr/include > -I/usr/share/jdk1.1.6/include > -I/usr/share/jdk1.1.6/include/genunix -L/lib -L/usr/lib > -L/usr/share/jdk1.1.6/lib > -L/usr/share/jdk1.1.6/lib/i686/green_threads hello.c > -o libhello.so > > why is the libhello.so still having "lstat" as undefined (i mean U) > even though i am providing "gcc" the -l/c_nonshared option Why are you using -lc_nonshared? I'm not familliar with that... lstat is surely defined in the standard c shared library... - Dan
Re: Java interface to MySQL
[EMAIL PROTECTED] wrote: > Corey Shelton wrote: > > I was told that there's a JAVA web interface for MySQL that works much > > better than the one currently in Perl. Could someone point me in the right > > direction? > > Here's my setup (from a post in comp.databases): > > > plus Java support (these aren't RPM's) > ftp://ftp.tux.org/pub/java/JDK-1.1.6/i386/glibc/v4a/jdk1.1.6v4a-i386-glibc.tar.gz > http://www.worldserver.com/~mmatthew/mysql/dist/mm.mysql.jdbc-1.1.zip > You can also try Terrence W. Zeller's JDBC driver for MySql Probably at `http://www.tcx.se/' under contributed software. I dunno which JDBC is best, though Cheers Peter -- import java.std.disclaimer.*; // "Dontcha just love the API, baby bop!" Peter Pilgrim Dept:OTC Derivatives IT, Deutsche Bank (UK) Ltd, Groundfloor 133 Houndsditch, London, EC3A 7DX Tel: +44-545-8000 Direct: +44 (0)171-545-9977 Fax: 0171-545-4313 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Re: JAVA-LINUX
> Hi, i'm using RH 4.2 and i installed jdk1.1.6 for linux. > The installation was susccesfully. > I wrote a litle code(Hello Wold) but when i run javac Hello, it gives me a > message like that one: > > No Library path set. > Failed to locate native function: > java/lang/System.currentTimeMillis()j -- What about upgrading RH 4.2 to RH 5.x ? ;-) Paul
Re: Object Mapping into sql dbms?
> There are a large number of commercial products available to map java > objects into relatonal databases (I use one called VBSF for some > commercial products). > > But are there any Open Source tools to do this? I am interested in > contributing to such a project as I need it for several open source > projects I have planned. We work at present on a project called "linux-kontor". It's completly implemented in Java and it's GPL. http://www.ios-online.de/Linux-Kontor In our architecture, we use an layer called "ObjectServer", which administers Java objects in Database-tables. Subobjects and arrays are stored automatically into the respective (different) tables. Each attribute is mapped to a column. Classnames and tables can be used freely. As a prerequisit all objects must be derived from a certain base class. These receive a ID, which is global unique and is used for the administration of links and to identify the objects. Version conflicts of the objects are autmatic detected and announced. Also "normal" Java objects can be loaded and stored, however only with the additional specification of the respective tables and without use of Subobjects. The "ObjectServer" is part of our framework and used in different projects. If your are interested, please contact us. Greetings, Bernd -- Bernd Wengenroth IoS Gesellschaft für innovative Softwareentwicklung mbH Donatusstraße 127-129 WWW: http://www.IoS-online.de 50259 Pulheim email: [EMAIL PROTECTED] Tel: 02234 / 986434 Fax: 02234 / 986433
Start Office and Java
To All, Has anyone used StarOffice 5 for Java yet ? Is it any good ? I wonder if 'wine' will go the java route ? Matt
Java Makefile [ was Delete all class files ]
> Keith T. Garner wrote: > > > > > > On Mon, Sep 14, 1998 at 07:17:17, David Warnock said: > > > > I thought I should be able to connect "find . -name *.class" to > > "rm" > > > > somehow using redirection or pipes but cannot get it to work. > > > > > > You were very close to one possible solution :) > > > > > > find . -name *.class | xargs rm > > > > > Paul Revis wrote: > > All of which is more complicated than my favorite method, which is to > > specify a separate .class file directory with the "-d" option (javac > > or > > jikes); then it's just > > > > rm -r classes\* > > I have a problem with this approach and using make, (probably because > I'm not using make correctly), in that if I use the -d option and use a > separate .class directory tree, make doesn't recognize the up-to-date > files there and recompiles everything anyway. I can never get the > "Nothing to be done for `CLASSES'" message when my Makefile looks like > > > CP = $(ROOT):$$CLASSPATH > COMPILER = jikes > VM = java > COPTIONS = -g -deprecation -depend -d $(ROOT)/classes > ROPTIONS = -Daxiomroot=$(ROOT) > > [a listing of java files here] > > %.class: %.java > cd $(@D); $(COMPILER) $(COPTIONS) -classpath $(CP) $( > run: $(CLASSES) > $(VM) $(ROPTIONS) -classpath $(CP) axiomsl.PMRunner > > > > Any ideas? > -A. Worst still with packaged java source files. However the following extracts works fo Xsql and me. # Makefile PROGRAMS = test JCLSS1 = \ xenon/util/ApplicationResources.class \ test.class JSRCS1 = \ xenon/util/ApplicationResources.java \ test.java # Set up Java compiler and flags JAVAC = javac JAVAC_FLAGS = -deprecation -g # Add the suffixes .SUFFIXES: .class .java # # Rule to compile `java' files # .java.class: $(JAVAC) $(JAVAC_FLAGS) $< all:: $(PROGRAMS) # This should rebuild all java classes from source test:: $(JCLSS1) # Run a shell program to generate launcher script test:: make-javaruntime-stub test ... The command `make all' or `make test' should now work for you. Cheers Peter -- import java.std.disclaimer.*; // "Dontcha just love the API, baby bop!" Peter Pilgrim Dept:OTC Derivatives IT, Deutsche Bank (UK) Ltd, Groundfloor 133 Houndsditch, London, EC3A 7DX Tel: +44-545-8000 Direct: +44 (0)171-545-9977 Fax: 0171-545-4313 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
116v4a glibc bug
below is a program that has a bug - it doesn't create an array
before assigning into it (happens in a constructor).
Under 116v4a/glibc, the program says "Can't find class" rather
than printing a nice stacktrace. Under 115v5,7 it sometimes
prints the stacktrace; sometimes the constructor returns
null and no (correct) error is printed.
-
// 1.1.6v4a calles the parent constructor(shape), then
// says "Can't find class bblobBUG"
// 1.1.5v5 runs, but theShape is printed as null
// search for BUG.
import java.awt.*;
import java.applet.*;
class avector {
avector() { arr = new float[3]; }
float[] arr;
}
abstract class shape
{
static avector p[][];
shape()
{
System.out.println("shape constructor, initializing");
// BUG is here: need p = new avector[2][2]
for( int ir=0; ir < 2; ir++ ) {
for( int it=0; it < 2; it++ ) {
p[ir][it] = new avector();
}
}
}
} //shape
//
public class bblobBUG extends java.applet.Applet
{
static class sphere extends shape
{
sphere() {
super();
System.out.println("sphere constructor");
}
} //sphere
//
final static int XRES= 300;
final static int YRES= 300;
static shape theShape = new sphere();
//
public static void main(String[] args)
{
bblobBUG bb = new bblobBUG();
System.out.println(theShape); // BUG: says "null"
Frame mainFrame = new Frame("bblob");
mainFrame.setSize(XRES, YRES);
mainFrame.add(bb);
mainFrame.show();
} //main
} //bblob
---
j.p.lewis [EMAIL PROTECTED]
012 345 6789 //www.idiom.com/~zilla
Re: JIT compiler TYA
> Does anyone have the URL for this or any JIT that will work with > JDK1.1.6v4a. Thanks. ftp://gonzalez.cyberus.ca/pub/Linux/java/tya1.0.tgz Cheers Alb.
Swing: Can't find class ClassName
Hi, I have a question concerning JFC. I'm using blackdown's jdk1.1.6v2 on RH5.1, and everything is working fine. I can compile the *.java files and run it using 'java classname'. But that is not the case with Swing component (Swing1.0.3). I compile a file that use Swing components (instead of awt). However, when I try to run it using 'java classname' it says 'Can't find class Classname'. I try to compile a file from Java Tutorial book ( downloadable from java.sun.com ), then run it and it works as expected. So I come back and recompile my swing java file again, compilation has no error but I still receive the same message. Anyone got some idea? Please give some suggestion, it is greatly appreciated. William Tran
Re: [Re: urgent help needed ]
[EMAIL PROTECTED] wrote: satya seshu kumar dammu wrote: > %gcc -g -shared -lc_nonshared -I/usr/include > -I/usr/share/jdk1.1.6/include > -I/usr/share/jdk1.1.6/include/genunix -L/lib -L/usr/lib > -L/usr/share/jdk1.1.6/lib > -L/usr/share/jdk1.1.6/lib/i686/green_threads hello.c > -o libhello.so > > why is the libhello.so still having "lstat" as undefined (i mean U) > even though i am providing "gcc" the -l/c_nonshared option > >Why are you using -lc_nonshared? I'm not familliar >with that... lstat is surely defined in the standard c shared >library... >- Dan then why do i get %nm /lib/libc.so.6 | grep lstat 000728c0 T __syscall_lstat 00088490 W pthread_setcancelstate %nm /usr/lib/libc_nonshared.a | grep lstat lstat.So: T __lstat W lstat since lstat is not defined in libc.so.6 i am including the -lc_nonshared option --seshu [EMAIL PROTECTED] satya seshu kumar dammu|4087332589|[EMAIL PROTECTED] http://www.cslab.uky.edu/~ksdamm0 Dream BIG. because dreams so small ... hath no power to move men More than just email--Get your FREE Netscape WebMail account today at http://home.netscape.com/netcenter/mail
Re: Swing: Can't find class ClassName
I have a question concerning JFC. I'm using blackdown's jdk1.1.6v2 on RH5.1, and everything is working fine. I can compile the *.java files and run it using 'java classname'. But that is not the case with Swing component (Swing1.0.3). I compile a file that use Swing components (instead of awt). However, when I try to run it using 'java classname' it says 'Can't find class Classname'. I try to compile a file from Java Tutorial book ( downloadable from java.sun.com ), then run it and it works as expected. So I come back and recompile my swing java file again, compilation has no error but I still receive the same message. Anyone got some idea? Please give some suggestion, it is greatly appreciated. William Tran I notice that you use "java classname" with a lower 'c' and the error says "Classname" with a capital 'C' Perhaps this is the problem Regards Wim
Re: 116v4a glibc bug
> J P Lewis writes:
> below is a program that has a bug - it doesn't create an array
> before assigning into it (happens in a constructor).
> Under 116v4a/glibc, the program says "Can't find class" rather than
> printing a nice stacktrace. Under 115v5,7 it sometimes prints the
> stacktrace; sometimes the constructor returns null and no (correct)
> error is printed.
This is a known Sun bug in 1.1, it is fixed in 1.2b4.
Actually java should report something like:
shape constructor, initializing
Exception in thread "main" java.lang.ExceptionInInitializerError:
java.lang.NullPointerException
at bblobBUG.(bblobBUG.java:48)
The bug can be reproduced very easy:
// Test.java
class C
{
static Object[] objs;
static {
objs[0] = null;
}
}
public class Test
{
static C c = new C();
public static void main(String[] args) {}
}
Juergen
--
Juergen Kreileder, Universitaet Dortmund, Lehrstuhl Informatik V
Baroper Strasse 301, D-44221 Dortmund, Germany
Phone: ++49 231/755-5806, Fax: ++49 231/755-5802
Re: 1.1.6 v4 libc 5
Steve Byrne wrote: > > Gordon Chamberlin writes: > > I have downloaded 1.1.6 v4 for libc and am testing it with > > Caldera OpenLinux 1.2. I upgraded the libc to 5.4.46 and ld.so to > > 1.9.9. > > > > I get the following error when I try running a java program: > > SIGSEGV 11* segmentation violation > > > > Remove (or rename) the libc/libdl in the lib/i386/green_threads directory. > Did you upgrade to libc and libdl *after* you got the JDK to try to make things > run, or had you done it beforehand? If the former, what versions of these > libraries did you use to have? > > Steve I upgraded after installing jdk 1.1.6 v4. Before upgrading I had libc 5.4.38 and ld.so 1.9.3. Moving libc and libdl worked. What went wrong and how can the installation process be made easier for COL users? Should I have upgraded first? Thanks for the help! -Gordon
Re: Swing: Can't find class ClassName
> William Tchen wrote: > > Hi, > I have a question concerning JFC. I'm using blackdown's jdk1.1.6v2 on > RH5.1, and everything is working fine. I can compile the *.java files > and run it using 'java classname'. But that is not the case with Swing > component (Swing1.0.3). I compile a file that use Swing components > (instead of awt). However, when I try to run it using 'java classname' > it says 'Can't find class Classname'. I try to compile a file from > Java Tutorial book ( downloadable from java.sun.com ), then run it and > it works as expected. So I come back and recompile my swing java file > again, compilation has no error but I still receive the same message. > Anyone got some idea? Please give some suggestion, it is greatly > appreciated. > William Tran > I believe you have to explicitly place the swing jar in your CLASSPATH. I use the following: export CLASSPATH=/usr/local/swing-1.0.3/swingall.jar:. -Gordon
Mouse cursors
We are trying to set the mouse cursor to the wait cursor whenever we open a dialog box. We have method that takes in a java.awt.Component and grabs all of its contained Components and sets the cursor on it. This works with limited success. If there is a List in the main panel and you move the cursor off the dialog box and over the list beneath, the cursor shows up in the busy form - every other time. It's very consistent. One time it will be the little watch; next time, it's an arrow. Over any other component, the mouse never changes. Is this a bug or are we doing it wrong? Even better, is there a better, more "correct" way to do this? I'm using an old method written before I came to the company so I'm not terribly familiar with the workings of mouse cursors in Java. A coworker just hollered something about setting the cursor on a TextField after construction so that it will inherit any changes it to its parent's mouse cursor but I haven't had a chance to look at it yet. Does anyone have any idea? Thanks. -- Justin Lee | It's not the weight of the stone that's holding you down. JEDI | It's the way it fascinates your mind. -- Tourniquet
import.com.sun.java.swing.* what is this ?!?!?
I got this error whwn i try to compile Freebuilder whith JDK1.1.6 anyone knows what is this ?!?!? --Marcio Macedo Conectiva
Re: Swing: Can't find class ClassName
William Tchen wrote:
>
> Gordon Chamberlin wrote:
>
> > > William Tchen wrote:
> > >
> > > Hi,
> > > I have a question concerning JFC. I'm using blackdown's jdk1.1.6v2 on
> > >.
> > > Anyone got some idea? Please give some suggestion, it is greatly
> > > appreciated.
> > > William Tran
> > >
> > I believe you have to explicitly place the swing jar in your
> > CLASSPATH. I use the following:
> > export CLASSPATH=/usr/local/swing-1.0.3/swingall.jar:.
> >
> > -Gordon
>
> Thanks for your suggestion, but I think the CLASSPATH variable on my system
> is properly set (which includes
> swingall.jar), otherwise I can't compile a file that refer to Swing classes.
> My CLASSPATH is:
>
> CLASSPATH=.:/JAVA/jdk1.1.6/lib/classes.zip:/JAVA/swing-1.0.3/swingall.jar
>
> 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
Yes, I have... Since you have a package statemnet you have to type
in 'java JFCBook.Chapter2.BasicFrame'. If the class file isn't in the
directory JFCBook\Chapter2\ then you should make the directories and
put them there.
It would probably be easier to delete the package statement for now.
See if one of these work.
-Gordon
Re: Swing: Can't find class ClassName
Gordon Chamberlin wrote:
> > William Tchen wrote:
> >
> > Hi,
> > I have a question concerning JFC. I'm using blackdown's jdk1.1.6v2 on
> >.
> > Anyone got some idea? Please give some suggestion, it is greatly
> > appreciated.
> > William Tran
> >
> I believe you have to explicitly place the swing jar in your
> CLASSPATH. I use the following:
> export CLASSPATH=/usr/local/swing-1.0.3/swingall.jar:.
>
> -Gordon
Thanks for your suggestion, but I think the CLASSPATH variable on my system
is properly set (which includes
swingall.jar), otherwise I can't compile a file that refer to Swing classes.
My CLASSPATH is:
CLASSPATH=.:/JAVA/jdk1.1.6/lib/classes.zip:/JAVA/swing-1.0.3/swingall.jar
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: Swing: Can't find class ClassName
On Tue, 22 Sep 1998 14:16:39 -0700, William Tchen wrote:
>Thanks for your suggestion, but I think the CLASSPATH variable on my system
>is properly set (which includes
>swingall.jar), otherwise I can't compile a file that refer to Swing classes.
>My CLASSPATH is:
>
>CLASSPATH=.:/JAVA/jdk1.1.6/lib/classes.zip:/JAVA/swing-1.0.3/swingall.jar
I figured the classpath was correct given that it compiles...
> 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.
Well, the problem is that the class is not "BasicFrame"
but "JFCBook.Chapter2.BasicFrame"
If you remove the package statement or if you use the full class name
when trying to run the class you will be fine.
The java command needs the full class name since ther is no "import"
for the class name used to run from the command line - import is only
a compile-time typing shortcut and not a run-time item. Classes that
are not in a specific package are in the "outer" package - as in nothing
to prefix the name.
Michael Sinz -- Director of Research & Development, NextBus Inc.
mailto:[EMAIL PROTECTED] - http://www.nextbus.com
My place on the web ---> http://www.users.fast.net/~michael_sinz
Re: Swing: Can't find class ClassName
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: urgent help needed please.......Rý??²? ü¢??*sü ^£?³ý¬???ý´?¶¹¥
> satya seshu kumar dammu writes: > i am getting undefined symbol errors when System.loadLibrary is > loading shared object file. > i have a java class called "hello" ( very simple one like we all > imagine) it has a single native method and the native method > implementation is in "hello.c" the native method implementation in > hello.c makes a call to "lstat" > my gcc compile options are %gcc -g -shared -lc_nonshared > -I/usr/include -I/usr/share/jdk1.1.6/include > -I/usr/share/jdk1.1.6/include/genunix -L/lib -L/usr/lib > -L/usr/share/jdk1.1.6/lib > -L/usr/share/jdk1.1.6/lib/i686/green_threads hello.c -o libhello.so I have tried your HelloWorld2 program and it works fine on my machine. I even don't have to link against c_nonshared Is your libc of recent date? Juergen -- Juergen Kreileder, Universitaet Dortmund, Lehrstuhl Informatik V Baroper Strasse 301, D-44221 Dortmund, Germany Phone: ++49 231/755-5806, Fax: ++49 231/755-5802
Re: import.com.sun.java.swing.* what is this ?!?!?
It looks like the dot between import and com ("import.com.sun.java.swing.*")
should be a space ("import com.sun.java.swing.*"). Try an change this in the
source file.
Uli Luckas
-Ursprüngliche Nachricht-
Von: Marcio Macedo <[EMAIL PROTECTED]>
An: java <[EMAIL PROTECTED]>
Datum: Dienstag, 22. September 1998 20:16
Betreff: import.com.sun.java.swing.* what is this ?!?!?
>I got this error whwn i try to compile Freebuilder whith JDK1.1.6
>anyone knows what is this ?!?!?
>
>
>--Marcio Macedo
> Conectiva
>
>
Using Native methods from an applet
I'm trying to access a native method from an applet under netscape 4.06 (and 4.5b2) and I have managed to get the thing to almost work. It finds and loads that shared library, it invokes the native method which returns a String, but if I use the String in any context such as trying to print it, it blows up the broweser. Native methods that return ints work fine. Does anyone have any idea what this might be?? Steve -- __ Stephen Martin _ _ |/_ \ MORTICE KERN SYSTEMS INC. [EMAIL PROTECTED] ,/ \ / \ | / |( | 185 Columbia Street West (519)883-3215| | | |/ | \ / Waterloo, Ontario Fax: (519)884-8861 | | | | \ | _) Canada N2L 5Z5 \__/
Can't find class etc etc etc.
After seeing many of these messages roll by day after day I was thinking that perhaps we should create a mailing list faq of some sort that is sent to people when they first subscribe answering these basic questions? It's not that they are stupid questions, I think they are not well documented areas of Java, I just think that we may reduce the S/N ratio if we were to nail people with the answers before they ask the questions. If anyone is interested in this I could probably whip up a quick classpath/package use type thing. Comments? ../Martin
Re: Java benchmark article
Dan, I've heard the same thing from Steve Byrne, much to my dismay, but I believe our test places less emphasis on socket performance than VolanoMark does, which could mean less of a speed improvement running our benchmark. Only testing will tell, I suppose. Thanks for the info! Tom Young InfoWorld (650) 525-3407 [EMAIL PROTECTED] (Embedded image moved Dan Kegel to file: 09/16/98 07:02 PM pic15139.pcx) To: Tom Young/IWP cc: java-linux @ java.blackdown.org Subject: Java benchmark article Hi Mr. Young, I enjoyed reading your article, http://www.infoworld.com/cgi-bin/displayTC.pl?/980914analysis.htm I really liked your technique of factoring out everything but the Java VM in question. Good job! I understand that Blackdown's JDK1.1.6v4a has removed a bottleneck that impacted its Volanomark scores. I'm cc'ing the Java-Linux list so they can correct me if I'm wrong. You might want to repeat the test with that version in your copious spare time :-) The raw version is at ftp://ftp.tux.org/pub/java/JDK-1.1.6/i386/glibc/v4a/jdk1.1.6v4a-i386-glibc. tar.gz The RPM version can be installed with rpm -Uvh ftp://ftp.redhat.com/pub/contrib/hurricane/i386/jdk-sbb-1.1.6-4a.glibc.i386 .rpm or so I'm told. Thanks, Dan pic15139.pcx
Re: urgent help needed please.........
> satya seshu kumar dammu writes: > i am getting undefined symbol errors when System.loadLibrary is > loading shared object file. > i have a java class called "hello" ( very simple one like we all > imagine) it has a single native method and the native method > implementation is in "hello.c" the native method implementation in > hello.c makes a call to "lstat" > my gcc compile options are %gcc -g -shared -lc_nonshared > -I/usr/include -I/usr/share/jdk1.1.6/include > -I/usr/share/jdk1.1.6/include/genunix -L/lib -L/usr/lib > -L/usr/share/jdk1.1.6/lib > -L/usr/share/jdk1.1.6/lib/i686/green_threads hello.c -o libhello.so >I have tried your HelloWorld2 program and it works fine on my machine. >I even don't have to link against c_nonshared >Is your libc of recent date? >Juergen hi, here is some more info: %cat /usr/lib/libc.so /* GNU ld script Use the shared library, but some functions are only in the static library, so try that secondarily. */ GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a ) %rpm -q glibc glibc-2.0.7-13 %rpm -q gcc gcc-2.7.2.3-11 %ldconfig -D | grep libc ldconfig: warning: /usr/lib/libnewt.so.0.25 has inconsistent soname (libnewt.so.0.20) ldconfig: warning: /usr/lib/libnewt.so.0.25 has inconsistent soname (libnewt.so.0.20) libcrack.so.2 => libcrack.so.2.7 ldconfig: warning: /lib/ld-2.0.7.so has inconsistent soname (ld-linux.so.2) ldconfig: warning: /lib/libBrokenLocale-2.0.7.so has inconsistent soname (libBrokenLocale.so.1) ldconfig: warning: /lib/libc-2.0.7.so has inconsistent soname (libc.so.6) ldconfig: warning: /lib/libcrypt-2.0.7.so has inconsistent soname (libcrypt.so.1) ldconfig: warning: /lib/libdb-2.0.7.so has inconsistent soname (libdb.so.2) ldconfig: warning: /lib/libdl-2.0.7.so has inconsistent soname (libdl.so.2) ldconfig: warning: /lib/libm-2.0.7.so has inconsistent soname (libm.so.6) ldconfig: warning: /lib/libnsl-2.0.7.so has inconsistent soname (libnsl.so.1) ldconfig: warning: /lib/libnss_compat-2.0.7.so has inconsistent soname (libnss_compat.so.1) ldconfig: warning: /lib/libnss_db-2.0.7.so has inconsistent soname (libnss_db.so.1) ldconfig: warning: /lib/libnss_dns-2.0.7.so has inconsistent soname (libnss_dns.so.1) ldconfig: warning: /lib/libnss_files-2.0.7.so has inconsistent soname (libnss_files.so.1) ldconfig: warning: /lib/libnss_nis-2.0.7.so has inconsistent soname (libnss_nis.so.1) ldconfig: warning: /lib/libpthread-0.7.so has inconsistent soname (libpthread.so.0) ldconfig: warning: /lib/libresolv-2.0.7.so has inconsistent soname (libresolv.so.2) ldconfig: warning: /lib/libutil-2.0.7.so has inconsistent soname (libutil.so.1) libcrack.so.2 => libcrack.so.2.7 libcom_err.so.2 => libcom_err.so.2.0 libcrypt.so.1 => libcrypt-2.0.7.so libc.so.6 => libc-2.0.7.so can u tell me the following info on ur machine 1. cat /usr/lib/libc.so 2. rpm -q glibc 3. rpm -q gcc 4. ldconfig -D | grep libc 5. nm /usr/lib/libc.so.6 | grep lstat --seshu satya seshu kumar dammu|4087332589|[EMAIL PROTECTED] http://www.cslab.uky.edu/~ksdamm0 Dream BIG. because dreams so small ... hath no power to move men More than just email--Get your FREE Netscape WebMail account today at http://home.netscape.com/netcenter/mail
Re: urgent help needed please.........
Oops, I'm sorry there is a *problem* with your code. I really should do bug testing with our released versions. Your code works fine with my builds for the next release, but it fails with the released v3a and v4b builds. I'll have to give all the othe JNI bug reports a second chance too ;-) Juergen PS: I'll contact you privately for more details. -- Juergen Kreileder, Universitaet Dortmund, Lehrstuhl Informatik V Baroper Strasse 301, D-44221 Dortmund, Germany Phone: ++49 231/755-5806, Fax: ++49 231/755-5802
Re: Using Native methods from an applet
Stephen Martin wrote: > > I'm trying to access a native method from an applet under netscape > 4.06 (and 4.5b2) and I have managed to get the thing to almost > work. It finds and loads that shared library, it invokes the > native method which returns a String, but if I use the String > in any context such as trying to print it, it blows up the > broweser. Native methods that return ints work fine. > > Does anyone have any idea what this might be?? No idea... perhaps you could post the code that generates the return value? In the meantime, here's a link that goes thru the native method for Netscape stuff, for those who haven't already seen it: http://www.javaworld.com/jw-10-1998/jw-10-apptowin32.html?092198txt - Dan
