Re: Newbie question: What is a footprint ?
To be fair, memory footprint is a function and not a fixed thing. Java apps take more memory than native apps as they pay the price for the VM and libs, and this price may be big in the case of large libs that replace system-provided functionality like Swing (in cases where the used lib is not duplicating OS functionality, I would say the relative price of Java is zero because a native app would also need an equivalent library). But it's a one-time fee; in my experience, once I deliver that big cheque for creating my first JFrame, memory use scales very nicely with application size. - Original Message - From: Nathan Meyers <[EMAIL PROTECTED]> To: Mark Murphy <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, June 11, 1999 5:15 AM Subject: Re: Newbie question: What is a footprint ? > Mark Murphy wrote: > > > > I have heard this term used alot lately and was wondering if someone could > > explain to me what it is in reference to Java? > > A footprint is occupied space. A desktop PC's footprint is the number of > square inches it takes up on your desk. An application's disk footprint > is the space taken up on the disk by the installation. Its memory > footprint is the amount of memory consumed in running the application. > > Java has a large memory footprint -- just running a trivial app eats up > many megabytes of memory. > > Nathan > > > -- > 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: What is TYA
Yes, it is JIT for Linux. You can download it from here ftp://gonzalez.cyberus.ca/pub/Linux/java/tya13v2.tgz It works great with JDK 1.1.7 -- Aravind > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Per Åhgren > Sent: Friday, 11 June 1999 17:24 > To: [EMAIL PROTECTED] > Subject: What is TYA > > > I'm new to this mailing list and I have a question. > What is TYA. Is it a JIT compiler? Is it available for jdk 1.1.7 on > linux? > > Regards > Per > > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Something Special for Linux Developers on alphaWorks
Paolo Ciccone wrote: > > > "OPD" == Osvaldo Pinali Doederlein <[EMAIL PROTECTED]> writes: > > OPD> That's great! I did see the announcements but I though the > OPD> code was still in the distant future, as I didn't see a > OPD> public splash of it. So, is 'vi' doomed now on Linux? :) > > Well, we just didn't to talk about vaporware even though JB has been > tested on Linux for some time. Also we were waiting for a more stable > JVM, JBuilder is one heavy application. As we said we are working on a > multiplatform version that will be released for Solaris *and* Linux. > As many of us know Java is "write once test everywhere" and there are > indeed differences in the way it works between Solaris and > Linux. > > --Paolo You wouldn't happen to know if JBuilder on Linux might also mean an imminent release of Oracle JDeveloper on Linux, which is itself heavily based on JBuilder? (And no, vi will never be toasted by IDEs - just look at the popularity of vim/bash on Windows, the land of IDEs.) Ron -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Swing on Linux
>I've just started looking at using Swing for my Java project. It seems >really really slow. Is anyone here seriously using Swing under Linux, >without a JIT? Is there some way to improve things? Do JITs make >enough difference to make it bearable? Question: doesn't java 1.2 include the swing classes? If you're "just start"-ing to look at swing, why not start with java 1.2 instead? thanks, Larry Gates ps: not suggesting this will fix your speed. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Swing on Linux
>>I've just started looking at using Swing for my Java project. >Question: doesn't java 1.2 include the swing classes? If you're >"just start"-ing to look at swing, why not start with java 1.2 instead? Because I have 25,000 lines of code with scary classloader and RMI hacking that I haven't ported to Java 1.2 yet. The GUI is the smallest part of what I'm doing :-) Thanks to everyone's responses. I'd summarize by saying "Swing is slow, but usable, on Linux". Slow is of course relative.. [EMAIL PROTECTED] . . . .. . . . http://www.media.mit.edu/~nelson/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Add two dates
Hello, I have a JTable and some of the cells are date type with pattern H:mm (hours:minutes). I need have the total of these cells. Example : 02:15 + 0:20 = 02:35. Can I do it ? Thanks. Anabela Gomes [EMAIL PROTECTED]
Re: Add two dates
Well the first thing you do is post this message to the proper new group *comp.java.programmer* maybe? Chris :-> Anabela Gomes wrote: Hello, I have a JTable and some of the cells are date type with pattern H:mm (hours:minutes). I need have the total of these cells.Example : 02:15 + 0:20 = 02:35. Can I do it ?Thanks. Anabela Gomes [EMAIL PROTECTED]
Re: Swing on Linux
How can I get the swing classes for jdk117v3, I already have jdk1.2v2 can I just use the swing that comes with that? If so how/what do I move? _ 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: native threads Java with glibc 2.1
Jim Hazen writes: > Same there. Blackdown is doing a great job with 1.2 considering all the > bazillion new features it adds over 1.1. The latest rounds of Native > threads for 117v3 work great 'cept for AWT in dlopen() loaded JNI apps. Still waiting for the new release with improved AWT linkage, here. Btw., somebody pointed me to http://www.javaworld.com/javaworld/javaqa/1999-06/02-close.html for an AWT problem that I might have run into also. > but there still seem to be numerous Native > threading issues in 1.2. I'd really like to see this problem resolved > so that I can do more work with JNI, and write other complex threaded > apps that don't fink out when I don't use green threads. I'd consider > this a priority before JMF and JAI. Yesss. The architecture I have been fighting with for more than a year now (main executable not Java aware, JNI encapsulated inside a DLL loaded by dlopen(..)) is mission critical. I am not getting paid for this, it's an attempt to prove feasibility of Linux Java - which failed so far. It has been working on Win32 since March 1998, it still doesn't reliably on Linux. Needless to say, the Win32 base has moved to Java2. Unfortunately, it is as much a glibc/libdl issue as it is a JDK issue. b. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: C++ with JNI with JDK1.2pre2 with sunwjit crashes on Linux
I would like to see an example. --- Marcel Ruff <[EMAIL PROTECTED]> wrote: > Hi, > > I have a little HelloWorldAwt.C sample, which > crashes on Linux when > compiled and linked as C++ code (using g++). > HelloWorldAwt.C invokes via JNI a litle Java popup. > > When disabling the JIT it works fine. > > But: > --- > Compiled and linked as C (using cc) it runs fine > (with or without JIT) > > The problem seems somehow related to the different > way C and C++ is > linked. > > > My environment is: > > intel Linux 2.2.5 , glibc 2.0x > gcc version gcc-2.95 19990602 (prerelease) > > > I will provide an example if desired. > > > thanks, Marcel > > > Output when crashing --- > [Dynamic-linking native method > java/lang/System.mapLibraryName ... JNI] > [Loaded java.lang.ClassLoader$3 from > /usr/local/jdk1.2Pre2/jre/lib/rt.jar] > [Loaded java.lang.Boolean from > /usr/local/jdk1.2Pre2/jre/lib/rt.jar] > [Loaded java.lang.ClassLoader$NativeLibrary from > /usr/local/jdk1.2Pre2/jre/lib/rt.jar] > [Dynamic-linking native method > java/lang/ClassLoader$NativeLibrary.load > ... JNI] > [Loaded native library: > /usr/local/jdk1.2Pre2/jre/lib/i386/libsunwjit.so] > [Dynamic-linking native method > java/lang/ClassLoader$NativeLibrary.find > ... JNI] > [Loaded java.lang.NullPointerException from > /usr/local/jdk1.2Pre2/jre/lib/rt.jar] > SIGSEGV 11* segmentation violation > stackpointer=0xbfffe618 > > Full thread dump Classic VM > (Linux_JDK_1.2_pre-release-v2, native > threads): > "Finalizer" (TID:0x404dc320, > sys_thread_t:0x80cacc8, 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:0x404dc3b0, > sys_thread_t:0x80c63e0, > 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:0x404dc3e0, > sys_thread_t:0x80bee68, state:R, > native ID:0x401) prio=5 > "main" (TID:0x404dc1e0, sys_thread_t:0x804a8b0, > state:R, native > ID:0x400) prio=5 > at java.lang.String.valueOf(Compiled Code) > at > java.lang.Compiler.(Compiler.java:68) > Monitor Cache Dump: > > java.lang.ref.ReferenceQueue$Lock@404DC338/40512028: > > Waiting to be notified: > "Finalizer" (0x80cacc8) > (0x404dc131): owner "main" > (0x804a8b0) 1 entry > java.lang.ref.Reference$Lock@404DC3C0/40511B20: > > Waiting to be notified: > "Reference Handler" (0x80c63e0) > Registered Monitor Dump: > PCMap lock: > utf8 hash table: > JNI pinning lock: > JNI global reference lock: > BinClass lock: > Class linking lock: > System class loader lock: > Code rewrite lock: > Heap lock: > Monitor cache lock: owner "main" (0x804a8b0) 1 > entry > Thread queue lock: owner "main" (0x804a8b0) 1 > entry > Dynamic loading lock: > Monitor registry: owner "main" (0x804a8b0) 1 > entry > > > > > -- > 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: Swing on Linux
>How can I get the swing classes for jdk117v3 Go to http://java.sun.com/, find the Swing page, and download the release. All you really need out of it is swingall.jar, put it in your classpath and you're set. A bit more on the Swing front - I was confusing slowness on startup with general slowness. Are there any tricks to making the first Swing windows you create come up faster, so it at least feels faster? [EMAIL PROTECTED] . . . .. . . . http://www.media.mit.edu/~nelson/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Swing on Linux
On Fri, Jun 11, 1999 at 12:07:12PM -0400, Nelson Minar wrote: > >How can I get the swing classes for jdk117v3 > > Go to http://java.sun.com/, find the Swing page, and download the > release. All you really need out of it is swingall.jar, put it in your > classpath and you're set. > > A bit more on the Swing front - I was confusing slowness on startup > with general slowness. Are there any tricks to making the first Swing > windows you create come up faster, so it at least feels faster? My system has always had a huge startup time, in the order of tens of seconds from launch to the first window. This was just as true in the previous incarnation that was awt based. -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]
process shutdown fails in JNI-application (native threads)
Hi, I am using the JNI invocation API in a C (not C++) application. Calling java methods works. But when the program calls exit() it hangs in __syscall_sigsuspend(). All threads (native ones, creates by the JVM after JNI_CreateJavaVM()) remain in the process list. This is the stack of the main thread: (gdb) bt #0 0x4017af74 in __syscall_sigsuspend () #1 0x4019f4cc in __DTOR_END__ () #2 0x4010061d in pthread_exit_process (retcode=0, arg=0x0) at restart.h:32 #3 0x401256aa in exit (status=0) at exit.c:52 #4 ... I think this in not a problem of my application, as the same effect occurs with appletviewer: $ rm -rf $HOME/.hotjava $ appletviewer the licence window appears # press [accept] button (nothing happens) # press it again (window disappears) # appletviewer ends with a usage message $ ps# lists 9 threads 27370 p8 S0:00 sh /usr/lib/java/bin/../bin/i686/native_threads/appletviewer 27390 p8 S0:00 /usr/lib/java/bin/../bin/i686/native_threads/java sun/applet 27391 p8 S0:00 /usr/lib/java/bin/../bin/i686/native_threads/java sun/applet 27392 p8 S N 0:00 /usr/lib/java/bin/../bin/i686/native_threads/java sun/applet 27393 p8 S0:00 /usr/lib/java/bin/../bin/i686/native_threads/java sun/applet 27394 p8 S0:00 /usr/lib/java/bin/../bin/i686/native_threads/java sun/applet 27395 p8 S N 0:00 /usr/lib/java/bin/../bin/i686/native_threads/java sun/applet 27396 p8 S N 0:00 /usr/lib/java/bin/../bin/i686/native_threads/java sun/applet 27397 p8 S0:00 /usr/lib/java/bin/../bin/i686/native_threads/java sun/applet 27398 p8 S N 0:00 /usr/lib/java/bin/../bin/i686/native_threads/java sun/applet here are 2 of the stacks, all are similar to each other and to the stack of my program: $ gdb /usr/lib/java/bin/../bin/i686/native_threads/java (gdb) atta 27390 Attaching to program `/usr/lib/java/bin/../bin/i686/native_threads/java', process 27390 Reading symbols from /usr/lib/java/bin/../lib/i686/native_threads/libjava.so... done. Reading symbols from /lib/libpthread.so.0...done. Reading symbols from /lib/libm.so.6...done. Reading symbols from /lib/libdl.so.2...done. Reading symbols from /usr/lib/java/bin/../lib/i686/native_threads/libawt.so... done. Reading symbols from /usr/X11R6/lib/libXpm.so.4...done. Reading symbols from /usr/X11R6/lib/libXt.so.6...done. Reading symbols from /usr/X11R6/lib/libICE.so.6...done. Reading symbols from /usr/X11R6/lib/libSM.so.6...done. Reading symbols from /usr/X11R6/lib/libXext.so.6...done. Reading symbols from /usr/X11R6/lib/libX11.so.6...done. Reading symbols from /usr/X11R6/lib/libXp.so.6...done. Reading symbols from /lib/libc.so.6...done. Reading symbols from /lib/ld-linux.so.2...done. Reading symbols from /lib/libnss_files.so.1...done. Reading symbols from /lib/libnss_nis.so.1...done. Reading symbols from /lib/libnsl.so.1...done. Reading symbols from /lib/libnss_dns.so.1...done. Reading symbols from /lib/libresolv.so.2...done. 0x40281f74 in __syscall_sigsuspend () (gdb) bt #0 0x40281f74 in __syscall_sigsuspend () #1 0x402a64cc in __DTOR_END__ () #2 0x40077bef in pthread_join (thread_id=1025, thread_return=0xb4c8) at restart.h:49 #3 0x4005c598 in java_main () at ../../../../src/genunix/java/native_threads/src/threads_md.c:1201 #4 0x8061dc6 in main (argc=2, argv=0xb5a4, envp=0xb5b0) at ../../../../src/genunix/java/javai/java.c:23 (gdb) deta Detaching from program: /usr/lib/java/bin/../bin/i686/native_threads/java proces s 27390 (gdb) atta 27392 (gdb) bt #0 0x40281f74 in __syscall_sigsuspend () #1 0x402a64cc in __DTOR_END__ () #2 0x40077383 in pthread_cond_wait (cond=0x81988bc, mutex=0x8198890) at restart.h:49 #3 0x4005c656 in condvarWait () at ../../../../src/genunix/java/native_threads/src/condvar_md.c:191 #4 0x4005b5c1 in sysMonitorWait () at ../../../../src/genunix/java/native_threads/src/monitor_md.c:128 #5 0x4005c1cb in WaitToDie () at ../../../../src/genunix/java/native_threads/src/threads_md.c:364 #6 0x40057c17 in thread_java_main () at ../../../../src/genunix/java/javai/javai.c:142 #7 0x4005c4d8 in java_start () at ../../../../src/genunix/java/native_threads/src/threads_md.c:1200 #8 0x40078106 in pthread_start_thread (arg=0xbf9ffea4) at manager.c:165 I am using DLD Distribution Version 4.17.0.4, blackdown jdk1.1.7v3, THREADS_FLAG=native, libc-2.0.7.so, ld-2.0.7.so, libpthread-0.7.so There is a warning from ldconfig -D: /lib/libpthread-0.7.so has inconsistent soname (libpthread.so.0), I don't know, if this can be ignored. Can anybody help me ? Regards Volker -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
scs download, egcs for jdk1.2-build
Hi, in README.linux.src you say that you have to wait for email to get the sdk1.2 sources, I don´t think that applies (anymore), so maybe you want to change that. you also said I should get egcs v 2.1.6, but afaik the latest version as they say on the homepage is egcs 1.1.2, and the latest gcc is 2.95. which one should I use or is the gcc 2.91.60 that came with my linux enough ? Thanks a lot, Felix Natter -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Something Special for Linux Developers on alphaWorks
> "RR" == Ron Resnick <[EMAIL PROTECTED]> writes: RR> You wouldn't happen to know if JBuilder on Linux might also RR> mean an imminent release of Oracle JDeveloper on Linux, which RR> is itself heavily based on JBuilder? Sorry, I have no idea what Oracle will do. --Paolo -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Swing on Linux
Nelson Minar wrote: > > >How can I get the swing classes for jdk117v3 > > Are there any tricks to making the first Swing > windows you create come up faster, so it at least feels faster? The main thing I can suggest is to make sure you're not doing any heavy lifting before your first window _finishes_ drawing. Unfortunately, that won't necessarily be immediately after you call show(), because the painting, if nothing else, happens asynchronously. In one case, in desperation, I put a notify in my paint routine and waited on that before doing my time-intensive initialization. There are probably better hacks to be found for that. Something that helped a bit was to stop using ImageIcon for toolbar button images. Raster encoding the gifs and drawing them with straight AWT turned out to be faster and use less memory. Doing this also avoids occasional random null pointer exceptions in the JDK image loading code. Louis Tribble -- <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> Louis Tribble [EMAIL PROTECTED] Metamata, Inc. http://www.metamata.com Tools for serious Java developers. +1 510 796 0915 <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Swing on Linux
there used to be a bug in JDK that loaded ALL of the font files before starting Swing. perchance the bug has resurfaced. there used to be a FONTS environment variable that controlled the loading location. the fix was to set up a fonts directory with a small number of fonts and point the environment variable there. the speedup was dramatic. tim [EMAIL PROTECTED] Nelson Minar wrote: > > >How can I get the swing classes for jdk117v3 > > Go to http://java.sun.com/, find the Swing page, and download the > release. All you really need out of it is swingall.jar, put it in your > classpath and you're set. > > A bit more on the Swing front - I was confusing slowness on startup > with general slowness. Are there any tricks to making the first Swing > windows you create come up faster, so it at least feels faster? > > [EMAIL PROTECTED] > . . . .. . . . http://www.media.mit.edu/~nelson/ > > -- > 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]
Compiles ok. Problems with runtime jdk1.2
Hello, I have successfully compiled the test program HelleWorldApp.java off the Sun Tutorial site. The problem comes about when I want to run it: # bin/java HelloWorldApp Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldApp The machine is Redhat 5.2 using glibc 2.0.7. I know I downloaded the right version because I can run this script on other machines. What should I be looking for? I changed the permissions on all files to be 775. Again it compiles fine, just doesn't run. Can anyone point me in the right direction? The documentation says that you don't need to add a CLASSPATH. I tried both with and without with no success. Thanks. -- James Huff System Admin/Developer NetMarket/Hagglezone (425) 456-3520 [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Compiles ok. Problems with runtime jdk1.2
On Fri, 11 Jun 1999, James Huff wrote: > Hello, > > I have successfully compiled the test program HelleWorldApp.java off the > Sun Tutorial site. The problem comes about when I want to run it: Try this. % setenv CLASSPATH . % java HelloWorldApp later mo > # bin/java HelloWorldApp > Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldApp > > The machine is Redhat 5.2 using glibc 2.0.7. I know I downloaded the > right version because I can run this script on other machines. What > should I be looking for? I changed the permissions on all files to be > 775. Again it compiles fine, just doesn't run. Can anyone point me in > the right direction? The documentation says that you don't need to add a > CLASSPATH. I tried both with and without with no success. > > Thanks. > -- > > James Huff > System Admin/Developer > NetMarket/Hagglezone > (425) 456-3520 > [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: Compiles ok. Problems with runtime jdk1.2
That totally worked! Thanks!! Moses DeJong wrote: > > On Fri, 11 Jun 1999, James Huff wrote: > > > Hello, > > > > I have successfully compiled the test program HelleWorldApp.java off the > > Sun Tutorial site. The problem comes about when I want to run it: > > Try this. > > % setenv CLASSPATH . > % java HelloWorldApp > > later > mo > > > # bin/java HelloWorldApp > > Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldApp > > > > The machine is Redhat 5.2 using glibc 2.0.7. I know I downloaded the > > right version because I can run this script on other machines. What > > should I be looking for? I changed the permissions on all files to be > > 775. Again it compiles fine, just doesn't run. Can anyone point me in > > the right direction? The documentation says that you don't need to add a > > CLASSPATH. I tried both with and without with no success. > > > > Thanks. > > -- > > > > James Huff > > System Admin/Developer > > NetMarket/Hagglezone > > (425) 456-3520 > > [EMAIL PROTECTED] > > > > > > -- > > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > -- James Huff System Admin/Developer NetMarket/Hagglezone (425) 456-3520 [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: select() API
Hello,
I've been waiting for years for a solution to missing select()-style IO. Are you
developing for GNU
GPL? (so the question: may I use and test your code in a real-world application?)
Thank you in advance.
Xuân Baldauf.
(P.S.: Ich spreche auch deutsch)
Bernhard Fastenrath wrote:
> [EMAIL PROTECTED] wrote:
> > At least one company I know of has been forced to a custom JVM
> > (Hewlett-Packard's) in order to get acceptable performance out of a
> > Java-based server, and they basically made an interface to select().
> > I believe they've submitted a proposal to Sun also. And according to
> > them, the Sun engineers are amenable to doing something about this.
>
> Oops, i was just about to implement it myself.
> Is their select() interface availabe online?
>
> package os.unix.io;
>
> // os.unix.System:
> // public static int select (FdSet read, FdSet write, FdSet exception, Date timeout)
>
> public class FdSet {
> public native boolean get (int bitIndex);
> public native voidset (int bitIndex);
> public native voidset (int bitIndex, boolean bit);
> public native voidclear (int bitIndex);
> public native int length (); // the index of the highest set bit in the BitSet
>plus one
> public native int size (); // the number of bits of space actually in use by
>this BitSet
> static native int[] getBits ();
>
> static {
> java.lang.System.loadLibrary ("unixio");
> }
> }
>
> A higher level API which automatically assigns work to threads from a
> thread pool could be a pure Java API on top of this.
>
> --
> Bernhard Fastenrath phone +49 228 55991-0 (fax-44)
> Gesellschaft fuer Digitale Sicherheit mbH,http://www.digital-security.com
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
missing header files in JDK1.2
REPOSTING: I am running into trouble compiling some code that compiles and runs on a solaris box (with jdk1.1.7 for solaris) but cannot find several header files when compiled against jdk1.2 on linux. (for example, oobj.h, sysmacros_md.h, threads.h etc) The include directory on the jdk1.2 seems to lack several required header files. Some of them can be found in include-old but they don't seem correct either. did anybody else face this problem? Where are the right include files in the jdk1.2.? I would really appreciate the help. thanks Sumit Gupta [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Problem running Java3D
Maybe the porting team can experiment with linking against libGL.so (when you follow the Mesa installation instructions, or if you install from an RPM, you'll have libGL.so symlinked to libMesaGL.so.x). Hopefully there won't be any problems with the loader barfing on the symlink. PS: Most Linux users will have Mesa rather than a "real" OpenGL implementation, since Mesa is free, and most OpenGL implementations cost around $1,000 (even on Linux). Mesa also supports Voodoo graphics-based hardware acceleration, which OpenGL does not, it plays well with XFree86, etc. BUT... it's supposed to be source-compatible with OpenGL. --Jeff Francisco Figueirido wrote: > > I downloaded the Java3D port but was unable to get it running. One of the > shared libraries needs libMesaGL.so.3.? (forgot the number), but I have > the Xi Graphics OpenGL port instead. After making the appropriate symbolic > links (libMesaGL.so.3.? -> libGL.so) I get an `undefined symbol' error for > glTexImage3DEXT. Am I right in thinking that this is an OpenGL 1.2 function? > The Xi OpenGL is a port of version 1.1, and doesn't contain this function > (it contains glTexImage1D and glTexImage2D). If this is so, is OpenGL 1.2 > really needed for Java3D? If not needed, would it be possible to provide a > version linked against an OpenGL 1.1 port? > > Another question: has anybody had success running jdk1.2-pre.v2 with the TYA > JIT? Just curious ... > > -- > Francisco Figueirido, Ph.D. Phone: (212)317-7680 > Quantitative AnalystFax: (212)317-7601 > Imagine Software, Inc. e-mail: [EMAIL PROTECTED] > 400 Madison Avenue, 21st Floor > New York, NY 10017 > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- 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: What is TYA
How does TYA/JDK117 compare to IBM's JVM for Linux? Does either TYA or IBMs JIT work with JDK1.2 prev2?Sent by: "Aravind Selvaraje" <[EMAIL PROTECTED]>06/11/99 06:12 PM To: "Per Åhgren" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> cc: bcc: Subject: RE: What is TYA Yes, it is JIT for Linux.You can download it from hereftp://gonzalez.cyberus.ca/pub/Linux/java/tya13v2.tgzIt works great with JDK 1.1.7-- Aravind> -Original Message-> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Per Åhgren> Sent: Friday, 11 June 1999 17:24> To: [EMAIL PROTECTED]> Subject: What is TYA>>> I'm new to this mailing list and I have a question.> What is TYA. Is it a JIT compiler? Is it available for jdk 1.1.7 on> linux?>> Regards> Per>>--To UNSUBSCRIBE, email to [EMAIL PROTECTED]with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]èPÔ ¨¥¶Ú½©bìkz«²ØÚ½¦åiÉ£ è®"¶¬¹¸ÞrÚº{.nÇ+·®à¨Ö¶X¬µ§f«ÚnVÚ0à
IBM released an early jdk for linux
It is only jdk1.1.6 though. But I will take it. www.alphaworks.ibm.com Check it out! -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: IBM released an early jdk for linux
>It is only jdk1.1.6 though. But I will take it. Yeehaw! If you don't like hunting, it's at http://www.alphaworks.ibm.com/tech/linuxjvm Native threads, requires glibc 2.1 and kernel 2.2. Says Redhat 6.0 is good to go, and it seems to be. It requires Motif, but they have helpful instructions about how to install LessTif 0.88.1. I did a few quick tests against the Blackdown JDK 1.1.7_v3 (no JIT). The main story is that it works! I'm quite impressed. I did a bit of speed comparison, nothing comprehensive, I'd be interested in real benchmarks. A fancy animated graphics program I wrote does great under the IBM JDK, running smoothly at a framerate and size well beyond where it'll choke running under Blackdown. My big distributed application environment, Hive, seems to run fine with it. I can't actually compile it (JDK 1.1.6 rmic has a bug), but it'll run the classes just great. Hive makes use of lots of concurrently running threads, graphics, object allocation, and RMI. It runs well under the IBM JDK and seems quite responsive. My only complaints so far.. a bit of font damage in java.awt.Choice. And rmic, the compiler, seems to run slower under the IBM JDK. But maybe that's a different version of rmic itself, or maybe just JIT overhead for a funny case. [EMAIL PROTECTED] . . . .. . . . http://www.media.mit.edu/~nelson/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: IBM released an early jdk for linux
Edgar Villanueva wrote: > > It is only jdk1.1.6 though. > > But I will take it. > > www.alphaworks.ibm.com > > Check it out! Is the 90 day evaluation license for real? I remember downloading Netscape Navigator (since 0.96 onward) once every three months just to get over the 90 evaluation license restriction: "Your evaluation period has expired! You cannot surf the web with this version of the browser any more, except to go to the Netscape web site for a fresh evaluation copy of the Navigator!" What will the IBM JVM do in 90 days? $ java HelloWorld IBM: java.lang.Object on strike! On a serious note, how will the IBM JVM impact the Blackdown port? -- Weiqi Gao [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
-Xrunhprof:cpu=times
It seems that the -Xrunhprof:cpu=times option doesn't work with Linux_JDK_1.2_pre-release-v1 (I haven't downloaded v2 yet). I get the following output: CPU TIME (ms) BEGIN (total = 0) Sat Jun 12 13:27:55 1999 rank self accum count trace method 1 NaN% NaN% 0 1 2 NaN% NaN% 032 au/com/phasefale/pressnet/bytearraycard/ByteArrayCard.readCardProperties 3 NaN% NaN% 014 java/lang/Class.forName0 4 NaN% NaN% 015 org/sw_zoo/message/GenericLookup.initialize 5 NaN% NaN% 010 au/com/phasefale/pressnet/simulator/Simulator.main 6 NaN% NaN% 031 au/com/phasefale/pressnet/model/Sensor8Card. It happens whether I am using native threads or not; or the jit or not. Is this a known problem? Chris (kill -9 Microsoft) Kakris 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]
Re: missing header files in JDK1.2
On Fri, 11 Jun 1999, Sumit Gupta wrote: > REPOSTING: > > I am running into trouble compiling some code that compiles and runs > on a solaris box (with jdk1.1.7 for solaris) but cannot find several > header files when compiled against jdk1.2 on linux. (for example, > oobj.h, sysmacros_md.h, threads.h etc) > > The include directory on the jdk1.2 seems to lack several required > header files. Some of them can be found in include-old but they > don't seem correct either. > > did anybody else face this problem? Where are the right include files > in the jdk1.2.? I would really appreciate the help. Nothing is missing; I believe the header files in include-old should allow you to compile older JNI code so that it works against 1.2. Make sure that you also include include-old/linux to get the platform specific stuff. Scott -- = Scott Murray email: [EMAIL PROTECTED] http://www.interlog.com/~scottm ICQ#: 10602428 - "Good, bad ... I'm the guy with the gun." - Ash, "Army of Darkness" -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: What is TYA
[EMAIL PROTECTED] wrote: > How does TYA/JDK117 compare to IBM's JVM for Linux? > > > > Does either TYA or IBMs JIT work with JDK1.2 prev2? TYA works with JDK 1.2, however it is generally slower than the sun JIT included with 1.2 regards [ bryce ] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: problem with compiling JMF - missing header files
Hi, > I am trying to compile the Java Media Framework sources on linux > against the jdk 1.2 from blackdown. I am running into problems > because the sources try to include header files (which come as > part of the jdk on a solaris box) but which are missing from > the include directory in the linux jdk (for instance > threads.h, sys_api.h, oobj.h, etc.) . some of these header > files i could find in a directory called "include-old" in the linux > JDK but including those leads to further missing header files. Did you see an include-old/linux directory? Kazuyuki SHUDO Happy Hacking! Muraoka Lab., Grad. School of Sci. & Eng., Waseda Univ. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
