JRE problem in Linux

I got this error:-
$/jre/bin/java -Xmx32M -version
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
Any suggestion to resolve this error?

There are some crazy things, I can't explain...
1) Here is my [sample project|http://vlkv.storm-soft.kiev.ua/_mywiki/images/6/6f/JavaApplication1.tar.gz]. I've created it with NetBeans 6.5 and jdk 1.6.0_11.
2) there are directories dist_windows, dist_linux with jars, created under Windows and Linux (same version JDK everywhere). You may compare both JavaApplication1.jar files with some diff tool (such as WinMerge) and you can see that these jars are slightly different. WHY?
3) Run my sample
java -jar JavaApplication1.jarpress the button and scroll up and down JTable. Under Windows everything is ok. But under Linux I have the subj bug with BOTH dist_windows/JavaApplication1.jar and dist_linux/JavaApplication1.jar !!!
4) Start NetBeans 6.5 and open the project. Run the project from inside NetBeans on Linux. Then I see that my java program runs perfectly, without any bugs!!!
This command
ps fu -C javaproduces this output:
vlkv 8778 1.0 2.8 217084 22408 ? Sl 14:01 0:00 \_ /usr/java/jdk1.6.0_11/bin/java -classpath /home/vlkv/NetBeansProjects/JavaApplication1/build/classes:/home/vlkv/NetBeansProjects/JavaApplication1/src NewJFrame
But if I run NewJFrame without NetBeans like this (copy/paste command):
/usr/java/jdk1.6.0_11/bin/java -classpath /home/vlkv/NetBeansProjects/JavaApplication1/build/classes:/home/vlkv/NetBeansProjects/JavaApplication1/src NewJFrame
This bug returns!!! WHY UNDER NETBEANS IT'S OKAY?
Where are the java experts to help us, please?
PS: I've found a topic about this problem, unfortunately not answered, here .

