Re: JNI and command-line arguments
> "soonho" == soonho <[EMAIL PROTECTED]> writes: soonho> I have a C program running in Linux using command line soonho> argument - main (int argc, char *argv[]). How to use JNI soonho> to call this command-line argument? I need to use JNI soonho> cause my C program involve OS-specific function. Is soonho> Innovation API soonho> - creating VM will solve this problem. I heard soonho> that Innovation API is not fully supported in Linux. Is soonho> it true in JDK1.3? It is supported. [...] Just like people told you on comp.lang.java.programmer some days ago, there's no sense or need for using JNI to do this. Just use Runtime.exec(). Juergen -- Juergen Kreileder, Blackdown Java-Linux Team http://www.blackdown.org/java-linux.html JVM'01: http://www.usenix.org/events/jvm01/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
j2sdk-1.3.0-FCS plugin
Hi all, I've upgraded to RedHat 7.0 will all updates from RedHat until now (all glibc, ...). I'm using j2sdk-1.3.0-FCS without problems except the plugin. Running it ends with: [ivop@roger fonty]$ appletviewer Applet12.html # # An unexpected exception has been detected in native code outside the VM.# Program counter=0x48821ffc # # Problematic Thread: prio=5 tid=0x804ebd8 nid=0x368f runnable # Neúspěšně ukončen (SIGABRT) similar window in Netscape and plugin Java itself runs without problems (rmi client/server, ...), swing applications too (jedit). Could someone point me to any solution, please? ip -- E-mail: [EMAIL PROTECTED] WWW:http://ivop.regionet.cz Mobile: +420 602 337776 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
JRE as part of Linux
Hello Recently an interesting question crossed my mind - is there a project for "emedding" JRE as part of Linux system. By embedding I mean starting it at system boot or the first time it's needed and keep it running, so that when the user starts an Java application java is already there and start time is shortened. One of the reasons lots of users avoid java is because even the simplest application loads several times slower than its naive ecuivalent. I know about the kernel module that invokes JRE when you exec a java .class file(with appropriate +x permission). But it doesn't keep JVM is not resident. fYavor -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Disabling DNS lookups!?
Hello, I have following problem: In order to run a special application without crashes - DNS lookups must be disabled for that program as someone found out! The same good fellow sent me a description for doing this under FreeBSD! Does anyone know how what I have to do under LINUX (RedHat 6.2) in order to get the same result??? I use Blackdown JAVA and IBM Java and I was told that the way must be similar but that also /etc/nsswitch.conf hast to be modified! Can anyone tell me what I have to do in a RedHat Linux 6.2 (Blackdown Java/ IBM Java) environment Thank you very much for your help!!! Volker = Here the description for FreeBSD: Created patched libc.so to replace /etc/host.conf with /etc/hostJconf without DNS lookups. Inserted LD_LIBRARY_PATH in startup script to point on custom libc.so. * found real binary Java executable /usr/local/jdk1.1.8/bin/i386/green_threads/java * ldd on it: $ ldd /usr/local/jdk1.1.8/bin/i386/green_threads/java /usr/local/jdk1.1.8/bin/i386/green_threads/java: libjava.so => not found (0x0) libxpg4.so.2 => /usr/lib/compat/libxpg4.so.2 (0x28064000) libm.so.2 => /usr/lib/libm.so.2 (0x28068000) libc.so.3 => /usr/lib/compat/libc.so.3 (0x28083000) * DNS resolver in libc.so * Java is linked against FreeBSD-3.x compatibility library * here is JDK version: $ /usr/local/jdk1.1.8/bin/java -fullversion java full version "jdk1.1.8-FreeBSD:1999/11/9" * DNS resolver configured in /etc/host.conf * I need to disable DNS lookups for JDK/DigiChat only * binary patching $ mkdir /usr/local/Application/libc $ cp /usr/lib/compat/libc.so.3 /usr/local/Application/libc $ cd /usr/local/Application/libc $ perl -pi.bak -e 's{/etc/host\.conf}{/etc/hostJconf}g;' libc.so.3 $ cd /etc $ echo hosts > hostJconf -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
EVENT MODEL PROBLEM
can some one explain to me what is wrong here / i try to attache a Jtable in a frame and i get event erroros i am including a typescript with the error reports for you to see -- Billy Kantartzis 3rd year computer science, Isaac Rebow House Flat 3, University of Essex, co4 3sq Colchester, Essex, phone:(+44) 0120653-6483 Mob: 07968151304 Script started on Thu Jan 18 21:31:14 2001 ]0;root@ovelix2: /root/project/v00[root@ovelix2 v00]# run ]0;root@ovelix2: /root/project/v00[root@ovelix2 v00]# initializing app Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific] Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific] Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific] Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific] Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific] Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific] Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific] Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific] Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific] Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific] Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific] Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific] Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific] Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific] Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific] Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific] Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific] Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific] Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific] Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific] >>vkanta >>bk123qaz trying to login to sh622.essex.ac.uk Exception occurred during event dispatching: java.lang.ArrayIndexOutOfBoundsException at MailReceiver.getSubject(MailReceiver.java:281) at TableModel.getMessageInfo(TableModel.java:75) at TableModel.getValueAt(TableModel.java:56) at javax.swing.JTable.getValueAt(JTable.java:1711) at javax.swing.JTable.prepareRenderer(JTable.java:3530) at javax.swing.plaf.basic.BasicTableUI.paintCell(BasicTableUI.java:995) at javax.swing.plaf.basic.BasicTableUI.paintCells(BasicTableUI.java:917) at javax.swing.plaf.basic.BasicTableUI.paint(BasicTableUI.java:858) at javax.swing.plaf.ComponentUI.update(ComponentUI.java:39) at javax.swing.JComponent.paintComponent(JComponent.java:398) at javax.swing.JComponent.paint(JComponent.java:739) at javax.swing.JComponent.paintChildren(JComponent.java:523) at javax.swing.JComponent.paint(JComponent.java:748) at javax.swing.JViewport.paint(JViewport.java:668) at javax.swing.JComponent.paintChildren(JComponent.java:523) at javax.swing.JComponent.paint(JComponent.java:748) at javax.swing.JComponent.paintChildren(JComponent.java:523) at javax.swing.JComponent.paint(JComponent.java:748) at javax.swing.JComponent.paintChildren(JComponent.java:523) at javax.swing.JComponent.paint(JComponent.java:748) at javax.swing.JComponent.paintChildren(JComponent.java:523) at javax.swing.JComponent.paint(JComponent.java:748) at javax.swing.JLayeredPane.paint(JLayeredPane.java:546) at javax.swing.JComponent.paintChildren(JComponent.java:523) at javax.swing.JComponent.paint(JComponent.java:719) at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:23) at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:54) at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:91) at java.awt.Container.paint(Container.java:960) at sun.awt.RepaintArea.paint(RepaintArea.java:298) at sun.awt.motif.MComponentPeer.handleEvent(MComponentPeer.java:306) at java.awt.Component.dispatchEventImpl(Component.java:2665) at java.awt.Container.dispatchEventImpl(Container.java:1213) at java.awt.Wind
Re: JRE as part of Linux
http://gcc.gnu.org/ ... look at the Java support if you want startup times that are as good as native code. (And don't need Swing... GTK integration is in the works though.) GCC 3.0 includes a Java compiler, GCJ. It's in code slush now, soon to branch; "hope to release by the end of Q1 2001". - Dave - Original Message - From: Yavor Kolarov <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 18, 2001 11:58 AM Subject: JRE as part of Linux > Hello > > Recently an interesting question crossed my mind - is there a project for > "emedding" JRE as part of Linux system. By embedding I mean starting it at > system boot or the first time it's needed and keep it running, so that when > the user starts an Java application java is already there and start time is > shortened. One of the reasons lots of users avoid java is because even the > simplest application loads several times slower than its naive ecuivalent. > I know about the kernel module that invokes JRE when you exec a java .class > file(with appropriate +x permission). But it doesn't keep JVM is not resident. > > fYavor > > > -- > 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: JRE as part of Linux
On Thu, 18 Jan 2001, Yavor Kolarov wrote: > Recently an interesting question crossed my mind - is there a project for > "emedding" JRE as part of Linux system. By embedding I mean starting it at > system boot or the first time it's needed and keep it running, so that when > the user starts an Java application java is already there and start time is > shortened. One of the reasons lots of users avoid java is because even the > simplest application loads several times slower than its naive ecuivalent. > I know about the kernel module that invokes JRE when you exec a java .class > file(with appropriate +x permission). But it doesn't keep JVM is not resident. We have the same problem with just about all of the non-native/interpreted code run under Linux (i.e., Perl, Python, etc). I think something like that would severely impact performance of the kernel. But something like that would be cool for an embedded application, like for a hardware appliance. -- Brett http://www.chapelperilous.net/~bmccoy/ --- QOTD: My mother was the travel agent for guilt trips. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: JRE as part of Linux
Until Sun agress to release java under the gpl, it ain't gonna happen. There isn't even a 1.2 compatible free jvm. Yavor Kolarov wrote: > > Hello > > Recently an interesting question crossed my mind - is there a project for > "emedding" JRE as part of Linux system. By embedding I mean starting it at > system boot or the first time it's needed and keep it running, so that when > the user starts an Java application java is already there and start time is > shortened. One of the reasons lots of users avoid java is because even the > simplest application loads several times slower than its naive ecuivalent. > I know about the kernel module that invokes JRE when you exec a java .class > file(with appropriate +x permission). But it doesn't keep JVM is not resident. > > -- Joseph Shraibman [EMAIL PROTECTED] Increase signal to noise ratio. http://www.targabot.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: JRE as part of Linux
"Brett W. McCoy" wrote: > > On Thu, 18 Jan 2001, Yavor Kolarov wrote: > > > Recently an interesting question crossed my mind - is there a project for > > "emedding" JRE as part of Linux system. By embedding I mean starting it at > > system boot or the first time it's needed and keep it running, so that when > > the user starts an Java application java is already there and start time is > > shortened. One of the reasons lots of users avoid java is because even the > > simplest application loads several times slower than its naive ecuivalent. > > I know about the kernel module that invokes JRE when you exec a java .class > > file(with appropriate +x permission). But it doesn't keep JVM is not resident. > > We have the same problem with just about all of the non-native/interpreted > code run under Linux (i.e., Perl, Python, etc). I think something like > that would severely impact performance of the kernel. It definitely wouldn't be welcome by the kernel team.:-). I think what you're looking for is an application server that can be started early (perhaps by a Linux startup script) and handle requests for classes to load and run. There are a lot of challenges to doing this well, and nearly impossible when dealing with GUI apps... but it's possible if you make enough simplifying assumptions :-). Nathan > > But something like that would be cool for an embedded application, like > for a hardware appliance. > > -- Brett > http://www.chapelperilous.net/~bmccoy/ > --- > QOTD: > My mother was the travel agent for guilt trips. > > -- > 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]