JDK 1.2.2 mm.MySql jdbc driver and Mysql
Hi, I'm having some problems configuring my Java programs to use the mm.Mysql jdbc driver. I've searched through the mailing list archive but it hasn't helped me to overcome my problem. It al comes down to the definition of my classpath to which I have to add the path to the mm.MySql library. In the JDK 1.2.2 release no classpath is configured and I can't seem to find the classes.zip file containing all the java classes. How do I come about this problem? INFO: Linux RedHat rel. 6.1 JDK 1.2.2 (pre3) found in /usr/jdk122/ Mysql ver. 5.3 Distrib 3.20.32 mm.Mysql ver 1.2a found in /usr/jdk/mm.Mysql-1.2a/ my working dir is /hro/ It's here I work on my java programs and try to compile these. Med Venlig Hilsen / Best Regards Henrik Krobath Olesen Department of Computer Science Aalborg University - Denmark Web: www.cs.auc.dk/~krobath E-mail: [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: JDK 1.2.2 mm.MySql jdbc driver and Mysql
Henrik Krobath Olesen wrote: > Hi, > > I'm having some problems configuring my Java > programs to use the mm.Mysql jdbc driver. I've > searched through the mailing list archive but it > hasn't helped me to overcome my problem. It al > comes down to the definition of my classpath > to which I have to add the path to the mm.MySql > library. In the JDK 1.2.2 release no classpath is > configured and I can't seem to find the > classes.zip file containing all the java classes. > How do I come about this problem? > There is no more classes.zip in JDK1.2. This is now replaced by rt.jar which can be found in $JAVA_HOME/jre/lib. You can still specify a CLASSPATH if you want, though it is no longer necessary to specify the standard classes which are located in rt.jar (or any standard extensions you have installed). If the Mysql JDBC driver is distributed in a jar then add the name of the jar to your classpath. For example, if the jdbc driver is distributed as mysql.jar then try: CLASSPATH=.:/usr/jdk/mm.Mysql-1.2a/mysql.jar This will allow you to compile/run classes from your current directory which use the JDBC driver found in your path. You might also look at the "java -cp" option as an alternative to setting a classpath. This is all documented in the standard JDK1.2 docs. Good luck. -- David Marshall email: [EMAIL PROTECTED] VM Systems, Inc. phone: 1-941-596-2480 Naples, FL USA fax: 1-941-596-2483 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
RE: JNI and Dead Thread on Linux
Juergen, Thank you and all other people responding to my e-mail. Yes, you are right. I forgot to change the function name in C file after moved the native function declaration into another java class. Sorry for the careless mistake. Regards, Lee -Original Message- From: Juergen Kreileder [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 27, 2000 5:24 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: JNI and Dead Thread on Linux > Lee Xing writes: Lee> -Original Message- Lee> From: Jo Uthus [mailto:[EMAIL PROTECTED]] Lee> Sent: Thursday, January 27, 2000 1:31 AM Lee> To: [EMAIL PROTECTED] Lee> Cc: [EMAIL PROTECTED] Lee> Subject: Re: JNI and Dead Thread on Linux Lee> [EMAIL PROTECTED] wrote: Lee> | Q1: Lee> | Lee> | command line command "ps -a" shows 4 java (JVM) running. Lee> | Why there are so many JVMs running, and what they are for? Lee> Threads in Linux show up as processes when using 'ps' or 'top'. Lee> [Lee] Lee> But the code has only a infinity loop and doesn't create any thread Lee> or process. Java uses threads internally too. E.g. one thread for the GC, one for handling SIGQUIT, ... You'll get thread dump by sending SIGQUIT to java (e.g. press Ctrl-\ in shell where you've started java). Lee> | Q2: Lee> | Lee> | I want to load *.so file in a class other than java application's Lee> | public class. In this way, the shared lib files are loaded only Lee> | when they are needed. But the following code doesn't work. Lee> | Lee> [snip] Lee> | System.loadLibrary("MsgImpl"); Lee> [snip] Lee> | Got an error msg when run it, the error msg is: Lee> | "java.lang.UnsatisfiedLinkError: ShowMessage at Lee> | ShowMsgBox.main(ShowMsgBox.java:6)" This means that java can't find the native implementation of ShowMessage, check the name of your C function. Juergen -- Juergen Kreileder, Blackdown Java-Linux Team http://www.blackdown.org/java-linux.html -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Threads
Hello, I'm using JDK1.2.2 and Suze6.2. Can someone tell me how I can use the option "green threads" of VM instead "native threads"? Thank You. Daniel FONTAINE Université de Versailles Saint-QUENTIN en Yvelines FRANCE [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]