Similar Messages

  • Oracle 8.1.6 jre problem on Linux Mandrake 7.2

    I tried to install Oracle 8.1.6 on a Linux Mandrake 7.2 distribution using bash (sh is a link to bash) as shell and glibc 2.1.xx (this is the last Mandrake distribution)
    runInstaller script died complaining about command not found. Running the runInstaller bin in install/linux folder complains about not finding jre 1.1.8. I found jre in the stage subfolder and tried to run it manually but i fails (maybe java classPath). I tried even installing jre 1.2.2. the same failure.
    I tried also with ksc & csh: nothing.
    Any idea??
    Thank you.

    You need unset JAVA_HOME, for example
    $ JAVA_HOME=''; export JAVA_HOME
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by David Wang ([email protected]):
    The machine was running 8.1.5 on RedHat 6.1 (Sure, the installation was painful at that time, I downloaded jre1.6.5 & linux_81501patch_ee.tgz to make it works).
    The problem now, is upgrading 8.1.5 to 8.1.6. Since so many people told migration is painful, so I decided to export database, remove 8.1.5, install 8.1.6 and import database.
    After remove all the oracle files (I believe), I ran "runInstaller", after select "Custom" and click "Next". It immidiate shows following error:
    rror in loading component installation...
    Exception java.lang.NullPointerException: Occurred..
    java.lang.NullPointerException:
    at oracle.sysman.oii.oiio.oiiod.OiiodDepEngine.checkPreReq(OiiodDepEngine.java.2185)
    at oracle.sysman.oii.oiio.oiiod.OiiodDepEngine.applySelection(OiiodDepEngine.java.1504)
    at oracle.sysman.oii.oiio.oiiod.OiiodDepEngine.depModeApply(OiiodDepEngine.java.1264)
    at oracle.sysman.oii.oiif.oiifw.OiifwPostModesWCCE.doOperation(OiifwpostDepModesWCCE.java:327)
    at oracle.sysman.oii.oiif.oiifb.OiifbCondIterator.iterate(OiifbCondIterator.java:140)
    at oracle.sysman.oii.oiic.OiicDepWizEngine.doOperation(OiioDepWizEngine.java.339)
    at oracle.sysman.oii.oiif.oiifb.OiifbCondIteration(OiifbCondIterator.java.140)
    at oracle.sysman.oii.oiic.OiicPullSession.doOperation(OiicPullSession.java:510)
    at oracle.sysman.oii.oiic.OiicSessionWrapper.doOperation(OiicSessionWraper.java:110)
    at oracle.sysman.oii.oiif.Oiifb.OiifbLinearIterator.iterate(OiifbLinearIterator.java:116)
    at oracle.sysman.oii.oiic.OiicInstaller.run(OiicInstaller.java:306)
    at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:467)
    and installation stop..
    Do you have any idea?? This is production system, HELP!!!!!
    <HR></BLOCKQUOTE>
    null

  • Path problem in linux

    hi,
    i have problem with file path accessing in linux. my java class is accessing a abc.cvs file and and getting all data. it is working fine in windows xp. but i run this same file in linux it does not access the abc.cvs file and does not get any data.
    my project structure
    Search
    abc.cvs
    search.SearchMain
    i am sccessing this cvs file in this SearchMain class by this way file name = "abc.cvs"
    It is working fine with window but problem with linux.
    when i place this abc.cvs in a folder as "./data/abc.cvs" also working fine with windows but not in linux.
    I am new for linux.
    Please give me solution.
    Thanks in advance
    Ravi

    There shouldn't be any differences between Linux and Windows here, it's all about your environment. In order to access abc.cvs class (I presume that abc is package name) from search.SearchMain class you need to have a directory (or .jar file) containing abc/cvs.class in your CLASSPATH environment variable.
    Try setting it with
    export CLASSPATH=your_dir_or_jar_file:$CLASSPATH
    and then running the app again.

  • File problem in linux OS.

    hi,
    I am creating one jar file . In my program, when I click one survey menu in my GUI,it will collect information from remote device and store it in log file located LOG folder. In my case, I put one folder " Cal" and inside it I put myjar.jar file and that log (LOG) folder.
    In Windows, when I click survey menu in GUI, the log information automatically stored in log foder as survey.txt file. And also, i create one show dialog box to show where the log file located.
    my code is,
    String  ss=new String(" HIllo"+"loginfo" );           
                     byte b[]=ss.getBytes ();
                           OutputStream f0=new FileOutputStream               ("LOG/survey.log",true);
                           f0.write(b);
                           f0.flush();                      
                           f0.close ();    the above code is file writing in txt file.
    for display dialog box,
    if(source==Survey)
                    File file = new File("LOG/Survey.log");                      
                    file = file.getAbsoluteFile(); 
                    javax.swing.JOptionPane.showMessageDialog(MainFrame, "The LOG FILE is stored at -- \t \t"+file);
                 }In windows, where can i install that Cal folder (inside it JAR file and LOG folder), and click that jar , all are working fine. The log file stored correctly inLOG folder and dialog box show the located path.
    eg. log file stored at D:/sbk/Cal/LOG/survey.log
    But my problem in linux.
    when i click survey menu, it will defaultly stored in root folder and log folder. Actually i am not creating LOG folder in root folder.
    I am changing file writer as , to store that JAR folder and want to store that log file in home directory.
    if(no_of_ssid!=null){
                    String  ss=new String(""HIllo"+"loginfo\n" );          May
                     byte b[]=ss.getBytes ();
                           OutputStream f0=new FileOutputStream ("/home/Cal/LOG/Survey.log",true);
                           f0.write(b);
                           f0.flush();                      
                           f0.close ();    but, now also that file stored in rot directory.
    what can I do.
    how can I store log file in home/Cal/Log folder in Linux.
    any one help this problem

    Use System get prop user.home?

  • Unicode filename problems in linux

    I'm running into a problem in linux (Ubuntu). The following test code will throw an exception at the "FileInputStream fis... " line with the file has a unicode filename. However, Windows passes this without problems.
    try {
         File dir = new File("a directory that exists");
         File[] files = dir.listFiles(); //get file list
         for (int i = 0; i < files.length; ++i) {
              System.out.println("file " + files.getAbsolutePath());
              FileInputStream fis = new FileInputStream(files[i]);
    } catch (Exception e) {
         System.out.println("Exception: " + e.getMessage());
    Does anyone know how to fix this? Thanks!

    But the characters are actually chinese. And since
    it's on Ubuntu, it would be in UTF-8 encoding
    wouldn't it?
    The characters display fine in ubuntu but when I try
    to read them in using FileInputStream, it fails for
    some filenames with strange characters.
    I just don't understand why some characters make it
    fail and others are fine. It seems that it should
    all work or all not work? Perhaps I'm wrong.On my Fedora Core 6,
    the result of
    echo $LANG
    is:
    ja_JP.UTF-8
    And I tried your program on a directory that has &#30334;&#24230;MP3��&#20840;.txt file in it.
    import java.io.*;
    public class AlsKdj{
      public static void main(String[] args){
        try {
          File dir = new File(".");
          File[] files = dir.listFiles();
          for (int i = 0; i < files.length; ++i) {
            System.out.println("file " + files.getAbsolutePath());
    FileInputStream fis = new FileInputStream(files[i]);
    System.out.println(" " + fis.toString());
    catch (Exception e) {
    e.printStackTrace();
    The output from the program is:
    file /root/test/./AlsKdj.class
      java.io.FileInputStream@1a46e30
    file /root/test/./&#30334;&#24230;MP3��&#20840;.txt
      java.io.FileInputStream@3e25a5
    file /root/test/./bbs.txt
      java.io.FileInputStream@19821f
    file /root/test/./WMP.txt
      java.io.FileInputStream@addbf1As shown above, the result is normal if LANG is really UTF-8.
    My Java version is:
    java version "1.6.0_01"
    Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
    Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)

  • HEAVY Problems with Linux x86_64 on K8T Neo

    Hello, Community!
    I experience *HEAVY* Problems with Linux on my MSI K8T Neo (FSR). Since the customer support of the german dependancy seems to ignore my call for help I'm in good hope that maybe you can help me out or give me some useful advise.
    First some Hardware Specs of my system:
    MSI K8T Neo FSR, Rev 1.1, BIOS 1.5
    AMD Athlon 64 3000+
    3x 512MB Kingston DDR400
    Enermax EG365P-VE (350W) PSU (3.3V/5V 185W Combinded)
    MSI GeForce FX5200 TDR 128
    Adaptec ATA RAID AAR1200A (HPT370A) in PCI Slot 3
    Hauppauge WinTV PCI in PCI Slot 5
    Maxtor 4K040H2 (40GB) as Primary Master
    JLMS XJ-HD166S DVD-ROM as Primary Slave
    LiteOn LDW-411S DVD+/-RW as Secondary Master
    LiteOn LTR-52327S CD-RW as Secondary Slave
    2x Maxtor 6Y060L0 (60GB) on HPT370A as Primary Master/Slave
    Seagate ST380020A (80GB) on HPT370A as Secondary Master
    Maxtor 32049U3 on HPT370A as Secondary Slave
    KeyTronic KT2001 USB Keyboard
    Microsoft Optical Wheel Mouse Blue USB
    I've downloaded Fedora Core 1 x86_64 as well as the lately released Fedora Core 2 test 3 x86_64 distribution. Both CD sets have been burnt ok.
    If I try to install Core 1 x86_64 (Kernel 2.4.22-1.2179) the kernel crashes with a "attempted to kill idle task" panic. As far as I've learned the workaround is to give idle=poll as kernel parameter. This resolves the kernel panic, but the installer randomly crashes with segfaults at a random stage; sometimes while loading anaconda, sometimes during package install.
    If I try to install Core2 test 3 x86_64 (Kernel 2.6.5) I get a, completely new, error message while the kernel does the PCI Scan:
    ******* Your BIOS seems to not contain a fix for K8 errata #93
    ******* Working around it, but it may cause SEGVs or burn power
    ******* Please consider a BIOS update
    ******* Disabling USB legacy in the BIOS may also help
    I removed my USB keyboard, connected a PS/2 keyboard, disabled to USB Legacy option (I need it enabled in order to use Ghost) in the BIOS and booted again.
    The error message is gone now, but as in Core 1 the installer still crashes randomly with segfaults. I'm still unable to go all the way through the installation routine.
    I even tried to install Fedora Core 1 "i386": again there are segfaults during install.
    Contrary to the problems I experience while trying to install Linux my Windows XP (32-Bit), as well as a test installation of Windows XP 64-Bit, run like a charm without any problems. Strange but true.
    Since I already read trough several posts in this forum I already tried running my system with memory sticks from another manufacturers as well as with a more powerful PSU. I even removed my tv-card and raid-controller.
    Nogo - Linux still crashes randomly and Windows still works without any flaws.
    Has anyone a clue what I can/must do to successfully install Linux?
    Might it be that the BIOS has some flaws that might cause the problems?
    Has anyone managed to install Linux (what distribution) on this Mainboard?
    I would greatly appreciate any help. If you need to know something I haven't provided here please feel free to ask. I'll answer ASAP.
    Thank you in advance.
    P.S.: The system is *NOT* overclocked in any way.

    And now even the last problem is solved ...
    Since I was successful in installing a basic Gentoo system but still failed to install Fedora I reflashed BIOS 1.5. This time I cleared the CMOS by unplugging the PSU, setting the jumper and removing the backup battery.
    Yesterday I only flashed it with the /a switch, which should have cleared the CMOS as well - so far for the theory. However, it once went fine as I upgraded from BIOS 1.1 to 1.4.
    After setting up the BIOS options again I gave it another try and booted from Fedora (Core 2 test 3) install CD: No more complains about the CPU errata, although USB legacy is enabled, and I even went through the installation without any problems.
    It seems as I will stick with Gentoo as my primary distribution since the kernel makes a more "mature" impression than the one from Fedora (i.e. the K8 PowerNOW! Driver seems to be missing in Fedora's Kernel 2.6.5).
    By using an spare Athlon XP Mainboard I worked out that only one of my three Kingston memory sticks had errors - I'm going to replace the faulty stick tomorrow.
    Now for the conclusio:
    Thanks, especially you JLP, for helping me with my issue. Without the advise to use Gentoo, and the included MemTest86, I wouldn't have been able to track down the error to a faulty memory stick that fast since Windows always ran fine.

  • Installation problem on Linux Slackware 7.1 (Oracle 8i)

    I try install Oracle 8i Enterprise in Linux Slackware 7.1 (kernel 2.2.16), but the runInstaller don't work.
    I read the installation manuals and make all steps, but the runInstaller don't work.
    I get this message:
    ./runInstaller
    The Java RunTime Environment was not found at bin/jre. Hence, the Oracle Universal Installer cannot be run.
    Please visit http://www.javasoft.com and install JRE version 1.1.8 or higher and try again.
    : No such file or directory
    I try --> ln -s /usr/local/jre118_v3 /usr/local/java
    and --> ln -s /usr/local/jre118_v3 /usr/local/jre
    and put in PATH --> /usr/local/jre/bin
    Nothing work's.
    Somebody can help me ?????
    Thank's ....

    Hello!
    I also tried to install Oracle 8.1.6.1 (after giving up the 8.0.5 installation due to segmentation faults all over..), it also failed.
    After trying to install Oracle 8.1.6.1 on RedHat 7.0 and it still crashed, i sent a mail to some guru that wrote the oracle-how-to document for redhat, here is what he replied.
    My guess is that this also applies to the newest slackware version, because i presume that slackware 7.0 also use the newest glibc libraries;
    Thanks for the feedback.
    Oracle 8.1.6 does not work under Red Hat >Linux 7. Yes, that's the problem
    that I mentioned in the doc--you get to 80% >and the DBCA crashes and the
    Oracle executables die.
    I've heard, but I haven't tried it myself, >that if you install the latest
    glibc errata (2.1.94) then the DBCA >completes but the Oracle executables
    still die. The DBCA problem was apparently >a Java issue that is fixed in
    the errata. But you're still out of luck >since the exes won't work.
    It might appear that this is a problem with >Red Hat Linux 7. But it appears
    that it is a problem with some assumptions >that Oracle made, assumptions
    that worked with glibc 2.1.3 (the C library >included with RHL 6.2) but which
    prove false with later glibc versions. As >other Linux distributions adopt
    the new glibc Oracle will fail to work on >them as well.
    The best advice I can give at this point is >to install and run Oracle on
    Red Hat Linux 6.2. Hopefully Oracle will >address the glibc issues with the
    8.1.7 release.
    ChrisI then installed Orace on RedHat 6.1 and it worked like a dream.
    Maybe you guys should try your luck on an earier version of slackware?
    Hope that helped...
    null

  • Oracle 8.1.7 installation problem on ( linux) red hat 7.1

    HI,
    I AM TRYING TO INSTALL ORACLE 8.1.7 ON LINUX RED HAT(7.1).
    AFTER DOING ALL THE STEPS WHEN I RUN(./runInstaller) I am getting message
    "Initializing java virtual machine from ../stage/components/oracle.swd.jre/1.1.8/1/datafiles/Expanded/Linux/bin/jre. please wait" and the execution terminates.
    PLEAE HELP ME please help me !!!!!!
    Also let me know which file to untar in the CD (linux81701.tar & glibc-2.1.3-stubbs.tar) also installed JDK1.1.8.
    Please help Me..

    Hi,
    My name is Fridirick REMBEAUX and I have the same problem. ;))
    I did not understand the first point after :
    1. /usr/i386-glibc21-linux/bin/i386-glibc21-linux-env.sh
    At which url can I get this script ?
    I think that maybe it's not the same problem because the installer and so the jre
    still executed but nothing else appears.
    And I'm also lost. When did the oracle products work well ??
    I think I damned.
    Hi
    I get same Problem on Rh7.3 !But when i execute 2 Step will be OK!
    1. /usr/i386-glibc21-linux/bin/i386-glibc21-linux-env.sh
    2. export LD_ASSUME_KENERL=2.2.5
    HI,
    I AM TRYING TO INSTALL ORACLE 8.1.7 ON LINUX RED HAT(7.1).
    AFTER DOING ALL THE STEPS WHEN I RUN(./runInstaller) I am getting message
    "Initializing java virtual machine from ../stage/components/oracle.swd.jre/1.1.8/1/datafiles/Expanded/Linux/bin/jre. please wait" and the execution terminates.
    PLEAE HELP ME please help me !!!!!!
    Also let me know which file to untar in the CD (linux81701.tar & glibc-2.1.3-stubbs.tar) also installed JDK1.1.8.
    Please help Me..

  • Installation problem in Linux Slackware 7.1

    So that we may better diagnose DOWNLOAD problems, please provide the following information.
    - Server name
    - Filename
    - Date/Time
    - Browser + Version
    - O/S + Version
    - Error Msg
    I try install Oracle 8i Enterprise in Linux Slackware 7.1 (kernel 2.2.16), but the runInstaller don't work.
    I read the installation manuals and make all steps, but the runInstaller don't work.
    I get this message:
    ./runInstaller
    The Java RunTime Environment was not found at bin/jre. Hence, the Oracle Universal Installer cannot be run.
    Please visit http://www.javasoft.com and install JRE version 1.1.8 or higher and try again.
    : No such file or directory
    I try --> ln -s /usr/local/jre118_v3 /usr/local/java
    and --> ln -s /usr/local/jre118_v3 /usr/local/jre
    Nothing work's.
    Somebody can help me ?????
    Thank's ....

    Hello!
    I also tried to install Oracle 8.1.6.1 (after giving up the 8.0.5 installation due to segmentation faults all over..), it also failed.
    After trying to install Oracle 8.1.6.1 on RedHat 7.0 and it still crashed, i sent a mail to some guru that wrote the oracle-how-to document for redhat, here is what he replied.
    My guess is that this also applies to the newest slackware version, because i presume that slackware 7.0 also use the newest glibc libraries;
    Thanks for the feedback.
    Oracle 8.1.6 does not work under Red Hat >Linux 7. Yes, that's the problem
    that I mentioned in the doc--you get to 80% >and the DBCA crashes and the
    Oracle executables die.
    I've heard, but I haven't tried it myself, >that if you install the latest
    glibc errata (2.1.94) then the DBCA >completes but the Oracle executables
    still die. The DBCA problem was apparently >a Java issue that is fixed in
    the errata. But you're still out of luck >since the exes won't work.
    It might appear that this is a problem with >Red Hat Linux 7. But it appears
    that it is a problem with some assumptions >that Oracle made, assumptions
    that worked with glibc 2.1.3 (the C library >included with RHL 6.2) but which
    prove false with later glibc versions. As >other Linux distributions adopt
    the new glibc Oracle will fail to work on >them as well.
    The best advice I can give at this point is >to install and run Oracle on
    Red Hat Linux 6.2. Hopefully Oracle will >address the glibc issues with the
    8.1.7 release.
    ChrisI then installed Orace on RedHat 6.1 and it worked like a dream.
    Maybe you guys should try your luck on an earier version of slackware?
    Hope that helped...
    null

  • Jre 15.0_22/Linux - Swing components error when using GTKLookAndFeel

    Hello,
    I'm not sure if it's a JRE bug or what, but on Linux platforms our applet fails when using swing components using the GTKLookAndFeel.
    To demonstrate/test, I have the ff test applet:
    import java.applet.Applet;
    import javax.swing.UIManager;
    import javax.swing.UnsupportedLookAndFeelException;
    public class TestApplet extends Applet {
      @Override
      public void init() {
        super.init();
        test();
      public static void main(String[] args) {
        (new TestApplet()).test();
      public void test() {
        try {
          String className = UIManager.getSystemLookAndFeelClassName();
          System.out.println(className);
          javax.swing.LookAndFeel laf = (javax.swing.LookAndFeel) this.getClass().forName(className).newInstance();
          UIManager.setLookAndFeel(laf);
          System.out.println("setting classloader");
          UIManager.put("ClassLoader", this.getClass().getClassLoader());
          UIManager.getLookAndFeelDefaults().put("ClassLoader", this.getClass().getClassLoader());
        } catch (ClassNotFoundException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
        } catch (InstantiationException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
        } catch (IllegalAccessException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
        } catch (UnsupportedLookAndFeelException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
        System.out.println(UIManager.getLookAndFeelDefaults().getUIClass("javax.swing.JTextField"));
        UIManager.getLookAndFeelDefaults().getUI(new javax.swing.JTextField());
    }The system look and feel here is GTKLookAndFeel. The problem is that the getUI() call in the last line is returning null and I can see in the console:
    UIDefaults.getUI() failed: no ComponentUI class for: javax.swing.JTextField
    java.lang.Error
    .. etc.
    This is happening for different swing classes, I just used JTextField here as a simple test case.
    This only happens if the applet is run from the browser (via the java plugin). If I run the above code from the command line, there is no error raised, and the actual component UI class is a Synth class.
    This is only happening for us in Java 1.5.0_22 on Linux...on 1.5.0_15 and 1.6+ it seems to be fine. I'm using the 1.5.0_22 JDK downloaded from Sun.
    Anyone have any idea how to fix this error or any workaround? As you can see in the code above, I tried specifying the classloader (I read it in some other thread on these forums), but no luck there.
    Or is this a known problem in 1.5.0_22? Can anyone else replicate it?

    Installation howto you can find on http://www.puschitz.com
    Try use "Search" function before you create new topic. This one was discussed many times.

  • JRE slower on Linux

    Hi,
    I find that Java Applications run slower on Linux than on Windows. Particularly Swing apps are very slow to open on Linux. There is a difference of upto five seconds even while opening small apps.
    Why is this so?? Is JRE not well optimized for Linux??

    15.12.2008
    though the problem happend a long time ago and might be fixed,
    possible somebody which come across it again.
    As far as i understand its a "sloppy" logging problem and has to
    do with the xorg driver.
    there is a debian report for it.
    Debian Bug report logs - #481745
    libxcb: sloppy locking needs to be on by default.
    possible the libmawt code needs a small change.
    i had the proble in a debian-lenny environment -- possible the fix
    did not make the way.
    #0 /usr/lib/libxcb-xlib.so.0 [0xdfe80767]
    #1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0xdfe808b1]
    #2 /usr/lib/libX11.so.6(_XReply+0x254) [0xdfec6c44]
    #3 /usr/jdk1.6.0_03/jre/lib/i386/xawt/libmawt.so [0xe024964e]
    greetings robert

  • Line Problems in Linux ...

    Hi
    i write a simple program, which only draws a few Lines in a JFrame. It works fine in Windows. But it makes problems on my Linux (Ubuntu) OS, allthough the java versions are the same on both systems.
    "Java (TM) 2 Runtime Environment, Standard Edition (build 1.5.0._05-b05) ... "
    If i start the programm in linux, the lines will be shown only for a few milliseconds. (or sometimes so fast, that i can't see it ) and after that the Frame is blank ( simple problem with "public void paint ( graphics g ), i think"
    i don't know if i'm in the right forum, my first thought was, it's maybe a bug in the jre.
    But i think my codestyle is rather a bit dirty with the 2D Graphics and the windows java machine is maybe more tolerant than my linux machine.
    http://www.inravage.net/M.java
    here you can see the current source-code ( it's not very much )
    So if you have a good idea, why it doesn't works under Linux, i'll be very grateful.

    Did you find the problem? I got the same problem (i know the cose is not as good as it could be, cause i take a old code part from a older project, but it work #1 on windows).
    thx a lot

  • Jre error on linux

    Hi,
    Jre doesn't work since some months. I have arch linux but I don't think it is a system's problem, since I have reinstalled the os many times.
    So, the problem is that jre hangs with a grey screen and sends this error messages to the console:
    Locking assertion failure.  Backtrace:
    #0 /usr/lib/libxcb-xlib.so.0 [0xb7d83767]
    #1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0xb7d838b1]
    #2 /usr/lib/libX11.so.6(_XReply+0xfd) [0xab802a8d]
    #3 /opt/jav/jre/lib/i386/xawt/libmawt.so [0xab91364e]
    #4 /opt/jav/jre/lib/i386/xawt/libmawt.so [0xab8f1f97]
    #5 /opt/jav/jre/lib/i386/xawt/libmawt.so [0xab8f2248]
    #6 /opt/jav/jre/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x2f) [0xab8f254f]
    #7 [0xb5d4b4ee]
    #8 [0xb5d43ea5]
    #9 [0xb5d43ea5]
    #10 [0xb5d41243]
    #11 /opt/jav/jre/lib/i386/client/libjvm.so [0x620bc6d]
    #12 /opt/jav/jre/lib/i386/client/libjvm.so [0x630a828]
    #13 /opt/jav/jre/lib/i386/client/libjvm.so [0x620bb00]
    #14 /opt/jav/jre/lib/i386/client/libjvm.so(JVM_DoPrivileged+0x34b) [0x62619bb]
    #15 /opt/jav/jre/lib/i386/libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x3d) [0xb7d5c96d]
    #16 [0xb5d4b4ee]
    #17 [0xb5d43d4d]
    #18 [0xb5d41243]
    #19 /opt/jav/jre/lib/i386/client/libjvm.so [0x620bc6d]
    java_vm: xcb_xlib.c:82: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.
    Could not read ack from child process
    Plugin: Java VM process has died.
    Could not start JavaVM!
    VM did not start up properly
    Locking assertion failure.  Backtrace:
    #0 /usr/lib/libxcb-xlib.so.0 [0xb7dad767]
    #1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0xb7dad8b1]
    #2 /usr/lib/libX11.so.6(_XReply+0xfd) [0xab822a8d]
    #3 /opt/jav/jre/lib/i386/xawt/libmawt.so [0xab93364e]
    #4 /opt/jav/jre/lib/i386/xawt/libmawt.so [0xab911f97]
    #5 /opt/jav/jre/lib/i386/xawt/libmawt.so [0xab912248]
    #6 /opt/jav/jre/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x2f) [0xab91254f]
    #7 [0xb5d754ee]
    #8 [0xb5d6dea5]
    #9 [0xb5d6dea5]
    #10 [0xb5d6b243]
    #11 /opt/jav/jre/lib/i386/client/libjvm.so [0x620bc6d]
    #12 /opt/jav/jre/lib/i386/client/libjvm.so [0x630a828]
    #13 /opt/jav/jre/lib/i386/client/libjvm.so [0x620bb00]
    #14 /opt/jav/jre/lib/i386/client/libjvm.so(JVM_DoPrivileged+0x34b) [0x62619bb]
    #15 /opt/jav/jre/lib/i386/libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x3d) [0xb7d8696d]
    #16 [0xb5d754ee]
    #17 [0xb5d6dd4d]
    #18 [0xb5d6b243]
    #19 /opt/jav/jre/lib/i386/client/libjvm.so [0x620bc6d]
    java_vm: xcb_xlib.c:82: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.
    Could not read ack from child process
    Plugin: Java VM process has died.
    Could not start JavaVM!
    VM did not start up properly
    Locking assertion failure.  Backtrace:
    #0 /usr/lib/libxcb-xlib.so.0 [0xb7d54767]
    #1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0xb7d548b1]
    #2 /usr/lib/libX11.so.6(_XReply+0xfd) [0xab7d2a8d]
    #3 /opt/jav/jre/lib/i386/xawt/libmawt.so [0xab8e364e]
    #4 /opt/jav/jre/lib/i386/xawt/libmawt.so [0xab8c1f97]
    #5 /opt/jav/jre/lib/i386/xawt/libmawt.so [0xab8c2248]
    #6 /opt/jav/jre/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x2f) [0xab8c254f]
    #7 [0xb5d1c4ee]
    #8 [0xb5d14ea5]
    #9 [0xb5d14ea5]
    #10 [0xb5d12243]
    #11 /opt/jav/jre/lib/i386/client/libjvm.so [0x620bc6d]
    #12 /opt/jav/jre/lib/i386/client/libjvm.so [0x630a828]
    #13 /opt/jav/jre/lib/i386/client/libjvm.so [0x620bb00]
    #14 /opt/jav/jre/lib/i386/client/libjvm.so(JVM_DoPrivileged+0x34b) [0x62619bb]
    #15 /opt/jav/jre/lib/i386/libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x3d) [0xb7d2d96d]
    #16 [0xb5d1c4ee]
    #17 [0xb5d14d4d]
    #18 [0xb5d12243]
    #19 /opt/jav/jre/lib/i386/client/libjvm.so [0x620bc6d]
    java_vm: xcb_xlib.c:82: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.
    Could not read ack from child process
    Plugin: Java VM process has died.
    Could not start JavaVM!
    VM did not start up properly
    Locking assertion failure.  Backtrace:
    #0 /usr/lib/libxcb-xlib.so.0 [0xb7d81767]
    #1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0xb7d818b1]
    #2 /usr/lib/libX11.so.6(_XReply+0xfd) [0xab7f2a8d]
    #3 /opt/jav/jre/lib/i386/xawt/libmawt.so [0xab90364e]
    #4 /opt/jav/jre/lib/i386/xawt/libmawt.so [0xab8e1f97]
    #5 /opt/jav/jre/lib/i386/xawt/libmawt.so [0xab8e2248]
    #6 /opt/jav/jre/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x2f) [0xab8e254f]
    #7 [0xb5d494ee]
    #8 [0xb5d41ea5]
    #9 [0xb5d41ea5]
    #10 [0xb5d3f243]
    #11 /opt/jav/jre/lib/i386/client/libjvm.so [0x620bc6d]
    #12 /opt/jav/jre/lib/i386/client/libjvm.so [0x630a828]
    #13 /opt/jav/jre/lib/i386/client/libjvm.so [0x620bb00]
    #14 /opt/jav/jre/lib/i386/client/libjvm.so(JVM_DoPrivileged+0x34b) [0x62619bb]
    #15 /opt/jav/jre/lib/i386/libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x3d) [0xb7d5a96d]
    #16 [0xb5d494ee]
    #17 [0xb5d41d4d]
    #18 [0xb5d3f243]
    #19 /opt/jav/jre/lib/i386/client/libjvm.so [0x620bc6d]
    java_vm: xcb_xlib.c:82: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.
    Could not read ack from child process
    Plugin: Java VM process has died.
    Could not start JavaVM!
    VM did not start up properly
    [arch@archbox ~]$ Note that this error happens with all browsers.
    Thanks.

    15.12.2008
    though the problem happend a long time ago and might be fixed,
    possible somebody which come across it again.
    As far as i understand its a "sloppy" logging problem and has to
    do with the xorg driver.
    there is a debian report for it.
    Debian Bug report logs - #481745
    libxcb: sloppy locking needs to be on by default.
    possible the libmawt code needs a small change.
    i had the proble in a debian-lenny environment -- possible the fix
    did not make the way.
    #0 /usr/lib/libxcb-xlib.so.0 [0xdfe80767]
    #1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0xdfe808b1]
    #2 /usr/lib/libX11.so.6(_XReply+0x254) [0xdfec6c44]
    #3 /usr/jdk1.6.0_03/jre/lib/i386/xawt/libmawt.so [0xe024964e]
    greetings robert

  • JFrame setlocation problems on linux

    When you drag a JFrame, you can move it anywhere you want, even if some of its boundary goes outside the screen...
    Fortunately It's true on windows, mac and linux SUN JREs.
    On windows and mac, you get the same effect if you decide to do it programatically with for example :
    package testframe;
    import javax.swing.JFrame;
    public class Main {
        public static void main(String[] args) {
        JFrame jf=new JFrame();
        jf.setVisible(true);
        jf.setSize(400, 400);
        jf.setLocation(-300, 50);
    }But this code doesn't work as expected on linux distros. I tried on kde, gnome and xfce, and I always get the same problem : the JRE (probably because of calls to window manager) refuses to place the window a little bit outside the screen boundaries. So in my example, jf.setLocation(-300,50) have the same effect as jf.setLocation(0,50).
    Of course, when the windows appear at the (0,50) coordinates, it's always possible on linux to move it manually to a negative x-coordinate place.
    setBounds method will lead to the same trouble...
    Of course this piece of code is only here to show exactly what's wrong on linux sun jre's. In my "real code", I need to deal with undecorated Jframes, so I have to manage myself the mousepressed and mousedragged events on my custom titlebar, and I would really want the linux version of my application behave the same as windows and mac versions ...
    The weird thing is that if I try to do that with JWindows in place of JFrames, it work's fine on Linux as well. But the problem is not here : in my case I need JFrames...
    Anyone knows how to fix this on linux ?

    When you drag a JFrame, you can move it anywhere you want, even if some of its boundary goes outside the screen...
    Fortunately It's true on windows, mac and linux SUN JREs.
    On windows and mac, you get the same effect if you decide to do it programatically with for example :
    package testframe;
    import javax.swing.JFrame;
    public class Main {
        public static void main(String[] args) {
        JFrame jf=new JFrame();
        jf.setVisible(true);
        jf.setSize(400, 400);
        jf.setLocation(-300, 50);
    }But this code doesn't work as expected on linux distros. I tried on kde, gnome and xfce, and I always get the same problem : the JRE (probably because of calls to window manager) refuses to place the window a little bit outside the screen boundaries. So in my example, jf.setLocation(-300,50) have the same effect as jf.setLocation(0,50).
    Of course, when the windows appear at the (0,50) coordinates, it's always possible on linux to move it manually to a negative x-coordinate place.
    setBounds method will lead to the same trouble...
    Of course this piece of code is only here to show exactly what's wrong on linux sun jre's. In my "real code", I need to deal with undecorated Jframes, so I have to manage myself the mousepressed and mousedragged events on my custom titlebar, and I would really want the linux version of my application behave the same as windows and mac versions ...
    The weird thing is that if I try to do that with JWindows in place of JFrames, it work's fine on Linux as well. But the problem is not here : in my case I need JFrames...
    Anyone knows how to fix this on linux ?

  • Oracle 10.2.0 DB installation problem on Linux RedHat 4

    When I install Oracle 10g release 2 database on my Linux RedHat 4 platform, I got the following error message (from action log file):
    INFO: /u01/app/oracle/product/10.2.0/db_1/bin/genorasdksh: Failed to link liborasdkbase.so.10.2
    INFO: make: *** [liborasdkbase] Error 1
    INFO: End output from spawned process.
    INFO: ----------------------------------
    INFO: Exception thrown from action: make
    Exception Name: MakefileException
    Exception String: Error in invoking target 'all_no_orcl ihsodbc' of makefile '/u01/app/oracle/product/10.2.0/db_1/rdbms/lib/ins_rdbms.mk'. See '/u01/app/oracle/oraInventory/logs/installActions2006-10-05_11-17-26AM.log' for details.
    Exception Severity: 1
    Can someone help me to solve this problem?
    Your kind assistance will be highly appreciated!

    I didn't install the whole OS but just some packages that contain required rpms by Linux Redhad 4. I guess I accidently missed a package. In order to make sure that I have installed all necessary packages, I just re-installed the OS with care. Thanks for your advices.
    The Oracle DB installation was successful, however, after I installed the Oracle HTTP Server and then stop the HTTP Server, I can't start it again. The following is the error message.
    [oracle@linuxkm database]$ /u01/app/oracle/product/10.2.0/http_1/opmn/bin/opmnctl startproc ias-component=HTTP_Server
    opmnctl: starting opmn managed processes...
    ================================================================================
    opmn id=linuxkm:6200
    0 of 1 processes started.
    ias-instance id=standalone
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    ias-component/process-type/process-set:
    HTTP_Server/HTTP_Server/HTTP_Server
    Error
    --> Process (pid=23484)
    failed to start a managed process after the maximum retry limit
    Log:
    /u01/app/oracle/product/10.2.0/http_1/opmn/logs/HTTP_Server~1
    Thank you very much for your help!

Maybe you are looking for