J2SE 1.4 & Linux & i686/green_threads
I downloaded the J2SE v 1.4.0 Beta version for Linux from Sun, http://java.sun.com/j2se/1.4/, and applications requiring Java_Home/bin/i686/green_threads/java won't run. After unpacking J2SE 1.4 beta, only Java_Home/bin/i386/native_threads were installed on my system. The JDK 1.1.8 bin directory contains an i386, i486, i586, & i686 directory and each of these directories contains a green_threads and native_threads directory. My question is how do I install i686 /green_threads and i686/native_threads in my J2SE v 1.4.0 /bin directory? I've tried symbolic links to the J2SE v 1.4 i386 directory and updating my PATH environment variable to point the JRE libhpi.so directory but this didn't work. Any help would be appreciated. My System Setup: Suse Linux 7.2 Kernal 2.4.4 glibc 2.2.2-38 Danny
Re: J2SE 1.4 & Linux & i686/green_threads
I tried installing JDK 1.3.1 for Linux from Sun, but it does not have the bin/i686 directory either. It only contains the bin/i386 with both the green_threads and native_threads directory. Does anyone know where to get the JDK 1.3.1 bin/i686 directory? I've tried symbolic links from bin/i686 to bin/i386 but that did not work. That led to problems with loading libhpi.so which I added to my path environment variable which only led to more problems. Danny My System Setup: Suse Linux 7.2 Kernal 2.4.4 glibc 2.2.2-38 - Original Message - From: "Greg Lewis" <[EMAIL PROTECTED]> To: "Danny" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, July 26, 2001 11:39 PM Subject: Re: J2SE 1.4 & Linux & i686/green_threads > On Thu, Jul 26, 2001 at 10:04:47PM -0700, Danny wrote: > > I downloaded the J2SE v 1.4.0 Beta version for Linux from Sun, > > http://java.sun.com/j2se/1.4/, and applications requiring > > Java_Home/bin/i686/green_threads/java won't run. After unpacking > > J2SE 1.4 beta, only Java_Home/bin/i386/native_threads were installed > > on my system. The JDK 1.1.8 bin directory contains an i386, i486, > > i586, & i686 directory and each of these directories contains a > > green_threads and native_threads directory. My question is how do > > I install i686 /green_threads and i686/native_threads in my J2SE > > v 1.4.0 /bin directory? I've tried symbolic links to the J2SE v > > 1.4 i386 directory and updating my PATH environment variable to > > point the JRE libhpi.so directory but this didn't work. Any help > > would be appreciated. > > 1.4 will only support native threads. > > -- > Greg LewisEmail : [EMAIL PROTECTED] > Eyes Beyond Mobile: 0419 868 494 > Information TechnologyWeb : http://www.eyesbeyond.com > > > -- > 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: J2SE 1.4 & Linux & i686/green_threads
Thanks for the fix Juergen. Java was being run from JDK 1.1.8 even though JAVA_HOME was set to the J2SE 1.4 home directory. Danny - Original Message - From: "Juergen Kreileder" <[EMAIL PROTECTED]> To: "Danny" <[EMAIL PROTECTED]> Cc: "Greg Lewis" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, July 27, 2001 1:02 PM Subject: Re: J2SE 1.4 & Linux & i686/green_threads > [EMAIL PROTECTED] writes: > > > I tried installing JDK 1.3.1 for Linux from Sun, but it does not > > have the bin/i686 directory either. It only contains the bin/i386 > > with both the green_threads and native_threads directory. Does > > anyone know where to get the JDK 1.3.1 bin/i686 directory? I've > > tried symbolic links from bin/i686 to bin/i386 but that did not > > work. That led to problems with loading libhpi.so which I added to > > my path environment variable which only led to more problems. > > There's no need for a i686 directory, all x86 architectures use the > i386 directory. Applications should use j2sdk1.3.1/bin/java and not > j2se1.3.1/bin/i386/{green,native}_threads/java. > > If you get an error like "java was not found in > /usr/local/j2sdk1.3.1/bin/i686/native_threads/java", then there is > something wrong with your setup. > E.g. you'll get this error when JAVA_HOME points to 1.3.1 but 'java' is > from 1.1.8: > % JAVA_HOME=~/testbed/j2sdk1.3.1 /usr/lib/jdk1.1/bin/java > java was not found in /home/jk/testbed/j2sdk1.3.1/bin/i686/native_threads/java > > > Juergen > > -- > Juergen Kreileder, Blackdown Java-Linux Team > http://www.blackdown.org/java-linux.html > Run Java 2 SE v1.3.1 on your iPAQ: > http://www.handhelds.org/pipermail/ipaq/2001-June/007221.html > > > -- > 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: lesstif - thread safe ?
Danny Backx wrote: > > Specific instructions seem to be in one of the O'Reilly > > books (see > > http://www.redhat.com/linux-info/gtk/gtk-list/1997-July/0173.html) > > > > Does anyone have it ? (I might, I'm not sure.) I checked, I only have the R5 update, not the R6 update which contains the information. Anyone ? Danny -- Danny Backx, Projectleider VisualAge Conversie KBC Bank, Arenbergstraat 7, 1000 Brussel [EMAIL PROTECTED] Tel. +32(2)429.54.75 Fax. +32(2)429.62.11
Does Java apps has to have .class extension?
Hi, Can anyone tell me does Java applications has to have .class in order for it be to executed in Linux? Dan
Re: Does Java apps has to have .class extension?
But when I try to run a example program I wrote.. and I change the extension.. I got an error stating "Can't find class Example" okay at first I tried to compile my example program: javac Example.java and I got Example.class... now I change the name of the Example.class to Example: mv Example.class Example then I made the example executable: chmod u+x Example and then I ran it... ./Example I got the error message saying: "Can't find class Example" that's what I was trying to say hehe =) Dan
Newbie...
I'm not at all familiar with Linux, and can't find a way of setting the CLASSPATH environment variable (or any other). I know this is a basic question, but I have had a good search elsewhere to no avail. I've got the 1.1.6 JDK working ok, but would like to access some other class libs. Cheers, Danny. -- Alternate address : [EMAIL PROTECTED] College Site : http://www.highpeak.ac.uk
Threads / CLASSPATH?
Hi, Thanks for all the suggestions relating to CLASSPATH - I though this would be a fairly quiet list (Java&Linux = FairlyObscure^2, mail->0), not so! I've still got a problem though. When trying to run java mpEDIT (nice basic java text editor I downloaded) I get 'Can't find class java.lang.Thread'. Now other stuff runs ok, and the lib is there in the .zip file. mpEDIT runs ok on a Windows machine. I've seen mention of the green_threads stuff (but nothing relating directly to my problem) is this related? THanks in advance, Danny. -- Alternate address : [EMAIL PROTECTED] College Site : http://www.highpeak.ac.uk
mpEDIT : Threads/CLASSPATH?
Thanks (Ernst & Michael) for the replies - I should have included the following in my query : mpEDIT is a text editor, very like wordpad, for java, free with source from : http://members.tripod.com/~mpTOOLS/mpEDIT.html Thanks (Ernst & Michael) for the replies - I should have included the following in my query : the script to run mpEDIT is as follows - java -classpath src:$CLASSPATH mpTOOLS.mpEDIT.mpEDIT $1 $2 $3 $4 the dos (.bat) version uses - java -classpath src;%CLASSPATH% mpTOOLS.mpEDIT.mpEDIT %1 %2 %3 %4 I'm trying the script under Linux (bash) and I get 'Can't find class java.lang.Thread'. The DOS version works straight away, and it's only a small file... Danny. -- Alternate address : [EMAIL PROTECTED] College Site : http://www.highpeak.ac.uk
mpEDIT : Threads/CLASSPATH?
Thanks (Ernst & Michael) for the replies - I should have included the following in my query : mpEDIT is a text editor, very like wordpad, for java, free with source from : http://members.tripod.com/~mpTOOLS/mpEDIT.html Thanks (Ernst & Michael) for the replies - I should have included the following in my query : the script to run mpEDIT is as follows - java -classpath src:$CLASSPATH mpTOOLS.mpEDIT.mpEDIT $1 $2 $3 $4 the dos (.bat) version uses - java -classpath src;%CLASSPATH% mpTOOLS.mpEDIT.mpEDIT %1 %2 %3 %4 I'm trying the script under Linux (bash) and I get 'Can't find class java.lang.Thread'. The DOS version works straight away, and it's only a small file... Danny. -- Alternate address : [EMAIL PROTECTED] College Site : http://www.highpeak.ac.uk
mpEDIT+Threads/CLASSPATH?
Thanks (Ernst & Michael) for the replies - I should have included the following in my query : mpEDIT is a text editor, very like wordpad, for java, free with source from : http://members.tripod.com/~mpTOOLS/mpEDIT.html Thanks (Ernst & Michael) for the replies - I should have included the following in my query : the script to run mpEDIT is as follows - java -classpath src:$CLASSPATH mpTOOLS.mpEDIT.mpEDIT $1 $2 $3 $4 the dos (.bat) version uses - java -classpath src;%CLASSPATH% mpTOOLS.mpEDIT.mpEDIT %1 %2 %3 %4 I'm trying the script under Linux (bash) and I get 'Can't find class java.lang.Thread'. The DOS version works straight away. This same editor is used in Jipe & Jade IDEs (both, I think, free from developer.com). Danny. -- Alternate address : [EMAIL PROTECTED] College Site : http://www.highpeak.ac.uk
Java Workshop
I've been trying to get the Linux port of JWS working on Red Hat 5.1 (the 1 CD version) and so far have had a file not found type message for gettext - I've found an RPM with this on, not had chance to install, but before I go any further, has anyone got JWS running successfully on Linux? What other dependencies are there? Thanks, Danny. -- Alternate address : [EMAIL PROTECTED] College Site : http://www.highpeak.ac.uk
How come I get this error message?
Hi, How come I get these error messages when I run java ICQ and other java applications?: SIGSEGV 11* segmentation violation stackbase=0xb270, stackpointer=0xb174 Full thread dump: "Finalizer thread" (TID:0x4064a208, sys_thread_t:0x4138ef04, state:R) prio=1 "Async Garbage Collector" (TID:0x4064a250, sys_thread_t:0x4136df04, state:R) "Idle thread" (TID:0x4064a298, sys_thread_t:0x4134cf04, state:R) prio=0 "Clock" (TID:0x4064a088, sys_thread_t:0x4132bf04, state:CW) prio=12 "main" (TID:0x4064a0b0, sys_thread_t:0x81b5670, state:R) prio=5 *current thr java.lang.Runtime.loadLibrary(Runtime.java) java.lang.System.loadLibrary(System.java) sun.awt.motif.MToolkit.(MToolkit.java:46) java.awt.Toolkit.getDefaultToolkit(Toolkit.java:402) java.awt.Window.getToolkit(Window.java:239) Mirabilis.ICQ.ListUI.ii.ã§(^G^MWARNING: Decompiling this code may viola ^Z^L) Mirabilis.ICQ.ListUI.ii.ã¨(^G^MWARNING: Decompiling this code may viola ^Z^L) Mirabilis.ICQ.NetAware.CNetAwareApp.(^G^MWARNING: Decompiling this ^Z^L) Mirabilis.ICQ.NetAware.CNetAwareApp.main(^G^MWARNING: Decompiling this c ^Z^L) Monitor Cache Dump: java.lang.Class@1080355680/1080721984: owner "main" (0x81b5670, 1 entry) java.lang.Runtime@1080355488/1080723112: owner "main" (0x81b5670, 1 entry) Registered Monitor Dump: Thread queue lock: Name and type hash table lock: String intern lock: JNI pinning lock: JNI global reference lock: BinClass lock: Class loading lock: Java stack lock: Code rewrite lock: Heap lock: Has finalization queue lock: Finalize me queue lock: Monitor IO lock: Child death monitor: Event monitor: I/O monitor: Alarm monitor: Waiting to be notified: "Clock" (0x4132bf04) Monitor registry: owner "main" (0x81b5670, 1 entry) Thread Alarm Q: _ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com
Re: How can I help?
Me too, I would like to contribute to the Linux community, and how can I help? Mike Christiansen wrote: > I have wanted to contribute to Linux for a while now. I would most like > to help make my favorite programming language successful on my favorite > OS. What can I do? > > Mike > > -- > 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]
Tips for SMP?
Hi, I was wondering if anyone had knowledge/experience with writing for a dual-processor setup - supposing a single Java app is multithreaded, will the JVM make use of SMP and boost performance? Alternatively, if you have two separate servlets (which could communicate with each other), would this get the benefit of SMP? Cheers, Danny. - This email server is running an evaluation copy of the MailShield anti- spam software. Please contact your email administrator if you have any questions about this message. MailShield product info: www.mailshield.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
C2J++ anyone?
Hi, I wonder if anyone could kindly mail me a copy of C2J, a C++ to Java translator. The site I've been looking at appears to have dead links : http://meurrens.ml.org/ip-Links/Java/joodcs/ChrisLaffra.html#C2J I recently found another prog called C2J, Russian I think, but this only did straight C. Ideally I'd like a Windows exe, but the Applet version or even C++ source would still be greatly appreciated. Thanks, Danny. - This email server is running an evaluation copy of the MailShield anti- spam software. Please contact your email administrator if you have any questions about this message. MailShield product info: www.mailshield.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
SMP ok?
Hi, Although there's a note on Sun's site about the Linux JDK not being trustworthy with multiprocessor setups, I was wondering if anyone had any experience with this. I'm running RH 6.1 (the Gentus release) with SMP kernel 2.2.15 (or thereabouts, I think), and want to get the JDK 1.2.2 running. Cheers, Danny. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]