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 ?

Similar Messages

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

  • Undecorated jframe resize problem

    i created a custom jframe look by setting a jframe to undecorated and designing my own maximize/minimize/close buttons and other things to improve its appearence
    the problem is that when set to undercorated all the default resizing/move methods are gone
    i tried implementing my own resize methods, they seem to work but it flashes like crazy while resizing
    anyone have any idea how to stop all the flashing or a better way to implement this?
    the following is a small example of the problem i am having, i only implemented the north resize part so the code can be easier to read.
    thnx in advance
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.imageio.*;
    import java.io.*;
    import java.awt.image.BufferedImage;
    public class TestFrame extends JFrame implements MouseMotionListener, MouseListener
         Point sp;
         int     compStartHeight;
         int minHeight = 100;
         JPanel frameContent = new JPanel();
         public TestFrame()
              super("testing frame");
              setSize(600, 600);
              setContentPane(frameContent);
              frameContent.setBackground(Color.black);
              frameContent.setLayout(new BoxLayout(frameContent, BoxLayout.Y_AXIS));     
              setUndecorated(true);
              addMouseMotionListener(this);
              addMouseListener(this);
              JButton testButton = new JButton("TEST");
              JButton testButton2 = new JButton ("TEST2");
              frameContent.add(testButton);
              frameContent.add(Box.createVerticalGlue());
              frameContent.add(testButton2);
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              setVisible(true);
         public void mouseMoved(MouseEvent e)
              Point p = e.getPoint();
              if (p.y > e.getComponent().getSize().height - 5)
                   setCursor( Cursor.getPredefinedCursor( Cursor.N_RESIZE_CURSOR ));
              else
                   setCursor( Cursor.getPredefinedCursor( Cursor.DEFAULT_CURSOR));
         public void mouseDragged(MouseEvent e)
              Point p = e.getPoint();
              int compWidth = getSize().width;
              if (getCursor().getType() == Cursor.N_RESIZE_CURSOR)
                   int nextHeight = compStartHeight+p.y-sp.y;
                   if (nextHeight > minHeight)
                        setSize(compWidth,nextHeight);
                        validate();
              else
                   int x = getX()+p.x-sp.x;     
                   int y = getY()+p.y-sp.y;     
                   setLocation(x,y);
         public void mousePressed(MouseEvent e)
              sp = e.getPoint();
              compStartHeight = getSize().height;
         public void mouseEntered(MouseEvent e)
        public void mouseExited(MouseEvent e)
              if (sp == null)
                   setCursor( Cursor.getPredefinedCursor( Cursor.DEFAULT_CURSOR));
        public void mouseClicked(MouseEvent e)
        public void mouseReleased(MouseEvent e)
              sp = null;
         public static void main(String[] args)
         new TestFrame();
    }

    I doubt there is a faster / easier way to resize.
    Have you tried adding
    public boolean isDoubleBuffered()
      return true;
    }To over-ride Component.isDoubleBuffered. This should sort out your flickering problem.
    Bamkin

  • Unexplained JFrame loading problems

    I keep getting a problem whenever i try and use a window that i extended off of JFrame. By its self the frame works perfectly, but when i actually try to use it for the purpose intended, the winow pops up, and is in the right spot, but nothing i put in it is visible. Any ideas?
    The class in question is called "PassFrame". It runs into the problem on lines 239-240 where i try to use it.
    import java.util.*;
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    public class Secrecy {
         private int[] code;
         private int[] cipher;
         private Dice dice;
         private GUI gui;
         private PassFrame passframe;
         public static final char SPACE = ' ';
         //if encrypting, crypt is true, decrypting, crypt is false
         //crypt is set to true by default
         boolean crypt = true;
         public Secrecy() {
              code = new int[93];
              cipher = new int[93];
              dice = new Dice(93);
         void setUp() {
              for(int i = 0; i < code.length; i++) {
                   code[i] = 32+i;
                   code[i] = -1;
         public void setSeed(char[] c) {
              dice.setSeed(seedSetter(c));
         public int seedSetter(char[] pass) {
              int i = 0;
              for(int j = 0; j < pass.length; j++) {
                   i += (int)pass[j];
              return i;
         static void frameWait(JFrame frame) {
              while(frame.isVisible()) {
                   nap(100);
         static void fileChooserWait(JFileChooser chooser) {
              while(chooser.isVisible()) {
                   nap(100);
         void generateCipher() {
              for(int i = 0; i < cipher.length; i++) {
                   int go = dice.roll();
                   if(cipher[go] == -1) {
                        cipher[go] = code;
         //takes input string and converts it using substitution of a different char sequence, then returns converted string
         String encrypt(String s) {
              String now = "";
              for(int i = 0; i < s.length(); i++) {
                   char c = s.charAt(i);
                   now += findMatch(c, crypt);
              return now;
         //looks through one char array to find a match of input char'c', returns corresponding char in different char array
         public int findMatch(char c, boolean b) {
              if(b) {
                   for(int j = 0; j < code.length; j++) {
                        if((int)c == code[j]) {
                             return cipher[j];
              }else{
                   for(int j = 0; j < cipher.length; j++) {
                        if((int)c == cipher[j]) {
                             return code[j];
              return (int)SPACE;          
         void runEncryption(JTextArea area, char[] password) {
              setSeed(password);
              String now = encrypt(area.getText());
              area.setText(now);
         static void nap(int ms) {
              try{
                   Thread.currentThread().sleep(ms);
              }catch (InterruptedException ivt) {
         static void center(JFrame frame) {
              Toolkit tk = Toolkit.getDefaultToolkit();
              Dimension d = tk.getScreenSize();
              frame.setLocation((d.width/2) - (frame.getWidth()/2), (d.height/2) - (frame.getHeight()/2));
         void runChooser() {
              ChooserFrame chooser = new ChooserFrame();
              fileChooserWait(chooser);
         void runPass(JTextArea area) {
              passframe.show();
              while(passframe.isVisible()) {
                   nap(100);
              char[] c = passframe.getPassword();
              setSeed(c);
              generateCipher();
              encrypt(area.getText());
         void run() {
              gui = new GUI(this);
              gui.show();
         public static void main(String[] args) {
              Secrecy sec = new Secrecy();
              sec.run();
    class PassFrame extends JFrame {
         private int length = 16;
         private char[] password;
         private JLabel label = new JLabel("Please enter your Password");
         private JPasswordField jpf = new JPasswordField(length);
         private JPanel panel = new JPanel();
         public PassFrame() {
              setTitle("Password");
              setResizable(false);
              panel.add(label);
              jpf.addKeyListener(new KeyAdapter() {
                   public void keyPressed(KeyEvent kvt) {
                        int code = kvt.getKeyCode();
                        if(code == KeyEvent.VK_ENTER) {
                             password = jpf.getPassword();
                             hide();
              addWindowListener(new WindowAdapter() {
                   public void windowClosing(WindowEvent evt) {
                        WindowCloser wc = new WindowCloser();
              panel.add(jpf);
              getContentPane().add(panel);
              pack();
              Secrecy.center(this);
         public char[] getPassword() {
              return password;
         void run() {
              Secrecy.center(this);
              show();
              Secrecy.frameWait(this);
              if(password != null) {
                   System.out.println(password);
         public static void main(String[] args) {
              PassFrame pf = new PassFrame();
              pf.run();
    class ChooserFrame extends JFileChooser {
         public ChooserFrame() {
    class GUI extends JFrame {
         private JButton encrypt;
         private JButton open;
         private JTextArea area;
         private JPanel panel;
         private JScrollPane pane;
         private Secrecy prog;
         public GUI(Secrecy sec) {
              addWindowListener(new WindowAdapter() {
                   public void windowClosing(WindowEvent evt) {
                        WindowCloser wc = new WindowCloser();
              prog = sec;
              encrypt = new JButton("Encrypt");
              open = new JButton("Open");
              area = new JTextArea();
              panel = new JPanel();
              setup();
              Secrecy.center(this);
         public void setup() {
              setupButtons();
              setupText();
              pack();
         void setupButtons() {
              encrypt.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent evt) {
                        PassFrame pf = new PassFrame();
                        pf.show();
                        Secrecy.frameWait(pf);     
                        System.out.println("Trying to run Encryption sequence");                    
                        prog.runEncryption(area, pf.getPassword());
              open.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent evt) {
                        prog.runChooser();
              getContentPane().add(encrypt, BorderLayout.EAST);
              getContentPane().add(open, BorderLayout.SOUTH);
         void setupText() {
              area = new JTextArea(10, 55);
              area.setLineWrap(true);
              area.setWrapStyleWord(true);
              pane = new JScrollPane(area);
              getContentPane().add(pane, BorderLayout.CENTER);
    class Dice {
         // random num generator
         static Random r;
         int sides;
         private static long seedLockVal;
         public Dice( int si ) {
              sides = si;
         public int roll() {
              return d( sides ) + 1;
         static {
              setSeedLock();
         public static int d( int what ) {
              if ( what <= 1 ) return 0;
              int val = r.nextInt() / 64;
              int v = (int)( val % what );
              if ( v < 0 ) v *= -1;
              return v;
         public static long setSeedLock() {     
              seedLockVal = System.currentTimeMillis();
              r = new Random( seedLockVal );
              return seedLockVal;
         public static void setSeed( long val ) {
              seedLockVal = val;
              r = new Random( val );
    class WindowCloser extends JFrame {
         JButton ok;
         JButton cancel;
         JLabel check;
         JLabel warning;
         JPanel panel;
         WindowCloser() {
              setResizable(false);
              check = new JLabel("Are you sure you wish to exit? You will lose all data.");
              warning = new JLabel("Closing this window will exit the program.");
              ok = new JButton("OK");
              cancel = new JButton("Cancel");
              ok.addActionListener( new ActionListener() {
                   public void actionPerformed(ActionEvent evt) {
                        System.exit(0);
              cancel.addActionListener( new ActionListener() {
                   public void actionPerformed(ActionEvent evt) {
                        hide();
              addWindowListener(new WindowAdapter() {
                   public void windowClosing(WindowEvent evt) {
                        System.exit(0);
              panel = new JPanel();
              panel.add(check);
              panel.add(warning);
              panel.add(ok);
              panel.add(cancel);
              getContentPane().add(panel);
              pack();
              Secrecy.center(this);
              show();
         public static void main(String[] args) {
              WindowCloser wc = new WindowCloser();

    Oh shit...
    Please post concise pieces of code where problems occur.
    Just a few remarks:
         static void fileChooserWait(JFileChooser chooser) {
              while(chooser.isVisible()) {
                   nap(100);
         }If you use JFileChooser#showXXXDialog, the method will block until the dialog has been disposed of (closed).
         WindowCloser() {
              setResizable(false);
    check = new JLabel("Are you sure you wish to exit?
    t? You will lose all data.");
    warning = new JLabel("Closing this window will exit
    it the program.");
              ok = new JButton("OK");
              cancel = new JButton("Cancel");Have a look at the static methods of the javax.swing.JOptionPane class. They're pretty useful.
    These remarks may not help you much, but I for one am not going to read all of this.
    Oh, and please acknowledge the [url http://forum.java.sun.com/help.jspa?sec=formatting]Formatting tips and post your code between [code[b]][[b]code] blocks.

  • 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

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

  • Oracle9i Install problem on Linux 7.2

    While running runInstall and trying to create a General Purpose DB the install
    of software goes OK. During the DBCA I get an error message at 46%
    ORA-03113: end of file on communications channel
    Any ideas ?

    What is the name of your installer file? have you downloaded the one for
    Linux OS?
    make sure you FTPed the installer file in binary mode.
    "matt sweeney" <[email protected]> wrote in message
    news:3d1c718d$[email protected]..
    Hi,
    I'm having a problem installing weblogic server 700 on a Dell 2500 Redhat7.2 linux box. The problem occurs during the extraction process. If I run
    the program as a regular user the error message is:
    >
    /tmp//fileJa7hab/wls7000_linux.jar bad CRC 250071c7 (should be 019fdd07)
    .100%
    ** Error during extraction, error code = 2.
    If I run the program as root, I get
    [root@med10-apache root]#
    ./weblogic700_linux.bin -mode=console
    Extracting0%..........................................................................
    ..........................100%
    /tmp/fileVe6y1r/jdk131_02/bin/i386/native_threads/java: error whileloading shared libraries: libstdc -libc6.1-1.so.2: cannot open shared
    object file: No such file or directory
    ** Error during execution, error code = 32512.
    Thanks in advance
    Matt

  • Siebel 8.1 SWSE installation problem on Linux

    Hi All,
    I'm trying to install Siebel 8.1 [21039] on Linux (Redhat 4 with update 5) . I have done my gateway server, enterprise server and siebel server successfully. Then I installed the OHS 10.1.3 and Siebel Web Server Extension as the web server, but at the end of SWSE install, it always give me error message during execute configuration step. The error message is:
    (May 6, 2008 10:43:50 AM), Setup.product.install, Utility, err, unable to launch: "ksh export LD_LIBRARY_PATH=/slot/ems1220/appmgr/siebel/sweapp/bin;PATH=${PATH}:.;/slot/ems1220/appmgr/istemp20862126171143/_bundledJRE_/bin/java -Dtemp.dir=/slot/ems1220/appmgr -cp /slot/ems1220/appmgr/siebel/sweapp/bin/setup.jar run -args LANG=ENU MODE=LIVE REPEAT=FALSE MODEL_FILE=/slot/ems1220/appmgr/siebel/sweapp/admin/swse_server.scm" error code: "255"(SBL-STJ-00152)
    (May 6, 2008 10:43:50 AM), Setup.product.install, Utility, msg1, Launching: ksh -c /slot/ems1220/appmgr/siebel/sweapp/install_script/install/CreateCfgEnvScript /slot/ems1220/appmgr/siebel/sweapp
    I also checked the sw_cfg_util.log under $sweapp/log directory, it shows some errors as below.
    GenericLog GenericError 1 0000000348203f65:0 2008-05-06 11:38:16 Executing step: RestartConfWebServer^M
    GenericLog GenericError 1 0000000348203f65:0 2008-05-06 11:40:16 (ossystem.cpp (96) err=851969 sys=0) SBL-OSD-00001: Internal: Function call timed out (0)^MGenericLog GenericError 1 0000000348203f65:0 2008-05-06 11:40:16 Step RestartConfWebServer: failed to run program %%SiebelRoot%%%%OSDirSeparator%%install_script%%OSDirSeparator%%install%%OSDirSeparator%%BounceWebServer with cmdline %%WebServerInstance%%^M
    GenericLog GenericError 1 0000000348203f65:0 2008-05-06 11:40:16 Failed during Execution, err: 851969^M
    It seems complaining about bouncing the web server, but I have no problem manually stop/start web server using opmnctl command
    -bash-3.00$ ./opmnctl stopall
    opmnctl: stopping opmn and all managed processes...
    -bash-3.00$ ./opmnctl startall
    opmnctl: starting opmn and all managed processes...
    -bash-3.00$ ps -ef|grep -i http
    app1220 18392 9286 0 13:42 pts/0 00:00:00 grep -i http
    app1220 28451 28431 7 13:42 ? 00:00:00 /slot/ems1220/appmgr/OHS10_1_3/ohs/bin/httpd.worker -d /slot/ems1220/appmgr/OHS10_1_3/ohs -DSSL
    app1220 28452 28451 0 13:42 ? 00:00:00 /slot/ems1220/appmgr/OHS10_1_3/ohs/bin/httpd.worker -d /slot/ems1220/appmgr/OHS10_1_3/ohs -DSSL
    app1220 28454 28451 0 13:42 ? 00:00:00 /slot/ems1220/appmgr/OHS10_1_3/ohs/bin/httpd.worker -d /slot/ems1220/appmgr/OHS10_1_3/ohs -DSSL
    app1220 28455 28451 2 13:42 ? 00:00:00 /slot/ems1220/appmgr/OHS10_1_3/ohs/bin/httpd.worker -d /slot/ems1220/appmgr/OHS10_1_3/ohs -DSSL
    app1220 28456 28451 2 13:42 ? 00:00:00 /slot/ems1220/appmgr/OHS10_1_3/ohs/bin/httpd.worker -d /slot/ems1220/appmgr/OHS10_1_3/ohs -DSSL
    Does anyone encounter similar problems before? Any suggestions on how to solve this problem?
    Thank you very much!
    Yun

    Looks like problem in OHS. I'm unable to locate ohs directory, instead i have opmn, i checked the http status and it's running fine ..
    $ ./opmnctl status
    Processes in Instance:
    --------------------------------------------------------------+---------
    ias-component | process-type | pid | status
    --------------------------------------------------------------+---------
    HTTP_Server | HTTP_Server | 1510 | Alive
    I think siebenv.sh/csh file is resposible for setting SIEBEL_ROOT veriable and this file is located under siebel server root directory, file cfgenv.sh is only setting library path.
    I can see couple of script in ../install_script/install which is being used for setting root and other env variables.
    Do we need to execute any of these scripts manually in order to set SIEBEL_ROOT and other env variables or i just need to export it manually with new path?
    What you did in your case?

  • Problem with linux installation on Thinkpad T410i

    Hello everyone. I have a problem with an installation of Linux (Debian). Installation ended in my Thinkpad T410i, but when you are starting, the computer constantly restarts. With windows does not happen. What's the problem?
    Probe with two versions: one with and one without GUI, and always restarts during startup stage or just finish loading the operating system. If eligo Windows in GRUB, the pc works normally.
    I appreciate any help you can give me.

    Madhukar,
    Check the below forums which also discuss about same problem like yours.
    Trouble with SAP system installation GUI
    error in installation of solution manager
    Regards,
    Debasis.

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

  • HTML DB 10g installation problem on linux HTTP-503 ORA-604

    I have a problem after the installation of HTML DB from the linux 10g R2 companion image.
    I installed HTML DB and HTTP server in one go, on an new system that only has the default orcl database installed. I run Red Hat enterprise linux on a x86_64 system.
    The HTML DB installation took a long time, but gave no errors.
    When I access the http://hostname:7777/pls/htmldb url I get an “This server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.”-error.
    But :7777 works fine and give me the http server default page.
    In my Apache error log I see the following errors:
    [Thu Dec  8 13:28:42 2005] [error] [client 10.11.121.20] [ecid: 1134048522:10.14.66.23:28193:0:1,0] mod_plsql: /pls/htmldb/htmldb HTTP-503 ORA-604
    I looked at several internet sources, played with my marvel.conf and my dads.conf but to no avail. My oracle home is different from my html db home. There is no ./network/admin/tnsnames.ora in my HTML_DB _HOME. Should there be? One solution in the faq even told me to copy the htmldb tnsnames.ora over my db tnsnames.ora, but the installation did not create one for me.
    When should I use a dads.conf instead of marvel.conf? I don't understand the need for this second file. I tried to also use it, because some solutions and the post-installation instructions hinted on doing it. But then I get a different error in the logs about a double DAD.
    When I login through sqlplus in the orcl database with the HTMLDB_PUBLIC_USER and my password (that was created during the installation) it works, but I don't see any tables (yet?). So the account is not locked. But should I see some tables when I do “select table_name from user_tables; ?
    I probably missing something obvious here, but I'm a bit of a oracle newby.
    Any help is appreciated,
    Erik

    Thanks Diemar,
    It worked.
    I stopped all oracle process and services.
    I then logged out and in again as oracle to see if the unset stuck.
    I then started my listener, databases, isqlnet and em.
    I then started the httpd with:
    ${HTMLDB_HOME}/opmn/bin/opmnctl start
    opmnctl: opmn started
    ${HTMLDB_HOME}/opmn/bin/opmnctl startproc
    this still gave some errors and the httpd was not started:
    ias-component=HTTP_Server
    opmnctl: starting opmn managed processes...
    ================================================================================opmn id=aberlour.uni.mdx.ac.uk: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=3389)
    failed to start a managed process after the maximum retry limit
    Log:
    /mdx/app/oracle/product/10.2.0/http/opmn/logs/HTTP_Server~1
    last lines in this log where:
    05/12/08 15:18:50 Stop process
    /mdx/app/oracle/product/10.2.0/http/Apache/Apache/bin/apachectl stop: httpd stopped
    05/12/08 15:31:55 Start process
    /mdx/app/oracle/product/10.2.0/http/Apache/Apache/bin/apachectl start: execing httpd
    05/12/08 15:31:57 Start process
    /mdx/app/oracle/product/10.2.0/http/Apache/Apache/bin/apachectl start: execing httpd
    I then added the PlsqlNLSLanguage line back into the marvel.conf
    which now looks:
    AddType text/xml xbl
    AddType text/x-component htc
    Alias /i/ /mdx/app/oracle/product/10.2.0/http/Apache/Apache/images/
    <Location /pls/htmldb>
    Order deny,allow
    PlsqlDocumentPath docs
    AllowOverride None
    PlsqlDocumentProcedure wwv_flow_file_manager.process_download
    PlsqlDatabaseConnectString xxxxxx.xxxxx.ac.uk:1521:orcl ServiceNameFormat
    PlsqlNLSLanguage "ENGLISH_UNITED KINGDOM.AL32UTF8"
    PlsqlAuthenticationMode Basic
    SetHandler pls_handler
    PlsqlDocumentTablename wwv_flow_file_objects$
    PlsqlDatabaseUsername HTMLDB_PUBLIC_USER
    PlsqlDefaultPage htmldb
    PlsqlDatabasePassword @BWIuxxxxxxxxxxxxxxxxxxxxxxid4Y4t8b9g==
    Allow from all
    </Location>
    and I started the http again, and it works fine.
    Problem solved. I will try to fine tune it so I'll get the basic LANG setting back in linux but without the .UTF-8 postfix.
    thanks for your help,
    Erik

Maybe you are looking for