Realy Work
Hi there people, Can anybody say to me how i put my commands in linux PATH??: my jdk is on: "/root/jdk117_v1a/" what i need to make to commands java, javac and others run anywhere. Thanx Tobias Ramos Diamantina MG Brazil
Java threading
>(a) Most of the other unix implementations use kernel threads now >(Solaris, AIX, Digital Unix), Really? Cool. >(b) kernel thread semantics are different from user thread semantics, Technically, there is only one semantic for Threads in Java. In theory Java is a completely specified runtime, and so code that runs differently with kernel threads or user threads is not "correct Java". In practice, Java threads are woefully underspecified, and so it's nearly impossible to write correct multithreaded Java. This is the most serious deficiency in Java. I agree, kernel threads (with preemption and real priority scheduling) is the right way to go, and I'm glad to see that Linux now supports them. The irony is that Windows, the worst multiprocess OS, has the best multithreading. [EMAIL PROTECTED] . . . .. . . . http://www.media.mit.edu/~nelson/
Re: Java threading
> Michael Thome writes: Michael> Obligatory Java-Linux subject: What I'd *really* like Michael> (for my own application) is for VMs to support a hybrid Michael> of green and native threads - e.g. a limited pool of Michael> natives running a larger set of greens. Native threads Michael> can be awfully expensive - we recently had a situation Michael> where our system started raising out-of-memory exceptions Michael> only under the windows VM: turns out that we had a burst Michael> of thread creation that completely choked the windows Michael> native thread system. Michael> Haven't looked at the 1.1.7a diffs yet - anyone working Michael> on something like this for Linux? No, it isn't that easy to implement this inside the JDK. What we really need is a pthreads implementation that uses a many-to-few mapping from user threads to kernel entities. However this requires some cooperation between the pthreads library and the kernel but Linus said 'you don't need to add anything to the kernel to support kernel based threads but clone()', unfortunately this results in the current one-to-one mapping. 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
[email protected]
Wait a minute! Didn't Microsoft argue and win the point in the Apple case that Look and Feel cannot be copyrighted or otherwise subject to proprietary limitations? Is this another case of the big bully wanting to have his cake and eat it too? Bob McConnell N2SPP At 06:55 PM 1/18/99 -0500, Martin Little wrote: >Because they fear Microsoft will use it as an excuse? > >They know that Microsoft will sue them for infringing on their >look and feel. Much the same as Apple would probably defend >the Mac L&F if Sun had not put the same restriction on that >Swing L&F. >
[email protected]
Sure, everyone is surprised the first time they try the Windoze L&F on a non-Win platform. But why the ranting about it? I'd rather use the Metal L&F anyway. Who wants their *NIX system to look and feel like Windoze? How does this hurt java? Can the signal to noise ratio on this list go any lower? [EMAIL PROTECTED] on 01/18/99 06:45:14 PM To: [EMAIL PROTECTED] cc:(bcc: Russell Pridemore/Lex/Lexmark) Subject: Re: Swing-1.1 (Windows L&F)? This is total BS. Microsoft did not write any of the swing code so they are not in a position to "allow" anything. Sun wrote the code and now Sun will not let you use it on non windows systems because they fear Microsoft will just use it as an excuse to sue them. Where have you been the last couple of years? Microsoft will stop at nothing to slow down or kill java development because it is a threat to the bottom line. If people can write apps that run every where then why would they use window 95-98? Face it, this is just another example of how Microsoft is hurting cross platform java. On Mon, 18 Jan 1999, [iso-8859-1] Lothar Klaffenböck wrote: > Microsoft dosen't allow SUN to use the Windows-L&F on Solaris-Unix. Maybe > there is the same licence-problem on Linux. I suggest to use the Metal-L&F, > so the user can see it at the first look that this is a high quality > software.
[email protected]
This is the last public response to this, if you want to continue by email that's fine, but I don't think the list really cares. :) Your comment was that the L&F lawsuits of the 80's were lost. That's because they were about using 'ideas' from other peoples OS's in your own. Like apple saying that Microsoft stole this idea from our UI and used it in their own so they should pay us money. This is very different from saying, 'Look, this company has created somthing called the Windows L&F, it's as exact a copy as they can make, and they even called it Windows' One is very qualitative, and one is a very quantitative measurement. ../Martin Moses DeJong wrote: > Yes, it is. First Microsoft threatened Sun about the Windows LAF in > swing. Then to "cover up" the first "mistake" Sun made the Mac LAF > only work on MacOS so that they would not have to put up with peoples > questions like "why can I use the Mac LAF on all systems but not the > Windows LAF?". When swing was first getting written Sun promised that > all LAFs would run on all platforms. This is one of the reasons people > basked swing instead of all the other light components sets that were > out there. Sun lied to all of us and now they want you to think it never > happened. > > mo dejong > dejong at cs.umn.edu > > On Mon, 18 Jan 1999, Robert McConnell wrote: > > > Wait a minute! Didn't Microsoft argue and win the point in the Apple > > case that Look and Feel cannot be copyrighted or otherwise subject to > > proprietary limitations? Is this another case of the big bully wanting > > to have his cake and eat it too? > > > > Bob McConnell > > N2SPP > > > > At 06:55 PM 1/18/99 -0500, Martin Little wrote: > > >Because they fear Microsoft will use it as an excuse? > > > > > >They know that Microsoft will sue them for infringing on their > > >look and feel. Much the same as Apple would probably defend > > >the Mac L&F if Sun had not put the same restriction on that > > >Swing L&F. > > > > >
RE: unsubscribe
Please remove me from your subscription list. Thank You Robert Weaver -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: [off-topic] stop bashing!
For all other platforms you are correct. For Linux and the Blackdown port. 1) source is free 2) JCK is free for that port 3) distribution is free for that port. This is a stepping stone to where Linux can go with Java. I personally want mozilla with a Java 2 VM on Linux. We can get there with the current setup best wishes calvin >I think ur notion is somewhat short sighted: >1) The source -> free, >2) The Jck -> No so free ( exceeding bogus claim that ur not smart enough to >run >the tests, but ur smart enough to port it, which porting, u seem to admit it , >is >a difficult task ) >3) Distribution -> Not so free. > >4) so wheres the philosophy behind the "non-commercial" licenses? You could >have >released ur efforts for public consumption, even as bad as the port can be. So >it >goes. >gat > >Calvin Austin wrote: > >> Louis-David I will show you the code! Hop on over to >> http://developer.java.sun.com/developer/products/java2cs >> >> you can get all the Java 2 source code for no fee. Then make a trip >> to blackdown.org, you can get Java 2 releases. blackdown has the diffs >> that I will be linking to make a Java 2 linux source release. You even have >> the choice of a JDK 1.x release from IBM >> > > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: [off-topic] stop bashing!
--- Calvin Austin <[EMAIL PROTECTED]> wrote: > Louis-David I will show you the code! Hop on over to > > http://developer.java.sun.com/developer/products/java2cs > > you can get all the Java 2 source code for no fee. Ah, but what is your definition of free? Here is my example. I was doing a little bit of work on the side for a local company to make their database system Y2K compliant. During the process I stumbled upon a bug in the JDK. It was a pretty low level issue that I could not work around cleanly, but I was able to fix it with one line of code. Now that bug has been sitting in Sun's database for over six months. I have sent the engineer who was assigned the bug several messages with no reply. Now I would have no problem using Sun's JDK if I new that when problems like this arise I can have a way out, but I don't. My two choices were: tell Sun that I wanted to change the JDK to fix this bug and lose all my profits because I would have to go through compatability tests according to the license or I could not tell Sun and ship a custom version of the JDK for this one job. Well I'm sure you can all guess what I did. These sorts of games go against the whole point of having the source code to begin with. Ken _ 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: [off-topic] stop bashing!
Your comments assume a desire to distribute the JDK itself. There are no restrictions or fees for distributing the software you develop, nor are you restricted from distributing the *binaries* of add-on libraries you get from Sun (there may be some exceptions on redistributing binary jars of class libs, but I haven't seen Sun put any restrictions on them yet - only commercial libraries that you have to pay for from other companies carry restrictions). --Jeff Uncle George wrote: > > I think ur notion is somewhat short sighted: > 1) The source -> free, > 2) The Jck -> No so free ( exceeding bogus claim that ur not smart enough to run > the tests, but ur smart enough to port it, which porting, u seem to admit it , is > a difficult task ) > 3) Distribution -> Not so free. > > 4) so wheres the philosophy behind the "non-commercial" licenses? You could have > released ur efforts for public consumption, even as bad as the port can be. So it > goes. > gat -- 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]
Problems with JDK 1.2v2
Hi! The installtation of the new JDK works fine. But if I try to start some Programm it comes up the the following messages: . Font specified in font.properties not found [-b&h-lucidasans-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1] SIGSEGV 11* segmentation violation stackpointer=0xbfffe480 Full thread dump Classic VM (Linux_JDK_1.2_pre-release-v2, native threads): "Image Fetcher 3" (TID:0x4047ed78, sys_thread_t:0x85542e8, state:CW, native ID:0x2c0b) prio=8 at java.lang.Object.wait(Native Method) at sun.awt.image.ImageFetcher.nextImage(Compiled Code) at sun.awt.image.ImageFetcher.fetchloop(Compiled Code) at sun.awt.image.ImageFetcher.run(Compiled Code) "Image Fetcher 2" (TID:0x4047d830, sys_thread_t:0x855e558, state:CW, native ID:0x280a) prio=8 at java.lang.Object.wait(Native Method) at sun.awt.image.ImageFetcher.nextImage(Compiled Code) at sun.awt.image.ImageFetcher.fetchloop(Compiled Code) at sun.awt.image.ImageFetcher.run(Compiled Code) "Image Fetcher 1" (TID:0x4047ce10, sys_thread_t:0x85548d8, state:CW, native ID:0x2409) prio=8 at java.lang.Object.wait(Native Method) at sun.awt.image.ImageFetcher.nextImage(Compiled Code) at sun.awt.image.ImageFetcher.fetchloop(Compiled Code) at sun.awt.image.ImageFetcher.run(Compiled Code) "Image Fetcher 0" (TID:0x4047b908, sys_thread_t:0x853bac8, state:CW, native ID:0x2008) prio=8 at java.lang.Object.wait(Native Method) at sun.awt.image.ImageFetcher.nextImage(Compiled Code) at sun.awt.image.ImageFetcher.fetchloop(Compiled Code) at sun.awt.image.ImageFetcher.run(Compiled Code) "TimerQueue" (TID:0x4045cf08, sys_thread_t:0x8493ff8, state:CW, native ID:0x1c07) prio=5 at java.lang.Object.wait(Native Method) at javax.swing.TimerQueue.run(Compiled Code) at java.lang.Thread.run(Compiled Code) "AWT-Motif" (TID:0x40475db8, sys_thread_t:0x82bbf38, state:R, native ID:0x1806) prio=5 at sun.awt.motif.MToolkit.run(Native Method) at java.lang.Thread.run(Compiled Code) "SunToolkit.PostEventQueue-0" (TID:0x404763b8, sys_thread_t:0x82d5798, state:CW, native ID:0x1405) prio=5 at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Compiled Code) at sun.awt.PostEventQueue.run(Compiled Code) "AWT-EventQueue-0" (TID:0x40476388, sys_thread_t:0x82f9040, state:CW, native ID:0x1004) prio=6 at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Compiled Code) at java.awt.EventQueue.getNextEvent(Compiled Code) at java.awt.EventDispatchThread.run(Compiled Code) "Finalizer" (TID:0x40459320, sys_thread_t:0x80cc340, 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:0x404593b0, sys_thread_t:0x80c7a58, 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:0x404593e0, sys_thread_t:0x80c04e0, state:R, native ID:0x401) prio=5 "main" (TID:0x404591e0, sys_thread_t:0x804bdb0, state:R, native ID:0x400) prio=5 at sun.awt.font.NativeFontWrapper.getAdvance(Native Method) at sun.awt.font.FontDesignMetrics.charWidth(Compiled Code) at javax.swing.text.PlainView.updateMetrics(Compiled Code) at javax.swing.text.PlainView.getPreferredSpan(Compiled Code) at javax.swing.plaf.basic.BasicTextUI$RootView.getPreferredSpan(Compiled Code) at javax.swing.plaf.basic.BasicTextUI.getPreferredSize(Compiled Code) at javax.swing.JComponent.getPreferredSize(Compiled Code) at javax.swing.JTextArea.getPreferredSize(Compiled Code) at javax.swing.text.JTextComponent.getPreferredScrollableViewportSize(Compiled Code) at javax.swing.JTextArea.getPreferredScrollableViewportSize(Compiled Code) at javax.swing.ViewportLayout.preferredLayoutSize(Compiled Code) at java.awt.Container.preferredSize(Compiled Code) at java.awt.Container.getPreferredSize(Compiled Code) at javax.swing.JComponent.getPreferredSize(Compiled Code) at javax.swing.ScrollPaneLayout.preferredLayoutSize(Compiled Code) at java.awt.Container.preferredSize(Compiled Code) at java.awt.Container.getPreferredSize(Compiled Code) at javax.swing.JComponent.getPreferredSize(Compiled Code) at java.awt.BorderLayout.preferredLayoutSize(Compiled Code) at java.awt.Container.preferredSize(Compiled Code) ... (more frames not shown) Monitor Cache Dump: java.lang.Class
Cannot allocate colormap entry for default background
Hi. On my Redhat 6.0 system, where I have installed both jdk117_v3 and jdk12_prev2, they work fine but I have this issue problem. All java apps show this message on the console (the jdk12 also shows warnings about fonts, but that's another issue, I'll have to study the FAQ). Warning: Cannot allocate colormap entry for default background some apps (like together/J with jdk11) show with a white background instead of the expected gray. I am running the default X environment for RH6, Gnome with Enlightenment. anyone'sexperinecing this ? bye, Edo. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
jdk1.2 installation
I had a couple of questions about installing the jdk1.2 (pre-v2) on i386. First, what is the .diffs file for and how do I use it if I need it? (Is this what the patch-o-matic script is for? How do I run the script?). I downloaded and extracted the jdk1.2 file (the .tar.bz2) into /usr/local/jdk1.2 (actually first extracted then moved the directory). When I run /usr/local/jdk1.2/bin/java I get the error: /usr/local/jdk1.2/bin/i386/native_threads/java: error in loading shared libraries libhpi.so: cannot open shared object file: No such file or directory If I cd to /usr/local/jdk1.2/bin and run ./java, I get the error: Error: can't find libjava.so. I see libhpi.so in both /usr/local/jdk1.2/jre/lib/i386/green_threads and .../native_threads, and libjava.so in /usr/local/jdk1.2/jre/lib/i386/. Is there something else I need to do? I have jdk1.1.7 installed as well, and I think the system has glibc on it. Thanks, Vlad -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Cannot allocate colormap entry for default background
> On my Redhat 6.0 system, > where I have installed both jdk117_v3 and jdk12_prev2, > they work fine but I have this issue problem. > > All java apps show this message on the console (the jdk12 also shows > warnings about fonts, but that's another issue, I'll have to study the > FAQ). > > Warning: Cannot allocate colormap entry for default background Even i too get similar kind of message but i couldn't figure out the problem. ..praks (Linux) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
java distribution
I am now collecting free and non free software to put all together on a CD. Can I include the java port for linux from your ftp site on the disk ? I entend to do no modifications to the package, just put it there as a zip file, exactly how I downloaded it from the FTP site. ...hoping for an answer Bogdan -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Apache javaserverpages and jserv
Hi! I have a server that runs Apache with Apache jserv and it works fine. But the servlet that runs on the server does much of the work i could do with javaserver pages. So I would like to start moving my servlet to jsp but i'm not sure how to do this... I'd guess that i have to do some changes in the http.conf in apache to. Thanks Roland Carlsson -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: [off-topic] stop bashing!
I think u need to reread the "open source" licensing requirements. They appear to be "commercial" in nature, and monetary in fact. Please extract the particular places from the licenses which states quite clearly that "non-commercial", if there is such a thing anymore, distribution & use is still available. I was only recently able to get a "non-commercial" 1.1.8, but java didn't forward me another non-commercial license for JDK1.2.1 gat Jeff Galyan wrote: > Your comments assume a desire to distribute the JDK itself. There are no > restrictions or fees for distributing the software you develop, nor are > you restricted from distributing the *binaries* of add-on libraries you > get from Sun (there may be some exceptions on redistributing binary jars > of class libs, but I haven't seen Sun put any restrictions on them yet - > only commercial libraries that you have to pay for from other companies > carry restrictions). > > --Jeff > > Uncle George wrote: > > > > I think ur notion is somewhat short sighted: > > 1) The source -> free, > > 2) The Jck -> No so free ( exceeding bogus claim that ur not smart enough to run > > the tests, but ur smart enough to port it, which porting, u seem to admit it , is > > a difficult task ) > > 3) Distribution -> Not so free. > > > > 4) so wheres the philosophy behind the "non-commercial" licenses? You could have > > released ur efforts for public consumption, even as bad as the port can be. So it > > goes. > > gat > > -- > 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: Cannot allocate colormap entry for default background
What colour depth are you running at? If you are only running 8-bit (256 colours), you need to either start the X server at a higher colour depth (16-bit perhaps), or make sure you don't load apps that use a lot of colours (like Netscape) before you start your Java apps. regards [ bryce ] Elena Vorisi & Edoardo Comar wrote: > Hi. > > On my Redhat 6.0 system, > where I have installed both jdk117_v3 and jdk12_prev2, > they work fine but I have this issue problem. > > All java apps show this message on the console (the jdk12 also shows > warnings about fonts, but that's another issue, I'll have to study the > FAQ). > > Warning: Cannot allocate colormap entry for default background > > some apps (like together/J with jdk11) show with a white background > instead of the expected gray. > > I am running the default X environment for RH6, Gnome with > Enlightenment. > > anyone'sexperinecing this ? > > bye, > Edo. > > -- > 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]
Some queries regarding JDK on Linux.
Hi, I have som,e queries as follow, 1) What is the difference between JDK1.2 Pre-v1 and Pre-v2. 2) When I downloaded the file jdk1.2pre-v1.tar.bz2 under pre-v1, is it required to download the file jdk1.2pre-v1.tar.bz2 under pre-v2/glibc2.0 directories.What is the difference between these two files of same name but with difference in size. 3) I have Linux Slackware 3.5 on my system.Is JDK1.2 is compatible with Linux Slackware 3.5 system. 4) How to know 'glibc' version for Slackware 3.5 system. Thanks in advance, Nagaraj S.B. Bells Softech Ltd,Bells House,1036, 26th Main,4th 'T' Block, Jayanagar, Banglore - 560 041.Ph.No.:6650084/33. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: [off-topic] stop bashing!
Therefor for the Alpha/Linux platform I would like: 1) The JCK for free for this port 2) distributions for free for this port. gat Calvin Austin wrote: > For all other platforms you are correct. For Linux and the Blackdown port. > > 1) source is free > 2) JCK is free for that port > 3) distribution is free for that port. > > This is a stepping stone to where Linux can go with Java. I personally > want mozilla with a Java 2 VM on Linux. We can get there with the current > setup > > best wishes > calvin > > >I think ur notion is somewhat short sighted: > >1) The source -> free, > >2) The Jck -> No so free ( exceeding bogus claim that ur not smart enough to > >run > >the tests, but ur smart enough to port it, which porting, u seem to admit it , > >is > >a difficult task ) > >3) Distribution -> Not so free. > > > >4) so wheres the philosophy behind the "non-commercial" licenses? You could > >have > >released ur efforts for public consumption, even as bad as the port can be. So > >it > >goes. > >gat > > > >Calvin Austin wrote: > > > >> Louis-David I will show you the code! Hop on over to > >> http://developer.java.sun.com/developer/products/java2cs > >> > >> you can get all the Java 2 source code for no fee. Then make a trip > >> to blackdown.org, you can get Java 2 releases. blackdown has the diffs > >> that I will be linking to make a Java 2 linux source release. You even have > >> the choice of a JDK 1.x release from IBM > >> > > > > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Apache javaserverpages and jserv
Roland Carlsson wrote: > > I have a server that runs Apache with Apache jserv and it > works fine. But the servlet that runs on the server does > much of the work i could do with javaserver pages. So I > would like to start moving my servlet to jsp but i'm not > sure how to do this... I'd guess that i have to do some > changes in the http.conf in apache to. What a co-incidence - I just did this today. Attached is a snippet from the history file I keep of system changes. I hope it helps. Chris Kakris "Ask not what Linux can do for you, but what you can do for Linux." Dynamic Solutions Pty Ltd http://www.dynamic.net.au/christos 414 Gilbert Road [EMAIL PROTECTED] Preston, Victoria 3072 61 3 94718224 - voice Australia 61 3 94711622 - fax Tue Jun 15 12:48:45 EST 1999 # installed gnujsp from http://www.klomp.org/gnujsp/ # howto build apache with jserv: http://www.dynamic.net.au/christos/apache/ cd /usr/local tar xzvf /tmp/gnujsp-0.9.10.tar.gz cd /usr/local/apache/etc vi jserv.properties wrapper.classpath=/usr/local/gnujsp-0.9.10/lib/gnujsp.jar wrapper.classpath=/usr/local/jdk1.2/lib/tools.jar mkdir /home/christos/jsp vi servlets.properties servlet.gnujsp.code=org.gjt.jsp.JSPServlet servlet.gnujsp.initArgs=repository=/home/christos/jsp vi jserv.conf ApJServAction .jsp /servlets/gnujsp vi httpd.conf AddHandler jsp-handler .jsp Action jsp-handler /servlets/gnujsp /etc/rc.d/init.d/apache restart cp /usr/local/gnujsp-0.9.10/examples/date.jsp /home/httpd/html/test/date.jsp lynx http://localhost/test/date.jsp echo "woohoo"
Re: Some queries regarding JDK on Linux.
[EMAIL PROTECTED] wrote: >Hi, >I have som,e queries as follow, >1) What is the difference between JDK1.2 Pre-v1 and Pre-v2. This is probably in the CHANGES file after uncompressing the JDK1.2 Pre-v2 >2) When I downloaded the file jdk1.2pre-v1.tar.bz2 under pre-v1, is it >required to download the file jdk1.2pre-v1.tar.bz2 under pre-v2/glibc2.0 >directories.What is the difference between these two files of same name >but with difference in size. ??? - >3) I have Linux Slackware 3.5 on my system.Is JDK1.2 is compatible with >Linux Slackware 3.5 system. yes. >4) How to know 'glibc' version for Slackware 3.5 system. This is also answered in the README.linux file after uncompression. It says type: ls -l /lib/libc.so.* and if you see "/lib/libc.so.6", then you have glibc. -Larry Gates -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
I've built the JDK 1.2.1 sources!
Using Steve's patch and a little hacking, I've managed to build the JDK 1.2.1 from scratch - this is after spending ages trying to get it to build on Solaris after when I gave up waiting for the Linux sources - one question though - all the executables in build/linux/bin report: Error: can't find libjava.so. when run - is the full stop (US: period) on the end meant to be there? I have tried putting the build/linux/lib/i386 dir in my ld.so.conf and running ldconfig, and doing it directly, but no joy. Steve, any ideas? Thanks Jim PS Many thanks to sbb et al for all their efforts, esp. the source patch. I feel that I'm close to solving this... --- Jim Moores, PhD Research Student, Computing Lab, University of Kent, UK. new email address: [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Apache javaserverpages and jserv
Oh hey, good call you just reminded me of a good question I had. I want to activate JSP pages with Apache 1.36 on my stock RH 5.2 machine, how do I go about doing this? Do I just download the "solaris" version of JSP from Sun? I got a bit thrown off by this on the download page. Because with the Servlet server, you just download the .JARs in either a .zip or .tar.gz file, but on the JSP page, it was either "Windows" or "Solaris", and I remember the last time I tried to install the Solaris JDK, it only about 1/2 worked. So before I spend hours tearing out my hair, I want to make sure I am barking up the right tree. Any help would be appreciated. Best wishes, -- [:] Riyad Kalla [:] [:] InterAccess Corporation [:] [:] University of Arizona [:] [:][EMAIL PROTECTED][:] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: I've built the JDK 1.2.1 sources!
Duhhh! I just needed to run them from outside the bin directory - they seem to need to be run from elsewhere for the dynamic linking to work - wonder why... Anyway I finally have a buildable JDK with source!!! Some of you may find this helpful: There is a seemingly little known discussion forum on building and modifying the JDK1.2 sources at: http://developer.java.sun.com/developer/products/java2cs/ under community source discussion groups you need JDC membership to access (which is not difficult to get after all, just registration). Quite useful. Thanks Jim --- Jim Moores, PhD Research Student, Computing Lab, University of Kent, UK. new email address: [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Apache javaserverpages and jserv
Riyad Kalla <[EMAIL PROTECTED]> writes: > I want to activate JSP pages with Apache 1.36 on my stock RH > 5.2 machine, how do I go about doing this? Do I just > download the "solaris" version of JSP from Sun? FYI: AFAIK, this package does only work with JSDK 2.1 and if you're planing to use JServ it only supports JSDK 2.0 at the moment. (A new and much improved JServ (great design and code) compared to JServ 1.0) is under development and will support JSDK 2.1.) -- Jan-Henrik Haukeland -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: [off-topic] stop bashing!
You mentioned earlier that you had jdk 1.1.8 non-commercial port. We will check out what is happening with the Java 2 version. (myself or Anand) although with Javaone here it make take a week or so to get an answer regards calvin >Therefor for the Alpha/Linux platform I would like: >1) The JCK for free for this port >2) distributions for free for this port. >gat > > >Calvin Austin wrote: > >> For all other platforms you are correct. For Linux and the Blackdown port. >> >> 1) source is free >> 2) JCK is free for that port >> 3) distribution is free for that port. >> >> This is a stepping stone to where Linux can go with Java. I personally >> want mozilla with a Java 2 VM on Linux. We can get there with the current >> setup >> >> best wishes >> calvin >> >> >I think ur notion is somewhat short sighted: >> >1) The source -> free, >> >2) The Jck -> No so free ( exceeding bogus claim that ur not smart enough to >> >run >> >the tests, but ur smart enough to port it, which porting, u seem to admit it >, >> >is >> >a difficult task ) >> >3) Distribution -> Not so free. >> > >> >4) so wheres the philosophy behind the "non-commercial" licenses? You could >> >have >> >released ur efforts for public consumption, even as bad as the port can be. >So >> >it >> >goes. >> >gat >> > >> >Calvin Austin wrote: >> > >> >> Louis-David I will show you the code! Hop on over to >> >> http://developer.java.sun.com/developer/products/java2cs >> >> >> >> you can get all the Java 2 source code for no fee. Then make a trip >> >> to blackdown.org, you can get Java 2 releases. blackdown has the diffs >> >> that I will be linking to make a Java 2 linux source release. You even >have >> >> the choice of a JDK 1.x release from IBM >> >> >> > >> > > > >-- >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]
JavaOne: Keynote
At this morning's JavaOne opening keynote session, Alan Baratz was spouting off about how Sun is "listening, improving, and empowering" the Java community and during the listening portion did a cheesy bit... He talked about how his daughter is even learning Java in high-school -- he brought her up on stage and the first question she asked was "So, when is Linux going to be supported?!". Of course, given that this was in the listening rather than the improving part of his talk, he didn't actually answer the question. :-( :-) Another thing of interest to this group is probably the Sun deal with the Apache folks on Servlet & JSP technology. Check out jakarta.apache.org. Go wild, John -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: JavaOne: Keynote
>He talked about how his daughter is even learning Java in high-school >-- he brought her up on stage and the first question she asked was >"So, when is Linux going to be supported?!". Confidential to John Mitchell: Right on! Make sure the forces of the Free Software Conspiracy send her her payment. Seriously, that's great. What was the audience reaction? How much Linux presence is there at JavaOne? Hopefully IBM will make a big splash. [EMAIL PROTECTED] . . . .. . . . http://www.media.mit.edu/~nelson/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: I've built the JDK 1.2.1 sources!
On Tue, 15 Jun 1999, J.Moores wrote: > Using Steve's patch and a little hacking, I've managed to build the JDK > 1.2.1 from scratch - this is after spending ages trying to get it to build > on Solaris after when I gave up waiting for the Linux sources - one > question though - all the executables in build/linux/bin report: > > Error: can't find libjava.so. > > when run - is the full stop (US: period) on the end meant to be there? > I have tried putting the build/linux/lib/i386 dir in my ld.so.conf and > running ldconfig, and doing it directly, but no joy. > > Steve, any ideas? ... I am not java guru. I use a linux system mostly base on redhat's latest rawhide, and used to use bash-2.0.3. I noticed above problem after installing jdk1.2-pre-v2, and struggled aginst this with no avail. But, later, I simply replaced bash-2.0.3 with bash-1.14.7(rawhide or redhat-6.0 include both versions, default is bash-1.14.7. I heard Mandrake uses bash 2.0.3 as default), and the problem went away. So, I concluded that scripts of pre-v2 is based on bash-1.14.7. I don't know further. Thanks, -- "Where there is a will, there is a way." [EMAIL PROTECTED] For the future of you and me!hitel: jinbo21 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: jdk1.2 installation
> I had a couple of questions about installing the jdk1.2 (pre-v2) on i386. > First, what is the .diffs file for and how do I use it if I need it? (Is > this what the patch-o-matic script is for? How do I run the script?). The .diffs file contains the changes made to Sun's code. You don't need that unless you want to recompile it. patch-o-matic patches the sources using these diffs. If you want to recomplile it you'll have to set some environment variables and run patch-o-matic. Look at patch-o-matic for the variables. However, normally there is no need to recompile it, simply get the binary distribution. > I downloaded and extracted the jdk1.2 file (the .tar.bz2) into > /usr/local/jdk1.2 (actually first extracted then moved the directory). > When I run /usr/local/jdk1.2/bin/java I get the error: > > /usr/local/jdk1.2/bin/i386/native_threads/java: error in loading shared > libraries > libhpi.so: cannot open shared object file: No such file or directory This most probably means that you have downloaded the wrong version of the JDK, i.e., the glibc2.1 archive on a glibc2.0 system. > If I cd to /usr/local/jdk1.2/bin and run ./java, I get the error: > > Error: can't find libjava.so. The java (i.e., .java_wrapper) script fails to locate the JDK when it does not get an absolute path. Don't call it using "./java", add the /usr/local/jdk1.2/bin to your PATH and invoke it using "java" or invoke it as you did above. CU, Stefan -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
question about loading system libraries
hi
I am running jdk1.1.7 on redhat. I have a native library called
libfoo.so and my LD_LIBRARY_PATH includes the directory where this
library is. BUt System.loadNativeLibrary("foo") is still not able
to find the library.
Are there different conventions as to how the name "foo" is mapped to
the actual system library or am i missing something totally?
thanks
Sumit Gupta
[EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
PATH for SWING
Good morning: Could some budy please tellme which is the correct PATH for use Swing libraries whith Java? I download JAVA JDK 1.1.7 and after the Swing-1.1 library (the exemple SwingSet works fine too) Java works fine, but when I use in my programs import javax.swing.* I recive the next message at the compilation: "Package java.swing not found in import" Here is my .bash_profile # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=$PATH:$HOME/bin BASH_ENV=$HOME/.bashrc USERNAME="" JAVA_HOME=/home/paz/jdk117_v1a SWING_HOME=/home/paz/swing-1.1 SWING_CLASSES=/home/paz/swing-1.1/swing.jar PATH=$PATH:/home/paz/jdk117_v1a/bin PATH=$PATH:/home/paz/jdk117_v1a/lib PATH=$PATH:/home/paz/swing-1.1/swing.jar export USERNAME BASH_ENV PATH export JAVA_HOME export SWING_HOME export SWING_CLASSES Friendly. Bernardo. . . . __ Dr. Bernardo Paz Betancourt TROPANDES Project casilla 415 tel/Fax: (591) 2 41.18.34 http://www.megalink.com/tropandes La Paz - Bolivia -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: PATH for SWING
Hi Bernardo & all, Bernardo Paz Betancourt wrote: > Java works fine, but when I use in my programs > import javax.swing.* > > I recive the next message at the compilation: > "Package java.swing not found in import" First you say you import javax.swing and then the r-or message says java.swing Is this your problem? R u importing java.swing instead of javax.swing? GreetinX++, Ernst -- Ernst de Haan Freelance Java architect "Come to me all who are weary and burdened, and I will give you rest" -- Jesus Christ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: question about loading system libraries
Sumit Gupta wrote:
>
> hi
>
> I am running jdk1.1.7 on redhat. I have a native library called
> libfoo.so and my LD_LIBRARY_PATH includes the directory where this
> library is. BUt System.loadNativeLibrary("foo") is still not able
> to find the library.
Perhaps you should try to make symbolic links with names libfoo.so.1 and
libfoo.so.1.0 to libfoo.so. It may also be that you set a weired soname
for the library when linking it. (Don't ask me more details, I'm not an
expert regarding this issue; perhaps someone other can explain).
Matthias Pfisterer
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: PATH for SWING
Ernst de Haan wrote: > > First you say you import javax.swing and then the r-or message says > java.swing > > Is this your problem? R u importing java.swing instead of javax.swing? > > GreetinX++, Ernst I think it's most likely that he appears to have put the swingall.jar in his PATH and not his CLASSPATH. -- Justin Lee | Contemporary philosophy seems to satisfy JEDI | Assumptions in theology that only get them by -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Cannot allocate colormap entry for default background
Thank you. I started X with startx -- -bpp 32 and everything is fine. I'm enjoying my linux+java !! bye, Edo -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: PATH for SWING
maybe try putting swing.jar in your CLASSPATH. that should fix your problem. On Tue, 15 Jun 1999, Bernardo Paz Betancourt wrote: > Good morning: > > Could some budy please tellme which is the correct PATH for use Swing > libraries whith Java? > I download JAVA JDK 1.1.7 and after the Swing-1.1 library (the exemple > SwingSet works fine too) > > Java works fine, but when I use in my programs > import javax.swing.* > > I recive the next message at the compilation: > "Package java.swing not found in import" > > Here is my .bash_profile > > # .bash_profile > > # Get the aliases and functions > if [ -f ~/.bashrc ]; then > . ~/.bashrc > fi > > # User specific environment and startup programs > > PATH=$PATH:$HOME/bin > BASH_ENV=$HOME/.bashrc > USERNAME="" > > JAVA_HOME=/home/paz/jdk117_v1a > SWING_HOME=/home/paz/swing-1.1 > SWING_CLASSES=/home/paz/swing-1.1/swing.jar > PATH=$PATH:/home/paz/jdk117_v1a/bin > PATH=$PATH:/home/paz/jdk117_v1a/lib > PATH=$PATH:/home/paz/swing-1.1/swing.jar > > export USERNAME BASH_ENV PATH > export JAVA_HOME > export SWING_HOME > export SWING_CLASSES > > Friendly. Bernardo. > . > . > . > > > __ > Dr. Bernardo Paz Betancourt > TROPANDES Project > casilla 415 > tel/Fax: (591) 2 41.18.34 > http://www.megalink.com/tropandes > La Paz - Bolivia > > > -- > 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: PATH for SWING
You want to put the jar and zip files in your CLASSPATH, not your PATH. PATH is where the shell looks for binary executables. CLASSPATH is where java looks for bytecode class files. -Kelly -- Kelly A. Campbell Commerce Core Engineer <[EMAIL PROTECTED]> ChannelPoint, Inc. <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>Colorado Springs, Co. Voice: 719-867-9324 Bernardo Paz Betancourt wrote: > PATH=$PATH:$HOME/bin > BASH_ENV=$HOME/.bashrc > USERNAME="" > > JAVA_HOME=/home/paz/jdk117_v1a > SWING_HOME=/home/paz/swing-1.1 > SWING_CLASSES=/home/paz/swing-1.1/swing.jar > PATH=$PATH:/home/paz/jdk117_v1a/bin > PATH=$PATH:/home/paz/jdk117_v1a/lib > PATH=$PATH:/home/paz/swing-1.1/swing.jar -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: PATH for SWING
>First you say you import javax.swing and then the r-or message says > java.swing > >Is this your problem? R u importing java.swing instead of javax.swing? Sorry, sorry the message is about javax.swing too I make a transcription error, I´m not an expert so my problem is whith the Simply whith the PATH. Bernardo . . . __ Dr. Bernardo Paz Betancourt TROPANDES Project casilla 415 tel/Fax: (591) 2 41.18.34 http://www.megalink.com/tropandes La Paz - Bolivia -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: PATH for SWING
Thankyou very much for your contributions to solve my problem You are write I need to do the difference bettwen PATH and CLASSPATH now I have a CLASSPATH in my .bash_profile and javax.swing can be imported. Your help is usefull thanks again! Sincerly. Bernardo. . . . __ Dr. Bernardo Paz Betancourt TROPANDES Project casilla 415 tel/Fax: (591) 2 41.18.34 http://www.megalink.com/tropandes La Paz - Bolivia -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: [off-topic] stop bashing!
No, I think you're the one who's confused. The license *you* are referring to is the SCSL - the source license for the VM. I'm referring to the license agreement which accompanies the *add-on* libraries - Java3D, Swing, etc. --Jeff Uncle George wrote: > > I think u need to reread the "open source" licensing requirements. They appear to be > "commercial" in nature, and monetary in fact. Please extract the particular places > from the licenses which states quite clearly that "non-commercial", if there is such >a > thing anymore, distribution & use is still available. > I was only recently able to get a "non-commercial" 1.1.8, but java didn't forward me > another non-commercial license for JDK1.2.1 > gat > > Jeff Galyan wrote: > > > Your comments assume a desire to distribute the JDK itself. There are no > > restrictions or fees for distributing the software you develop, nor are > > you restricted from distributing the *binaries* of add-on libraries you > > get from Sun (there may be some exceptions on redistributing binary jars > > of class libs, but I haven't seen Sun put any restrictions on them yet - > > only commercial libraries that you have to pay for from other companies > > carry restrictions). > > > > --Jeff > > -- 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: JavaOne: Keynote
On Tue, 15 Jun 1999, Nelson Minar wrote: > Seriously, that's great. What was the audience reaction? How much > Linux presence is there at JavaOne? Hopefully IBM will make a big > splash. Well the Linux BOF was packed, and notes will be posted somewhere when people get a chance. Steve Byrne, Marty Laye from IBM, Per Bothner and Andrew (?) from Cygnus (talking about GCJ), and Cary Foxwell from Sun were there. . . . Sean. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Apache javaserverpages and jserv
If I just want to use JSP with say a Postgres JDBC driver, do I need jserv? john On 15-Jun-99 Chris Kakris wrote: > Dynamic Solutions Pty Ltd http://www.dynamic.net.au/christos > 414 Gilbert Road [EMAIL PROTECTED] > Preston, Victoria 3072 61 3 94718224 - voice > Australia 61 3 94711622 - fax -- E-Mail: John N. Alegre <[EMAIL PROTECTED]> Date: 15-Jun-99 Time: 20:39:51 This message was sent by XFMail -- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Apache javaserverpages and jserv
> If I just want to use JSP with say a Postgres JDBC driver, do I need jserv? My understanding is that JSP requires a servlet environment. So yes you do need jserv. Chris Kakris "Ask not what Linux can do for you, but what you can do for Linux." Dynamic Solutions Pty Ltd http://www.dynamic.net.au/christos 414 Gilbert Road [EMAIL PROTECTED] Preston, Victoria 3072 61 3 94718224 - voice Australia 61 3 94711622 - fax -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
java- ARM PORTING
HI GUYS, HAS ANYONE DONE ANY PORTING FRO THE ARM PROCESSOR.? Can some one tell me where to look. Thanks Vincent -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
JavaSound for Linux
Hi, there is an implementation of JavaSound for Linux started. Currently supported is simple playback only, but it is intended to implement the full API. The current implementation uses the Network Audio System 1.2 and relies on JDK 1.2. More information and download is at http://rupert.informatik.uni-stuttgart.de/~pfistere/tritonus/ Matthias Pfisterer -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Apache javaserverpages and jserv
On Wed, 16 Jun 1999, Chris Kakris wrote: # > If I just want to use JSP with say a Postgres JDBC driver, do I need jserv? # # My understanding is that JSP requires a servlet environment. # So yes you do need jserv. Gnujsp runs as servlet to produce classess from .jsp files by parsing them, so it needs jserv and JSDK 2.0 _/ _/ _/ Bartlomiej Papierski | A T R I X - Internet Solutions _/ _/ _/ http://www.atrix.com.pl/ | 90-418 Lodz, al. Kosciuszki 1 _/ _/ _/ [EMAIL PROTECTED] | tel./fax (42) 631.11.66 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Problems with JDK 1.2 v2!
Hi! Now i tryed somw ldd commands and first found that there some libraries could not be found. Now I extended the LD_LIBRARY_PATH the librarys would be found but nothing works. Remember all libraries are with the right permissions and all libraries will be found. Ciao! -> E-Mail: Sven Werner <[EMAIL PROTECTED]> Sven Werner <[EMAIL PROTECTED]> -> www : http://www.ping.de/sites/hawaii -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
what's wrong with ServerSocket.getInetAddress().getLocalHost()????
Hello,
i still have a big problem with linux jdk (1.1.7-alpha, 1.2-pre2-glibc2.0)
that seems somehow be jdk-version unrelated...
using the following code:
import java.io.*;
import java.net.*;
public class IPTest
{
public static int port = 0;
public static String addr = null;
public static void main(String argv[])
{
try
{
java.net.ServerSocket serverSocket = new java.net.ServerSocket( 0
);
port = serverSocket.getLocalPort();
addr = serverSocket.getInetAddress().getLocalHost().toString();
addr = addr.substring(addr.indexOf("/")+1);
System.out.println( "port: " + port + " addr: " + addr );
}
catch (Exception e)
{
e.printStackTrace();
}
}
}
i get wrong results on 50% of my machines half of them return the loopback
device, all machines are configured nearly identical
the difference somehow manifests at boot when for a reason unkown from me the
different IP interfaces set up...
the machine where all works fine have as first interface eth0, the others have
in general (but there not all) the loopback as first device...
so first question is it related to this? and if yes how to achieve to have
eth0 as the first device??
then on one machine i have :
ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:2B:38:16:29
inet addr:130.79.74.76 Bcast:130.79.74.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:45509662 errors:230 dropped:0 overruns:0 frame:380
TX packets:75856100 errors:27193 dropped:0 overruns:17506
carrier:46581
collisions:4284395 txqueuelen:100
Interrupt:5 Base address:0x3c00
loLink encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:8020 Metric:1
RX packets:5336094 errors:0 dropped:0 overruns:0 frame:0
TX packets:5336094 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
java IPTest
port: 1236 addr: 127.0.0.1
and that's clearly wrong and perfectly unusable
is there any way to force the jdk to use the real ethernet address?
i really need to get this working, since i am working on a CORBA-project and
that without this i can't get my object linked to each other
--
ciao bboett
==
[EMAIL PROTECTED]
http://erm6.u-strasbg.fr/~bboett
===
the total amount of intelligence on earth is constant.
human population is growing
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Some sort of Sun-Java-Linux announcement?
In a Wired article (http://www.wired.com/news/news/technology/story/20261.html) it was said that Sun has "begun working on porting Java to Linux". Hmm... Anyone know if there was a real announcement or are they just speaking of the Blackdown port? _ 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: Some sort of Sun-Java-Linux announcement
As I understand it, there is a Sun jdk/jvm for linux but it's for Sun's internal use only. I don't konw when they plan on releasing an official Sun jdk for linux. On Wed, 16 Jun 1999, Ken McNeil wrote: > In a Wired article > (http://www.wired.com/news/news/technology/story/20261.html) > it was said that Sun has "begun working on porting > Java to Linux". Hmm... Anyone know if there was a real > announcement or are they just speaking of the > Blackdown port? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
JDK 1.2 on slackware ?
Does jdk1.2 run on Linux 2.0.35 (slackware)? Here is what I get when I try to execute a demo gray:~/java2/jdk1.2/demo/jfc/SampleTree[572] java SampleTree /home/antoy/java2/jdk1.2/jre/bin/realpath: /home/antoy/java2/jdk1.2/jre/bin/i386/realpath: No such file or directory /home/antoy/java2/jdk1.2/jre/bin/realpath: /home/antoy/java2/jdk1.2/jre/bin/i386/realpath: No such file or directory /home/antoy/java2/jdk1.2/bin/java: /home/antoy/java2/jdk1.2/bin/i386/native_threads/java: No such file or directory /home/antoy/java2/jdk1.2/bin/java: /home/antoy/java2/jdk1.2/bin/i386/native_threads/java: No such file or directory Both file /home/antoy/java2/jdk1.2/jre/bin/i386/realpath and /home/antoy/java2/jdk1.2/bin/i386/native_threads/java are in place and executable, thus I believe that the message is incorrect. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Some sort of Sun-Java-Linux announcement
If you look at a similar press release from the same day, http://java.sun.com/pr/1999/03/pr990302-03.html It is touting the fact that they are letting the blackdown team to port the jdk for sun. --- "Alex M." <[EMAIL PROTECTED]> wrote: > As I understand it, there is a Sun jdk/jvm for linux > but it's for Sun's > internal use only. I don't konw when they plan on > releasing an official > Sun jdk for linux. > > On Wed, 16 Jun 1999, Ken McNeil wrote: > > > In a Wired article > > > (http://www.wired.com/news/news/technology/story/20261.html) > > it was said that Sun has "begun working on > porting > > Java to Linux". Hmm... Anyone know if there was a > real > > announcement or are they just speaking of the > > Blackdown port? > > > -- > To UNSUBSCRIBE, email to > [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact > [EMAIL PROTECTED] > > _ 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: java- ARM PORTING
vincent writes: > HI GUYS, > > HAS ANYONE DONE ANY PORTING FRO THE ARM PROCESSOR.? > Can some one tell me where to look. > > Thanks > > Vincent > I believe Corel did some porting under license from Sun, though I am not too sure. It is called JRE. I do not know if it is available in the public domain since I had a copy under developer's license. As for Corel, last I knew they had a kaffe SRPM posted on their site. (www.netwinder.org) Check it out. -amlan. -- Amlan Saha[EMAIL PROTECTED], [EMAIL PROTECTED] Mobile Computing and Protocols Group Center for Wireless Comms, 20 Science Park Rd, Singapore 117674 +65.8709.265 (Tel) +65.779.5441 (Fax) **I speak only for myself** -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Creating a .jar
Hi people On RH 6.0 when I try to create a .jar file out of my classes, I get the following - (I used jar cf my.jar *.class) java.lang.NoClassDefFoundError: sun/tools/jar/Main at java.lang.Throwable.(Throwable.java:40) at java.lang.Error.(Error.java:21) at java.lang.LinkageError.(LinkageError.java:21) at java.lang.NoClassDefFoundError.(NoClassDefFoundError.java:21) I checked the /usr/bin/jar file and it seems that it is a shell script calling "kaffe" executable with the argument Sun.tools.jar.Main. Any pointers for me as to what is going on ? -amlan. -- Amlan Saha[EMAIL PROTECTED], [EMAIL PROTECTED] Mobile Computing and Protocols Group Center for Wireless Comms, 20 Science Park Rd, Singapore 117674 +65.8709.265 (Tel) +65.779.5441 (Fax) **I speak only for myself** -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Creating a .jar
Amlan Saha <[EMAIL PROTECTED]> writes: > On RH 6.0 when I try to create a .jar file out of my classes, I get > the following - (I used jar cf my.jar *.class) > > java.lang.NoClassDefFoundError: sun/tools/jar/Main > at java.lang.Throwable.(Throwable.java:40) > at java.lang.Error.(Error.java:21) > at java.lang.LinkageError.(LinkageError.java:21) > at java.lang.NoClassDefFoundError.(NoClassDefFoundError.java:21) > > I checked the /usr/bin/jar file and it seems that it is a shell > script calling "kaffe" executable with the argument > Sun.tools.jar.Main. > > Any pointers for me as to what is going on ? If you are aiming to use the jar tool that comes with Kaffe, then you need to include the classes.zip file that comes with one of the JDK1.1 Blackdown distributions in your CLASSPATH. For example: /usr/local/bin/jar -classpath .:/usr/local/share/kaffe/Klasses.jar:/usr/local/jdk1.1/lib/classes.zip cf my.jar *.class If you are aiming to use the jar tool that comes with one of the Blackdown JDK distributions, specify the full path to the jar tool. For example: /usr/local/jdk1.2/bin/jar cf my.jar *.class Hope this helps. -Paul -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: JDK 1.2 on slackware ?
I am also facing the same problem. I guess it's because of improper libc version. My system has Slackware 2.0.34 with libc5.4.44. But jdk1.2 distributions ported so far are only for glibc libraries. So, with libc5 one will get the following errors. (I got them as well). After that, I tried to install glibc2.0.6 in my system. But even then, jdk1.2pre_v1 does not work. It gives segementation fault for everything (java, javac, javadoc etc.). I am still trying to solve the problem but not been successful so far. Can anyone provide any further info/help on this. Sergio Antoy wrote: > Does jdk1.2 run on Linux 2.0.35 (slackware)? > Here is what I get when I try to execute a demo > > gray:~/java2/jdk1.2/demo/jfc/SampleTree[572] java SampleTree > /home/antoy/java2/jdk1.2/jre/bin/realpath: >/home/antoy/java2/jdk1.2/jre/bin/i386/realpath: No such file or directory > /home/antoy/java2/jdk1.2/jre/bin/realpath: >/home/antoy/java2/jdk1.2/jre/bin/i386/realpath: No such file or directory > /home/antoy/java2/jdk1.2/bin/java: >/home/antoy/java2/jdk1.2/bin/i386/native_threads/java: No such file or directory > /home/antoy/java2/jdk1.2/bin/java: >/home/antoy/java2/jdk1.2/bin/i386/native_threads/java: No such file or directory > > Both file /home/antoy/java2/jdk1.2/jre/bin/i386/realpath and > /home/antoy/java2/jdk1.2/bin/i386/native_threads/java are in place > and executable, thus I believe that the message is incorrect. > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Creating a .jar
Amlan Saha wrote: > > Hi people > > On RH 6.0 when I try to create a .jar file out of my classes, I get > the following - (I used jar cf my.jar *.class) > > java.lang.NoClassDefFoundError: sun/tools/jar/Main > at java.lang.Throwable.(Throwable.java:40) > at java.lang.Error.(Error.java:21) > at java.lang.LinkageError.(LinkageError.java:21) > at java.lang.NoClassDefFoundError.(NoClassDefFoundError.java:21) > > I checked the /usr/bin/jar file and it seems that it is a shell > script calling "kaffe" executable with the argument > Sun.tools.jar.Main. > > Any pointers for me as to what is going on ? Kaffe is a GPL Java Development Kit similar to Suns JDK. I don't think it works as well, and it obviously causes some problems. You can either rename the /usr/bin/jar to jar.old or something or do an rpm -e kaffe to get rid of the entire development kit. Since you have this problem make sure that you are actually using the JDK you thought you were by doing a java -version. If it says Blackdown something or 1.1.7, etc then you're using a Blackdown/Sun Port, otherwise if it says Kaffe... you're still using Kaffe. -Jim -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: jdk1.2 installation
I think I had this problems too when I've installed my java I found some errors in .java_wrapper try to corect them. On Tue, 15 Jun 1999, Stefan Proels wrote: > > > I had a couple of questions about installing the jdk1.2 (pre-v2) on i386. > > First, what is the .diffs file for and how do I use it if I need it? (Is > > this what the patch-o-matic script is for? How do I run the script?). > > The .diffs file contains the changes made to Sun's code. You don't > need that unless you want to recompile it. patch-o-matic patches > the sources using these diffs. If you want to recomplile it you'll > have to set some environment variables and run patch-o-matic. Look > at patch-o-matic for the variables. However, normally there is no > need to recompile it, simply get the binary distribution. > > > I downloaded and extracted the jdk1.2 file (the .tar.bz2) into > > /usr/local/jdk1.2 (actually first extracted then moved the directory). > > When I run /usr/local/jdk1.2/bin/java I get the error: > > > > /usr/local/jdk1.2/bin/i386/native_threads/java: error in loading shared > > libraries > > libhpi.so: cannot open shared object file: No such file or directory > > This most probably means that you have downloaded the wrong version > of the JDK, i.e., the glibc2.1 archive on a glibc2.0 system. > > > If I cd to /usr/local/jdk1.2/bin and run ./java, I get the error: > > > > Error: can't find libjava.so. > > The java (i.e., .java_wrapper) script fails to locate the JDK when it > does not get an absolute path. Don't call it using "./java", add the > /usr/local/jdk1.2/bin to your PATH and invoke it using "java" or invoke > it as you did above. > > > CU, > Stefan > > > -- > 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: jdk1.2 installation
On 15-Jun-99 Vlad Beffa wrote: > I see libhpi.so in both /usr/local/jdk1.2/jre/lib/i386/green_threads and > .../native_threads, and libjava.so in /usr/local/jdk1.2/jre/lib/i386/. Is > there something else I need to do? I have jdk1.1.7 installed as well, and > I think the system has glibc on it. > Put these directories in /etc/ld.so.conf: /usr/local/jdk1.2/jre/lib/i386/green_threads /usr/local/jdk1.2/jre/lib/i386/native_threads /usr/local/jdk1.2/jre/lib/i386/ Run ldconfig --- Jens Faller [RHRK] <[EMAIL PROTECTED]> -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: java- ARM PORTING
"vincent" <[EMAIL PROTECTED]> wrote: > HAS ANYONE DONE ANY PORTING FRO THE ARM PROCESSOR.? > Can some one tell me where to look. -- +-+-+ | Peter Naulls - [EMAIL PROTECTED] | | | http://chocky.home.ml.org/ | Java and JVM Consultant | | Java for Risc OS and ARM - [EMAIL PROTECTED] | Technical Author| | http://chocky.home.ml.org/java/ | Program performance analyst | +-+-+ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
[Fwd: Come see new versions of Delphi & JBuilder!] will be a linux version?
Hey guys check that from Inprise, I hope version of linux would be released. see you! Dear Inprise Customer, COME CELEBRATE A DECADE OF AWARD-WINNING CONFERENCES 10th Annual Inprise & Borland Conference Pennsylvania Convention Center, Philadelphia July 17-21, 1999 FOR EASY REGISTRATION, VISIT http://www.borland.com/conf99 ***BE PART OF THE GREAT THINGS DEVELOPING IN PHILADELPHIA*** The 10th Annual Inprise & Borland Conference is right around the corner! The conference will be held July 17-21, 1999 at the Pennsylvania Convention Center in downtown Philadelphia, and we hope to see you there. We will show new releases of Delphi, JBuilder, Inprise Application Server, Inprise AppCenter, VisiBroker, and InterBase. We will also cover the recently released C++Builder 4. Come learn how all of this technology enhances your productivity and raises your competitive edge. Whether you are an independent developer building custom solutions, tools, and components, or an IT manager or developer creating large enterprise applications, this conference is for you! ***DESIGN A CURRICULUM FOR YOUR SPECIFIC NEEDS*** The conference features tracks and sessions about our entire family of products. And due to the popularity of the management track last year, we have expanded the number of sessions for the IT directors and managers, development managers, and project managers. New this year is the focus on real-world solutions, with the addition of Solution Tracks which cover topics such as Distributed Object Computing, Rapid Application Development, Application Deployment and Management, Internet/Intranet/eCommerce, and more. As always, the tracks provide the opportunity to customize your agenda according to your specific needs. ***LEARN FROM TOP INDUSTRY EXPERTS*** Dr. Nicholas Negroponte, author of "Beyond Being Digital," as well as a founder and the director of MIT's uniquely innovative Media Laboratory, will present Monday's industry keynote. Larry Constantine, Director of Research and Development for Constantine & Lockwood, Ltd., and a professor at the University of Technology in Sydney, Australia, will lead us in Tuesday's keynote. Together, Dr. Negroponte and Mr. Constantine headline an exceptional team of featured speakers and keynote presenters from around the world. Check out http://www.borland.com/conf99 for the full lineup of keynote addresses, plus a full listing of sessions and presenters. The conference is the place to come and learn from the best! ***BONUS CONFERENCE CD-ROM AND FREE INPRISE PRODUCT*** With your registration, you'll receive the Inprise & Borland Conference CD-ROM, which includes conference papers, source code, and examples for presentations in ALL tracks, and more! PLUS, you'll receive a FREE Inprise product (up to $350 in value)! ***REGISTER NOW AT http://www.borland.com/conf99 *** Or, if you prefer, call 1-800-350-4244. The 10th Annual Inprise & Borland Conference is the one place where developers and managers can get up to date in four information- packed days with hundreds of sessions to choose from and thousands of professionals with whom you can exchange ideas. I look forward to seeing you this summer in Philadelphia! Sincerely, David Intersimone, "David I" Director, Developer Relations Inprise P.S. And don't forget that as a conference attendee, you'll see the newest in products and technologies in action in the Exhibit Hall. PLUS, you'll get to try out new tips and fine-tune your programming skills in the hands-on, networked computer lab staffed with Inprise product experts available to answer your questions. * Inprise Corporation, developer of Borland and VisiBroker products, takes great care to avoid sending you e-mail messages you do not wish to receive. You are receiving this message because you have provided us with your e-mail address via a product registration, Inprise Online, or a listserv. This e-mail message contains information we think will interest you and directs you to our website for more detailed material. If you choose not to receive these messages from Inprise, or if you would like to change your eMail address on our database, simply click here: http://inprise-news.com/opt-out/Key=1160.f4k.BRhChD or e-mail us with a subject of "unsubscribe" and we'll take you off the list as quickly as possible. Please include this entire message in your reply. * sc:116 Message-Id: <[EMAIL PROTECTED]>
how many threads are too much?
Well I know you can tell me what is the answer, I will be representing some matrix with agents in there (no it isn't the movie :-) ). The fact is I have for example a 12x12 matrix with at most 144 agents running concurrently in each cell of the matrix, so the question 144 threads are too much threads?, or it depends on the VM (I have a feel of that), the threads will control movement of each agent, interaction with each other and its death. Thanks! -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: [off-topic] stop bashing!
Thanks, I Think that u will find that 'any' distribution, and completed port now is considered commercial, therefor not for free ( i believe this extends even to yourself, for personel uses ). The Non-Commercial licenses appears to have bitten the dust when this OPENNESS was made. A proper port cannot be done if one cannot change the "c"/"c++"/".java" files that are platform dependent. Ie addresses on the Digital alpha alpha are 64bit, of which are sometimes stored in java objects by native routines. With jdk 1.1.x the JDB had a habbit of using the physical memory addresses of objects. Haven't played with jdb in 1.2, BUT was surprised that debugging with NETBEANS & JDK 1.2 worked. As I understand it, a license was given to one person of the the java-linux-porting mailing group. That license is sublicensed. I know nothing of the terms of that license, as it has never been published in the java-linux mail/news group. gat Jeff Galyan wrote: > Distribution is not free *if* you are doing a commercial port. As I understand it, >the Blackdown team have been given a free license to distribute their port, as well >as a free license for the JCK. Now, you have to understand that a "port" is defined >in the SCSL as modification to the *platform-dependent* (i.e. native) parts of the VM >code for the purpose of getting the VM to run correctly on a given platform. >Modification of the core Java class libraries is still prohibited. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: how many threads are too much?
>The fact is I have for example a 12x12 matrix with at most 144 agents >running concurrently in each cell of the matrix, so the question 144 >threads are too much threads? I believe 144 threads should work OK on the Linux JDK. If you are using green threads, in theory there is no upper limit on the number of threads you have. If you are using native threads, there is a kernel limit (that you can change by recompiling) - I believe it's 512 threads. If all 144 threads are trying to run all the time, it won't work very well: Java doesn't multitask threads very effectively. I get by with something similar (20-30 agents) because all of my agents either sleep a lot or wait for input. [EMAIL PROTECTED] . . . .. . . . http://www.media.mit.edu/~nelson/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
VisualAge for Java for Linux
Dear All, This is to let you know that IBM has released a technical preview of VisualAge for Java for Linux. I downloaded it and installed it in my Debian 2.0 box and the environment is the very same as the other versions they have with similar features and look. IBM stated that this technical preview aims to have a feeling on the interest such release when they will decide if they will continue this effort. Before downloading the package you will need to register at http://www7.software.ibm.com/vadreg.nsf/GARegistration?OpenForm free of charge. The download page is http://www.software.ibm.com/ad/vadd Let us let them know how big the Linux-Java community is :-) (As if they didn't know it already). Regards, JVc. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: [off-topic] stop bashing!
Actually, you don't need to modify the .java files, and in fact, modifying the .java files is strictly prohibited in the license (as such modifications could potentially be misconstrued by the licensee as permission to change the apis). The license does permit personal use of your own port. If you are a company doing the port for your company's use, rather than you as an individual porting for your own personal use, then you are correct in your interpretation of the license. You would be required to pass the JCK and pay a license fee, etc. As an individual, you would not have to do this unless you intended to release your port over the Internet, on CDROM, or otherwise "distribute" it. Now, I'm not a lawyer, nor am I in charge of licenses for Sun, but I'm sure they would be willing to work out a fair license fee for an individual who wanted to distribute their port. You would still be required to pass the JCK before you could distribute, though. Back to modifying the .java files - the only modifications you should ever need to make (even for the .java files that call native methods) is in the .c, .cpp and .s (asm) files. The header files for the native VM code is where you would want to make your changes for internal type representation (i.e., is a long a 64-bit value, or is an int a 64-bit value kinds of things). Any mapping between native types and Java types is handled by jni_md.h for purposes of JNI. If you can think of good reasons why you would absolutely have to change the .java files, then you may want to bring that up to Sun. I personally can't think of any reason to change the .java files at all unless you were adding new methods or otherwise changing the apis - which results in a version of the Java core apis which depends on one specific port of the VM. Again, that is strictly prohibited by the license. So, the "free for personal use" hasn't been thrown out the window. It's just that the language of the license is a little obtuse (but lawyers tend to write that way deliberately, I think). If you're really unsure exactly what the meaning of the license is, you should have an attorney read it over and explain it to you - or better yet, ask Sun directly. If Sun says you may not use your port for personal use without paying a license fee and passing all the tests, then I agree that would be a bit much. --Jeff -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
RH6, jdk12 pre_v2 and missing Zapf Dingbats fonts : OK!
Hi I have solved my 'warning-missing Missing Zapf Dingbats font' problem' as suggested in Known bugs, just that for those running RedHat6 there is some difference with the install info in http://www.gimp.org/fonts.html . the difference is that RH6 uses a font server, so you do not have to edit the /etc/X11/XF86Config file as suggested in the URW fonts documentation. You have to add the URW entry in a config file (which I found by chance) under /etc/X11/fs/ this may be obvious to linux gurus, but maybe not to poor java developers (as I think I am). Anyway, now I can succesfully run sophisticated apps like NetBeans v.3.0 beta on linux, Together/J and many other java apps ! bye, Edo. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: RH6, jdk12 pre_v2 and missing Zapf Dingbats fonts : OK!
Edoardo Comar wrote: > > Hi > I have solved my 'warning-missing Missing Zapf Dingbats font' problem' as > suggested in Known bugs, just that for those running RedHat6 there is some > difference with the install info in http://www.gimp.org/fonts.html . > > the difference is that RH6 uses a font server, so you do not have to edit > the /etc/X11/XF86Config > file as suggested in the URW fonts documentation. > You have to add the URW entry in a config file (which I found by chance) > under /etc/X11/fs/ > > this may be obvious to linux gurus, but maybe not to poor java developers > (as I think I am). > > Anyway, now I can succesfully run sophisticated apps like NetBeans v.3.0 > beta on linux, Together/J and many other java apps ! > > bye, > Edo. Also, there is an update on ftp://updates.redhat.com/6.0/i386/ that has something to do with the font server.. http://www.redhat.com/corp/support/docs/XFree86-upgrade/XFree86-upgrade.html clipped from a post on comp.os.redhat.announce .A number of problems exist with the XFree86 RPMs shipped with Red Hat .Linux 6.0. The font server is hardcoded not to accept TCP .connections. A race condition leads to slow startups on X servers .which are entirely cached in memory. There are some problems with .inputting ISO-8859-1 characters with an ISO-8859-2 language in use. .By default, the directory /etc/X11/xdm/authdir does not exist, which .causes the X server to fall back to no authentication at all. -- Glenn ValentaEngineering http://www.coloradostudios.com 303-388-8500 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: [Fwd: Come see new versions of Delphi & JBuilder!] will be a linux version?
Can't tell you much but we will have Linux specific topics at the conference and we'll show "what's cooking" :) --Paolo > "JB" == os Molina writes: JB> [1 ] Hey guys check that from JB> Inprise, I hope version of linux would be released. JB> see you! -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
profiling under linux?
Greets, So I have this big mucking system which is due for some speedups. I'd really like to profile it so that I can figure out exactly where said speeds ups are necessary (it is mucking complex, too, so I don't want to over engineer). The only profiler I've seen, OptimizeIt, is glibc2.0 only. I'd like to find a profiler which is glibc2.1 friendly. Anyone have a suggestion? -Seth -- "It is by will alone I set my mind in motion" -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
TYA problems: unresolved ref
I'm trying to use TYA, puzzling over why JDK1.2 claims it cannot be found even though I specify LD_LIBRARY_PATH. So I tried running with JDK1.1: again tya failed, but I got this intriguing message: /usr/local/Java/tya1.3v2/libtya.so: undefined symbol: min_javastack_chunk_size (libtya.so) Is 1.3v2 functional? Nathan Meyers [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: ^CTYA problems: unresolved ref
> I'm trying to use TYA, puzzling over why JDK1.2 claims it cannot be > found even though I specify LD_LIBRARY_PATH. So I tried running with > JDK1.1: again tya failed, but I got this intriguing message: > > /usr/local/Java/tya1.3v2/libtya.so: undefined symbol: > min_javastack_chunk_size (libtya.so) > > Is 1.3v2 functional? Yes it is. Put libtya.so in jdk1.2/jre/lib/i386/ and it will find it. When switching to JDK1.1 you probably did not recompile TYA causing the "undefined symbol" error. Separate versions of TYA need to be compiled for for JDK1.1 and JDK1.2. CU, Stefan -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: TYA problems: unresolved ref
I've been using 1.3v2 with 1.1.7v3 since that combination became possible, with no problems at all, on a Debian system, 2.2.7, glibc 2.1. I do remember that I had to build tya myself from source to get it going in the first place; there was some problem with the Debian tya package at that time. -Peter Nathan Meyers wrote: > > I'm trying to use TYA, puzzling over why JDK1.2 claims it cannot be > found even though I specify LD_LIBRARY_PATH. So I tried running with > JDK1.1: again tya failed, but I got this intriguing message: > > /usr/local/Java/tya1.3v2/libtya.so: undefined symbol: > min_javastack_chunk_size (libtya.so) > > Is 1.3v2 functional? > > Nathan Meyers > [EMAIL PROTECTED] > > -- > 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: how many threads are too much?
another limiting factor is memory consumption by the thread stacks... the defaults are a tad large JIC. If you know your pathlength is predictable and you don't have a lot of large objects in the call stack frames you can play with the max values via -oss and -ss (java stack and native stack respectively). -=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: ^CTYA problems: unresolved ref
Stefan Proels wrote: > > > I'm trying to use TYA, puzzling over why JDK1.2 claims it cannot be > > found even though I specify LD_LIBRARY_PATH. So I tried running with > > JDK1.1: again tya failed, but I got this intriguing message: > > > > /usr/local/Java/tya1.3v2/libtya.so: undefined symbol: > > min_javastack_chunk_size (libtya.so) > > > > Is 1.3v2 functional? > > Yes it is. Put libtya.so in jdk1.2/jre/lib/i386/ and it will find it. Sure enough. This inability to use LD_LIBRARY_PATH appears to be new to JDK1.2. Is it intentional? Nathan -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Catch Exception
Although we had try { } catch block ,and throw
statement ,it is possible we can miss some of the
(fatal ,for example ) exception.if it is how do we
eliminate or find some way to catch it ?
_
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: Catch Exception
Be verbose. Show us what the actual try...catch statement is. If you do:
try { ... }
catch (Throwable t) { ... }
you should catch all but real signals. There is a way to catch signals as well,
a package that offers this functionality has come by a while ago on this list.
GreetinX++, Ernst
LAIKOK wrote:
>
> Although we had try { } catch block ,and throw
> statement ,it is possible we can miss some of the
> (fatal ,for example ) exception.if it is how do we
> eliminate or find some way to catch it ?
> _
> 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]
--
Ernst "Elvis" de Haan
Tector BV i.o.
"Come to me all who are weary and burdened"
-- Jesus Christ
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: how many threads are too much?
> Java doesn't multitask threads very effectively Two problems with this statement: "Java" doesn't multitask efficiently? At best, "the JDK" or "currently available JDK's", because I haven't seen anything in the JLS or JVM spec that would hamper efficient multithreading. Second, what's wrong with native threads at the moment? It seems to me to work just fine. Is your statement not related to green threads? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
KVM
Hi, this might be off-topic, but I do not know a better place (and given that the geek factor of palm pilots and linux is almost the same...): Does anybody of you guys attending JavaOne have had a chance to get a copy of the KVM for the Palm? I would really like to have a look at it, but it seems that the only chance would be to be in California... How different from Java 2 is the micro edition? Is there something like AWT? Thanks, Ulli PS: If anybody of you knows a better mailing list, please give me a hint. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Calling Java objects from C++
Hi, I'm looking for a way to call Java objects from C++. Is this possible using JNI? Naoki -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: [off-topic] stop bashing!
Jeff Galyan wrote: > Actually, you don't need to modify the .java files, and in fact, modifying the .java >files is strictly prohibited in the license (as such modifications could potentially >be misconstrued by the licensee as permission to change the apis). The license does >permit personal use of your own port. If you are a company doing the port for your >company's use, rather than you as an individual porting for your own personal use, >then you are correct in your interpretation of the license. You would be required to >pass the JCK and pay a license fee, etc. As an individual, you would not have to do >this unless you intended to release your port over the Internet, on CDROM, or >otherwise "distribute" it. Actually u do have to change the '.java' files ( simply for practicable convience ). Having extensive experience in porting sun's JDK, I find it rather difficult to store 64bits into a 32bit java int. Maybe u can review the java-linux-porting diffs of their 1.2 port. I'd like to know, for example, how the solaris printer 'queue' switches was changed to be compatable with linux printer 'queue' commands. There are many ways in which u can program in order to not change the '.java' files. There are also many ways u can program so u dont have to change the '.c'/'c++'/'.s' files. To an extreme, u dont even have to do a port, just build an i86 emulator, or a solaris emulator. Cant imagine why anyone would attempt to bother to port to a foreign machine, just so u can use it at home. Probably along the same reasons as why one would write a book, and only publish it just for yourself, for ur own personal reading. > > > Now, I'm not a lawyer, nor am I in charge of licenses for Sun, but I'm sure they >would be willing to work out a fair license fee for an individual who wanted to >distribute their port. You would still be required to pass the JCK before you could >distribute, though. I believe thats what they do now. Jck not so free, and distribution not so free, as i stated twice before. What would a fair license fee be, if u dont mind me asking, for my Linux/Redhat/Alpha of the Sun JDK port be ? And what if it become an impossible port because the JCK is skewed towards 32bit excentricity's ( as per JCK, u may not change it at all ) > > > Back to modifying the .java files - the only modifications you should ever need to >make (even for the .java files that call native methods) is in the .c, .cpp and .s >(asm) files. The header files for the native VM code is where you would want to make >your changes for internal type representation (i.e., is a long a 64-bit value, or is >an int a 64-bit value kinds of things). Any mapping between native types and Java >types is handled by jni_md.h for purposes of JNI. If you can think of good reasons >why you would absolutely have to change the .java files, then you may want to bring >that up to Sun. I personally can't think of any reason to change the .java files at >all unless you were adding new methods or otherwise changing the apis - which results >in a version of the Java core apis which depends on one specific port of the VM. >Again, that is strictly prohibited by the license. Say take the address of an X window, X gives back a long/64bit address/reference value. u pass it back to '.java' . ur unmodifiable '.java' expects an int which is 32 bits. This mapping is for 'like' types. Getting truncated longs, is just a part of java life on an alpha. There is no reason to change the API's, if they are not system/os specific. Having to change/alter the API's on a per OS would also violate the notion of write once, run everywhere concept. There is a set of win32 '.java" files to interface to the win32 native functions. There is also a set of solaris "unix" '.java' files to interface to the solaris unix native functions. Porting would mean altering the solaris unix '.java' files to be linux unix '.java' files, and the same for os specific native functions. My heart also goes out to ibm's as400 porting folks who have 48 byte ( i thinks its bytes ) addresses. I reported the problems of 64bit addresses to the bug list, as well as this one that IBM has submitted. > > > So, the "free for personal use" hasn't been thrown out the window. I believe it effectively has been thrown out the window. Ur not allowed to share (distribute ) ur personal efforts with others for personal uses. With the Non-commercial licence, one was able to 'restrictivly' distribute ur efforts. This is still true with JDK1.1.x, but no longer with JDK 1.2.x. > It's just that the language of the license is a little obtuse (but lawyers tend to >write that way -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: how many threads are too much?
>> Java doesn't multitask threads very effectively >Two problems with this statement: "Java" doesn't multitask >efficiently? At best, "the JDK" or "currently available JDK's", >because I haven't seen anything in the JLS or JVM spec that would >hamper efficient multithreading. Sorry, this is a pet topic of mine. I didn't say "efficient", I said "effective". The Java threading model, as specified, is quite weak. There is no way to stop a thread. There's barely any way to manage relative thread priorities (the mechanism that's there does not work very well). There's not even a guarantee of preemptive multitasking. >Second, what's wrong with native threads at the moment? It seems to >me to work just fine. Is your statement not related to green threads? Native threads on Linux take care of the preemption problems. But you're relying on behaviour that's outside of spec. Green threads work reasonably well, too, probably better if you're using lots of threads. All of this was advice to someone doing a multi-agent system in Java. I've been doing one myself for the past 18 months. It works OK, but it would work a lot better if I had more control over threading. With apologies for the peripherally Linux related post, Nelson [EMAIL PROTECTED] . . . .. . . . http://www.media.mit.edu/~nelson/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Location of any Java plugin
I am aware that the Java 1.2 plugin is not going to available for a while yet, but can anyone point me to the location of a Linux i386 Java 1.1 plugin in the interim? Peter Harbo email: [EMAIL PROTECTED] OR Smithsonian Astrophysical Observatory [EMAIL PROTECTED] 60 Garden St, MS 81 Cambridge MA 02138 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: how many threads are too much?
[EMAIL PROTECTED] said: > Sorry, this is a pet topic of mine. I didn't say "efficient", I said > "effective". The Java threading model, as specified, is quite weak. > There is no way to stop a thread. Yep. Some prices have to be paid for WORA. Personally, I don't think it's a very big price. > (the mechanism that's there does not work very well) I'm curious: "does not work very well" (current implementations) or "can not work very well" (the standard has problems) ? -- Cees de Groot http://www.cdegroot.com <[EMAIL PROTECTED]> -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: [off-topic] stop bashing!
Uncle George: >Actually u do have to change the '.java' files ( simply for practicable >convience ). Having extensive experience in porting sun's JDK, I find >it rather difficult to store 64bits into a 32bit java int. Maybe u can >review the java-linux-porting diffs of their 1.2 port. I'd like to know, >for example, how the solaris printer 'queue' switches was changed to be >compatable with linux printer 'queue' commands. Where do 32/64bit differences on the platform bubble up to the java.* level that you would need to change this? If there are such locations, these should be reported as bugs because on the java level you shouldn't be able to determine the native wordsize of the underlying platform. Changing the wordsize of standard API level interfaces during a port would completely defeat the purpose of the virtual machine, and I for one are very glad that Sun wouldn't allow this. If your Alpha port has changed ints and longs in API .java files it's just as much Java as Microsoft's stuff is... -- Cees de Groot http://www.cdegroot.com <[EMAIL PROTECTED]> -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: how many threads are too much?
Warning Could not process message with given Content-Type: multipart/signed; boundary=VkVuOCYP9O7H3CXI; micalg=pgp-md5;protocol="application/pgp-signature"
Re: [off-topic] stop bashing!
> Cees de Groot writes: Cees> Uncle George: >> Actually u do have to change the '.java' files ( simply for >> practicable convience ). Having extensive experience in porting >> sun's JDK, I find it rather difficult to store 64bits into a >> 32bit java int. Maybe u can review the java-linux-porting >> diffs of their 1.2 port. I'd like to know, for example, how >> the solaris printer 'queue' switches was changed to be >> compatable with linux printer 'queue' commands. Cees> Where do 32/64bit differences on the platform bubble up to Cees> the java.* level that you would need to change this? If Cees> there are such locations, these should be reported as bugs Cees> because on the java level you shouldn't be able to determine Cees> the native wordsize of the underlying platform. I'll agree with you on that, but not all of the java code in the JDK source code is platform independent and there are situations where the Solaris specific java source code (these are the .java files Uncle George is talking about) has be changed for Linux ports (even for 32bit ports). Note that this does not affect the public java.* APIs/classes. The printer 'queue' commands are one example where a Solaris-specific java file has to be changed in order to work on Linux. Cees> Changing the wordsize of standard API level interfaces Cees> during a port would completely defeat the purpose of the Cees> virtual machine, and I for one are very glad that Sun Cees> wouldn't allow this. If your Alpha port has changed ints and Cees> longs in API .java files it's just as much Java as Cees> Microsoft's stuff is... As long as he doesn't change java files in the platform independent source code everything should be OK. This is one of the reason why nobody should use the sun.* classes. Juergen -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: how many threads are too much?
Cees de Groot says: >>The Java threading model, as specified, is quite weak. >Yep. Some prices have to be paid for WORA. Personally, I don't think >it's a very big price. It depends on what you're doing. In the current system, you can't even really do applets correctly, because there's no way to stop them. You basically can't control the thread behavior of any code, trusted or untrusted. I run a mailing list to work on these issues, taking a resource accounting and control approach. http://gee.cs.oswego.edu/dl/javares/ [on priorities] >>(the mechanism that's there does not work very well) >I'm curious: "does not work very well" (current implementations) or >"can not work very well" (the standard has problems) ? Can not work very well. Priorities don't really mean anything in the Java spec - it's not clear there's even a guarantee that a thread of higher priority will execute preferentially to a thread of lower priority. In practice this isn't a problem for me, but it seems really weak. Peter Schuller says: >What about implementing a little scheduler in Java? There's some nice examples of doing that, and it is an interesting solution. It's a lot of work, though, and you still have the fundamental limitations of the threading model. If you get something working, release it open source and we'll all use it! [EMAIL PROTECTED] . . . .. . . . http://www.media.mit.edu/~nelson/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: how many threads are too much?
> What about implementing a little scheduler in Java? I mean, Java *does* > pre-emt even green threads if there's another threads of *higher* priority > running. > > So, as I believe has been mentioned before, it would be possible to use the > three thread priorities to implement a green-threads scheduler. > > Has anyone done this? I guess it's not much code involved. so I guess I'll > be trying it anyway, but what about the performance loss? Is it large? Yes, we have done this on AutO, a distributed system of autonomous objects. The system executes code supplied by many different users and we had to take precautions against code which does not voluntarily release the CPU. We have a daemon thread running at Thread.MAX_PRIORITY which sleeps 100ms in an endless loop. We did not try to tune this time slice, but we didn't experience any slowdown during normal operation. CU, Stefan -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Compile OK but not Run
After an installation de jdk1.2 on Linux RedHat 6 I can Compile with javac in Xterm windows and i get one file.class When i would run this file.class i use "java file.class" and it return this error : at java.lang.NoClassDefFoundError. Could you help me Thanks Olivier TINLAND French
Re: Compile OK but not Run
try "java file" not "java file.class" On Fri, 18 Jun 1999, tinland wrote: > After an installation de jdk1.2 on Linux RedHat 6 > > I can Compile with javac in Xterm windows and i get one file.class > > When i would run this file.class i use "java file.class" and it return this error : > at java.lang.NoClassDefFoundError. > > Could you help me > > Thanks > > Olivier TINLAND > [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: Compile OK but not Run
try adding . to your classpath ~ Yohans Mendoza [EMAIL PROTECTED] Sirius Images Inc. Unix Administrator http://www2.utep.edu/~yohans ~ On Fri, 18 Jun 1999, tinland wrote: > After an installation de jdk1.2 on Linux RedHat 6 > > I can Compile with javac in Xterm windows and i get one file.class > > When i would run this file.class i use "java file.class" and it return this error : > at java.lang.NoClassDefFoundError. > > Could you help me > > Thanks > > Olivier TINLAND > French > > > -- > 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]
Display an image
Hi,
I knew that getImage() could
load an image file from the
network and paint() could
display it.
However, I don't know how can I
get an image which is a local
file. I tried
Image i = getImage( String filename )
It can not be compiled and the
compiler said:
Incompatible type for method. Can't convert java.lang.String to java.net.URL.
i = getImage("houses.gif");
--Simmy
--
Yuet Sim Lee
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Calling Java objects from C++
Naoki Shibuya wrote: > > Hi, > > I'm looking for a way to call Java objects from C++. > Is this possible using JNI? Yes, it is possible. There are two scenarios: 1. you want to call methods of Java objects while you are in C++ code that is the native implementation of a method of another Java object. In this case, you have to pass the object you want to call methods upon as a parameter to the native method. 2. you want to execute Java code while you are in unrelated C++ code. Then, you have to create an instance of the Java virtual machine to execute the code in. This is much like calling 'java classname' from the command line. For details look at the JNI documentation - it's difficult to summarize. Matthias Pfisterer -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Problem aobut running javac & appletviewer...
Hi, When I run javac & appletviewer, I got the following message: /usr/local/jdk117_v1a/bin/checkVersions: /tmp/ldd.out.10047:Permission denied. /usr/local/jdk117_v1a/bin/i586/green_threads/appletviewer: /usr/bin/mkdir: No such file or directory SIGSEGV 11* segmentation violation stackbase(null), stackpointer=(null) Does this mean that anything wrong on my setting? (I am using RedHat 6) Regards, Tohru _ 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: Compile OK but not Run
> After an installation de jdk1.2 on Linux RedHat 6 > > I can Compile with javac in Xterm windows and i get one file.class > > When i would run this file.class i use "java file.class" and it return this error : > at java.lang.NoClassDefFoundError. you have to give like "java file" not "java file.class Linux saggi's -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: VisualAge for Java for Linux
Alex Rice wrote: > > Yes, everyone, check it out. Visual Age for Java is a great > development environment. > > Alex Rice|[EMAIL PROTECTED]|http://www.swcp.com/~alrice > Current Location: N. Rio Grande Bioregion, Southwestern USA > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] Everyone, I agree with Alex because Visual Age is probably one of the more stabler ide compared to ones like Visual Cafe that exists on the M$ side. The only thing that it is lacking is support for JDK 1.2/Swing 1.1+ which is okay because I can just export mystuf, change headers for 1.1 and then recompile since I have Swing 1.1 on my system. Matt Brown -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: VisualAge for Java for Linux
It is Pure java, which will run anywhere ? Or is it just for linux/intel :-/ gat Alex Rice wrote: > On Thu, 17 Jun 1999 09:57:39 -0400, > "Jauvane Cavalcante de Oliveira" <[EMAIL PROTECTED]> said: > > Jauvane> http://www7.software.ibm.com/vadreg.nsf/GARegistration?OpenForm > Jauvane> free of charge. The download page is > Jauvane> http://www.software.ibm.com/ad/vadd > > Jauvane> Let us let them know how big the Linux-Java community is :-) > Jauvane> (As if they didn't know it already). > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
