Crash (SIGSEGV, SIGILL) of 32bit Hotspot under Linux x86_64 in VMware

Hello!
A reproducible crash of these 1.6 32 bit Java VMs is hinderung my application from starting when I want to start it under a x86_64 Linux kernel in VMware (Workstation and ESX):
- java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing)
- java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Server VM (build 10.0-b22, mixed mode)
- java version "1.6.0_10-beta"
Java(TM) SE Runtime Environment (build 1.6.0_10-beta-b23)
Java HotSpot(TM) Client VM (build 11.0-b11, mixed mode, sharing)
Tested using there kernels:
- Linux debian 2.6.18-6-amd64 #1 SMP Sun Feb 10 17:50:19 UTC 2008 x86_64 GNU/Linux
- Linux openSUSE 2.6.22.5-31-default #1 SMP 2007/09/21 22:29:00 UTC x86_64 x86_64 x86_64 GNU/Linux
- Linux sles10-sp1-sdm 2.6.16.46-0.12-default #1 Thu May 17 14:00:09 UTC 2007 x86_64 x86_64 x86_64 GNU/Linux
Sproradic but reproducible JVM (Hotspot) crashes while running a simple garbage collector stress application several times in parallel. hs_err files are generated each time. However, the "Problematic frame" address and library changes every time!
Examples:
# Java VM: Java HotSpot(TM) Client VM (10.0-b22 mixed mode, sharing linux-x86)
# Problematic frame:
# C [libc.so.6+0xe4c9d] xdr_u_long+0xd
VM state:not at safepoint (normal execution)
# Java VM: Java HotSpot(TM) Server VM (10.0-b22 mixed mode linux-x86)
# Problematic frame:
# C 0xf7f56acb
VM state:at safepoint (normal execution)
# Java VM: Java HotSpot(TM) Server VM (10.0-b22 mixed mode linux-x86)
# Problematic frame:
# C [libnss_compat.so.2+0x2e16] nsscompat_getpwnam_r+0x46
VM state:synchronizing (normal execution)
The problem only appears using JDK or JRE 1.6 32 bit edition on a Linux 2.6 x86_64 kernel in VMware. Tests using real hardware, using a i686 kernel and using JDK / JRE 1.6 64 bit edition or JDK / JRE 1.5 (32 bit and 64 bit) could not reproduce the crashes.
Questions:
- Is there a general stability problem when starting the 32 bit Java VM under Linux 64?
- Does anybody have similar problems with
- Java VM 32bit under Linux 64?
- Java VM in VMware (both ESX and Workstation)?
Simple stress test application:
public class GCStress {
private static Thread[] threads;
private static java.util.Random random = new java.util.Random();
private static int maxBytes;
private static int numThreads;
public static void main(String[] args) {
numThreads = Integer.parseInt(args[0]);
maxBytes = Integer.parseInt(args[1]);
threads = new Thread[numThreads];
for (int x = 0; x < numThreads; x++) {
threads[x] = new Thread(new Allocator(), "Thread_" + x);
threads[x].start();
while (true) {
for (int x = 0; x < numThreads; x++) {
if (!threads[x].isAlive()) {
threads[x] = new Thread(new Allocator(), "Thread_r" + x);
threads[x].start();
try {
Thread.sleep(500);
} catch (InterruptedException e) {
// ignore
private static class Allocator implements Runnable {
public void run() {
while (true) {
int tSize = random.nextInt(maxBytes);
// System.out.println(Thread.currentThread().getName()
// + " allocating " + tSize / 1024 + "kb");
byte[] tMemFiller = new byte[tSize];
try {
Thread.sleep(random.nextInt(200));
} catch (InterruptedException e) {
; // ignore
}

The program is started like this:
./jdk1.6.0_06/bin/java -server -Xms32m -Xmx256m GCStress 500 10485760
And I run it usually 5 times in parallel. 1 time seems not to be enough (I should test that tonight).
However, I've tested using several -XX: flags, but nothing really helped! (-XX:+UseParallelGC, -XX:-UseTLAB, -XX:+UseSpinning -XX-UseThreadPriorities, -XX:-UseBiasedLocking, -XX:-UseLargePages)
About the lib: Every time, the content of hs_err is very different. I've also got
hs_err_pid6201.log:# Problematic frame:
hs_err_pid6201.log-# C [libc.so.6+0x5a261] IOwfile_seekoff+0x3b4
hs_err_pid7116.log:# Problematic frame:
hs_err_pid7116.log-# C 0x36343238
hs_err_pid7137.log:# Problematic frame:
hs_err_pid7137.log-# C 0xf7f17f67
hs_err_pid7192.log:# Problematic frame:
hs_err_pid7192.log-# C [libc.so.6+0x9d1ae]
hs_err_pid7223.log:# Problematic frame:
hs_err_pid7223.log-# C [libc.so.6+0xfef67] __register_frame_info+0xf
hs_err_pid7232.log:# Problematic frame:
hs_err_pid7232.log-# C [libc.so.6+0x109cdc]
hs_err_pid7239.log:# Problematic frame:
hs_err_pid7239.log-# C [libc.so.6+0x212b3] __newlocale+0x233
hs_err_pid8569.log:# Problematic frame:
hs_err_pid8569.log-# C [libc.so.6+0x562b9] IOgetline_info+0x52
hs_err_pid8571.log:# Problematic frame:
hs_err_pid8571.log-# C [libc.so.6+0x2b3] rtldglobal+0x2b3
hs_err_pid8573.log:# Problematic frame:
hs_err_pid8573.log-# C [libc.so.6+0x9b2b9]
hs_err_pid8596.log:# Problematic frame:
hs_err_pid8596.log-# C [libc.so.6+0x2e2d1]
hs_err_pid8615.log:# Problematic frame:
hs_err_pid8615.log-# C 0xf7e462b3
hs_err_pid8635.log:# Problematic frame:
hs_err_pid8635.log-# C [libc.so.6+0x9148c] glob64+0x40d
hs_err_pid8642.log:# Problematic frame:
hs_err_pid8642.log-# C [libc.so.6+0x722b9]
hs_err_pid8667.log:# Problematic frame:
hs_err_pid8667.log-# C [libc.so.6+0x67261]
hs_err_pid9957.log:# Problematic frame:
hs_err_pid9957.log-# C [libc.so.6+0xc5265]
libnss is linked during execution:
hs_err_pid7192.log:f7d77000-f7d7e000 r-xp 00000000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
hs_err_pid7192.log:f7d7e000-f7d80000 rwxp 00006000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
hs_err_pid7223.log:f7d6e000-f7d75000 r-xp 00000000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
hs_err_pid7223.log:f7d75000-f7d77000 rwxp 00006000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
hs_err_pid7232.log:f7db0000-f7db7000 r-xp 00000000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
hs_err_pid7232.log:f7db7000-f7db9000 rwxp 00006000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
hs_err_pid7239.log:f7dbc000-f7dc3000 r-xp 00000000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
hs_err_pid7239.log:f7dc3000-f7dc5000 rwxp 00006000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
hs_err_pid8569.log:f7d4c000-f7d53000 r-xp 00000000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
hs_err_pid8569.log:f7d53000-f7d55000 rwxp 00006000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
hs_err_pid8571.log:f7da2000-f7da9000 r-xp 00000000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
hs_err_pid8571.log:f7da9000-f7dab000 rwxp 00006000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
hs_err_pid8573.log:f7d07000-f7d0e000 r-xp 00000000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
hs_err_pid8573.log:f7d0e000-f7d10000 rwxp 00006000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
hs_err_pid8596.log:f7d74000-f7d7b000 r-xp 00000000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
hs_err_pid8596.log:f7d7b000-f7d7d000 rwxp 00006000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
hs_err_pid8615.log:f7de0000-f7de7000 r-xp 00000000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
hs_err_pid8615.log:f7de7000-f7de9000 rwxp 00006000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
hs_err_pid8635.log:f7d27000-f7d2e000 r-xp 00000000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
hs_err_pid8635.log:f7d2e000-f7d30000 rwxp 00006000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
hs_err_pid8642.log:f7d30000-f7d37000 r-xp 00000000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
hs_err_pid8642.log:f7d37000-f7d39000 rwxp 00006000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
hs_err_pid8667.log:f7d3c000-f7d43000 r-xp 00000000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
hs_err_pid8667.log:f7d43000-f7d45000 rwxp 00006000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
hs_err_pid9957.log:f7d9a000-f7da1000 r-xp 00000000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
hs_err_pid9957.log:f7da1000-f7da3000 rwxp 00006000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
Sample stack trace:
# An unexpected error has been detected by Java Runtime Environment:
# SIGSEGV (0xb) at pc=0x67f69b57, pid=9123, tid=3902569360
# Java VM: Java HotSpot(TM) Server VM (10.0-b22 mixed mode linux-x86)
# Problematic frame:
# C 0x67f69b57
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
--------------- T H R E A D ---------------
Current thread (0x080a4c00): VMThread [stack: 0xe8947000,0xe89c8000] [id=9135]
siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0x67f69b57
Registers:
EAX=0x67f69b57, EBX=0xf7f62ff4, ECX=0x000e89c6, EDX=0x00000000
ESP=0xe89c6934, EBP=0xe89c6968, ESI=0x080a4c00, EDI=0x080df118
EIP=0x67f69b57, CR2=0x67f69b57, EFLAGS=0x00010203
Top of Stack: (sp=0xe89c6934)
0xe89c6934: e89c6a10 eabdb800 eaaea220 eabdb838
0xe89c6944: 0003c586 000023af 0657221a 0805848c
0xe89c6954: eaaea220 eabdb838 080df0d4 080a4c00
0xe89c6964: 00000001 e89c6998 064e51cb 080df118
0xe89c6974: 08058350 e89c6998 0629cb5e 08058450
0xe89c6984: 0003c586 e89c69d8 f0c719a8 e89c6ae0
0xe89c6994: 00000001 e89c69b8 064e526c 080df0d4
0xe89c69a4: 080a4c00 00000000 064f6ddb 080df478
Instructions: (pc=0x67f69b57)
0x67f69b47:
[error occurred during error reporting (printing registers, top of stack, instructions near pc), id 0xb]
Stack: [0xe8947000,0xe89c8000], sp=0xe89c6934, free space=510k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C 0x67f69b57
V [libjvm.so+0x4e51cb]
V [libjvm.so+0x4e526c]
V [libjvm.so+0x4f6cd8]
V [libjvm.so+0x34c60d]
V [libjvm.so+0x4dbe4c]
V [libjvm.so+0x31722e]
V [libjvm.so+0x5b83cf]
V [libjvm.so+0x5ba5bb]
V [libjvm.so+0x55a59d]
V [libjvm.so+0x322be7]
V [libjvm.so+0x2ce43b]
V [libjvm.so+0x3227f7]
V [libjvm.so+0x294845]
V [libjvm.so+0x322b8c]
V [libjvm.so+0x5edede]
V [libjvm.so+0x5fb0c7]
V [libjvm.so+0x5fa6dc]
V [libjvm.so+0x5fa8b1]
V [libjvm.so+0x5fa48f]
V [libjvm.so+0x4fe219]
C [libpthread.so.0+0x5192]
VM_Operation (0xe371ee1c): GenCollectForAllocation, mode: safepoint, requested by thread 0x08217000
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x082f6400 JavaThread "Thread_528" [_thread_blocked, id=12818, stack(0xddd8a000,0xddddb000)]
0x080db800 JavaThread "Thread_2" [_thread_blocked, id=9178, stack(0xe8547000,0xe8598000)]
0x080da400 JavaThread "Thread_1" [_thread_blocked, id=9177, stack(0xe8598000,0xe85e9000)]
0x080d9800 JavaThread "Thread_0" [_thread_blocked, id=9176, stack(0xe85e9000,0xe863a000)]
0x080c9800 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=9162, stack(0xe86bb000,0xe870c000)]
0x080c8400 JavaThread "CompilerThread1" daemon [_thread_blocked, id=9155, stack(0xe870c000,0xe878d000)]
0x080bdc00 JavaThread "CompilerThread0" daemon [_thread_blocked, id=9147, stack(0xe878d000,0xe880e000)]
0x080bc800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=9146, stack(0xe880e000,0xe885f000)]
0x080a9000 JavaThread "Finalizer" daemon [_thread_blocked, id=9137, stack(0xe88a5000,0xe88f6000)]
0x080a8000 JavaThread "Reference Handler" daemon [_thread_blocked, id=9136, stack(0xe88f6000,0xe8947000)]
0x08057800 JavaThread "main" [_thread_blocked, id=9126, stack(0xf7da4000,0xf7df5000)]
Other Threads:
=>0x080a4c00 VMThread [stack: 0xe8947000,0xe89c8000] [id=9135]
0x080cb400 WatcherThread [stack: 0xe863a000,0xe86bb000] [id=9174]
VM state:at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event])
[0x08056388/0x080563b0] Threads_lock - owner thread: 0x080a4c00
[0x08056848/0x08056860] Heap_lock - owner thread: 0x08217000
Heap
def new generation total 7296K, used 7273K [0xe8c40000, 0xe9420000, 0xe9a70000)
eden space 6528K, 99% used [0xe8c40000, 0xe929c8f0, 0xe92a0000)
from space 768K, 98% used [0xe92a0000, 0xe935dee8, 0xe9360000)
to space 768K, 0% used [0xe9360000, 0xe9360068, 0xe9420000)
tenured generation total 47472K, used 17838K [0xe9a70000, 0xec8cc000, 0xf0c40000)
the space 47472K, 37% used [0xe9a70000, 0xeabdb838, 0xeabdba00, 0xec8cc000)
compacting perm gen total 16384K, used 1648K [0xf0c40000, 0xf1c40000, 0xf4c40000)
the space 16384K, 10% used [0xf0c40000, 0xf0ddc170, 0xf0ddc200, 0xf1c40000)
No shared spaces configured.
Dynamic libraries:
06000000-0665d000 r-xp 00000000 08:02 543502 /usr/java/jdk1.6.0_06/jre/lib/i386/server/libjvm.so
0665d000-066a1000 rwxp 0065c000 08:02 543502 /usr/java/jdk1.6.0_06/jre/lib/i386/server/libjvm.so
066a1000-06ac3000 rwxp 066a1000 00:00 0
08048000-08052000 r-xp 00000000 08:02 541414 /usr/java/jdk1.6.0_06/bin/java
08052000-08053000 rwxp 00009000 08:02 541414 /usr/java/jdk1.6.0_06/bin/java
08053000-083a8000 rwxp 08053000 00:00 0 [heap]
ddd8a000-ddd8d000 ---p ddd8a000 00:00 0
f7f87000-f7f88000 ---p f7f87000 00:00 0
f7f88000-f7f89000 rwxp f7f88000 00:00 0
f7f89000-f7fa3000 r-xp 00000000 08:02 1622023 /lib/ld-2.6.1.so
f7fa3000-f7fa5000 rwxp 0001a000 08:02 1622023 /lib/ld-2.6.1.so
fff5f000-fff68000 rwxp fff5f000 00:00 0 [stack]
ffffe000-fffff000 r-xp ffffe000 00:00 0 [vdso]
VM Arguments:
jvm_args: -Xms32m -Xmx128m
java_command: GCStress 2000 1048570
Launcher Type: SUN_STANDARD
Environment Variables:
PATH=/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib/mit/bin:/usr/lib/mit/sbin
LD_LIBRARY_PATH=/usr/java/jdk1.6.0_06/jre/lib/i386/server:/usr/java/jdk1.6.0_06/jre/lib/i386:/usr/java/jdk1.6.0_06/jre/../lib/i386
SHELL=/bin/bash
HOSTTYPE=x86_64
OSTYPE=linux
MACHTYPE=x86_64-suse-linux
Signal Handlers:
SIGSEGV: [libjvm.so+0x5edbc0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGBUS: [libjvm.so+0x5edbc0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGFPE: [libjvm.so+0x4fc630], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGPIPE: [libjvm.so+0x4fc630], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGXFSZ: [libjvm.so+0x4fc630], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGILL: [libjvm.so+0x4fc630], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGUSR2: [libjvm.so+0x4fe670], sa_mask[0]=0x00000000, sa_flags=0x10000004
SIGHUP: [libjvm.so+0x4fe410], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGINT: [libjvm.so+0x4fe410], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGTERM: [libjvm.so+0x4fe410], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGQUIT: [libjvm.so+0x4fe410], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
--------------- S Y S T E M ---------------
OS:openSUSE 10.3 (X86-64)
VERSION = 10.3
uname:Linux 2.6.22.5-31-default #1 SMP 2007/09/21 22:29:00 UTC x86_64
libc:glibc 2.6.1 NPTL 2.6.1
rlimit: STACK 8192k, CORE 0k, NPROC 16384, NOFILE 8192, AS 3334080k
load average:13.01 11.87 9.18
CPU:total 1 (1 cores per cpu, 1 threads per core) family 15 model 4 stepping 8, cmov, cx8, fxsr, mmx, sse, sse2, sse3
Memory: 4k page, physical 2063116k(334428k free), swap 2104472k(2104472k free)
vm_info: Java HotSpot(TM) Server VM (10.0-b22) for linux-x86 JRE (1.6.0_06-b02), built on Mar 25 2008 00:26:44 by "java_re" with gcc 3.2.1-7a (J2SE release)
time: Thu May 15 13:26:54 2008
elapsed time: 365 seconds

Similar Messages

  • How to add the flash plugin in firefox beta linux x86_64

    Someone give me the solution in a live chat session so I share it here.
    If you are testing firefox under linux (x86_64 in my case) and the flash plugin is installed but not detected by firefox, it's probably because you are testing it in a single user environment.
    For example, you have downloaded and unarchived firefox beta in your home directory :
    /home/toto/downloads/firefox
    And flash plugin was already installed in :
    /usr/lib64/mozilla/plugins/libflashplayer.so
    All you have to do is to create a personal plugin directory :
    mkdir -p ~/.mozilla/plugins
    And then, copy the flash plugin :
    cp -a /usr/lib64/mozilla/plugins/libflashplayer.so ~/.mozilla/plugins/

    A symbolic link to that file should be sufficient.

  • MXI resman crashes without graphics board under Linux

    We use MXI-2 controller under Linux that works perfectly, but it crashes when we run machine without graphics board (PC for data acquisition).
    We use RH 6.1 and no other boards in PC except netork (3COM FastEth).
    Error message when trying to run resman is:
    National Instruments VXI Resource Manager version 3.0
    Resource Manager failed with error code -105:
    "Unable to initialize NI-VXI driver.
    Unable to open NI-VXI driver window."
    We observed similar behavior also with GPIB under Linux - as son as graphics board is out, first simple ibwrt/ibrd command hangs even the whole PC ! and hard reset is necessary.

    Thanks for the answer - well, after unplugging the VGA adapter (simple ATI Rage 128 series) the memory mapping is of course reconfigured - so please have a look if it looks like "dangerous". Files are attached.
    Regards,
    Peter
    Attachments:
    pci_novga.txt ‏3 KB
    pci_vga.txt ‏3 KB

  • Loss of keyboard focus in Java appl running under linux

    I have a small sample program that replicates my problem. When this program is run a window is created. If you select File->New another instance of the program window is created. Now if you try to go back and bring to front the first window, keyboard focus is not
    transferred when run under linux. You can only type in the second window. The expected behavior does happen in Windows.
    > uname -a
    Linux watson 2.6.20-1.2933.fc6 #1 SMP Mon Mar 19 11:38:26 EDT 2007 i686 i686 i386 GNU/Linux
    java -versionjava version "1.5.0_11"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
    Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode, sharing)
    javac -versionjavac 1.5.0_11
    import java.awt.event.*;
    import javax.swing.*;
    class SwingWindow extends JFrame {
        SwingWindow() {
         super("SwingWindow");
         JMenuBar menuBar = new JMenuBar();     
            JMenu fileMenu = new JMenu("File");
            JMenuItem newItem = new JMenuItem("New");
            newItem.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent event) {
              SwingWindow.createAndShowGUI();
         fileMenu.add(newItem);
            menuBar.add(fileMenu);
            setJMenuBar(menuBar);
            setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);       
         JTextField text = new JTextField(200);
         getContentPane().add(text);
         pack();
         setSize(700, 275);
        public static void createAndShowGUI() {
            JFrame frame = new SwingWindow();
            frame.setVisible(true);
        public static void main(String[] args) {
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
    }

    You can implement the FocusListener interface. When
    the first JFrame gains focus, call
    text.requestFocusInWindow(). I hope this helps.The call requestFocusInWindow is not helping, perhaps even making it worse.
    The problem seems to be that I am in the situation where the call
    KeyboardFocusManager.getCurrentKeyboardFocusManager().getPermanentFocusOwner()
    is returning the expected Component. The problem is that the KeyListener class that is registered with the Component is not being called when a key is being pressed.
    The issue is that I have a component that has the keyboard focus, but the KeyListener class
    is not responding.
    This seems to be a linux only problem which makes it only mysterious.

  • Too many resources used under Linux

    I have tested sun jvm under linux red-dat 6.2
    and 7.1 (listed by Sun as official platform supported)
    The JVM I test was from 1.3.0 to the 1.4.1
    I have written a simple application server that
    runs java application starting a new JVM.
    When the java application runs (with the -server or
    -hotspot option) I see that 10 java process are
    istantiated. (10 JVM)
    This is a real problem because for 4 users that runs 4
    applications there are 40 JVM running
    (each one allocates about 20 Mb of memory)
    and the system became very slow.
    With the -classic option the situation is better: only 1 JVM
    for application is started, (the application is the same, I
    have change only the -server option with -classic)
    but JVM seems to be less stable: I have a lot of segmentation
    fault errors. (with core dump)
    With the new distribution of Sun JVM (1.4.1) the -classic option
    is no longer supported.
    Does anyone knows if is there a way to have only one JVM
    for application? (-classic does not works well)
    Is there others JVM for linux more stable instead of the Sun one?
    PS: I have tested the same code under win/2000 using JVM 1.3.1_03
    and the -classic option. All goes well (the same application):
    I haver only 1 thread for application without jvm runtime error.
    Now my doubt is: does Sun belive in the Linux Word?
    JVM for Windows is much more stable!!!
    Thank you in advanced and best regards.

    I am assuming that you believe that there are 10 processes because that is what ps shows. However on Linux, each thread in a java program shows up in ps as a separate process. The memory for each "ps process" corresponding to a java thread is shared among all the threads of the JVM. Therefore if you see 10 processes with 20MB each you are not using 200MB, just 20.
    If you are running 4 JVMs then you would be using 40MB not 800 as shown in ps.
    I think Sun's JVM for linux is quite good (as I use it every day). If you need to run so many JVMs you should invest in more memory.
    BTW, How much memory is installed in your system?

  • Mount UFS under linux

    Hi
    I have a disk formated by solaris(sparc),but the host is crashed,the only chose for me is mount the disk under linux system(RHEL5.6).
    I have Upgraded the kernel,so Linux can recognize UFS.
    But when I try to mount the UFS disk with command :
    *[root@sgfsd055 log]# mount -t ufs -o ufstype=sun,ro /dev/sdc3 /mnt/*
    I got :
    mount: wrong fs type, bad option, bad superblock on /dev/sdc3,
    missing codepage or other error
    In some cases useful info is found in syslog - try
    dmesg | tail  or so
    When I cat /var/log/messages:
    Sep 18 21:17:14 sgfsd055 kernel: UFSD (fs/ufs/super.c, 645): ufs_fill_super:ENTER
    Sep 18 21:17:14 sgfsd055 kernel: UFSD (fs/ufs/super.c, 652): ufs_fill_super:flag 1
    Sep 18 21:17:14 sgfsd055 kernel: UFSD (fs/ufs/super.c, 336): ufs_parse_options:ENTER
    Sep 18 21:17:14 sgfsd055 kernel: UFSD (fs/ufs/super.c, 713): ufs_fill_super:ufstype=sun
    Sep 18 21:17:14 sgfsd055 kernel: ufs_read_super: fragment size 8192 is too large
    Sep 18 21:17:14 sgfsd055 kernel: UFSD (fs/ufs/super.c, 1102): ufs_fill_super:EXIT (FAILED)
    Any help please?

    Thank you for your reply,fdisk -l output as below:
    [root@sgfsd055 ~]# fdisk -l
    Disk /dev/sda: 147.0 GB, 147086327808 bytes
    255 heads, 63 sectors/track, 17882 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 65 522081 83 Linux
    /dev/sda2 66 5287 41945715 83 Linux
    /dev/sda3 5288 7898 20972857+ 82 Linux swap / Solaris
    /dev/sda4 7899 17882 80196480 5 Extended
    /dev/sda5 7899 17882 80196448+ 83 Linux
    Disk /dev/sdb: 147.0 GB, 147086327808 bytes
    255 heads, 63 sectors/track, 17882 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Device Boot Start End Blocks Id System
    /dev/sdb1 * 1 17882 143637133+ 83 Linux
    Disk /dev/sdc (Sun disk label): 255 heads, 127 sectors, 60075 cylinders
    Units = cylinders of 32385 * 512 bytes
    Device Flag Start End Blocks Id System
    /dev/sdc3 u 0 60075 972764437+ 5 Whole disk
    /dev/sdc7 0 60075 972764437+ 4 SunOS usr
    Disk /dev/sdc3 (Sun disk label): 255 heads, 127 sectors, 60075 cylinders
    Units = cylinders of 32385 * 512 bytes
    Device Flag Start End Blocks Id System
    /dev/sdc3p3 u 0 60075 972764437+ 5 Whole disk
    /dev/sdc3p7 0 60075 972764437+ 4 SunOS usr
    Disk /dev/sdc7 (Sun disk label): 255 heads, 127 sectors, 60075 cylinders
    Units = cylinders of 32385 * 512 bytes
    Device Flag Start End Blocks Id System
    /dev/sdc7p3 u 0 60075 972764437+ 5 Whole disk
    /dev/sdc7p7 0 60075 972764437+ 4 SunOS usr
    Disk /dev/sdd (Sun disk label): 255 heads, 127 sectors, 58178 cylinders
    Units = cylinders of 32385 * 512 bytes
    Device Flag Start End Blocks Id System
    /dev/sdd3 u 0 58178 942047265 5 Whole disk
    /dev/sdd7 0 58178 942047265 4 SunOS usr
    Disk /dev/sdd3 (Sun disk label): 255 heads, 127 sectors, 58178 cylinders
    Units = cylinders of 32385 * 512 bytes
    Device Flag Start End Blocks Id System
    /dev/sdd3p3 u 0 58178 942047265 5 Whole disk
    /dev/sdd3p7 0 58178 942047265 4 SunOS usr
    Disk /dev/sdd7 (Sun disk label): 255 heads, 127 sectors, 58178 cylinders
    Units = cylinders of 32385 * 512 bytes
    Device Flag Start End Blocks Id System
    /dev/sdd7p3 u 0 58178 942047265 5 Whole disk
    /dev/sdd7p7 0 58178 942047265 4 SunOS usr
    Disk /dev/sde (Sun disk label): 255 heads, 127 sectors, 60707 cylinders
    Units = cylinders of 32385 * 512 bytes
    Device Flag Start End Blocks Id System
    /dev/sde3 u 0 60707 982998097+ 5 Whole disk
    /dev/sde7 0 60707 982998097+ 4 SunOS usr
    Disk /dev/sde3 (Sun disk label): 255 heads, 127 sectors, 60707 cylinders
    Units = cylinders of 32385 * 512 bytes
    Device Flag Start End Blocks Id System
    /dev/sde3p3 u 0 60707 982998097+ 5 Whole disk
    /dev/sde3p7 0 60707 982998097+ 4 SunOS usr
    Disk /dev/sde7 (Sun disk label): 255 heads, 127 sectors, 60707 cylinders
    Units = cylinders of 32385 * 512 bytes
    Device Flag Start End Blocks Id System
    /dev/sde7p3 u 0 60707 982998097+ 5 Whole disk
    /dev/sde7p7 0 60707 982998097+ 4 SunOS usr
    Disk /dev/sdf (Sun disk label): 255 heads, 127 sectors, 58178 cylinders
    Units = cylinders of 32385 * 512 bytes
    Device Flag Start End Blocks Id System
    /dev/sdf1 0 9 145732+ 2 SunOS root
    /dev/sdf2 u 9 18 145732+ 3 SunOS swap
    /dev/sdf3 u 0 58178 942047265 5 Whole disk
    /dev/sdf7 18 58178 941755800 4 SunOS usr
    Disk /dev/sdf1 (Sun disk label): 255 heads, 127 sectors, 58178 cylinders
    Units = cylinders of 32385 * 512 bytes
    Device Flag Start End Blocks Id System
    /dev/sdf1p1 0 9 145732+ 2 SunOS root
    /dev/sdf1p2 u 9 18 145732+ 3 SunOS swap
    /dev/sdf1p3 u 0 58178 942047265 5 Whole disk
    /dev/sdf1p7 18 58178 941755800 4 SunOS usr
    Disk /dev/sdf3 (Sun disk label): 255 heads, 127 sectors, 58178 cylinders
    Units = cylinders of 32385 * 512 bytes
    Device Flag Start End Blocks Id System
    /dev/sdf3p1 0 9 145732+ 2 SunOS root
    /dev/sdf3p2 u 9 18 145732+ 3 SunOS swap
    /dev/sdf3p3 u 0 58178 942047265 5 Whole disk
    /dev/sdf3p7 18 58178 941755800 4 SunOS usr
    Disk /dev/sdg (Sun disk label): 255 heads, 127 sectors, 58494 cylinders
    Units = cylinders of 32385 * 512 bytes
    Device Flag Start End Blocks Id System
    /dev/sdg3 u 0 58494 947164095 5 Whole disk
    /dev/sdg7 0 58489 947083132+ 4 SunOS usr
    Disk /dev/sdg3 (Sun disk label): 255 heads, 127 sectors, 58494 cylinders
    Units = cylinders of 32385 * 512 bytes
    Device Flag Start End Blocks Id System
    /dev/sdg3p3 u 0 58494 947164095 5 Whole disk
    /dev/sdg3p7 0 58489 947083132+ 4 SunOS usr
    Disk /dev/sdg7 (Sun disk label): 255 heads, 127 sectors, 58494 cylinders
    Units = cylinders of 32385 * 512 bytes
    Device Flag Start End Blocks Id System
    /dev/sdg7p3 u 0 58494 947164095 5 Whole disk
    /dev/sdg7p7 0 58489 947083132+ 4 SunOS usr
    Disk /dev/sdh (Sun disk label): 255 heads, 127 sectors, 58178 cylinders
    Units = cylinders of 32385 * 512 bytes
    Device Flag Start End Blocks Id System
    /dev/sdh3 u 0 58178 942047265 5 Whole disk
    /dev/sdh7 0 58178 942047265 4 SunOS usr
    Disk /dev/sdh3 (Sun disk label): 255 heads, 127 sectors, 58178 cylinders
    Units = cylinders of 32385 * 512 bytes
    Device Flag Start End Blocks Id System
    /dev/sdh3p3 u 0 58178 942047265 5 Whole disk
    /dev/sdh3p7 0 58178 942047265 4 SunOS usr
    Disk /dev/sdh7 (Sun disk label): 255 heads, 127 sectors, 58178 cylinders
    Units = cylinders of 32385 * 512 bytes
    Device Flag Start End Blocks Id System
    /dev/sdh7p3 u 0 58178 942047265 5 Whole disk
    /dev/sdh7p7 0 58178 942047265 4 SunOS usr
    Disk /dev/sdi (Sun disk label): 255 heads, 127 sectors, 57577 cylinders
    Units = cylinders of 32385 * 512 bytes
    Device Flag Start End Blocks Id System
    /dev/sdi3 u 0 57577 932315572+ 5 Whole disk
    /dev/sdi7 0 57576 932299380 4 SunOS usr
    Disk /dev/sdi3 (Sun disk label): 255 heads, 127 sectors, 57577 cylinders
    Units = cylinders of 32385 * 512 bytes
    Device Flag Start End Blocks Id System
    /dev/sdi3p3 u 0 57577 932315572+ 5 Whole disk
    /dev/sdi3p7 0 57576 932299380 4 SunOS usr
    Disk /dev/sdi7 (Sun disk label): 255 heads, 127 sectors, 57577 cylinders
    Units = cylinders of 32385 * 512 bytes
    Device Flag Start End Blocks Id System
    /dev/sdi7p3 u 0 57577 932315572+ 5 Whole disk
    /dev/sdi7p7 0 57576 932299380 4 SunOS usr
    Disk /dev/sdj (Sun disk label): 255 heads, 127 sectors, 58810 cylinders
    Units = cylinders of 32385 * 512 bytes
    Device Flag Start End Blocks Id System
    /dev/sdj3 u 0 58810 952280925 5 Whole disk
    /dev/sdj7 0 58810 952280925 4 SunOS usr
    Disk /dev/sdj3 (Sun disk label): 255 heads, 127 sectors, 58810 cylinders
    Units = cylinders of 32385 * 512 bytes
    Device Flag Start End Blocks Id System
    /dev/sdj3p3 u 0 58810 952280925 5 Whole disk
    /dev/sdj3p7 0 58810 952280925 4 SunOS usr
    Disk /dev/sdj7 (Sun disk label): 255 heads, 127 sectors, 58810 cylinders
    Units = cylinders of 32385 * 512 bytes
    Device Flag Start End Blocks Id System
    /dev/sdj7p3 u 0 58810 952280925 5 Whole disk
    /dev/sdj7p7 0 58810 952280925 4 SunOS usr
    Disk /dev/sdk (Sun disk label): 255 heads, 127 sectors, 58264 cylinders
    Units = cylinders of 32385 * 512 bytes
    Device Flag Start End Blocks Id System
    /dev/sdk3 u 0 58264 943439820 5 Whole disk
    /dev/sdk7 0 58264 943439820 4 SunOS usr
    Disk /dev/sdk3 (Sun disk label): 255 heads, 127 sectors, 58264 cylinders
    Units = cylinders of 32385 * 512 bytes
    Device Flag Start End Blocks Id System
    /dev/sdk3p3 u 0 58264 943439820 5 Whole disk
    /dev/sdk3p7 0 58264 943439820 4 SunOS usr
    Disk /dev/sdk7 (Sun disk label): 255 heads, 127 sectors, 58264 cylinders
    Units = cylinders of 32385 * 512 bytes
    Device Flag Start End Blocks Id System
    /dev/sdk7p3 u 0 58264 943439820 5 Whole disk
    /dev/sdk7p7 0 58264 943439820 4 SunOS usr
    Disk /dev/sdl (Sun disk label): 255 heads, 127 sectors, 59442 cylinders
    Units = cylinders of 32385 * 512 bytes
    Device Flag Start End Blocks Id System
    /dev/sdl3 u 0 59442 962514585 5 Whole disk
    /dev/sdl7 0 59442 962514585 4 SunOS usr
    Disk /dev/sdl3 (Sun disk label): 255 heads, 127 sectors, 59442 cylinders
    Units = cylinders of 32385 * 512 bytes
    Device Flag Start End Blocks Id System
    /dev/sdl3p3 u 0 59442 962514585 5 Whole disk
    /dev/sdl3p7 0 59442 962514585 4 SunOS usr
    Disk /dev/sdl7 (Sun disk label): 255 heads, 127 sectors, 59442 cylinders
    Units = cylinders of 32385 * 512 bytes
    Device Flag Start End Blocks Id System
    /dev/sdl7p3 u 0 59442 962514585 5 Whole disk
    /dev/sdl7p7 0 59442 962514585 4 SunOS usr
    [root@sgfsd055 ~]#

  • Regression results under linux

    Hi everybody,
    I ran the T2 regression under Linux and the tool ends correctly. The problem is that all tests gave result "Unknown".
    I ran the following command:
    sims -sys=cmp1 -group=cmp1_mini_T2 -nobuild -vcs_rel_name=vcs_build_2008_07_07_0
    and the results are
    <<snip>>
    Total Diags : 6
    Total Passed : 0
    Total Unknown: 6
    Total Unfini : 0
    Total Fail : 0
    Total Cycles : N/A
    Total Time : N/A
    Average C/S : N/A
    Do you have any suggestions? What means unknown, I can't find it in the OpenSPARCT2_DVGuide.pdf manual.
    thanks,
    pico

    Thanks for the quick response. I was hoping my problem was also the result of goldfinger, but given your description I don't believe it is (no "FATAL ERROR" anywhere in my logs). I'm actually running redhat enterprise so I don't think there should be redhat library issues either. However, I do think I am having 32bit/64bit compatibility issues with the pli libraries. Perhaps the following might help in diagnosing my problem
    1) running sims without "-vcs_full64" and a 32bit version of Vera I see the following error in my sims.log
    Program error in file ../symtype.c at line 407.
      Assertion failed:
      t != NULL && t->tycon == TYCON_OBJECTperforming a simple grep on "symtype.c" I found that it's only referenced in
    verif/env/common/pli/vera/loadpli/linux/libverapli.soand
    verif/env/common/pli/vera/loadpli/libverapli.so2) running sims with a amd64 version of Vera and using the "-vcs_full64" flag eliminates the error in 1) but results in the the following warnings in the compile.log file
    /usr/bin/ld: warning: i386 architecture of input file `<path>/opensparct2/verif/env/common/pli/global_chkr/linux/libglobal_chkr.a(global_chkr.o)' \
    is incompatible with i386:x86-64 output
    /usr/bin/ld: warning: i386 architecture of input file `<path>/opensparct2/verif/env/common/pli/socket/linux/libsocket_pli.a(socket.o)' \
    is incompatible with i386:x86-64 output
    /usr/bin/ld: warning: i386 architecture of input file `<path>/opensparct2/verif/env/common/pli/socket/linux/libsocket_pli.a(queue.o)' \
    is incompatible with i386:x86-64 output
    /usr/bin/ld: warning: i386 architecture of input file `<path>/opensparct2/verif/env/common/pli/monitor/linux/libmonitor_pli.a(monitor.o)' \
    is incompatible with i386:x86-64 output
    /usr/bin/ld: warning: i386 architecture of input file `<path>/opensparct2/verif/env/common/pli/monitor/linux/libmonitor_pli.a(hasher.o)' \
    is incompatible with i386:x86-64 output3) just out of curiosity I ran sims with the 64bit Vera and without "-vcs_full64". As expected I see a bunch of i386:x86-64 incompatible with i386 output warnings in the compile.log and no simv is built.
    For all scenarios, 1-3, I also see the warning
    /usr/bin/ld: warning: libstdc++.so.5, needed by <path>/rhel_5/vcs-2006.06-sp2/linux/lib/libvcsnew.so, \
    may conflict with libstdc++.so.6My best guess is that not all of the precompiled libraries that come bundled with the T2 were compiled for x86-64 and that is what's causing me problems. I tried to recompile the pli libraries using the makefile in /tools/pli but ran into some issues that I'm going to try and fix today. Any help would be greatly appreciated. Thanks!

  • Problems with dbx under linux

    Hi everybody,
    I'm using Oracle Solaris Studio 12.2 under Linux, and i'm trying to debug a Fortran application with dbx.
    When I use it to step through the code, there always pops up a messagebox that says
    dbx: internal error: cannot convert 'AGGREGATE' to 'ARRAY' ...
    dbx: internal error: cannot convert 'AGGREGATE' to 'ARRAY' ...
    dbx: internal error: cannot convert 'AGGREGATE' to 'ARRAY' ...
    dbx: internal error: cannot convert 'AGGREGATE' to 'ARRAY' ...
    too many errors
    after a random number of steps (perhaps after about 10 steps). Then, the execution stops, and I'm forced to restart the process, with a breakpoint somewhere further down the code.
    Does anybody know what I could do to prevent that from happening?
    Thanks in advance,
    Christoph

    Hi Isaac,
    thanks for your reply. I'm using the debugging from the studio.
    Unfortunately, the code I'm working on is a CFD program of some 100.000 lines, and I think I'd have to post the whole thing. I've been trying to reproduce the problem with a model program, but to no avail: dbx/SunStudio works like a charm with every program I write myself.
    It is definitely a problem with evaluating local variables: If I watch a debugging tab different from "variables", it doesn't crash; neither does it while stepping through the main program. It only crashes somewhere deep in some modules, where pointers on big allocated arrays are passed around in the seventh or so stack level. Anyway, it seems to be more a problem with the code than with a particular debugger: I've tried gdb, and it shows similar problems.
    Regards,
    Christoph

  • Java running under linux with crontab

    I'm having a problem:
    i want to run a java program under linux with crontab.
    my classes are in a directory and aren't in a package. i run em by invoking ./start which is a small script that i wrote. The script is in the same dir as the classes and invokes java by "java Main >>logjava.txt " but this doesn't seem to work all i get is an empty logfile
    i need to run the program every day at 0800 so i inserted the following in crontab:
    0 8 * 1-5 /var/"path"/start > logjava (where path is the path to the classes dir)
    if i run the cmdline from anywhere on the prompt i get the result i want. I think it's because the cron runs it from the root dir thus making java unable to find the classes
    Any suggestions would be welcome. or can some1 tell me how to make linux executables from the java (i usually use jsmooth for the windows exe)

    You can execute several commands in the process started by cron. You separate them using semicolons.
    Have you tried a cron entry like this:
    0 8 * 1-5 cd /var/"path";pwd;echo $PATH; ./start > logjavaOr, you may need to make sure the process started by cron gets the same environment as your interactive shells do, by explicitly loading your setup or .login scripts:
    0 8 * 1-5 . $HOME/.setup;cd /var/"path";pwd;echo $PATH; ./start > logjava

  • JMF code working under linux but not windows XP

    Hello everyone,
    I'm currently working on a nice cross-platform project involving sound producing. I decided to take a look at JMF and test it a bit to know if its features can suit me. I tried to make it works under windows, using a very simple sample of code. The system seems to play the sound as some console output detects the start and the end, but all i hear is a very short noise ( 1/2second ) like a "CLIK" and nothing else. I tested the code under linux, using the same computer and it works just fine, playing the same wave nicely and entirely.
    some info:
    -i used the cross platform JMF, no performance pack ( i tried it , but still no result )
    -the code just opens a file dialog and plays the selected file
    -the selected file was always a very simple .wav
    -i did not use system classpath variables because i don't like it, i rather use local classpath ( which works fine too, no doubt about it )
    -i tested this little soft on 2 other computer using windows XP, and still got the same result.
    Please, have you got an idea about what's going on ?
    Thanks a lot for any answer!
    Maxime - Paris . France
    Code Sample:
    import java.io.File;
    import java.io.IOException;
    import java.net.MalformedURLException;
    import javax.media.*;
    import javax.swing.JDialog;
    import javax.swing.JFileChooser;
    import javax.swing.JOptionPane;
    public class JMFSound extends Object implements ControllerListener {
         File soundFile;
         JDialog playingDialog;
         public static void main (String[] args) {
              JFileChooser chooser = new JFileChooser();
              chooser.showOpenDialog(null);
              File f = chooser.getSelectedFile();
              try {
                   JMFSound s = new JMFSound (f);
              } catch (Exception e) {
                   e.printStackTrace();
         public JMFSound (File f) throws NoPlayerException, CannotRealizeException,     MalformedURLException, IOException {
              soundFile = f;
              // prepare a dialog to display while playing
              JOptionPane pane = new JOptionPane ("Playing " + f.getName(), JOptionPane.PLAIN_MESSAGE);
              playingDialog = pane.createDialog (null, "JMF Sound");
    playingDialog.pack();
              // get a player
              MediaLocator mediaLocator = new MediaLocator(soundFile.toURL());
              Player player =     Manager.createRealizedPlayer (mediaLocator);
    player.addControllerListener (this);
    player.prefetch();
    player.start();
    playingDialog.setVisible(true);
         // ControllerListener implementation
         public void controllerUpdate (ControllerEvent e) {
    System.out.println (e.getClass().getName());
         if (e instanceof EndOfMediaEvent) {
                   playingDialog.setVisible(false);
                   System.exit (0);
    Message was edited by:
    Monsieur_Max

    Hello everyone,
    I'm currently working on a nice cross-platform project involving sound producing. I decided to take a look at JMF and test it a bit to know if its features can suit me. I tried to make it works under windows, using a very simple sample of code. The system seems to play the sound as some console output detects the start and the end, but all i hear is a very short noise ( 1/2second ) like a "CLIK" and nothing else. I tested the code under linux, using the same computer and it works just fine, playing the same wave nicely and entirely.
    some info:
    -i used the cross platform JMF, no performance pack ( i tried it , but still no result )
    -the code just opens a file dialog and plays the selected file
    -the selected file was always a very simple .wav
    -i did not use system classpath variables because i don't like it, i rather use local classpath ( which works fine too, no doubt about it )
    -i tested this little soft on 2 other computer using windows XP, and still got the same result.
    Please, have you got an idea about what's going on ?
    Thanks a lot for any answer!
    Maxime - Paris . France
    Code Sample:
    import java.io.File;
    import java.io.IOException;
    import java.net.MalformedURLException;
    import javax.media.*;
    import javax.swing.JDialog;
    import javax.swing.JFileChooser;
    import javax.swing.JOptionPane;
    public class JMFSound extends Object implements ControllerListener {
         File soundFile;
         JDialog playingDialog;
         public static void main (String[] args) {
              JFileChooser chooser = new JFileChooser();
              chooser.showOpenDialog(null);
              File f = chooser.getSelectedFile();
              try {
                   JMFSound s = new JMFSound (f);
              } catch (Exception e) {
                   e.printStackTrace();
         public JMFSound (File f) throws NoPlayerException, CannotRealizeException,     MalformedURLException, IOException {
              soundFile = f;
              // prepare a dialog to display while playing
              JOptionPane pane = new JOptionPane ("Playing " + f.getName(), JOptionPane.PLAIN_MESSAGE);
              playingDialog = pane.createDialog (null, "JMF Sound");
    playingDialog.pack();
              // get a player
              MediaLocator mediaLocator = new MediaLocator(soundFile.toURL());
              Player player =     Manager.createRealizedPlayer (mediaLocator);
    player.addControllerListener (this);
    player.prefetch();
    player.start();
    playingDialog.setVisible(true);
         // ControllerListener implementation
         public void controllerUpdate (ControllerEvent e) {
    System.out.println (e.getClass().getName());
         if (e instanceof EndOfMediaEvent) {
                   playingDialog.setVisible(false);
                   System.exit (0);
    Message was edited by:
    Monsieur_Max

  • How to enable OCR with Scangear MP under Linux for MG8250?

    Under Linux openSUSE 12.3 I use Scangear MP 1.80 for my Canon PIXMA MG8250.
    As a scan target (in my German GUI it's "Ziel") I can choose "OCR". But there is no text output, the scan is just saved as a picture. How can I configure Scangear to open the scan via Tesseract in a text editor.
    By the way, the target "Print" (in German "Drucken") leads to saving just as well, though there is at least one printer at hand, of course.
    It's a pity that the pixma scan drivers that are shipped with openSUSE don't work with xsane (the scanner starts working, but stops after one third of the page). Using xsane with a different scanner I can use OCR successfully.
    Volker

    There are two basic types of core OCR algorithm, which may produce a ranked list of candidate characters.
    Matrix matching involves comparing an image to a stored glyph on a pixel-by-pixel basis; it is also known as "pattern matching" or "pattern recognition". This relies on the input glyph being correctly isolated from the rest of the image, and on the stored glyph being in a similar font and at the same scale. This technique works best with typewritten text and does not work well when new fonts are encountered. This is the technique the early physical photocell-based OCR implemented, rather directly.
    Feature extraction decomposes glyphs into "features" like lines, closed loops, line direction, and line intersections. These are compared with an abstract vector-like representation of a character, which might reduce to one or more glyph prototypes. General techniques of feature detection in computer vision are applicable to this type of OCR, which is commonly seen in "intelligent" handwriting recognition and indeed most modern OCR software. Nearest neighbour classifiers such as the k-nearest neighbors algorithm are used to compare image features with stored glyph features and choose the nearest match.
    Software such as Cuneiform and Tesseract use a two-pass approach to character recognition. The second pass is known as "adaptive recognition" and uses the letter shapes recognized with high confidence on the first pass to better recognize the remaining letters on the second pass. This is advantageous for unusual fonts or low-quality scans where the font is distorted.
    So I wonder which kind of OCR algorithm are you using?

  • ARIAL FONT IN REPORTS(WINDOWS), NOT SHOWN CORRECTLY UNDER LINUX

    Our Reports are developed under Windows (Report Builder 9.0.4.0.33 and Windows 2000/Windows XP) and generated under Linux (IAS 10.1.2.0.2 with Red Hat Advanced Server). The Report Output is a PDF, that will be downloaded by the user with WEB.SHOW_DOCUMENT. This works fine, but fonts are not shown correctly in the PDF, especially ARIAL, which is the font we use.
    I have run the Fontsolution Configuration Script from Metalink, but we still have a problem.
    When you look at the font.pdf, wich is the testreport from fontsolutions, some sizes and styles of Arial are printed correctly others not.
    Arial 8 is ok, but Arial 10 and Arial 12 are something like Times New Roman.
    Arial 12 Bolded is correct, but Arial 12 italic and Arial 12 bold italic are also not
    the Arial Font.
    How can we correct this problem?
    Regards
    Udo
    These are the files changed by Fontsolution Configuration Script:
    uifont.ali
    # uifont.ali provided in fontsolutions.tar for developer 9.0.2
    # $Header: uifont.ali@@/main/22 \
    # Checked in on Tue Jan 8 15:32:42 PST 2002 by idc \
    # Copyright (c) 1999, 2002 by Oracle Corporation. All Rights Reserved. \
    # $
    # $Revision: /main/22 $
    # Copyright (c) Oracle Corporation 1994, 2002.
    # All Rights Reserved.
    # DESCRIPTION:
    # Each line is of the form:
    # <Face>.<Size>.<Style>.<Weight>.<Width>.<CharSet> = \
    # <Face>.<Size>.<Style>.<Weight>.<Width>.<CharSet>
    # The <Face> must be the name (string/identifier) of a font face. The
    # <Style>, <Weight>, <Width>, and <CharSet> may either be a numeric
    # value or a predefined identifier/string. For example, both US7ASCII
    # and 1 are valid <CharSet> values, and refer to the same character set.
    # The <Size> dimension must be an explicit size, in points.
    # The following is a list of recognized names and their numeric
    # equivalents:
    # Styles Numeric value
    # Plain 0
    # Italic 1
    # Oblique 2
    # Underline 4
    # Outline 8
    # Shadow 16
    # Inverted 32
    # Overstrike 64
    # Blink 128
    # Weights Numeric value
    # Ultralight 1
    # Extralight 2
    # Light 3
    # Demilight 4
    # Medium 5
    # Demibold 6
    # Bold 7
    # Extrabold 8
    # Ultrabold 9
    # Widths Numeric value
    # Ultradense 1
    # Extradense 2
    # Dense 3
    # Semidense 4
    # Normal 5
    # Semiexpand 6
    # Expand 7
    # Extraexpand 8
    # Ultraexpand 9
    # Styles may be combined; you can use plus ("+") to delimit parts of a
    # style. For example,
    # Arial..Italic+Overstrike = Helvetica.12.Italic.Bold
    # are equivalent, and either one will map any Arial that has both Italic
    # and Overstrike styles to a 12-point, bold, italic Helvetica font.
    # All strings are case-insensitive in mapping. Font faces are likely to
    # be case-sensitive on lookup, depending on the platform and surface, so
    # care should be taken with names used on the right-hand side; but they
    # will be mapped case-insensitively.
    # See your platform documentation for a list of all supported character
    # sets, and available fonts.
    # BUGS:
    # o Should accept a RHS ratio (e.g., "Helv = Arial.2/3").
    #===============================================================
    [ Global ] # Put mappings for all surfaces here.
    # Mapping from MS Windows
    #Arial = helvetica
    #"Courier New" = courier
    #"Times New Roman" = times
    #Modern = helvetica
    #"MS Sans Serif" = helvetica
    #"MS Serif" = times
    #"Small Fonts" = helvetica
    "Sadvocra" = helvetica..Oblique.Medium
    "sAdC128d" = helvetica..Plain.Medium
    "CarolinaBar-B39-25F2" = helvetica...Bold
    #"IDAutomationSMICR" = helvetica
    # Mapping from Macintosh
    #"New Century Schlbk" = "new century schoolbook"
    #"New York" = times
    #geneva = helvetica
    #===============================================================
    [ Printer ] # Put mappings for all printers here.
    #===============================================================
    [ Printer:PostScript1 ] # Put mappings for PostScript level 1 printers here.
    # Sample Kanji font mappings
    ...UltraLight..JEUC = "Ryumin-Light-83pv-RKSJ-H"...Light..JEUC
    ...UltraLight..SJIS = "Ryumin-Light-83pv-RKSJ-H"...Light..SJIS
    ...ExtraLight..JEUC = "Ryumin-Light-83pv-RKSJ-H"...Light..JEUC
    ...ExtraLight..SJIS = "Ryumin-Light-83pv-RKSJ-H"...Light..SJIS
    ...Light..JEUC = "Ryumin-Light-83pv-RKSJ-H"...Light..JEUC
    ...Light..SJIS = "Ryumin-Light-83pv-RKSJ-H"...Light..SJIS
    ...DemiLight..JEUC = "Ryumin-Light-83pv-RKSJ-H"...Light..JEUC
    ...DemiLight..SJIS = "Ryumin-Light-83pv-RKSJ-H"...Light..SJIS
    .....JEUC = "GothicBBB-Medium-83pv-RKSJ-H"...Medium..JEUC
    .....SJIS = "GothicBBB-Medium-83pv-RKSJ-H"...Medium..SJIS
    # Mapping from MS Windows
    #Roman = palatino
    #Script = "itc zapf chancery"
    #FixedSys = courier
    #System = helvetica
    # Mapping from Macintosh
    #"Avant Garde" = "itc avant garde gothic"
    # Mapping from Motif display
    #fixed = courier
    #clean = times
    #lucidatypewriter = courier
    #lucidabright = times
    #Arial = helvetica
    #"Courier New" = courier
    #"Times New Roman" = times
    # MICR font
    #helvetica=IDAutomationSMICR
    #===============================================================
    [ Printer:PostScript2 ] # Put mappings for PostScript level 2 printers here.
    # Sample Kanji font mappings
    ...UltraLight..JEUC = "Ryumin-Light-83pv-RKSJ-H"...Light..JEUC
    ...UltraLight..SJIS = "Ryumin-Light-83pv-RKSJ-H"...Light..SJIS
    ...ExtraLight..JEUC = "Ryumin-Light-83pv-RKSJ-H"...Light..JEUC
    ...ExtraLight..SJIS = "Ryumin-Light-83pv-RKSJ-H"...Light..SJIS
    ...Light..JEUC = "Ryumin-Light-83pv-RKSJ-H"...Light..JEUC
    ...Light..SJIS = "Ryumin-Light-83pv-RKSJ-H"...Light..SJIS
    ...DemiLight..JEUC = "Ryumin-Light-83pv-RKSJ-H"...Light..JEUC
    ...DemiLight..SJIS = "Ryumin-Light-83pv-RKSJ-H"...Light..SJIS
    .....JEUC = "GothicBBB-Medium-83pv-RKSJ-H"...Medium..JEUC
    .....SJIS = "GothicBBB-Medium-83pv-RKSJ-H"...Medium..SJIS
    # Mapping from MS Windows
    #Roman = palatino
    #Script = "itc zapf chancery"
    #FixedSys = courier
    #System = helvetica
    # Mapping from Macintosh
    #"Avant Garde" = "itc avant garde gothic"
    # Mapping from Motif display
    #fixed = courier
    #clean = times
    #lucidatypewriter = courier
    #lucidabright = times
    #===============================================================
    [ Printer:PCL5 ] # Put mappings for PCL 5 printers here.
    helvetica = univers
    times = "cg times"
    clean = "antique olv"
    fixed = courier
    lucida = univers
    lucidabright = "cg times"
    lucidatypewriter = courier
    "new century schoolbook" = univers
    terminal = "line printer"
    #===============================================================
    [ Display ] # Put mappings for all display surfaces here.
    #===============================================================
    [ Display:Motif ] # Put mappings for Motif displays here
    # Fix for bug no 778937 DO NOT MOVE!
    Roman.....sjis = lucida.....jeuc
    Script.....sjis = lucidabright.....jeuc
    FixedSys.....sjis = fixed.....jeuc
    System.....sjis = lucida.....jeuc
    .....sjis = .....jeuc
    # Mapping from MS Windows
    Roman = lucida
    Script = lucidabright
    FixedSys = fixed
    System = lucida
    # Mapping from Macintosh
    "Avant Garde" = helvetica
    "Bookman" = times
    #===============================================================
    [ Display:CM ] # Put mappings for all CM displays here.
    # These are DEC-specific, and may need localization
    *..Blink = Blinking
    *..Inverted+Underline.Bold = ReverseBoldUnderline
    *..Inverted+Underline. = UnderlineReverse
    *..Underline.Bold = UnderlineBold
    *..Inverted.Bold = ReverseBold
    *...Bold = Bold
    *..Underline = Underline
    *..Inverted = Reverse
    * = Plain # The font of last resort
    # Oracle Report PDF sections
    # Three new sections have been added:
    # [ PDF ] - Used for font aliasing and Multibyte language support
    # [ PDF:Embed ] - Used for Type 1 font embedding
    # [ PDF:Subset ] - Used for True Type Font subsetting
    [ PDF ]
    # This example shows how to rename helvetica font to Courier font
    # helvetica = Courier
    # You can Alias specific styles of font as below
    # helvetica.12..Bold.. = Courier.14....
    # "Lucida Bright".12..Bold = "New Century Schoolbook"
    # Support for Far Eastern Languages:
    # PDF section can be additionally used to enable Multibyte language support
    # built into Reports. To use this feature with Adobe (r) Acrobat (c), you
    # need to install the Asian font pack available online at the Adobe web site.
    # .....SJIS = "HeiseiKakuGo-W5-Acro"
    # A Japanese report run with Shift-JIS character set is replaced to
    # HeiseiKakuGo-W5-Acro CID font.
    arial = Arial
    "arial" =Arial
    "arial narrow" = "Arial Narrow"
    "courier new" = "Courier New"
    tahoma = Tahoma
    "microsoft sans serif" = "Microsoft Sans Serif"
    "ms sans serif" = "MS Sans Serif"
    "times new roman" = "Times New Roman"
    [ PDF:Embed ]
    # This example shows how to embed Type 1 helvetica font into the PDF file:
    # helvetica = "helvetica.afm helvetica.pfa"
    # You need to specify the .afm file before the .pfa file.
    # The font files must exist in one of the folders specified in REPORTS_PATH.
    [ PDF:Subset ]
    # This example shows how to subset Arial True Type font into the PDF file:
    # helvetica = "Arial.ttf"
    # The True Type font files must exist in any one of the folders specified in
    # REPORTS_PATH.
    helvetica..Oblique.Medium = "Sadvocra.ttf"
    helvetica..Plain.Medium = "Sadc128d.ttf"
    helvetica...Bold = "CarolinaBar-B39-25F2-Normal.ttf"
    # NOTES ON PRECEDENCE OF PDF SECTIONS:
    # If you have entries for a same font in many PDF sections, then Font
    # Aliasing entry will take precedence over Font Embedding entry. Entries
    # in Font Embedding will take precedence over the entries in Font Subsetting
    # section.
    # Generic entries for a font must follow more specific entries for the same
    # font. For instance, if you want to subset helvetica Plain, helvetica Bold,
    # helvetica Italic and helvetica Bold-Italic fonts, your entries must be:
    # [ PDF:Subset ]
    # helvetica..Italic.Bold.. = "Arialbi.ttf"
    # helvetica...Bold.. = "Arialb.ttf"
    # helvetica..Italic... = "Ariali.ttf"
    # helvetica..... = "Arial.ttf"
    # If helvetica..... entry appears in the top of the list, all the styles of
    # helvetica font in the layout will be subset as helvetica Plain font.
    uiprint.txt
    # This is the printer configuration file.
    # The format for entries in this file is:
    # <OSName>:<Type>:<Version>:<Long Name>:<Description File>:
    # The first field is the name of the printer. It is the name you give
    # to lpq.
    # The second field is the type of driver to be used for the printer.
    # Currently, "PostScript" and "ASCII" are the only types of driver for
    # printers supported for now. But in future we may be supporting
    # drivers for other printer types.
    # The third field is the version of the type of printer driver. It's 1
    # or 2 for all PostScript printers; or 1 for ASCII printers.
    # The fourth field is a long description of the printer. This will be
    # presented to the user in the "Choose Printer" dialog window.
    # The fifth field is the printer description file to be used. For
    # PostScript printers it is the PPD file of the printer. (This field is
    # currently unused for ASCII printers.)
    # You can use default.ppd for the description file if you don't have a
    # PPD file for the printer, but it's best to use the correct PPD file
    # for the printer.
    # You must fill in at least the first two fields (printer name and
    # type). If the version is empty, it defaults to "1"; if the long name
    # or description are empty, they will default to empty strings. A
    # version of 1 or an empty long name is fine, but, for PostScript
    # printers, you must fill in the description file name.
    # You don't have to update this file to use any printer. The printer
    # chooser interface let's you select a printer and driver at run time,
    # as well as associate a printer description file to the printer. You
    # should list all printers accessible to users here, however, to
    # simplify selecting a printer.
    # The first entry in this file will be used as the default printer, if
    # no printer was selected in the operating system. (For Unix, the
    # following environment variables will be used in turn to get the
    # default printer's name:
    # TK2_PRINTER
    # ORACLE_PRINTER
    # PRINTER
    # For other platforms, see the Installation and User's Guide for your OS
    # for information on setting the default printer.)
    # WARNING: Do not define multiple entries for the same printer by the
    # same name. Selecting a printer with multiple entries will always result
    # in the first entry being selected. Instead, see if your OS allows you
    # to create an alias for the printer, and use an alias for the second type.
    # The following are examples; replace them with printers accessible from
    # this machine.
    # hqunx15:PostScript:1:The really slow printer on 12th floor:dcln03r1.ppd:
    # hqdev2_pos:PostScript:1:The fast ScriptPrinter in 1281:dclps321.ppd:
    # hqunx106:ASCII:1:LNO printer in the 11th floor printer room:none:
    # hqdev9:PostScript:1:Bogus printer for Reports ASCII QA:default.ppd:
    # hqunx121:PostScript:1:APO printer in 500OP for NLS QA:ok800lt1.ppd:
    # --- Note that the following two printers are aliases for the same
    # --- physical printer, with different names for different types:
    # tk2hp4m:PCL:5:HP printer in 771 for testing PCL:ui4.hpd:
    # tk2bw1ps:PostScript:1:HP printer in 771 for testing PS:hp4mp6_1.ppd:
    # Not A Printer:ASCII:1:Configure your uiprint.txt file:none:
    fontprinter:PostScript:1:printer for fonting fixes:default.ppd:
    datap462.ppd
    *PPD-Adobe: "4.0"
    *% Adobe Systems PostScript(R) Printer Description File
    *% Copyright 1987-1992 Adobe Systems Incorporated.
    *% All Rights Reserved.
    *% Permission is granted for redistribution of this file as
    *% long as this copyright notice is intact and the contents
    *% of the file is not altered in any way from its original form.
    *% End of Copyright statement
    *FormatVersion: "4.0"
    *FileVersion: "3.1"
    *PCFileName: "DATAP462.PPD"
    *LanguageVersion: English
    *Product: "(Dataproducts LZR 2665)"
    *PSVersion: "(46.2) 1"
    *ModelName: "Dataproducts LZR-2665"
    *NickName: "Dataproducts LZR-2665 v46.2"
    *% ==== Options and Constraints =====
    *OpenGroup: InstallableOptions/Options Installed
    OpenUI Option1/Optional Lower Tray: Boolean
    *DefaultOption1: False
    *Option1 True/Installed: ""
    *Option1 False/Not Installed: ""
    CloseUI: Option1
    *CloseGroup: InstallableOptions
    UIConstraints: Option1 False *InputSlot Lower
    *% General Information and Defaults ===============
    *ColorDevice: False
    *DefaultColorSpace: Gray
    *FreeVM: "178744"
    *LanguageLevel: "1"
    *VariablePaperSize: False
    *FileSystem: False
    *Throughput: "26"
    *Password: "0"
    *ExitServer: "
    count 0 eq {  % is the password on the stack?
    true
    dup % potential password
    statusdict /checkpassword get exec not
    } ifelse
    {  %  if no password or not valid
    (WARNING : Cannot perform the exitserver command.) =
    (Password supplied is not valid.) =
    (Please contact the author of this software.) = flush
    quit
    } if
    serverdict /exitserver get exec
    *End
    *Reset: "
    count 0 eq {  % is the password on the stack?
    true
    dup % potential password
    statusdict /checkpassword get exec not
    } ifelse
    {  %  if no password or not valid
    (WARNING : Cannot reset printer.) =
    (Password supplied is not valid.) =
    (Please contact the author of this software.) = flush
    quit
    } if
    serverdict /exitserver get exec
    systemdict /quit get exec
    (WARNING : Printer Reset Failed.) = flush
    *End
    *DefaultResolution: 300dpi
    *?Resolution: "
    save
    initgraphics
    0 0 moveto currentpoint matrix defaultmatrix transform
    0 72 lineto currentpoint matrix defaultmatrix transform
    3 -1 roll sub dup mul
    3 1 roll exch sub dup mul
    add sqrt round cvi
    ( ) cvs print (dpi) = flush
    restore
    *End
    *% Halftone Information ===============
    *ScreenFreq: "50.0"
    *ScreenAngle: "54.0"
    *DefaultScreenProc: Dot
    *ScreenProc Dot: " {dup mul exch dup mul add sqrt 1 exch sub } "
    *ScreenProc Line: "{ pop }"
    *ScreenProc Ellipse: "
    { dup 5 mul 8 div mul exch dup mul exch add sqrt 1 exch sub }"
    *End
    *DefaultTransfer: Null
    *Transfer Null: "{ }"
    *Transfer Null.Inverse: "{ 1 exch sub }"
    *% Paper Handling ===================
    *% Use these entries to set paper size most of the time, unless there is
    *% specific reason to use PageRegion.
    *OpenUI *PageSize: PickOne
    *OrderDependency: 30 AnySetup *PageSize
    *DefaultPageSize: Letter
    *PageSize Letter: "statusdict /lettertray get exec letterR"
    *PageSize Letter.Transverse: "statusdict /lettertray get exec letter"
    *PageSize Legal: "statusdict /legaltray get exec"
    *PageSize Ledger: "statusdict /ledgertray get exec"
    *PageSize Statement: "statusdict /statementtray get exec"
    *PageSize Tabloid: "statusdict /11x17tray get exec"
    *PageSize A3: "statusdict /a3tray get exec"
    *PageSize A4: "statusdict /a4tray get exec a4R"
    *PageSize A4.Transverse: "statusdict /a4tray get exec a4"
    *PageSize A5: "statusdict /a5tray get exec"
    *PageSize B4: "statusdict /b4tray get exec"
    *PageSize B5: "statusdict /b5tray get exec b5R"
    *PageSize B5.Transverse: "statusdict /b5tray get exec b5"
    *CloseUI: *PageSize
    *% These entries will set up the frame buffer. Usually used with manual feed.
    *OpenUI *PageRegion: PickOne
    *OrderDependency: 40 AnySetup *PageRegion
    *DefaultPageRegion: Letter
    *PageRegion Letter: "letterR"
    *PageRegion Letter.Transverse: "letter"
    *PageRegion Legal: "legal"
    *PageRegion Ledger: "ledger"
    *PageRegion Tabloid: "11x17"
    *PageRegion A3: "a3"
    *PageRegion A4: "a4R"
    *PageRegion A4.Transverse: "a4"
    *PageRegion A5: "a5"
    *PageRegion B4: "b4"
    *PageRegion B5: "b5R"
    *PageRegion B5.Transverse: "b5"
    *PageRegion Statement: "statement"
    *CloseUI: *PageRegion
    *% The following entries provide information about specific paper keywords.
    *DefaultImageableArea: Letter
    *ImageableArea Letter: "20 16 591 775 "
    *ImageableArea Letter.Transverse: "18 19 593 773 "
    *ImageableArea Legal: "18 19 593 990 "
    *ImageableArea Ledger: "18 16 1205 775 "
    *ImageableArea Tabloid: "16 19 775 1206 "
    *ImageableArea A3: "18 21 823 1170 "
    *ImageableArea A4: "18 18 576 823 "
    *ImageableArea A4.Transverse: "18 19 577 823 "
    *ImageableArea A5: "18 19 401 577 "
    *ImageableArea B4: "19 15 709 1017 "
    *ImageableArea B5: "20 19 495 709 "
    *ImageableArea B5.Transverse: "20 19 495 709 "
    *ImageableArea Statement: "22 19 374 594 "
    *?ImageableArea: "
    save
    /cvp {(                ) cvs print ( ) print } bind def
    /upperright {10000 mul floor 10000 div} bind def
    /lowerleft {10000 mul ceiling 10000 div} bind def
    newpath clippath pathbbox
    4 -2 roll exch 2 {lowerleft cvp} repeat
    exch 2 {upperright cvp} repeat flush
    restore
    *End
    *% These provide the physical dimensions of the paper (by keyword)
    *DefaultPaperDimension: Letter
    *PaperDimension Letter: "612 792"
    *PaperDimension Letter.Transverse: "612 792"
    *PaperDimension Legal: "612 1008"
    *PaperDimension Ledger: "1224 792"
    *PaperDimension Tabloid: "792 1224"
    *PaperDimension A3: "842 1191"
    *PaperDimension A4: "595 842"
    *PaperDimension A4.Transverse: "595 842"
    *PaperDimension A5: "420 595"
    *PaperDimension B4: "729 1032"
    *PaperDimension B5: "516 729"
    *PaperDimension B5.Transverse: "516 729"
    *PaperDimension Statement: "396 612"
    *RequiresPageRegion All: True
    *OpenUI *InputSlot: PickOne
    *OrderDependency: 20 AnySetup *InputSlot
    *DefaultInputSlot: Upper
    *InputSlot Upper: "0 statusdict /setpapertray get exec"
    *InputSlot Lower: "1 statusdict /setpapertray get exec"
    *?InputSlot: "
    save
    [ (Upper) (Lower) ] statusdict /papertray get exec
    (get exec) stopped ( pop pop (Unknown)} if = flush
    restore
    *End
    *CloseUI: *InputSlot
    *OpenUI *ManualFeed: Boolean
    *OrderDependency: 20 AnySetup *ManualFeed
    *DefaultManualFeed: False
    *ManualFeed True: "statusdict /manualfeed true put"
    *ManualFeed False: "statusdict /manualfeed false put"
    *?ManualFeed: "
    save
    statusdict /manualfeed get {(True)}{(False)}ifelse = flush
    restore
    *End
    *CloseUI: *ManualFeed
    *DefaultOutputOrder: Reverse
    *% Font Information =====================
    *% This datap462.ppd is provided by fontsolutions.tar
    *DefaultFont: Courier
    *Font ArialMT: Standard "(001.004)" Standard ROM
    *Font Arial-ItalicMT: Standard "(001.004)" Standard ROM
    *Font Arial-BoldMT: Standard "(001.004)" Standard ROM
    *Font Arial-BoldItalicMT: Standard "(001.004)" Standard ROM
    *Font ArialNarrow: Standard "(001.004)" Standard ROM
    *Font ArialNarrow-Italic: Standard "(001.004)" Standard ROM
    *Font ArialNarrow-Bold: Standard "(001.004)" Standard ROM
    *Font ArialNarrow-BoldItalic: Standard "(001.004)" Standard ROM
    *Font CourierNewMT: Standard "(001.004)" Standard ROM
    *Font CourierNew-ItalicMT: Standard "(001.004)" Standard ROM
    *Font CourierNew-BoldMT: Standard "(001.004)" Standard ROM
    *Font CourierNew-BoldItalicMT: Standard "(001.004)" Standard ROM
    *Font Courier: Standard "(001.004)" Standard ROM
    *Font Courier-Bold: Standard "(001.001)" Standard ROM
    *Font Courier-BoldOblique: Standard "(001.001)" Standard ROM
    *Font Courier-Oblique: Standard "(001.001)" Standard ROM
    *Font Helvetica: Standard "(001.001)" Standard ROM
    *Font Helvetica-Bold: Standard "(001.001)" Standard ROM
    *Font Helvetica-BoldOblique: Standard "(001.001)" Standard ROM
    *Font Helvetica-Oblique: Standard "(001.001)" Standard ROM
    *Font IDAutomationSMICR: Standard "(001.001)" Standard ROM
    *Font Symbol: Special "(001.001)" Special ROM
    *Font Tahoma: Standard "(001.001)" Standard ROM
    *Font Tahoma-Bold: Standard "(001.001)" Standard ROM
    *Font Times-Bold: Standard "(001.001)" Standard ROM
    *Font Times-BoldItalic: Standard "(001.001)" Standard ROM
    *Font Times-Italic: Standard "(001.001)" Standard ROM
    *Font Times-Roman: Standard "(001.001)" Standard ROM
    *Font TimesNewRomanMT: Standard "(001.001)" Standard ROM
    *Font TimesNewRoman-BoldMT: Standard "(001.001)" Standard ROM
    *Font TimesNewRoman-BoldItalicMT: Standard "(001.001)" Standard ROM
    *Font TimesNewRoman-ItalicMT: Standard "(001.001)" Standard ROM
    *?FontQuery: "
    save
    /str 100 string dup 0 (fonts/) putinterval def
    count 1 gt
    exch dup str 6 94 getinterval cvs
    (/) print print (:) print
    FontDirectory exch known
    {(Yes)}{(No)} ifelse =
    {exit} ifelse
    }bind loop
    (*) = flush
    restore
    *End
    *?FontList: "
    FontDirectory { pop == } bind forall flush
    (*) = flush
    *End
    *% Printer Messages (verbatim from printer):
    *Message: "%%[ exitserver: permanent state may be changed ]%%"
    *Message: "%%[ Flushing: rest of job (to end-of-file) will be ignored ]%%"
    *Message: "\FontName\ not found, using Courier"
    *% Status (format: %%[ status: <one of these> ]%% )
    *Status: "idle"
    *Status: "busy"
    *Status: "waiting"
    *Status: "printing"
    *Status: "warming up"
    *Status: "PrinterError: BD check"
    *Status: "PrinterError: Paper jam"
    *Status: "PrinterError: Replace toner bag"
    *Status: "PrinterError: Warming up"
    *Status: "PrinterError: Timing error"
    *Status: "PrinterError: Fuser check"
    *Status: "PrinterError: Cover opened"
    *Status: "PrinterError: Toner empty"
    *Status: "PrinterError: Empty & reset output bin(s)"
    *Status: "PrinterError: Sorter or jogger error"
    *Status: "PrinterError: Scanner check"
    *% Input Sources (format: %%[ status: <stat>; source: <one of these> ]%% )
    *Source: "serial9"
    *Source: "serial25"
    *Source: "AppleTalk"
    *Source: "Centronics"
    *% Printer Error (format: %%[ PrinterError: <one of these> ]%%)
    *PrinterError: "BD check"
    *PrinterError: "Paper jam"
    *PrinterError: "Replace toner bag"
    *PrinterError: "Warming up"
    *PrinterError: "Timing error"
    *PrinterError: "Fuser check"
    *PrinterError: "Cover opened"
    *PrinterError: "Toner empty"
    *PrinterError: "Empty & reset output bin(s)"
    *PrinterError: "Sorter or jogger error"
    *PrinterError: "Scanner check"
    *%DeviceAdjustMatrix: "[1 0 0 1 0 0]"
    *% Color Separation Information =====================
    *DefaultColorSep: ProcessBlack.60lpi.300dpi/60 lpi / 300 dpi
    *InkName: ProcessBlack/Process Black
    *InkName: CustomColor/Custom Color
    *InkName: ProcessCyan/Process Cyan
    *InkName: ProcessMagenta/Process Magenta
    *InkName: ProcessYellow/Process Yellow
    *% For 60 lpi / 300 dpi =====================================================
    *ColorSepScreenAngle ProcessBlack.60lpi.300dpi/60 lpi / 300 dpi: "45"
    *ColorSepScreenAngle CustomColor.60lpi.300dpi/60 lpi / 300 dpi: "45"
    *ColorSepScreenAngle ProcessCyan.60lpi.300dpi/60 lpi / 300 dpi: "15"
    *ColorSepScreenAngle ProcessMagenta.60lpi.300dpi/60 lpi / 300 dpi: "75"
    *ColorSepScreenAngle ProcessYellow.60lpi.300dpi/60 lpi / 300 dpi: "0"
    *ColorSepScreenFreq ProcessBlack.60lpi.300dpi/60 lpi / 300 dpi: "60"
    *ColorSepScreenFreq CustomColor.60lpi.300dpi/60 lpi / 300 dpi: "60"
    *ColorSepScreenFreq ProcessCyan.60lpi.300dpi/60 lpi / 300 dpi: "60"
    *ColorSepScreenFreq ProcessMagenta.60lpi.300dpi/60 lpi / 300 dpi: "60"
    *ColorSepScreenFreq ProcessYellow.60lpi.300dpi/60 lpi / 300 dpi: "60"
    *% For 53 lpi / 300 dpi =====================================================
    *ColorSepScreenAngle ProcessBlack.53lpi.300dpi/53 lpi / 300 dpi: "45.0"
    *ColorSepScreenAngle CustomColor.53lpi.300dpi/53 lpi / 300 dpi: "45.0"
    *ColorSepScreenAngle ProcessCyan.53lpi.300dpi/53 lpi / 300 dpi: "71.5651"
    *ColorSepScreenAngle ProcessMagenta.53lpi.300dpi/53 lpi / 300 dpi: "18.4349"
    *ColorSepScreenAngle ProcessYellow.53lpi.300dpi/53 lpi / 300 dpi: "0.0"
    *ColorSepScreenFreq ProcessBlack.53lpi.300dpi/53 lpi / 300 dpi: "53.033"
    *ColorSepScreenFreq CustomColor.53lpi.300dpi/53 lpi / 300 dpi: "53.033"
    *ColorSepScreenFreq ProcessCyan.53lpi.300dpi/53 lpi / 300 dpi: "47.4342"
    *ColorSepScreenFreq ProcessMagenta.53lpi.300dpi/53 lpi / 300 dpi: "47.4342"
    *ColorSepScreenFreq ProcessYellow.53lpi.300dpi/53 lpi / 300 dpi: "50.0"
    *% For "Dataproducts LZR 2665" version 46.2
    *% Produced by "GETapd.ps" version 2.0 edit 47
    *% Converted to meet 4.0 specification
    *% Last Edit Date: Sep 15 1992
    *% The byte count of this file should be exactly 011228 or 011572
    *% depending on the filesystem it resides in.
    *% end of PPD file for Dataproducts LZR 2665

    If you want to make platform independent use of fonts, you have to use the family, such as sans serif.
    Arial is owned by monotype (http://monotype.com/). You have to contact them if you wish to redistribute it with your application. They also might have a suitable version that renders nicely under linux.
    Pete

  • Cannot install JMF under Linux Mandrake 10

    I simply cannot install JMF under the Mandrake 10 Official Linux distribution. I downloaded the jmf-2_1_1e-linux-i586.bin file and tried to execute it as root. It unzipped some files then showed me an error message about AWT and GTK+. I found a hack consisting of modifying the .bin file to have the PATH variable point to SUN JDK, the error does not show up, but the installation still does not work. In fact, the installation works, but the Diagnostics applet keeps telling me than class files are not present. My Mozilla 1.6 Java plugin is working and displaying the applet. My JMF lib directory does not contain sound.jar, such jmf.jar. I set the CLASSPATH and LD_LIBRARY_PATH according to the readme.html file. I would like to know if it is a compatibility problem with Mandrake 10, the 2.6 kernel or if JMF just DO NO work under Linux. In the latter case, JMF is a violation to the Java portability philosophy and I would never use it on my own initiative, just if I were asked to.
    After the files are unzipped, I have the following warning and error messages.
    Warning:
    Name: HorScrollBar
    Class: XmScrollBar
    The specified scrollbar value is greater than the maximum
    scrollbar value minus the scrollbar slider size.
    JavaSound Capture Supported = true
    JavaSoundAuto: Committed ok
    java.lang.Error: Can't open video card 0
    java.lang.Error: Can't open video card 1
    java.lang.Error: Can't open video card 2
    java.lang.Error: Can't open video card 3
    java.lang.Error: Can't open video card 4
    java.lang.Error: Can't open video card 5
    java.lang.Error: Can't open video card 6
    java.lang.Error: Can't open video card 7
    java.lang.Error: Can't open video card 8
    java.lang.Error: Can't open video card 9
    Done.
    Even if I do not have a working video capture card (I have an ATI All-in-Wonder 128 but it is not working under 2.6 kernel), JMF should work because some people do not have a video capture card. I also tried with the cross-platform ZIP file, but this one does not contain sound.jar either and the Diagnostics applet keeps complaining about missing class files. I tried to search on the Web for solutions to this problem or for a way to change the CLASSPATH used by the Mozilla Java plug-in (if it uses a different CLASSPATH than the one from the environment variable), but nothing, nothing. Is there a distribution from which JMF would work better than Mandrake 10? Or can JMF work only under Microsoft Windows or Sun Solaris? I also tried Blackdown, but a README file directed me to the Sun's page, nothing to download here about JMF.

    well, your not the only one.
    I have it working in Debian, and JDS.(JMF is setup automatically in JDS).(2.6.6 kernel)
    I looked at the installation structure of JDS, and was able to duplicate what they did for Debian.
    Maybe it will work for Mandrake two??
    ok, all you have to do is copy or create soft links from your Mozilla directory, just like you did with the java plugin, and link to all the *.so files in JMF-2.1.1e/lib directory.
    Should work.
    I also read that not haveing the native files only matters if you are doing Capture. not play.
    to get your ATI All-in-Wonder 128 to work, make sure you install the correct driver, and have it working under linux, then try it in JMSTUDIO

  • Failed to install enterprise manager under linux

    When I installed Oracle 10g(10.2.0.1) under linux, I got an error when running
    /ora01/db/oracle/product/10.2.0.1/bin/emca within oracle universal installer.
    The emConfig.log file shows such error:
    oracle.sysman.emcp.exception.EMConfigException: Invalid value null for parameter PORT
    at oracle.sysman.emcp.ParamsManager.checkParam(ParamsManager.java:2630)
    at oracle.sysman.emcp.EMDBPreConfig.checkConfigParams(EMDBPreConfig.java:1285)
    at oracle.sysman.emcp.EMDBPreConfig.checkParameters(EMDBPreConfig.java:1060)
    at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:174)
    at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:160)
    at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:141)
    at oracle.sysman.assistants.util.em.EMConfiguration.run(EMConfiguration.java:426)
    at java.lang.Thread.run(Thread.java:534)
    So I have to run emca after the oracle installation. I am new to this tool. I modified both tnsnames.ora and listener.ora file to set port to 1521. And then I run emca -config all db,
    but now I cannot pass "entering the password for SYS user" (I already set SYS user's password to oracle, and it works when using sqlplus.) .
    I am totally confused. What should I run emca to set up the enterprise manager's website? Now I can use localhost:5560/isqlplus and localhost:5560/isqlplus/dba.
    Many thanks!!

    I just run emca as oracle instead of root, then the password got passed, but I got new errors:
    Aug 30, 2007 5:59:59 PM oracle.sysman.emcp.EMConfig perform
    SEVERE: Failed to allocate port(s) in the specified range(s) for the following process(es): JMS [5540-5559],RMI [5520-5539],Database Control [5500-5519],EM Agent [3938] | [1830-1849]
    What should I do? Is running emca -config all db necessary to get enterprise manager installed?

  • No sound on Audigy 2 ZS under Win XP, under Linux

    Hi,
    I have an Audigy 2 ZS installed on my AMD 64 3500+, Board Asus A8N-SLI Deluxe (BIOS 0). I first installed Win XP, Sound drivers and everything worked fine, then installed SUSE Linux 9.3 (x64-Version), and everything was fine too. After a while, under Win XP the sound card stopped working. I don't remember what I changed in my config, but I couldn't get it working again under XP. Under Linux everything is still ok.
    I even reinstalled XP, and still there's no sound. Strange thing is, that the drivers install perfectly and everything on the system seems to be ok, but there's no sound neither on digital-out nor analog.
    Any ideas would be greatly appreciated.

    I tried both, disabling, enabling.
    Currently there's a digital sound system with external decoder connected to it (Creative Soundworks DTT3500 Digital), as well a 5. analog Headphone, so all jacks execept line in are connected. Headphones and sound system is ok, I tested that on other PCs.

Maybe you are looking for

  • Access to a FG from another running program

    Group, Is there any way to "get a hold of" a reference of a functional global running inside another vi?  I have a program that uses a functional global to pass data between vi's of a program.  I have this program starting up as a service when I star

  • How to Use Image Processor for Multiple Sizes

    I'm trying to use Image Processor to work on a folder of images and to create several sizes of .jpg's . I find an option to Save as JPEG in one size only. Is there any way to set up Image Processor to save JPEG to multiple sizes? Thanks in advance fo

  • DataSource 2LIS_02_ITM has to be replicated

    Hello , *We cannot load data to PSA (BW 7.0) with extractor 2LIS_02_ITM.* (Some changes might have occurred in R/3 due to a full SAP solution loaded. But theses changes should not have impacted BW). We launch the data package : We receive the message

  • [SOLVED] Help installing dhclient manually

    I've had no luck connecting to either my wireless or wired networks using dhcpcd so far. I double-checked, built, and loaded all the correct driver modules for the specific hardware, carefully configured the wireless network using the wiki guides, bu

  • Lost subscribed calendars when migrating to iCloud

    My husband and I each have Mobile Me subscriptions.  I subscribe to two of his calendars.   I have migrated to iCloud (he has not yet) and I have lost his subscriptions.  I have resent the inviations to subscribe but this doesn't work.  Any suggestio