Re: I/O to HTTP url
Michael Holst wrote: > > Hello, > > I'm not a Java newbie, but I am not too familiar with the networking > classes of our dear "write once, run anywhere" language. > The problem is the following, I need to let an applet write a file to a > specified http address in order for it to work correctly. How do I > acomplish this? If I am correct, the java.io.* only works for local > files. The java.net.URLConnection will allow you to open files/connections to a url and get input/output streams on them (which you con manipulate using the java.io package). However, you will have to overcome Java's security model - simplistically, a normal applet can only access/make connections to the server from which it was downloaded. There are, I believe ways around this using signed applets and certainly JDK1.2 has a much more complex and flexible security model but I'm not an expert in either of these areas. Good luck Stuart -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
JDK1.2 awt problems, fonts
I experience the same problem as kiprian when using awt: ___ Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/Staff/grimm/temp/jdk1.2/jre/lib/i386/libfontmanager.so: libstdc++-libc6.0-1.so.2: cannot open shared object file: No such file or directory --- I made a link to the lib: ___ ln -s /usr/lib/libstdc++.so.2.8.0 ~/jdk1.2/jre/lib/i386/libstdc++-libc6.0-1.so.2 --- When linking a noticed its important what version of the stdlibc++ files you use. /usr/lib/libstdc++.a /usr/lib/libstdc++.so.2.8@ /usr/lib/libstdc++.so@ /usr/lib/libstdc++.so.2.8.0 /usr/lib/libstdc++.so.2.7.2@ /usr/lib/libstdc++.so.272@ /usr/lib/libstdc++.so.2.7.2.8 Because /usr/lib/libstdc++.so was a linked to: /usr/lib/libstdc++.so.2.7.2.8 Now I get a font problem instead: Font specified in font.properties not found [--zapf dingbats-medium-r-normal--*- %d-*-*-p-*-adobe-fontspecific] When can I get ahold of those fonts for Linux? Regards, Jon P.S> P166, 64M Linux aida 2.1.106 #1 SMP Fri Jul 10 12:57:08 CEST 1998 i586 unknown Debian 2.0 ||/ NameVersionDescription ii libc6 2.0.7t-1 The GNU C library version 2 (run-timefiles) ii libstdc++2.82.90.28-0.1The GNU stdc++ library (egcs version) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
unable to run java progs using jdk1.2
hi there i have a query.i will be thankful if answered. i was working on java 1.1 on linux since last few months. i downloaded jdk1.2 v1,from sun's site. i work on redhat linux 5.2. followed all documentation instructions -set PATH. -set LD_PRELOAD. now even if i run the sample programs provided in kit it shows the error(the file is attached) there is no problem in compilation as such. please let me know what to do. thanking you. vishal. SIGSEGV 11* segmentation violation stackpointer=0xb004 Full thread dump Classic VM (Linux_JDK_1.2_pre-release-v1, native threads): "Finalizer" (TID:0x40715320, sys_thread_t:0x81c32c8, state:CW, native ID:0xc03) prio=8 at java.lang.Object.wait(Native Method) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:112) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127) at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:174) "Reference Handler" (TID:0x407153b0, sys_thread_t:0x81beb98, state:CW, native ID:0x802) prio=10 at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:424) at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:114) "SIGQUIT handler" (TID:0x407153e0, sys_thread_t:0x81b7598, state:R, native ID:0x401) prio=5 "main" (TID:0x407151e0, sys_thread_t:0x8142fe8, state:R, native ID:0x400) prio=5 at java.lang.String.valueOf(Compiled Code) at java.lang.Compiler.(Compiler.java:68) Monitor Cache Dump: java.lang.ref.Reference$Lock@407153C0/4074AB20: Waiting to be notified: "Reference Handler" (0x81beb98) java.lang.ref.ReferenceQueue$Lock@40715338/4074B028: Waiting to be notified: "Finalizer" (0x81c32c8) (0x40715131): owner "main" (0x8142fe8) 1 entry Registered Monitor Dump: PCMap lock: utf8 hash table: JNI pinning lock: JNI global reference lock: BinClass lock: Class linking lock: System class loader lock: Code rewrite lock: Heap lock: Monitor cache lock: owner "main" (0x8142fe8) 1 entry Thread queue lock: owner "main" (0x8142fe8) 1 entry Dynamic loading lock: Monitor registry: owner "main" (0x8142fe8) 1 entry
Re: unable to run java progs using jdk1.2
VISHAL BHASIN wrote: > > hi there > i have a query.i will be thankful if answered. > >i was working on java 1.1 on linux since last > few months. >i downloaded jdk1.2 v1,from sun's site. >i work on redhat linux 5.2. >followed all documentation instructions > -set PATH. > -set LD_PRELOAD. > now even if i run the sample programs provided > in kit it shows the error(the file is attached) > there is no problem in compilation as such. > please let me know what to do. > thanking you. > vishal. > > > Name: err >errType: Plain Text (TEXT/PLAIN) > Encoding: BASE64 Try turning off the JIT compiler using java -Djava.compiler=none ... This worked for me with Redhat 5.1 kernal 2.2 p133 (overclocked to 150) 32Mb. The JIT compiler seems to crash with any awt code (but seems OK with none awt stuff). You might also try java -green ... - the JIT may work with green threads - I haven't tried this yet. Good Luck Stuart. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: I/O to HTTP url
Hi! On Mon, 26 Apr 1999 Stuart McLean wrote: >Michael Holst wrote: >> >> Hello, >> >> I'm not a Java newbie, but I am not too familiar with the networking >> classes of our dear "write once, run anywhere" language. >> The problem is the following, I need to let an applet write a file to a >> specified http address in order for it to work correctly. How do I >> acomplish this? If I am correct, the java.io.* only works for local >> files. > >The java.net.URLConnection will allow you to open files/connections to a >url and get input/output streams on them (which you con manipulate using >the java.io package). However, you will have to overcome Java's >security model - simplistically, a normal applet can only access/make >connections to the server from which it was downloaded. > >There are, I believe ways around this using signed applets and certainly >JDK1.2 has a much more complex and flexible security model but I'm not >an expert in either of these areas. Another common approach is to use FTP (you need a FTP server running on the machine that serves your applet). Maybe the Linlyn class helps you: http://www.afu.com Ciao, Andreas -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
read from syslog file ...
i'm new in java .. and i need some topic for create a little programm i need to formating a file for insert in a database: (/var/log/message) before Apr 26 14:54:39 ** kernel: PPP: ppp line discipline successfully unregistered Apr 26 15:04:17 ** PAM_pwdb[261]: (login) session closed for user john after - but in different file 'Apr 26' '14:54:39' '**' '... rest of message' 'Apr 26' '15:04:17' '**' '... rest if message' thank! DANIEL -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Status Update
I have been monitoring this site for additional information of a release version of Java2 but have yet seen any activity other than the prelease and the status page has not been updated since March. Is there any other info? Regards, E. Fong -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
JDK 1.2 i386 port. Which version passed JCK?
Dear Java Porting team, Can you update the page to indicate which version of your JDK1.2 i386 port has passed the JCK. Was it "pre-vi"? I am loathed to download "pre-vi" if there is a JCK compliant version available (soon). Cheers, David Turland. http://www.blackdown.org/java-linux/ports.html -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Problem
I began with linux, so please don't joke on my question. I wrote a very-simple program to create a window. The compilation works fine, but when I execute the class I've message on output. I've RedHat 5.2, the JDK-1.2pre JDK version for x86 glibc2.0 architecture. [EMAIL PROTECTED] window1.java (JAVA Fichier) window1.output (OUTPUT Fichier)
Re: Problem
François NOWE wrote: > > The compilation works fine, but when I execute the class I've message on > output. It's a library that doesn't exist on Linux RedHat 5.2 You can force the replacement with something else line that : as root, do a ln -s /usr/lib/libstdc++.so.2.8.0 /lib/libstdc++-libc6.0-1.so.2 (on a single line, the mail program may split the above into two) then try your program again. If you are a Linux and Java newbie, take a look at http://www.java.ro/vtclava/index.html You will find there something to help you writing quick Java visual applications. I recommend you to get jdk 1.1.7 for Linux that works fine, it's stable enough. Just wait for a new release of jdk 1.2 For the moment it's too hot ... :-) Best regards, -- Constantin Teodorescu FLEX Consulting Braila, ROMANIA -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Problem
I experience the same problem, but linking the library doesn't prevent the last serious error. I have tried with libstdc++.so.1.8.0 and 1.9.. Debian 2.1, Linux 2.1 /Jon P.S> grimm@aida:~/Java/src/apps> java ArrayTest SIGSEGV 11* segmentation violation stackpointer=0xbfffe328 Full thread dump Classic VM (Linux_JDK_1.2_pre-release-v1, native threads): "Finalizer" (TID:0x41081320, sys_thread_t:0x81c3368, state:CW, native ID:0xc03) prio=8 at java.lang.Object.wait(Native Method) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:112) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127) at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:174) "Reference Handler" (TID:0x410813b0, sys_thread_t:0x81bebb0, state:CW, native ID:0x802) prio=10 at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:424) at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:114) "SIGQUIT handler" (TID:0x410813e0, sys_thread_t:0x81b7638, state:R, native ID:0x401) prio=5 "main" (TID:0x410811e0, sys_thread_t:0x8143020, state:R, native ID:0x400) prio=5 at sun.awt.font.NativeFontWrapper.getFullNameByFileName(Native Method) at sun.awt.X11GraphicsEnvironment.parseFamilyNameProperty(Compiled Code) at sun.java2d.SunGraphicsEnvironment.initCompositeFonts(Compiled Code) at sun.awt.X11GraphicsEnvironment.initCompositeFonts(Compiled Code) at sun.java2d.SunGraphicsEnvironment$1.run(Compiled Code) at java.security.AccessController.doPrivileged(Native Method) at sun.java2d.SunGraphicsEnvironment.(Compiled Code) at sun.awt.X11GraphicsEnvironment.(Compiled Code) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Compiled Code) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Compiled Code) at sun.awt.motif.MToolkit.(MToolkit.java:59) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Compiled Code) at java.awt.Toolkit$2.run(Compiled Code) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Toolkit.getDefaultToolkit(Compiled Code) at java.awt.Window.getToolkit(Compiled Code) at java.awt.Frame.addNotify(Compiled Code) at java.awt.Window.show(Compiled Code) ... (more frames not shown) Monitor Cache Dump: java.lang.ref.Reference$Lock@410813C0/410B6B20: Waiting to be notified: "Reference Handler" (0x81bebb0) java.awt.Component$AWTTreeLock@41085518/410E6770: owner "main" (0x8143020) 1 entry java.lang.Class@41085510/410E6778: owner "main" (0x8143020) 1 entry java.lang.ref.ReferenceQueue$Lock@41081338/410B7028: Waiting to be notified: "Finalizer" (0x81c3368) java.lang.Class@4108DCA8/411198A8: owner "main" (0x8143020) 1 entry Registered Monitor Dump: PCMap lock: utf8 hash table: JNI pinning lock: JNI global reference lock: BinClass lock: Class linking lock: System class loader lock: Code rewrite lock: Heap lock: Monitor cache lock: owner "main" (0x8143020) 1 entry Thread queue lock: owner "main" (0x8143020) 1 entry Dynamic loading lock: Monitor registry: owner "main" (0x8143020) 1 entry On Mon, 26 Apr 1999, Constantin Teodorescu wrote: > François NOWE wrote: > > > > The compilation works fine, but when I execute the class I've message on > > output. > > It's a library that doesn't exist on Linux RedHat 5.2 > > You can force the replacement with something else line that : > > as root, do a > > ln -s /usr/lib/libstdc++.so.2.8.0 /lib/libstdc++-libc6.0-1.so.2 > > (on a single line, the mail program may split the above into two) > > then try your program again. > > If you are a Linux and Java newbie, take a look at > http://www.java.ro/vtclava/index.html > You will find there something to help you writing quick Java visual > applications. > > I recommend you to get jdk 1.1.7 for Linux that works fine, it's stable > enough. > Just wait for a new release of jdk 1.2 > For the moment it's too hot ... :-) > > Best regards, > -- > Constantin Teodorescu > FLEX Consulting Braila, ROMANIA > > > -- > 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]
[ANN] WebMacro Servlet Framework 0.85.2
WebMacro Servlet Framework == Announcing WebMacro 0.85.2: http://www.webmacro.org/ WebMacro is a Java servlet development framework, including a template engine plus extensible component model. It uses Java introspection to make ordinary objects in your servlet accessible as variables in a simple, concise template script. WebMacro is free under the GPL, with alternate licensing available for proprietary commercial use. See the website for details. Is WebMacro Useful? --- Here's what people on the WebMacro list ([EMAIL PROTECTED]) have to say about it: "FYI Justin, I'm now running over 10 web applications (in production) using WebMacro. It runs like a scalded dog, and makes it easy for the designers to produce layout, so I can concentrate on code. Keep up the good work." -Jason Hill "BTW, I really like your philosophy, and the code looks nicely done. I was looking at the latest JSP incarnation and my stomach was churning. The simple $x.y.z and # syntax you use is perfect." -Ari Halberstadt "so much of webmacro is what I had planned to write on my own, only better laid out" -Robert Hentosh "Finally, thanks for a great product that saves you from the problem with writing html-code in your Java sourcefiles!" -Jonsson Fredrik "I found Webmacro last Friday just as I was completing a suite of servlets. Fetched the mailing list archives (and actually read them ) and totally loved the concept and the direction that webmacro is heading. I've been rewriting my set of servlets and gleefully tearing every shred of HTML code out of my java <*very* big grin>." -William Featherston "Ease of use plus power makes killer apps." -Simon Arthur What's WebMacro for? The WebMacro philosophy is: "Things that you don't care about should get out of your face." Programmers should not have their code cluttered up with HTML and stylesheet junk. Web page designers should not have to put up with complex and scary looking program code. WebMacro lets programmers get back to programming--in an ordinary, powerful programming language (Java); while letting page designers work with plain old HTML and a simple script language. Or, to put it another way, WebMacro brings a Model/View/Controller design to servlet programming: Your servlet (controller) processes input and interacts with back-end business objects (model), handing data to the template (view)--which turns it into HTML. WebMacro does the hard work of analyzing your objects to determine how they can be accessed in the template; WebMacro also provides a simple, concise script language for use in HTML templates; plus WebMacro provides an extensible, customizable component model to manage your back-end beans and other business objects. What Changed? - 0.85.2 fixed several bugs: macros in lists weren't evaluated, #foreach would not use list initializer syntax; #if evaluated its condition twice, $Broker variable in templates was failing. - 0.85.1 fixed minor bugs: extraneous errors in log cleaned up, introspector now uses iterator() methods properly, docs updated. - 0.85 added reloadable templates, cleaned up the WMServlet API, added template paths, made it easier to compile under Java 2, and fixed several nasty bugs. - 0.80 added method calls, generic templates, template parameters, list initializer syntax, comments, bug fixes, and a few other things; 0.80.1 fixes a minor bug in 0.80 (name of error template). - 0.75 added the component model, full fledged introspection 0.75.3 fixes all bugs reported as of January 22 1998 - 0.70 more back end services, better design, and fewer bugs - 0.60 script language mostly in place, minimal introspection, many bugs - 0.30 WebMacro said "Hello, World!" in a secret experiment WebMacro pre-1.0 is beta software. Despite that, recent versions are increasingly stable. A few features remain to be implemented in order to get to 1.0. What are the Advantages? * Clean. Write crisp, clear code free of HTML and presentation issues. * Simple. Put intuitive template scripts inside ordinary HTML. * Powerful. Script variables analyze and access ordinary Java objects. * Independent. Change templates without touching your servlet. * Extensible. Component model lets you to extend WebMacro itself. * Fast. WebMacro caches parsed templates for high-performance use. * Free. WebMacro is available under the GPL. I Need an Example! -- The WebMacro introspector analyzes your objects, and figures out how to extract sub-objects as variables in the template script. All you do as a programmer is provide ordinary Java objects using ord
Question
I've made the symbolic link. My program works but there are some messages on the output (will it cause some problems on my programs ?). Is the RedHat distribution the cause of my first problem ? Will another distribution doing the same problem (I think SuSe for example ?) Thanks for answering. [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Creation of VM in jdk1.2 problem
Hi,
I was wondering if someone could help me,
I adapted this code from some on Sun's website and it compiles fine,
however it never creates the Virtual machine. I was wondering if anyone
can tell me why?
Derek Ross
#include "jni.h"
#include
main() {
JavaVMInitArgs vm_args;
JavaVMOption options[4];
jint res;
JavaVM *vm;
JNIEnv *env;
options[0].optionString = "-Djava.compiler=NONE";
options[1].optionString = "-Djava.class.path=.";
options[2].optionString = "-Djava.library.path=.";
options[3].optionString = "-verbose:jni,class,gc";
vm_args.version = JNI_VERSION_1_2;
vm_args.options = options;
vm_args.nOptions = 4;
vm_args.ignoreUnrecognized = JNI_TRUE;
res = JNI_CreateJavaVM(&vm, (void **)&env, &vm_args);
if (res < 0) printf("Failed to create Virtual Machine");
}
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Question
> I've made the symbolic link. My program works but there are some messages > on the output (will it cause some problems on my programs ?). Is the RedHat > distribution the cause of my first problem ? Will another distribution > doing the same problem (I think SuSe for example ?) Thanks for answering. What are the messages? If they're about some missing fonts... no, it won't cause problems (unless you are trying to use the Dingbat font). You can check the java-linux mail archive to discover solutions. Nathan - This message was sent using Endymion MailMan. http://www.endymion.com/products/mailman/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: read from syslog file ...
I think you can work with the String.substring() method, here's a little example of how it works. > > i'm new in java .. and i need some topic for create a little programm > i need to formating a file for insert in a database: (/var/log/message) > > > before > Apr 26 14:54:39 ** kernel: PPP: ppp line discipline successfully unregistered > Apr 26 15:04:17 ** PAM_pwdb[261]: (login) session closed for user john > > after - but in different file > 'Apr 26' '14:54:39' '**' '... rest of message' > 'Apr 26' '15:04:17' '**' '... rest if message' > > thank! > > DANIEL > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > - This message was sent using Endymion MailMan. http://www.endymion.com/products/mailman/ TestString.java
Question
Sorry, I've forgotten the message it was : Font specified in font.properties not found [--zapf dingbats-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific] Is the Dingbat font not installed ? Thanks. [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
RE: unable to run java progs using jdk1.2
On 26-Apr-99 VISHAL BHASIN wrote: > i was working on java 1.1 on linux since last > few months. >i downloaded jdk1.2 v1,from sun's site. >i work on redhat linux 5.2. What about your libraries? It looks awfully similar to my library problems, I'm still not able to run jdk1.2 and I'm now waiting for the english SuSE and the new system. --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group). Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of... +-+ |. * . | | .__ . . | |oq |po _ _| | / #==>>>==#,-' (_)\ | | | ,-|~\\ ///_ ,() ,_} | | | |/|~]]] /// ,-~' .,~ / \| . | | |\_|_|_\_\~~~~' \ (/|. | | ./~ \___/ [m] \ \__// | | _bo..__ // `-,.~~ | | _-~ 0o.__( . | | \ o . | | . (_)00 | |. \~~~*,,,* ~00 | |~0 . | | ~~~---~~ | | .*| +-+ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Alphas?
One platform that is conspicuously missing from the Blackdown port list is an alpha port. Are there any plans? Is it a hardware availability issue? The price on Alphas look like their going to drop to a very nice level, what with Samsung making noises about $1000 alpha systems and what not (even without Samsung, alpha systems from non-compaq people are pretty reasonable). I would seriously consider moving in that direction, but I'm hosed (at least with Linux) without a jvm. _ Andrew Rawnsley Ravensfield Geographic Resources, Ltd. [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Alphas?
Andrew Rawnsley <[EMAIL PROTECTED]> writes: > One platform that is conspicuously missing from the Blackdown > port list is an alpha port. Are there any plans? Is it a hardware > availability issue? It's already done; if this list is archived, check the archives. I've got it sitting around here waiting to install someitme. Yes, that's right, the Alpha one beat i386. Woohoo :-) If you can't find the link, let me know and I can do some digging. -- John Goerzen Linux, Unix consulting & programming [EMAIL PROTECTED] | Developer, Debian GNU/Linux (Free powerful OS upgrade) www.debian.org | + The 1,029,878th digit of pi is 8. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Problem
You need to make a link using ln -s to satisfy the stdc++ library. It should look something like this: lrwxrwxrwx 1 root root 18 Mar 12 20:49 /usr/local/lib/libstdc++-libc6.0-1.so.2 -> libstdc++.so.2.9.0 Then rerun /sbin/ldconfig and try again. Should work just fine. Good luck. Will At 6:42 PM +0200 4/26/99, Frangois NOWE wrote: >I began with linux, so please don't joke on my question. >I wrote a very-simple program to create a window. >The compilation works fine, but when I execute the class I've message on >output. > >I've RedHat 5.2, the JDK-1.2pre JDK version for x86 glibc2.0 architecture. > >[EMAIL PROTECTED] >Content-Type: application/octet-stream; name="window1.java" >Content-Transfer-Encoding: 7bit >Content-Description: window1.java (JAVA Fichier) >Content-Disposition: attachment; filename="window1.java" > >Attachment converted: Bath:window1.java (/) (0006A5F0) >Content-Type: application/octet-stream; name="window1.output" >Content-Description: window1.output (OUTPUT Fichier) >Content-Disposition: attachment; filename="window1.output" > >Attachment converted: Bath:window1.output (/) (0006A5F1) ___ Will Koffel Course 21M (617) 225-6428 ~*_*~ [EMAIL PROTECTED]Course 6 MIT '00 http://web.mit.edu/wkoffel/www --- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
java plug-in
Hello everybody I'm trying to develope an applet based application. I was developing with 1.1.6, but I moved to 1.2. Now I find Netscape can't execute my applet (of course I recompiled it). Setting the CLASSPATH to point the rt.jar isn't enough. Then, I started reading about java-plugin, and such. I've seen in $un's pages that there isn't a linux version (it was such a surprise :()!). Does anybody knows some hack to make 1.2 applets work with netscape (I'm using version 4.5) ? Or shall I use.. (ugh, too painfull to mention ;)) Thank, and keep this great work going !!! -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Java + Unix + Telephone IP + Internet
Hi all ! I am work with Java in Linux and Unixware 7 I am learning Java to become the Unix platform into a Internet phone server. So, who work in same interesting area ? Tank you
glibc 2.1 binary
Hi, Is there still a planned glibc 2.1 release of pre-v1? I hope this question hasn't been answered somewhere obvious, if it has, I apologize. Thanks for porting the jdk to linux, you've done an awesome job! -Mike -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: glibc 2.1 binary
[EMAIL PROTECTED] wrote: > Hi, > > Is there still a planned glibc 2.1 release of pre-v1? > > I hope this question hasn't been answered somewhere obvious, if it has, I > apologize. > > Thanks for porting the jdk to linux, you've done an awesome job! > > -Mike > If there has been an answer to the glibc 2.1 for jdk 1.2 or 1.1.7 - I haven't been able to find it. It seems most messages about glibc 2.1 have gone unanswered ... some have said it was too bleeding edge ... but with the release of RedHat 6.0 - I would hope a jdk for glibc 2.1 would be compiled soon. Tom McMichael [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: glibc 2.1 binary
U just cant wait to bleed. Looks like 6.0 wont be released until may 10 In reality 2.1 appears to be a tiger with a different set of stripes, and personality. glibc cheating ( oops hacking ) will have to be redone/or relearned ! gat Tom McMichael wrote: > fhave gone unanswered ... some have said it was too bleeding edge ... > but with the release of RedHat 6.0 - I would hope a jdk for glibc 2.1 > would be compiled soon. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: glibc 2.1 binary
Pete Wyckoff wrote: > [EMAIL PROTECTED] said: > > [..] It seems most messages about glibc 2.1 > > have gone unanswered ... > > Try posting a particular question, i.e. what's your error message? It > works for me, but maybe we do different stuff. > > -- Pete Well I think the common problem with glibc 2.1 (2.1.1) is the error on excuting the java binary : ./../bin/i586/green_threads/java: error in loading shared libraries: ./../lib/i586/ green_threads/libjava.so: undefined symbol: _dl_symbol_value I'm using RedHat 5.9 beta and the of course RH 5.2 works great (glibc 2.0.7). Also this is jdk 1.1.7 can't use jdk 1.2 yet ... Tom McMichael [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Source changes
Hi Java-Linux team, I'm interested in porting jdk 1.2 to OpenBSD. Since you've got a very functional port for Linux already (it passed JCK!), it would be great to see your changes for we're going to use similar tools for builds. And OpenBSD is much closer to Linux than Solaris. Well, may be I just don't know what can of worm JDK porting is... Anyway are you going to release your changes any time soon? Thank you Greg -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: glibc 2.1 binary
[EMAIL PROTECTED] said: > Well I think the common problem with glibc 2.1 (2.1.1) > is the error on excuting the java binary : > > ./../bin/i586/green_threads/java: error in loading shared libraries: > ./../lib/i586/ > green_threads/libjava.so: undefined symbol: _dl_symbol_value > > I'm using RedHat 5.9 beta and the of course RH 5.2 works great (glibc > 2.0.7). > Also this is jdk 1.1.7 can't use jdk 1.2 yet ... For 1.1 you may want to back up to 116v5, or you can try 1.2pre-v1, but I've personally had no success with 1.1.7 and glibc2.1 either. -- Pete -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: glibc 2.1 binary
Uncle George wrote: > U just cant wait to bleed. Looks like 6.0 wont be released until may 10 > RedHat 6.0 on FTP servers is available starting today actually -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: glibc 2.1 binary
> For 1.1 you may want to back up to 116v5, or you can try 1.2pre-v1, > but I've personally had no success with 1.1.7 and glibc2.1 either. Has using glibc 2.1 with 1.2pre-v1 been confirmed as working ? (Don't want to download it if I don't have to ... ) Tom McMichael [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: glibc 2.1 binary
[EMAIL PROTECTED] said: > Has using glibc 2.1 with 1.2pre-v1 been confirmed as working ? > (Don't want to download it if I don't have to ... ) Linux 2.2.6, jdk1.2pre-v1, glibc-2.1 (and 2.1.1pre1). Runs awt and swing stuff. Noticeably slower than 117. Green_threads only. Odd font problems (see the archives for solutions). I also find it necessary not to allow my main() thread to exit, for as yet uninvestigated reasons. -- Pete -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
can't load javax.swing.plaf.metal.MetalLookAndFeel
Font specified in font.properties not found [--zapf dingbats-medium-r-normal--*- %d-*-*-p-*-adobe-fontspecific] Exception in thread "main" java.lang.Error: can't load javax.swing.plaf.metal.Me talLookAndFeel at javax.swing.UIManager.initializeDefaultLAF(Compiled Code) at javax.swing.UIManager.initialize(Compiled Code) at javax.swing.UIManager.maybeInitialize(Compiled Code) at javax.swing.UIManager.getUI(Compiled Code) at javax.swing.text.JTextComponent.updateUI(Compiled Code) at javax.swing.text.JTextComponent.(Compiled Code) at javax.swing.JTextArea.(Compiled Code) at javax.swing.JTextArea.(Compiled Code) at examples.browser.Browser.(Browser.java:73) This is the error I captured .What's the problem ? _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Getting a frames X window handle
Michael Hope wrote: > > I meant getting the window handle directly from the innards of Java. The > current program has some code ripped directly from xprop which searches by > name, but it takes a good 3-4 sec on a remote X server. Could part of the time issue be due to network latency? -- Jeff Galyan http://www.anamorphic.com http://www.sun.com jeffrey dot galyan at sun dot com talisman at anamorphic dot com Sun Certified Java(TM) Programmer == Linus Torvalds on Microsoft and software development: "... if it's a hobby for me and a job for you, why are you doing such a shoddy job of it?" The views expressed herein do not necessarily reflect those of my employer. Sun Microsystems, Inc., has no connection to my involvement with the Mozilla Organization. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: read from syslog file ...
Daniel Ignat wrote: > > i'm new in java .. and i need some topic for create a little programm > i need to formating a file for insert in a database: (/var/log/message) > You could just open the file using java.io.File, read it in, then write the new file in some directory this program would have write permission to (dependent on the user it runs as). If you need to enclose the messages in quotes (as in your example), you probably want to use a StreamTokenizer to get each line as a String (there's probably a much better way to do this, but I'm very busy and frazzled with Sun's Developer certification exam right now). Once you've got each message as a String, you can writeUTF() into the new file and add the quotes at each end. I'm not sure how much processing you need to do on it, though. -- Jeff Galyan http://www.anamorphic.com http://www.sun.com jeffrey dot galyan at sun dot com talisman at anamorphic dot com Sun Certified Java(TM) Programmer == Linus Torvalds on Microsoft and software development: "... if it's a hobby for me and a job for you, why are you doing such a shoddy job of it?" The views expressed herein do not necessarily reflect those of my employer. Sun Microsystems, Inc., has no connection to my involvement with the Mozilla Organization. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
tya 1.3 compile problem
Howdy all, I'm having some problems compiling TYA1.3 on a stock RH5.2 box. I know I've compiled TYA1.1 before, on a different (non-RH) box, but this time around I can't seem to get past the configure step! the relevant output in config.log from gcc is: ld: cannot open crt1.o: No such file or directory yup, no such file anywhere on my system... something tells me I'm missing a package somewhere... but I can't figure out which. I've got 2.0.36 kernel sources installed, as well as 2.7.2.3-14 gcc and glibc 2.0.7-29 (also libc 5.3.12-27 for compat.) come to think of it I'm not sure I've built anything since installing this box... can someone who has built tya on rh5.2 please let me know which package owns that file. Thanks -=Chris !NEW!-=> <*> cabbey at home dot net http://members.home.net/cabbey/ <*> "What can Microsoft do? They certainly can't program around us." - Linus -BEGIN GEEK CODE BLOCK- Version:3.12 http://www.geekcode.com GCS$/IT/PA$ d(-) s++:+ a-- C+++$ UL UA++$ P++ L++ E- W++ N+ o? K? !P w---(+)$ O- M-- V-- Y+ PGP+ t--- 5++ X+ R tv b+ DI+++ D G e++ h(+) r@ y? --END GEEK CODE BLOCK-- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Problem
Jon Bohm wrote: > > I experience the same problem, but linking the library doesn't prevent the > last serious error. I have tried with libstdc++.so.1.8.0 and 1.9.. > > Debian 2.1, Linux 2.1 > > /Jon > > P.S> > > grimm@aida:~/Java/src/apps> java ArrayTest > SIGSEGV 11* segmentation violation > stackpointer=0xbfffe328 > > Full thread dump Classic VM (Linux_JDK_1.2_pre-release-v1, native > threads): > "Finalizer" (TID:0x41081320, sys_thread_t:0x81c3368, state:CW, Have you tried 'java -green ArrayTest' ? If not, try it and see if it gives the same errors. -- Jeff Galyan http://www.anamorphic.com http://www.sun.com jeffrey dot galyan at sun dot com talisman at anamorphic dot com Sun Certified Java(TM) Programmer == Linus Torvalds on Microsoft and software development: "... if it's a hobby for me and a job for you, why are you doing such a shoddy job of it?" The views expressed herein do not necessarily reflect those of my employer. Sun Microsystems, Inc., has no connection to my involvement with the Mozilla Organization. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Problem + Fonterrors
Yes, I have tried green_threads but with the same result as before. Is there a list on the libraries and versions required for JDK1.2 to run? In a mail to this list I read something about glibc-X.x which I don't seem to have installed om my machine. _Applets_ with appletviewer works fine tough. Btw, the font warningmessages can be prevented by editing the ~jdk1.2/jre/lib/font.properties file to a font existing in your system (in my case, Debian: /usr/lib/X11/fonts). Worked for me. Regards, Jon On Mon, 26 Apr 1999, Jeff Galyan wrote: > Jon Bohm wrote: > > > > I experience the same problem, but linking the library doesn't prevent the > > last serious error. I have tried with libstdc++.so.1.8.0 and 1.9.. > > > > Debian 2.1, Linux 2.1 > > > > /Jon > > > > P.S> > > > > grimm@aida:~/Java/src/apps> java ArrayTest > > SIGSEGV 11* segmentation violation > > stackpointer=0xbfffe328 > > > > Full thread dump Classic VM (Linux_JDK_1.2_pre-release-v1, native > > threads): > > "Finalizer" (TID:0x41081320, sys_thread_t:0x81c3368, state:CW, > > Have you tried 'java -green ArrayTest' ? If not, try it and see if it > gives the same errors. > > > -- > Jeff Galyan > http://www.anamorphic.com > http://www.sun.com > jeffrey dot galyan at sun dot com > talisman at anamorphic dot com > Sun Certified Java(TM) Programmer > == > Linus Torvalds on Microsoft and software development: > "... if it's a hobby for me and a job for you, why are you doing such a > shoddy job of it?" > > The views expressed herein do not necessarily reflect those of my > employer. > > Sun Microsystems, Inc., has no connection to my involvement with the > Mozilla Organization. > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
