Java GUI freezes in Debian/Sarge

Hi,
I am running a Debian/Sarge
#uname -a
Linux jukebox 2.6.14.2 #5 PREEMPT Mon Nov 28 20:28:54 CET 2005 i686 GNU/Linux
I have a java casino game created by jdk (1.6.0_02) netbeans(5..5.1) . If I run it in development machine (windows) it runs okay. It also runs okay in (fedora)
But I got problme when I run it in the Debian. after some clickings and typings it gets frozen. just frozen. I can not work with it. I though I would compile it with netbeans. then I install netbeans. But Netbeans also shows the same behavior. To bo sure, I tried jEdit. The result was same. hang. the GUI.
I am sure its about Debian vs JDK
Can you please help me?

casta2k wrote:
I tried running a very simple "Hello World" program and it did not work either. The problem is the same: once I place the pointer on top of the window, it freezes and then an error message appears. The code can be found at the following link:
http://java.sun.com/docs/books/tutorial/uiswing/examples/start/HelloWorldSwingProject/src/start/HelloWorldSwing.java
Does anybody know any similar case? ThanksI suspect that your Ubuntu is defaulting to OpenJDk or some other Java/JDK . Remove all Java installations and then install Sun JDK 6 using sun-java6-bin .

Similar Messages

  • Gui freezes after pressing execute

    hi,
    my program which is done in Swing sort of freezes as soon as press execute until the calling method is finished.
    here is the situation.
    the jFrame contains 2 buttons ( ok & cancel )
    when the ok button is pressed it creates an object & invokes a method in it
    private void okButtonActionPerformed(java.awt.event.ActionEvent evt) {
    var = new Var(patameter list..);
    var.go();this method take some time ( say roughly about 1 min... ) so as soon as I press ok my GUI freezes until that go() method completes.
    this is very annoying, coz I have this new jFrame I need to pop up as soon as OK is pressed so it can show the progress of that go() method. This new window wont even show up sometimes until go() is finished.
    How do I overcome this...
    p.s - I read this thread http://forum.java.sun.com/thread.jspa?threadID=5189368&tstart=0
    But it was a bit confusing to me..
    if you experts can help me out, that would be great. :)
    Cheers

    p.s - I read this thread http://forum.java.sun.com/thread.jspa?threadID=5189368&tstart=0
    Not related to your problem.
    if you experts can help me out, that would be great. :)The Swing experts are found in the Swing forum, where this question is asked and answered all the time.
    You need to use a separate Thread for you long running task so it doesn't block the GUI thread from responding to events.

  • GUI Freezes once socket server is started

    Here's my problem and I am stumped. I have an application which starts a
    socket server and waits for clients to connect. Once connected, the
    server queries XML to the client for display.
    My problem is when I start the server my GUI freezes. I have a simple
    GUI with a start and stop button made in JBuilder. Although the server is running fine and the application works (I can connect and query with my client) the GUI freezes and I have to CTRALTDEL to close the app.
    The method below (see after message) is in the main Application.java class and my GUI is being created in the Frame1.java class. The Frame class has a listener for the button press which calls startServer in
    Application. This was developed in JBuilder Personal edition.
    I keep reading about InvokeLater but not sure if this is what I need. I feel like what is happening is the server starts and the app listens for clients and ignores the GUI.
    Any suggestions would be helpful as madness is setting in.
    Thnaks.
    public static void startServer() {
    try{
    int intPort=9999;
    ServerSocket server = new ServerSocket(intPort);
    System.out.println("Server started...waiting for clients.");
    while(true){
    Socket objSocket = server.accept();
    SocketClient client = new SocketClient(objSocket);
    client.start();
    catch(IOException ioe){
    //dump error
    Here is how the server is being started:
    void button1_actionPerformed(ActionEvent e) {
    try{
    startserver.main(); //make call to start the server
    label2.setText("Running");
    catch (Exception ie) {
    System.err.println("Could not listen on port: 9999.");
    System.exit(-1);
    }

    Swing executes all GUI related code (event handling, painting, etc.) in the so-called event dispatching thread. If you call a blocking method like ServerSocket.accept in this thread, it is blocked and unable to perform further gui tasks.
    public class MyServerThread extends Thread
        private ServerSocket serversocket;
        public void run()
            try
                this.sserversocket = new ServerSocket(9999);
                while(!Thread.interrupted())
                    Socket socket = serversocket.accept();
                    new SocketClient(socket).start();
            catch(IOException ex)
                ex.printStacktract();
        public void shutdown()
            if(this.serversocket != null)
                //closing the socket will cause accept() to throw an exception and therefor quit its loop
                try { this.serversocket.close(); } catch(IOException ignored) {}
                this.interrupt();
                this.serversocket = null;
    //in your GUI class
    private MyServerThread serverthread;
    void startserver()
        serverthread = new MyServerThread();
        serverthread.start();
    void stopserver()
        serverthread.shutdown();
        serverthread = null;
    }

  • GUI Freezes

    I want the hex code of a file to be generated on button press from GUI. Right now, the code works fine for small files but for large files, the GUI freezes.
    class SW extends SwingWorker<String,Void>{
         File finsw;
         public String doInBackground() throws Exception
         String hex="";
         String hex2="";
         finsw=new File(jt.getText());
         BufferedInputStream in = new BufferedInputStream(new FileInputStream(finsw));
         int b,i=0,c=0;
         int count=0;
         while ((b = in.read()) != -1)
         { c++;
         try { hex=Integer.toHexString(b);
         hex2=hex2+hex;
         } catch(Exception e){System.out.println("Example5.java"+e);}
         if (hex.length() == 1)
         hex = '0' + hex;} //end of func
         in.close();
         return hex2;
                             //String kfrmsw=Example5.displayBinaryFile2(finsw);
                             //return kfrmsw;
    }// end of doInBackground
    protected void done()
    { try { String m=get();
    System.out.println(m);}catch(Exception e) {System.out.println(e);}}
    }//end of class SW
    This is the main function
    public static void main(String args[])
         //new gui();
         SwingUtilities.invokeLater(new Runnable() {public void run() {new gui();}});
         JFrame frame = new JFrame("VRDS");
         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         frame.add(new gui());
         frame.pack();
    frame.setVisible(true);
    }//end of main
    This is the EDT
    public void actionPerformed(ActionEvent e) {
    SW worker=new SW();
    if (e.getSource() == jb)//the scan button
    // read file to be scanned
         String k="";
         final File f=new File(jt.getText());                  
         try {
              worker.execute();
              System.out.println("Worker.get="+worker.get());
    } catch(Exception re) { System.out.println("Exception from read file to be scanned"+re); }            

    class SW extends SwingWorker<String,Void>{
         File finsw;
         public String doInBackground() throws Exception
         String hex="";
         String hex2="";
         finsw=new File(jt.getText());
         BufferedInputStream in = new BufferedInputStream(new FileInputStream(finsw));
         int b,i=0,c=0;
         int count=0;
         while ((b = in.read()) != -1)
         { c++;
         try { hex=Integer.toHexString(b);
         hex2=hex2+hex;
         } catch(Exception e){System.out.println("Example5.java"+e);}
         if (hex.length() == 1)
         hex = '0' + hex;} //end of func
         in.close();
         return hex2;
                             //String kfrmsw=Example5.displayBinaryFile2(finsw);
                             //return kfrmsw;
    }// end of doInBackground
    protected void done()
    { try {
    String m=worker.get();
    System.out.println("M:"+m);
    }catch(Exception e) {System.out.println(e);}
    }//end of class SWThis is the main method
    public static void main(String args[])
         //new gui();
         SwingUtilities.invokeLater(new Runnable() {public void run() {
    //new gui();
         JFrame frame = new JFrame("VRDS");
         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         frame.add(new gui());
         frame.pack();
            frame.setVisible(true);
    }//end of mainThis is the actionperformed method
    public void actionPerformed(ActionEvent e) {
    //Coding for Scan Button goes here
         if (e.getSource() == jb)
    // read file to be scanned
         String k="";
         final File f=new File(jt.getText());                  
         try {
              worker.execute();
              } catch(Exception re) { System.out.println("Exception from read file to be scanned"+re); }            I want the hex code of file selected from the GUI. For large files, still no output is produced. Also, after generating hex code for 1st file, no hex code is being generated for the second file.

  • My GUI freezes

    Hey, I'm writing a small client/server application and I'm getting a problem, when I start the server the GUI freezes and I haven't been able to solve the problem. Any help will be much appreciated.
    I use 2 classes, Server which handles the serversocket and its connections, and serverInterface which handles the server's GUI.
    Here is the code for the server class:
    public class Server extends JFrame {
         private serverInterface interfaz=null;
         public int fileCant = 0;
         static boolean listening = true;
         private String[][] listFiles = null;
         private int ifiles=0;
         public Server(){
              this.interfaz = new serverInterface(this);          
         public void buttonPressed (int button){
              switch(button){
                case 0: {  try{startServer();}
                           catch(IOException e){System.err.println("Could not listen on port: 7777.");}
                           break;
                         } //se presiono el boton de start
                case 1: {stopServer(); break;} // se presiono el boton de stop
         private void startServer() throws IOException{
              ServerSocket serverSocket = null;
              listFiles = new String[1000][4];
            try {
                 updateVal(1,"0","0",0);
                serverSocket = new ServerSocket(7777);           
            } catch (IOException e) {
                System.err.println("Could not listen on port: 7777.");
                //System.exit(1);
            while(listening){
                 new multiServer(serverSocket.accept(),this).start();
         private void stopServer(){          
              System.exit(-1);
         private void updateVal(int variableUpdate,String ip, String port, int numFiles){
              this.interfaz.updateVal(variableUpdate,ip,port,numFiles);          
         public static void main(String[] args){
                   new Server();
         public void addFiles(Object object, String IP, String Port){
              Vector test = (Vector) object;
              for (int i=0;i<test.size();i++){
                   listFiles[ifiles][0]=(String)test.elementAt(i);
                   listFiles[ifiles][1]= IP;
                   listFiles[ifiles][2]=Port;
                   listFiles[ifiles][3]="online";
                   ifiles++;               
         public void removeFiles(String IP, String Port){
              for (int i =0;i<ifiles;i++){
                   if((IP.equals(listFiles[1]))&&(Port.equals(listFiles[i][2]))){
                        listFiles[i][3] = "offline";
         public DefaultTableModel searchFile(String file){
              DefaultTableModel model = new DefaultTableModel();
              model.addColumn("File");
              model.addColumn("IP Address");
              model.addColumn("Port");
              model.addColumn(" ruta");
              for (int i=0;i<ifiles;i++){               
                   if((listFiles[i][0].contains(file))&&(listFiles[i][3].equals("online"))){
                        String a[]={file,listFiles[i][1],listFiles[i][2],listFiles[i][0]};
                        model.addRow(a);
              return model;          

    And here is the code for the server's Interface:
    public class serverInterface extends JFrame {
         private static final long serialVersionUID = 1L;
         private JPanel jContentPane = null;
         private JPanel panelSouth = null;
         private JButton buttonStart = null;
         private JButton buttonStop = null;
         private Server servidor = null;
         private JPanel panelNorth = null;
         private JLabel labelConnect = null;
         private JPanel panelCentro = null;
         private JScrollPane scrollPanelClients = null;
         private JPanel panelOnlineClients = null;
         private JLabel labelOnlineClients = null;
         private JScrollPane scrollPanelClients1 = null;
         private JTable tablaClients = null;
         private DefaultTableModel model = new DefaultTableModel();
         public serverInterface(Server servidor) {
              super();
              this.servidor= servidor;          
              initialize();
         public void initialize() {
              servidor.setSize(545, 309);
              servidor.setContentPane(getJContentPane());
              servidor.setTitle("Server");
              servidor.setResizable(false);
              /*this.setSize(545, 309);
              this.setContentPane(getJContentPane());
              this.setTitle("Server");*/
         private JPanel getJContentPane() {
              if (jContentPane == null) {
                   jContentPane = new JPanel();
                   jContentPane.setLayout(new BorderLayout());
                   jContentPane.add(getPanelSouth(), BorderLayout.SOUTH);
                   jContentPane.add(getPanelNorth(), BorderLayout.NORTH);
                   jContentPane.add(getPanelCentro(), BorderLayout.CENTER);
              return jContentPane;
         private JPanel getPanelSouth() {
              if (panelSouth == null) {
                   panelSouth = new JPanel();
                   panelSouth.setLayout(new FlowLayout());
                   panelSouth.add(getButtonStart(), null);
                   panelSouth.add(getButtonStop(), null);
              return panelSouth;
         private JButton getButtonStart() {
              if (buttonStart == null) {
                   buttonStart = new JButton();
                   buttonStart.setText("Start");
                   buttonStart.addActionListener(new java.awt.event.ActionListener() {
                     public void actionPerformed(java.awt.event.ActionEvent evt0) {
                         servidor.buttonPressed(0);
              return buttonStart;
         private JButton getButtonStop() {
              if (buttonStop == null) {
                   buttonStop = new JButton();
                   buttonStop.setText("Stop");
                   buttonStop.addActionListener(new java.awt.event.ActionListener() {
                     public void actionPerformed(java.awt.event.ActionEvent evt1) {
                         servidor.buttonPressed(1);
              return buttonStop;
         public void updateVal(int updatedValue,String ip, String port, int numFiles){
              switch(updatedValue){
                 case 1:{  JOptionPane.showMessageDialog(this, "The Server Is Now Online");  //se conecta el server
                            labelConnect.setText("Server Online. Listening on port 7777");
                            buttonStart.setEnabled(false);
                         break;
                 case 2:{ String a[] = {ip,port,numFiles+""};
                           model.addRow(a);                      
                            break;
         private JPanel getPanelNorth() {
              if (panelNorth == null) {
                   GridBagConstraints gridBagConstraints = new GridBagConstraints();
                   gridBagConstraints.gridx = 0;
                   gridBagConstraints.gridy = 0;
                   labelConnect = new JLabel();
                   labelConnect.setText("Server Offline");
                   panelNorth = new JPanel();
                   panelNorth.setLayout(new GridBagLayout());
                   panelNorth.add(labelConnect, gridBagConstraints);
              return panelNorth;
         private JPanel getPanelCentro() {
              if (panelCentro == null) {
                   panelCentro = new JPanel();
                   panelCentro.setLayout(new BorderLayout());
                   panelCentro.add(getPanelOnlineClients(), BorderLayout.NORTH);
                   panelCentro.add(getScrollPanelClients1(), BorderLayout.CENTER);
              return panelCentro;
         private JPanel getPanelOnlineClients() {
              if (panelOnlineClients == null) {
                   GridBagConstraints gridBagConstraints1 = new GridBagConstraints();
                   gridBagConstraints1.gridx = 0;
                   gridBagConstraints1.gridy = 0;
                   labelOnlineClients = new JLabel();
                   labelOnlineClients.setText("Connected Clients:");
                   panelOnlineClients = new JPanel();
                   panelOnlineClients.setLayout(new GridBagLayout());
                   panelOnlineClients.add(labelOnlineClients, gridBagConstraints1);
              return panelOnlineClients;
         private JScrollPane getScrollPanelClients1() {
              if (scrollPanelClients1 == null) {
                   scrollPanelClients1 = new JScrollPane();
                   scrollPanelClients1.setViewportView(getTablaClients());
              return scrollPanelClients1;
         private JTable getTablaClients() {
              if (tablaClients == null) {
                   tablaClients = new JTable(model);
                   model.addColumn("IP Address");
                   model.addColumn("Port");
                   model.addColumn("Files Shared");
                   tablaClients.setEnabled(false);
              return tablaClients;
    }

  • Can I Open an HTMLHelp (*.CHM) File from Java GUI Application?

    I ussually use Delphi to develop my applications and I can open an HTMLHelp (*.CHM) file from my application. Can you show me the ways to do it from my Java GUI applications?
    Thanks for everyone.
    Budi Raharjo
    http://budiraharjo.blogspot.com

    http://www.google.com/search?q=java+chm
    Seems like there is some 3rd party software available for that.

  • New Features for Java GUI

    Hello everyone!
    Can anybody tell about new features in SAP GUI for Java. I think It's emasculate now. It doesn't contain New ABAP editor, Network graphic, normal Screen Painter... I really enjoy adding themes and other stuff, but when these functionality will be added?
    Thanks.

    Hi,
      I use Java GUI from version 6.40, so i didn't know new ABAP editor for years. Once somebody shows me its features ...and I found that it is really good editor compared with previous Notepad-like frontend editor. But I have to say that customized version od Gvim used as external editor is in 90% better then new ABAP editor (the only problem is that double click on object doesn't work, but some workarounds are known for double-click on locally defined objects).
    Graphical screen painter is generally good tool, but once I cannot find any feature (sorry, I forgot which one, it happens about 6 years ago). I ask a SAP guru sitting near me. He comes, switch graphical screen painter off and click to a box in non-graphical version of screen painter. Then he told me that some features are not accessible in graphical screen painter. It was last time I used graphical version of screen painter.
    Themes? Works .... at least for me (Linux 32 bit and now Linux 64 bit too).
    So I think that Java GUI is usable (at least on Linux/Mac, I am not sure how in works under Windows) but you cannot stick on all features (and maybe you can find better working variants of it). E. g. I have no problem with new ABAP editor, it would be much better for me, if I can open external editor clicking to "Change" button in SE38 directly instead of click plus selecting external editor from menu.
    Regards,
      Pavel

  • JAVA GUI window content does not fill out when window is enlarged (Win,Mac)

    I've been using the SAP JAVA GUI on a Windows XP workstation as well as a couple of MacBooks running OS X over the last year and a half or so, running versions from 7.10 r 7(maybe earlier) thru 7.10 r 10 (installed today.) The GUI has performed generally well on these platforms, but has one major irritation.
    When I open certain pop-up windows, such as the SPAD [List of Output Requests > Status Description |http://img171.imageshack.us/i/screenshot20091006at241.png/|screenshot], it usually does not open a  large enough window to display all the data - one must scroll horizontally and/or vertically to see the entire window content.  The real aggravation is that if [one enlarges the window|http://img101.imageshack.us/i/screenshot20091006at242.png/|screenshot] so as to see more data, the resizing is ignored.  The contents of the window are still displayed within the original window boundaries instead of filling out the expanded window.   It is not possible to get the entire window contents displayed, it is still necessary to scroll around.
    What am I missing here?   How can I get window resizing to work correctly?   (Or is there a way to make such windows at least open up at a larger initial size??)
    I only found one other thread in this forum, Sap gui screen size in ubuntu., which seemed to be addressing the same problem, but the suggestion was to apply the latest patch to the GUI and get JAVA 1.6.   One would think that since that post in 2008, any patches would have made it into the latest revisions.  I'm already running Java 1.6.
    SAPGUI for Java 7.10 rev 10
    (Version ID 071000041000)
    Tue Sep 8 09:49:53 MEST 2009
    uw1059, 710_REL, 1093492
    Java VM: Apple Inc. Version 1.6.0_15
    OS: Mac OS X(i386) Version 10.6.1
    SAPGUI for Java 7.10 rev 10
    (Version ID 071000041000)
    Tue Sep 8 09:49:53 MEST 2009
    uw1059, 710_REL, 1093492
    Java VM: Sun Microsystems Inc. Version 1.6.0_15
    OS: Windows XP(x86) Version 5.1
    Any suggestions?  Anyone else even seeing this?
    Thanks!
    Rich

    I'm now running
    SAPGUI for Java 7.10 rev 11
    (Version ID 071000041100)
    Tue Dec 8 16:04:41 MET 2009
    uw1059, 710_REL, 1119101
    Java VM: Apple Inc. Version 1.6.0_17
    OS: Mac OS X(i386) Version 10.6.2
    I've also updated my XP system to 7.10 rev 11 and both continue to display the same failure to resize corrrectly.  
    Here's a [video capture of this behavior|http://img163.yfrog.com/i/sapresizebug.mp4/].
    Given that installs on two separate operating systems have consistently misbehaved like this, I have a hard time believing it is something  we are doing.  (But not that hard...)  I find it hard to believe that is the way these screens present on most SAP sites...
    Any comments or suggestions would be welcome!
    Rich

  • Cannot connect a Java GUI client to an EJB

    I am having problems trying to make a Java GUI client connect to an EJB. I am using JRun4.
    At first, I tried making the Java GUI client a part of the enterprise application that I am building (of which the EJB is a part of). I included the client as a Java module in the application.xml of the enterprise application.
    However, when I try to start the server, containing this application, I get an error saying:
    Application authentication required. Incorrect method call.
    Now when I try to execute the application from the console, it works fine except when it comes to the part when it has to connect to the EJB. At this point I get an java.lang.reflect.UndeclaredThrowableException. Here's the stack trace:
    java.lang.reflect.UndeclaredThrowableException
    at $Proxy1.create(Unknown Source)
    at mds.Caller.actionPerformed(Caller.java:135)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    Caused by: jrun.ejb.invocation.ContainerNotFoundException: The EJB container for boss-ejb#Boss could not be found.
    at jrun.ejb.invocation.AbstractInvocationProxy.findContainer(AbstractInvocationProxy.java:58)
    at jrun.ejb.invocation.LocalInvocationProxyImpl.invoke(LocalInvocationProxyImpl.java:53)
    at jrun.ejb.invocation.ClientInvocationHandlerImpl.invoke(ClientInvocationHandlerImpl.java:198)
    ... 25 more
    Since the bean is local, I am using a local reference to the bean in the lookup in the code of the client:
    Object o = context.lookup("local/BeanTest")
    I tried to use:
    Object o = context.lookup("java:comp/env/ejb/BeanTest")
    and added an ejb-local-ref in the application-client.xml file of the client. But when I try executing the client in this case, I get an error saying:
    No such binding: ejb
    I wish someone can help me out with this. My main aim is to get the app client talk to the EJB. Thanks a lot in advance.
    Soham

    I am not sure of a tool to view the JNDI tree. I have one in Weblogic console. But you can check the JNDI names with a small sample code.
    import java.util.*;
    import javax.naming.*;
    import javax.rmi.PortableRemoteObject;
    public class TestEnvironment {
        public static void main(String[] args) {
            Context context   = null;
            Object object     = null;
            // Hashtable for environment properties.
            Hashtable env = new Hashtable();
            env.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
            env.put(Context.PROVIDER_URL, "t3://localhost:7001");
            try {
                context   = new InitialContext(env);
                NamingEnumeration enum = context.listBindings("");
                while (enum.hasMore()) {
                    Binding binding = (Binding) enum.next();
                    System.out.println("Name: " + binding.getName());
                    System.out.println("Type: " + binding.getClassName());
                    System.out.println("Value: " + binding.getObject());
            } catch (Exception exception) {
                exception.printStackTrace();
    }Hope this helps.

  • Installing Java 8 SE on Debian - Linux

    What is the recommended way to install Java 8 SE on Debian (32-bit or 64-bit):
    1) As explained on this page JDK Installation for Linux Platforms
    Installation of the 32-bit JDK on Linux Platforms
    This procedure installs the Java Development Kit (JDK) for 32-bit Linux, using an archive binary file (.tar.gz).
    These instructions use the following file:
    jdk-8uversion-linux-i586.tar.gz
    Download the file.Before the file can be downloaded, you must accept the license agreement. The archive binary can be installed by anyone (not only root users), in any location that you can write to. However, only the root user can install the JDK into the system location.
    Change directory to the location where you would like the JDK to be installed, then move the .tar.gz archive binary to the current directory.
    Unpack the tarball and install the JDK.% tar zxvf jdk-8uversion-linux-i586.tar.gz
    The Java Development Kit files are installed in a directory called jdk1.8.0_version in the current directory.
    Delete the .tar.gz file if you want to save disk space.
    or
    2) su -
    echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee /etc/apt/sources.list.d/webupd8team-java.list
    echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list
    apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886 apt-get update
    apt-get
    install oracle-java8-installer
    exit
    Thanks.

    The recommended way to install Java 8 on Debian is apt-get install openjdk-8-jre, but you'll have to wait until that package actually exists, which is not the case yet. Neither of the above ways you mention are recommended on Debian, but both should be working.

  • Problem using Instant Client 10g with PHP4.3.10-16 on Debian Sarge

    Hello,
    My current email is [email protected]
    I am trying to use PHP on Debian box using Oracle 10gR2 on a RH 4 server. Everything works fine individually, but I cannot get PHP4 to use InstantClient to connect to the Oracle Server. This is what I've done:
    Oracle 10gR2 works fine on the RH 4 server. Listener is running and all required OS security is in place and works (TCP_wrappers, etc.).
    Client machine runs Debian 3.1 (Sarge). It works fine and SSH connectivity to RH4 server works.
    Instant Client 10gR2 installed on Debian client and works fine. Tested SQL*Plus connection to the RH server. I installed Instant Client from the zip file.
    I did have to add libclntsh.so to /etc/ld.so.conf and run ldconfig to get Debian to use it, though.
    Apache2.0.54-5 on Debian client works fine. Web pages on it can be opened in browsers from other machines.
    Installed PHP4.3.10-16 on Debian client using following:
    ./configure --with-oci8-instant-client=<dir of my choice>
    --enable-sigchild
    I first checked ./configure help and the option with-oci8-instant-client was there.
    Configure went well. Log showed checking for Instant Client files.
    Ran make. Saw numerous Instant Client message as words scrolled.
    Ran make install. Successful.
    Restarted Apache2 with following env variables:
    LD_LIBRARY_PATH=<my Instant Client directory)
    TNS_ADMIN=<same directory where I put my sqlnet.ora and tnsnames.ora files).
    SQLPATH=<same directory>
    I know this is correct because Instant Client SQL*Plus can connect.
    Browsers on other machines can view simple php scripts run from the Debian box.
    BUT, phpinfo does NOT show an OCI8 section.
    phpinfo does show the correct extension directory, though.
    Somehow, my PHP4 configure and make is not using the --with-oci8-instant-client option.
    I checked $PHP4HOME/ext/oci8/config.m4 file and the verbiage IS in there to use the --with-oci8-instant-client option, either with the default location or the extension_dir location.
    I tried using the new ZendCore product, even though it is not certified for Debian. It installed okay but I could not get PHP5 to work. I uninstalled it successfully and redid all of the above.
    So, any ideas as to what else I can do here? Other than not use Debian (which is probably the wisest thing to do). And I suppose I could install a thick Oracle client, assuming that Debian would take it. But I prefer the Instant Client.
    I tried the PHP ./configure syntax I've seen several places on this forum.
    ./configure --with-oci8=instantclient,<directory>
    This syntax may work on Red Hat machines but it throws a syntax error on Debian and aborts the configure.
    Thanks for any help.

    Thanks, but that did not work. Configure aborts because it cannot find the required OCI8 libraries. The --with-oci8 option is for the Oracle "thick" client.  I have only the Instant Client...and am not interested in loading the older client.
    I may have my own solution next week, though. I will be loading RH4 on a new server and will then install ZendCore and forget all about using Oracle with Debian.
    Update on trying ZendCore on Debian Sarge:
    I tried installing it again yesterday. The install seemed go to well, and said it was successful.
    It did NOT load PHP5, however. Nor did it load the Instant Client. My previously installed PHP4 and Instant Client remained in my original directories.

  • SAP Java Gui in Solaris 10 x86.

    Who run the Java Gui in Solaris 10 x86?
    After I installed Java Gui in Solaris 10 x86 and run guilogon, when I connect the server I created, I got the error message:
    Attempt to load shared library /opt/SAPClients/SAPGui7.00/binlibJPlatin.so failed.
    The library file exists, so either the program
    don't has the privileges to access the library
    or the library is not loadable by the shared object loader
    Technical information:
    Error location: GuiJniLoader.loadPlatinLibrary()
    Error message: /opt/SAPClients/SAPGUI7.00/bin/libJPlation.so:ld.so.1:java:fatal:/opt/SAPClients/SAPGUI7.00/bin/libJPlatin.so:wrong ELF data format:ELFDATA2MSB
    After I confirm the dialog, another error message appears:
    JniAgiLibAdaptor.<init>: Cannot load JNI library.
    I checked the supported OS, it doesn't contains Solaris 10 X86, but I think Solaris 10 was open source, just like linux, why doesn't SAP Java Gui support Solaris 10 X86? And now , how can I solve this problem?

    What you see is what happens when the Java runtime running on Solaris 10 x86 tries to load a library which is compiled for SPARC.
    Because of the native parts in SAP GUI for Java, compilations and installers are required for each OS - HW combination.
    The supported platforms can be seen in SAP note 954572. For Solaris only SPARC is currently supported.
    Because of the effort needed for compiling, testing, support etc. it is required to focus on OS - HW combinations widely used on desktop machines and Solaris 10 on x86 currently does not seem to be one of those.

  • Integrating Another Program Into A Java GUI

    HI
    I have 3 classes here. One is a Java GUI, the other two are involed in
    stripping and processing of information off a webpage.
    Of these latter two classes, one contains a main method which connects
    to a webpage and reads the info off it, it calls the other class which
    parses this information and holds the variables I need to create
    buttons for the main gui!
    Is it possible at all to integrate, the class that reads the webpage,
    into, the Java GUI class.I need to do this to access the variables
    that the parsing class is holding, as previously I have had to create
    an instance of this class in the webpage reader class, but this was no
    good to me as the GUI could not access this information, i.e can I
    create an instance of this stripper at the begining of main in the GUI
    class so as I can use the results for this for producing my buttons?
    I've tried to do this but I am getting unresolved symbol errors. I was
    wondering should I use global variables to hold the needed info also ?
    Any help at all greatly appreciated,
    Thanks
    Gerry

    I did what you're describing. Sounded simple enough. You put the same logic in main() into the applets init() and you can run as app or applet. Worked well in my IDE. Then the troubles start.
    Visit
    http://www.martinrinehart.com
    and read the Article, Launching Applets. That will get you started on launching a Swing application. (Try my Sample, DawnPainter, to give you an idea about how nice this can be when it works.) I promise but don't deliver (yet) an article on the javascript library I wrote that solves all the problems. For non-commercial use you can get your own copy:
    http://www.martinrinehart.com/examples/launchApplet.js

  • Cannot read list of frontend printers - Printing in SAP JAVA GUI for MAC

    Hello,
    I am trying to print a Spool request in SAP Java GUI 7.10. I am working on Apple with OSX operating system. I get this error message -
    " Cannot read list of frontend printers " - Message no. PO781
    What do i need to do to take a print out from SAP on my Mac.
    Thanks
    Buddy

    Hello,
    which printing access method you are using?
    You might want to have a look at [note 821519|https://service.sap.com/sap/support/notes/821519].
    Best regards
    Rolf-Martin

  • How can I run C programs under a Java GUI?

    Hi
    I'm looking for some info on how to run a command line program written in another language behind a Java GUI, any advice greatly appreciated, particularly in how to transfer data between the two.
    Thanks

    Runtime.getRuntime().exec(...)
    Transfering info is more complicated. Maybe write and read status from disk?

Maybe you are looking for