Java applications under Linux

Hello all
I want to share my experience with all about programs generated by Oracle Forms and running under Linux and ask for help.
We are developing systems under Oracle Forms to Windows, but some customers had restrictions with that operational system, then we had implemented IAS to run, under Java, the same applications.
Under Windows we have no problems, we just install JInitiator to made fast to charge/open the classes.
Under Linux we had not JInitiator and the solution is to implement a Proxy server.
In this test the first problem we had was a IP that the system can not resolve, looking for the solution on web, we found that it´s solved inserting this line in java.policy:
permission java.net.SocketPermission "200.204.0.1:9000-", "resolve";
But we had not to implemented the proxy server, after implement this other problem just stuck us.
The system just not show any error message and are not hang, but never open de login dialog.
Some one already had this kind of problem?
Could exist a difference between Linux configuration and Windows configuration to Java?
Well, thanks in advance...
[]´s
Arthur

javac -classpath logger.jar:. rootPackage/MainClass.java
java -classpath logger.jar:. rootPackage.MainClass

Similar Messages

  • 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

  • Java installation under Linux

    Hi
    I've got a problem with the installation of somme Java Packages under Linux.
    What must I do with the "*.jar" file? I wont to install the neu Open Xchange Server under SuSE 9.1, but there are somme Problems with the Java Packages!
    Can someone help me???
    Thanks a lot!!
    Dambi

    Hello Ishan,
    The J2EE server is not starting because of the error in A. Please refer to note 965451 for solution.
    The warnings in part B are insignificant. The startup framework has list with profile parameters and when a parameter is not in the list complains with warning. This warning doesn't mean that the parameter is wrong!
    The jcontrol is the parent process of the server process and if the server process dies you will always get error message there.
    Regards,
    Ventsi Tsachev
    Technology Development Support (J2EE Engine)
    SAP Labs, Palo Alto, Ca (USA)

  • Installing a Java Application under  Win2000

    Hi,
    I would like to automate the installation of a Java Application under Windows 2000, so that the user is prompted for a destination folder and the application appears in his Start->Games folder.
    Shoud I use install Shield or can I use something java based for this purpose. In any case can you point me to material on the web that discuss these types of topics.
    Thanks.

    ZeroG software has a great Installer for Java. It creates installers for Unix, Windows, MacOS and others. http://www.zerog.com.
    They have a free installer also; its light on features but has worked really well for us for simple gui apps.
    - Chris

  • How to make installer of my java application for linux

    I want to make an installer for my java application, I am using Install any where trial version its create an installer but when i installed n execute it, it display that
    "unable to locate main class, class must be public n having a public static void main(....) LAX."
    while making the installer I specifically mention the main class.....
    I tried a lot but getting same error again n again,
    Any one has any idea, what went wrong or what should I do to make Installer by using any good tool.
    Thanks for every Thing.

    After making the installar using InstallAnywhere, when i run the installer it shows the following error....
    Unable to locate the application's 'main' class. The class 'wekna.gui.explorer.LoginScreen' must be public and have a 'public static void main(String[])' method. (LAX)
    Unable to Launch Java Application: Unable to locate the application's 'main' class. The class 'weka.gui.explorer.LoginScreen' must be public and have a 'public static void main(String[])' method. (LAX)
    my main class has syntax public static void main(...) because otherwise java will generate error,
    my application is running well with make file but I want to make an installer......

  • URGENT :Error while Running java application in crowntab(linux)

    Hi,
    I have java application on linux machine.
    i created a jar file of my application with all dependencies like oracle drivers etc.
    when i run my jar file from any path using
    java -jar appjar.jar
    its works fine for this or if i add it in .sh file with same comand and run that sh file it also works file.
    Then i try to add it in crowntab entry. and schedule crown.
    It gives me error
    [error]
    Exception in thread "main" java.lang.NoClassDefFoundError: oracle.jdbc.driver.OracleDriver
    at java.lang.Class.initializeClass (libgcj.so.7)
    at java.lang.Class.forName (libgcj.so.7)
    at java.lang.Class.forName (libgcj.so.7)
    at com.soft.mediator.db.DBConnector.init (DBConnector.java:88)
    at com.soft.mediator.db.DBConnector.<init> (DBConnector.java:36)
    at com.soft.mediator.XenerMediator.main (XenerMediator.java:113)
    Caused by: java.lang.ClassNotFoundException: oracle.security.pki.OracleSecretStore not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:/home/abc.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
    at java.net.URLClassLoader.findClass (libgcj.so.7)
    at java.lang.ClassLoader.loadClass (libgcj.so.7)
    at java.lang.ClassLoader.loadClass (libgcj.so.7)
    at java.lang.Class.forName (libgcj.so.7)
    at java.lang.Class.initializeClass (libgcj.so.7)
    ...5 more
    [error]
    i tried to add all path in jar file, class path even on comand line but it gives me same error,
    even i add oracle jar in my path seprately it gives me same error
    any idea what is reason ?

    Thanks for reply
    My problem solved problem was JAVA_HOME.
    Actually on normal shell Jdk version was 1.5, but when it runs my crowntab command linux used jdk 1.4, although JAVA_HOME in etc profile was 1.5 , as it was getting jdk 1.4 so while loading drivers it also includes 1.4 libaries.
    This cause exception in running my crontab entry so i set java_home as well in my shell file and add that shell script in crontab entry

  • 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

  • Cannot open MSWord while running java application

    Hi everyone
    I'm not sure if anyone has encountered this problem before.. I'm running a java application under Windows NT and when I try to open an office document it won't run until that java application has been shutdown. I don't even get an error message for this. Nothing happens at all until the application is shutdown and then MSWord just opens as if nothing had ever happened.
    Anyone have any ideas as to what this problem might be?

    As a guess.....
    1. Run a "hello world" java application. Use task manager and take a snap shot of the processes window.
    2. Run nothing else but the java application. Use task manager and take a snap shot of the processes window.
    3. Compare the two and eliminate any that are the same.
    4. Run nothing else but word. Use task manager and take a snap shot of the processes window.
    5. Compare it with 3. Note the ones that appear both times.
    6. Run the java application - use task manager to kill what you found in 5. Run word.
    Step 6 will probably cause the java app to fail in some odd way. But now you know why it doesn't work.
    Of course if nothing is the same in 5 above then that would be odd.

  • Mechanism for monitor java application or JVM

    Ladies & Gentleman,
    I develop Java application under Windows 2000 datacenter. For gurantee to capture all of abnormal situation of java application and also JVM, I need to know how to capture the situation. Do any other tools to do these things? I am very appreciated if you could tell me.

    You don't exactly need any specific tools to just capture exceptions, that can easily be done by wrapping the program you want to monitor with your own main() method and adding some shutdown hooks...
    But it would be nice to know what you want to do once it happens....
    Regardless of which, here's an example of that wrap...
    import java.lang.reflect.*;
    public class Watch extends Thread
         public void run()
              System.out.println("VM is closing down");
         public static void main(String[] args) throws Exception
              if (args.length == 0)
                   System.out.println("You must supply the name of the class to start with.");
                   System.exit(1);
              Runtime.getRuntime().addShutdownHook(new Watch());
              try
                   Class theClass = Class.forName(args[0]);
                   Method theMethod = theClass.getDeclaredMethod("main", new Class[]{String[].class});
                   String[] theNewArray = new String[args.length - 1];
                   System.arraycopy(args, 1, theNewArray, 0, theNewArray.length);
                   System.out.println("Starting program with class "+args[0]+"...");
                   theMethod.invoke(null, new Object[]{theNewArray});
                   System.out.println("Program is done running.");
              catch (ClassNotFoundException cnfe)
                   System.out.println("No such class: '"+args[0]+"'");               
              catch (NoSuchMethodException nsme)
                   System.out.println("The class "+args[0]+" has no main method.");
              catch (SecurityException se)
                   System.out.println("Can't start: "+se.getMessage());
              catch (IllegalAccessException iae)
                   System.out.println("Can't invoke main method in class "+args[0]+": "+iae.getMessage());
              catch (Exception ite)
                   System.out.println("Exception occurred when running class "+args[0]+": "+ite.getMessage());
    }You can easily just swap those System.out's for something else.
    However, if you mean watching the process from outside the VM, then you need something else, I suppose.
    /F

  • Video tearing under Linux w/Air 2.6

    Flash 10.2 fixed the problem of video tearing of Flash applications under Linux with the move to use OpenGL for displaying.  Does Air 2.6 (or will a future version) support the same OpenGL layer and/or is there a config file like the Flash mms.cfg that must be edited to enable hardware acceleration?
    Video tearing is a massive issue with full screen applications under Linux and we need a solution now with Air since Flash >= 9 does not allow keyboard input when fullscreened.
    Thanks,

    Though AIR is no longer being actively supported on Linux, do you happen to have a bug number that we can look into from bugbase.adobe.com?  If not, would you mind adding a bug report?

  • HTTPS upload failed under Linux Error #2038

    HI,
    we're developing  Flex based framework, focusing on, among the others, file upload. Everything is fine and works well for the browsers Opera, Firefox, Chrome under the Windows/Mac OS/Linux in the http mode. Unfortunately in https we are unable to upload files, using the same application under Linux ( all browsers fail with that ).
    The result is as follows:
    I've found a similar looking bug here:
    https://bugbase.adobe.com/index.cfm?event=bug&id=2980517
    but it differs from our case since we're experiencing that problem only under Linux ( all browsers in their latest versions ). I tried both the latest Flash plugin ( stable ) and the 11 bet version. The same effect.
    I would be gratefull for any hints on that. If there will be a need I can arrange a demosite with an application to perform some tests. I'm not excatly sure wheter this forum is the right place to ask for such issue, if not please point me to the correct place.
    Regards,
    Piotr

    I have the same error # 2038 problem , when search google there has the kind of problem since 2008 , which cause many factor :
    my code : is easy form flex -> air run to mobile iphone upload image to tomcat server.
    //private const serverURL:String = "http://localhost:8400/aii-mobile-services-1.0-SNAPSHOT/imageupload"; //work
    private const serverURL:String = "http://192.9.xxx.xxx:8400/aii-mobile-services-1.0-SNAPSHOT/imageupload"; // error # 2038
                    file.addEventListener( Event.COMPLETE, uploadComplete );
                    file.addEventListener( IOErrorEvent.IO_ERROR, ioError );
                    try
                        //file.upload( new URLRequest( serverURL ) );
                        //fileUpload.upload( new URLRequest( serverURL ) );
                        var request:URLRequest = new URLRequest(serverURL);                   
                        var params:URLVariables = new URLVariables();
                        params.name = id_refnumber;
                        params.userid = "AII-IT-DEV";
                        request.method = URLRequestMethod.POST;
                        request.contentType = "multipart/form-data";
                        request.data = params;
                        file.upload(request,"file");
                    catch( e:Error )
                        trace( e );
                        currentState = "unsupported";
                        msg.text = e.toString();
                    finally {
    The server is tomcat and servlet is /imageupload
    The  point is when I test air / mobile  for  local host is work perfectly but when I point to real server I was punch by #2038
    - When I test with html form upload image to servlet (/imageupload)  and it worked both local , server machine ( so firewall stuff may not the factosr.)
    If I found the way out I will come back to update
    or someone know this trick  to fix this case would be make me happy
    sorry for my bad english

  • How to output executable Bin file under linux from java

    Hi
    im beginner in java under linux and i want to out put my java programs to be bin files that can run
    if this not possilble
    how to run the output jar files with just double click ?
    does i have to run sh file that do the hob how?
    thanks in advance.

    say your main method (application's entry point) is located in a class com.my.Class,
    then first you create a text file (say, manifest.txt) that contains this line:
    Main-Class: com.my.Class
    [/code}
    and then you append this to the jar's manifest as such:
    jar cfm yourjarfile.jar manifest.txt [additional files you might want to add]
    for more info,
    http://java.sun.com/docs/books/tutorial/deployment/jar/manifestindex.html                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Jar files as application Error under linux

    I created a jar file with the following jar command
    jar cmf mainclass Asdi2GuiJar.jar *.class
    Main-Class: ASDIGUI
    It did work without any problem : java -jar Asdi2GuiJar.jar
    when I added to the CLASSPATH under linux "Redhat 7.2" C-shell, it give me an error:
    Exception in the thread main java.util.zip.ZipException: No Such file or directory
    even im not using any zip file class in my java application. Any idea why im getting such an error even before addding the jar file to the CLASSPATH it did work without any problem?

    ah young grasshopper you are using zip files :) rename your .jar file a .zip and use unzip on it :)
    and that error means that the jvm's classloader couldn't load it's zip component so it's likely that your jvm can't find it's standard lib's
    make sure your class path points to the /lib directory of your java install..... which version of the jdk are you using?
    are you setting the classpath globally? since the way you said CLASSPATH I guess you are... ....are you keeping the old classpath when you set it? like CLASSPATH=$CLASSPATH:/myNewSource
    or something like that...
    maybe something in that will help

  • 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.

  • Deploying Java-based Web application in Linux Red Hat

    Dear All:
    I would like to deploy my Java Servlets and JSPs in a Linux Web Server Machine that also will run MySQL.
    I would like to know about the complete softwares that require to run the web application.
    Here I am mentioning few of them and would like to know whether they are correct and/or I need more.
    1. Java
    2. Linux OS
    3. Apache Web Server
    4. Tomcat
    5. MySQL
    6. JDBC
    Looking forward to receiving you kind and prompt help.
    Sincerely,

    If you really want to use the Apache HTTP Server next to Apache Tomcat Server, then look for the mod_jk. Otherwise just leave that Apache HTTP Server away.
    To the point: just learn about each of those components. Just Googling "something tutorial" is enough to find a tutorial about something. As you've posted this in the JDBC forum, I guess the core problem is the JDBC API. [Google it|http://google.com/search?q=jdbc+tutorial].

Maybe you are looking for

  • Viewing multiple rows in a database.

    Hey, I've been stuck on a problem for a while now. I know that JDBC 1.0 does not allow scrollable resultsets or provide a rowcount method. I know because of this two resultsets are needed,one to get the number of rows and the other to get the values

  • PROGRAM FOR INTERACTIVE ALV REPORT

    Hi frens,   this is my 3rd query to this forum. the response of this forum is excellent.now my question is : whats the source code(or program) for Interactive ABAP List Viewer(ALV)  reports connecting KNA1 as basic list and VBAK, VBAP as the seconday

  • Soap - Xi - Bapi (different)

    I am having a problem with my scenario -- in which some parameters are passed to xi through webservice reuest, and BAPI have to called ,given some input parameter( that XI recieved from webservice),BAPI now the returned result ,these value r sent bac

  • Print queue auto-deleted when printer is switched off after office hours

    We have our fax program running 24-7 and autoprinting every received fax. When the printers are sutdown outside office hours, xserve deletes the jobs without holding them until the printers become available again. Is there a trick to keep the jobs (a

  • Sync with MS-Outlook-Calendar, some entries accurate, some entries out by 2 hours

    I've been using a Palm and Outlook since 2000.  While not perfect, they do syncronize nicely. For a PDA, I need an accurate calendar with details/notes inside of them (contacts, email, mobile telephone are secondary for me) I'll state again, having a