Problem in startnig the SWING application

I have made an application in java swing. the time to start the application is increasing day by day. Can anyone tell me the possible reasons for this. Earlier it used to start in about 1 minutes. But now it takes around 10 minutes to start the same application. just to start means to show up the GUI only.

1 minute is too long, 10 minutes is ridiculous.
There are products available that can help you determine where your application is spending time, and using resources (memory and CPU) called profilers. One I have trialed that would probably help is called OptimizeIt from Borland.
Here are a couple of questions that will help in determing what might be going on. The following information is first step in getting the factual information to try and help determine the reason for the long startup times. Still, without code, it can be quite difficult to determine where you may be slowing down:
1) Is it a large application (lots of function, or lots of Swing objects)?
2) What type of workstation are you running the application on?
2a) How much memory does the workstation have?
2b) What is the processor speed?
2c) What is the operating system?
2d) How much physical memory is available before you start your application?
2e) How much physical memory is available after you start your application?
3) Are you starting your application from the command line, or are you starting it through an IDE?
3a) What JVM parameters if any are you using to start your application?
4) Are you accessing files, or code across the network (shared drives on windows, or NFS on UNIX)?
5) Are you accessing any database within the application?
6) Are you showing a splash page while your application is loading?
7) Are you utilizing any configuration files for logs or .ini?
8) What version of Java are you running?
9) What vendor supplied the version of Java you are running?

Similar Messages

  • Log of the swing application

    When I run a swing application inside JDeveloper, if an exception is thrown, I see a log in Jdeveloper in 'Running' window.
    Is there such log for the swing application deployed using webstart (somewhere on the client machine)?

    Hi,
    see http://www.lecture123.com/elearning/jws-log.html
    Frank

  • Invoke an awt event from outside the swing application

    Is it possible to invoke an awt event triggered from outside the swing app? I am trying to implement a use case where i have to open a new tab in an already running swing app when a user clicks on a browser link.

    I have a desktop application that was invoked via webstart. The java webstart process started when the user clicked on a link that downloaded the swing application and now it runs in the clients JVM. Each browser click downloades and launches the application that performs a certain function. Now lets say, the user clicks on another link, then i don't want another java application to be launched. I want the same application that executes the function in lets say a new tab.
    Its kind of like you click on a link that somebody sent you in an outlook email. When you click on it and if firefox is already running, the link opens up in a new tab on an already running firefox browser. If firefox was not running, it starts a new firefox process.
    Hope this makes sense

  • Debug the swing application from eclipse

    Hi
    I had a swing application, to create a exe file i build the application using using build.xml. To run the application we need to open the exe file.
    I want to debug this swing application from eclipse. Can anybody please tell me how to debug this application.
    Note: I can able to debug simple swing application. But i can't able to debug this application.
    Thanks
    mindus

    If it's an actual .exe--that is, if you've compiled it to a native Windows executable--then you can't debug it using a Java debugger (such as the one in Eclipse).
    If, on the other hand, you just have a .jar file or a bunch of .class files, then you can debug this app the same way you debugged the other one.
    If you don't provide more details about what you actually did and what exact problems you're having ("I can't do it" contains no useful information whatsoever), then it's impossible to provide any more detailed advice than this.

  • UI problem when run java swing application on MAC OSX

    Hello,
    I have problem when i run my java swing application on MAC OSX.
    Dialog box is not properly visible in MAC means ita size increses.
    its size incresed and and some content or buttons on that dialog are not fully visible.
    I can only see partial message or button.
    If any one have idea about this problem then give the solution.
    Thanks :)
    Shweta

    I am using following way to create dialog
    JOptionPane optionpane = new JOptionPane(new Object[]{lblMsgUp}, JOptionPane.OK_CANCEL_OPTION, JOptionPane.INFORMATION_MESSAGE, null, choices, "Save");
    JDialog dialog = optionpane.createDialog(parent, "Save");
    dialog.setSize(450, 125);
    dialog.setVisible(true);

  • Problem while deploying the ADF application in weblogic 10.3

    Hi,
    We did the application using ADF and EJB3.0 in JDeveloper11g relese and this application is working fine when i run in the JDeveloper release. When i try to deploy the same application in weblogic 10.3(Which I downloded and installed) i am getting following error.
    shared library "adf.oracle.domain" could not be found.
    Can any one tell me, what the problem is?
    Thanking you,
    NIRANJAN REDDY.

    person with many names,
    You need to configure the WLS domain for ADF.
    http://download.oracle.com/docs/cd/E12839_01/install.1111/e13666/toc.htm#wls_adf
    John

  • Displaying image on the swings application

    Hi All,
    I want to display images onto my swing application. I was using ImageIcon and Class to getResource(filename). It can only provide me images that i have placed in my package not outside my package.
    Please help me, how to to do?
    Thanks in advance.

    [url http://java.sun.com/docs/books/tutorial/uiswing/components/icon.html]How to Use Icons

  • Problems related to the device application Blackberry

    Hi All
    I ma trying to create the sample application on Blackberry.
    I followed the following steps:
    1. On sybase 1.5.2 workspace i created a mobile application project.
    2. Dragged customer dba and sales order dba on the diagram scree.
    3. Created the relationships and deployed and generated the code.It generated successfully.
    Nect i installed Blackberry JDE 1.3 under C drive that is outside the sybase installation root folder.
    I opened the Blackberry JDE and created a blackberry project there.
    I copied the src from the generated code folder to the scr folder under my BB app.
    I added the two extenal jar files i.e sup-client-rima nd UltraliteJ but i get lots of compile errors when i included the mbo source folder under this folder.
    When i tried including the jar files under the jre (the java jar files) the errors only increased.
    Can some one please guide me here.I have been struggling since past many days on this.
    Any help would be highly appreciated.
    Thanks and Regards
    Shweta

    Hi
    It is recommended to set the compiler settings to Java 1.3 or max 1.4, this can be found in the project properties->Java compiler.
    Blackberry Application should be developed to run on BB devices that have JVM that is different from the one found on your PC.
    So the reason you are having compile issues is because you are using API's not supported by the BB/SUP libraries.
    Please take a look at BB and SUP supported API's before using any API.
    Thanks
    Pradeep

  • Problem in accessing the online application

    We have the following setup:
    Siteminder :6.0 SP4
    Siteminder Webagent :6QMR2
    OID: 10.1.2
    OC4j Container:10.1.3
    Webserver :Apache/2.0.46
    Webcache :10.1.2
    I am not able to access the online application once we have enabled the password policy.The error on the online application screen is" Internal server error",the in the ssl_eeror.log in the webserver is " Premature end of script headers: smpwservicescgi.exe, referer: https://gemini-ship.transco.co.uk:4446/forms/login.fcc?TYPE=33554433&REALMOID=06-835d9850-4902-1004-91ae-8317fb350000&GUID=&SMAUTHREASON=0&METHOD=GET&SMAGENTNAME=$SM$kaksFFJ0ZpawNwHxrMkyknVj5yRpASmWud39FdPxF2xXajbLNBUsXA%3d%3d&TARGET=$SM$https%3a%2f%2fgemini-ship%2etransco%2eco%2euk%3a4452%2fhome%2fcommon%2fhtml%2findex%2ehtml
    [Mon Jun 25 10:57:13 2007] [error] [client 10.140.84.109] /opt/netegrity/env162gm/webagent/pw/smpwservicescgi.exe: error while loading shared libraries: libbtunicode.so: cannot open shared object file: No such file or directory, referer: https://gemini-ship.transco.co.uk:4446/forms/login.fcc ".
    Also please help me with the password policy settings.

    Check if when you close your app, the programm really exits.
    When you close your main frame, the VM must be stopped (setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE) or add System.exit(0) in the method windowClosing(...) of your window listener).
    Maybe there are a lot of VM running at the same time.
    Denis

  • Problem in building the enterprise application using Ant -Wrkshop

    Hi All,
    I have developed the enterprise application using workshop and tries to build the application using Ant script and getting the following error.
    "An error occurred writing the controls client manifest."
    Regards
    Ashok

    Did you:
    a). Ensure you're using the correct version of WLS (it appears to me you're using a standalone WLS)? - correct version is 10.3.3
    b). Install the application development runtime 11.1.1.3?
    c). Extend the domain with the JRF?
    John

  • Problem while installing the orion application server

    Hi
    Thanks for help in advance.
    I downloaded orion application server 1.5.3 .I followed the installation guide to install the server.When i typed java -jar orion.jar -install in command prompt ,i got following error .
    A nonfatal internal JIT (3.10.107(x)) error 'Relocation error: NULL relocation
    arget' has occurred in :
    'org/apache/crimson/parser/Parser2.maybeComment (Z)Z': Interpreting method.
    Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.c
    i
    Enter an admin password to use:
    Confirm admin password:
    Installation done
    Pls any one tell me how to solve this problem.
    With regards
    Jyothi

    Hi,
    This is a problem with your DNS settings (or lack of), not with Sun Java System Application Server/Access Manager.
    You will need to setup DNS before installing.
    One of these articles may help you:
    http://www.aboutdebian.com/dns.htm
    http://www.troubleshooters.com/linux/dns.htm
    http://www.linux.org/docs/ldp/howto/DNS-HOWTO.html
    Hope this helps....

  • Change The Swing Application Color

    I Have an Application with several screens. There is an option for the user to change the background color for all screens.
    But in my case the change will only occur when the application is executed again. (I store the color in a text file and reads it at run time - and change the backgounds of panels accordingly)
    Cant I also make the change at that time. The thing is this change should occur for all screens of the application.
    Please let me know if anybody have an idea on this ....
    Thanks
    Shirantha.

    UIManager.put("Panel.background",color);
    SwingUtilities.updateComponentTreeUI(yourFrame);
    best regards
    Stas

  • Problem in starting the websphere application server

    After installation when i created the server and tried to start it, The server was in stopped state only. When i checked the logs LoggingUtil.log. The exception logged there was
    =======================
    <String logging.util.agent_idref="com.ibm.etools.websphere.tools.v5.common" logging.util.MsgLoggerLevel="SEVERE" Value="0 Fri Dec 16 16:11:36 IST 2005 com.ibm.etools.websphere.tools.v51.internal.servers.ServletEngineLauncher.handleModelActionEvent(): Cannot start the server: IWAD0200E An error has occurred while starting the server.
    The server will not be started.
    com.ibm.etools.websphere.tools.internal.servers.CantCreateServerSocketException: Error obtaining communication port for launching the server"/>
    <CantCreateServerSocketException logging.util.id="com.ibm.etools.websphere.tools.internal.servers.CantCreateServerSocketException_11347296966310000" logging.util.agent_idref="com.ibm.etools.websphere.tools.v5.common" logging.util.MsgLoggerLevel="SEVERE" Message="Error obtaining communication port for launching the server">
    <String Value="at java.lang.Throwable.<init>(Throwable.java)"/>
    <String Value="at java.lang.Throwable.<init>(Throwable.java)"/>
    <String Value="at com.ibm.etools.websphere.tools.internal.servers.ModelException.<init>(ModelException.java:30)"/>
    <String Value="at com.ibm.etools.websphere.tools.internal.servers.CommonServerModel.obtainSocket(CommonServerModel.java:567)"/>
    <String Value="at com.ibm.etools.websphere.tools.internal.servers.CommonServerModel.startCommunicating(CommonServerModel.java:675)"/>
    <String Value="at com.ibm.etools.websphere.tools.internal.servers.CommonServerModel.startServer(CommonServerModel.java:698)"/>
    <String Value="at com.ibm.etools.websphere.tools.v51.internal.servers.ServletEngineModel.actionPerformed(ServletEngineModel.java:180)"/>
    <String Value="at com.ibm.etools.websphere.tools.v51.internal.servers.ServletEngineLauncher.start(ServletEngineLauncher.java:453)"/>
    <String Value="at com.ibm.etools.websphere.tools.v51.UnitTestServer.start(UnitTestServer.java:3018)"/>
    <String Value="at com.ibm.etools.server.core.internal.ServerLaunchConfigurationDelegate.launch(ServerLaunchConfigurationDelegate.java:89)"/>
    <String Value="at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:156)"/>
    <String Value="at com.ibm.etools.server.core.internal.ServerControl.start(ServerControl.java:1000)"/>
    <String Value="at com.ibm.etools.server.ui.internal.EclipseUtil$5.run(EclipseUtil.java:233)"/>
    <String Value="at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)"/>
    </CantCreateServerSocketException>
    ====================
    Please let me know what went wrong. I even reinstalled Websphere many times.

    Thanks for the reply
    I dont think so that any oter application is running
    with that port.. Because i created a new server and
    it takes the default port which is not in use.What if there is already a server using that port?
    Try using netstat to check.

  • Java Swing application problem in Windows vista

    When we execute the Swing application in windows vista environment.
    The look and feel of the swing components are displayed improperly.
    Do we need to put any specific look and feel for windows vista environment or any specific hardware configuration is required to setup windows vista environment.
    Please give some inputs to solve the problem.
    We have tried with the following sample code to run in windows vista.
    * Vista.java
    * Created on December 5, 2006, 5:39 PM
    public class Vista extends javax.swing.JFrame {
    /** Creates new form Vista */
    public Vista() {
    initComponents();
    pack();
    /** This method is called from within the constructor to
    * initialize the form.
    * WARNING: Do NOT modify this code. The content of this method is
    * always regenerated by the Form Editor.
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
    private void initComponents() {
    jButton1 = new javax.swing.JButton();
    jToggleButton1 = new javax.swing.JToggleButton();
    jPanel1 = new javax.swing.JPanel();
    jCheckBox1 = new javax.swing.JCheckBox();
    jScrollPane1 = new javax.swing.JScrollPane();
    jTextArea1 = new javax.swing.JTextArea();
    jTextField1 = new javax.swing.JTextField();
    getContentPane().setLayout(null);
    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    jButton1.setText("Button 1");
    getContentPane().add(jButton1);
    jButton1.setBounds(20, 20, 170, 30);
    jToggleButton1.setText("Togle btn");
    getContentPane().add(jToggleButton1);
    jToggleButton1.setBounds(100, 80, 90, 20);
    jPanel1.setLayout(null);
    jCheckBox1.setText("jCheckBox1");
    jCheckBox1.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    jCheckBox1.setMargin(new java.awt.Insets(0, 0, 0, 0));
    jPanel1.add(jCheckBox1);
    jCheckBox1.setBounds(10, 40, 130, 13);
    getContentPane().add(jPanel1);
    jPanel1.setBounds(10, 150, 200, 130);
    jTextArea1.setColumns(20);
    jTextArea1.setRows(5);
    jScrollPane1.setViewportView(jTextArea1);
    getContentPane().add(jScrollPane1);
    jScrollPane1.setBounds(210, 150, 164, 94);
    jTextField1.setText("jTextField1");
    getContentPane().add(jTextField1);
    jTextField1.setBounds(240, 30, 140, 30);
    pack();
    }// </editor-fold>//GEN-END:initComponents
    * @param args the command line arguments
    public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    new Vista().setVisible(true);
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton1;
    private javax.swing.JCheckBox jCheckBox1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTextArea jTextArea1;
    private javax.swing.JTextField jTextField1;
    private javax.swing.JToggleButton jToggleButton1;
    // End of variables declaration//GEN-END:variables
    }

    When we execute the Swing application in windows
    vista environment.
    The look and feel of the swing components are
    displayed improperly.Improperly means what? You must be aware that Vista's native L&F certainly isn't supported yet.

  • Problem in Opening HTML Page in Internet Explorer from my Swing Application

    Hi,
    I am opening a HTML file in Internet Explorer from my swing application.I am using the code given below
    private final static String WIN_FLAG = "url.dll,FileProtocolHandler";
    private final static String WIN_PATH = "rundll32";
    String cmd = WIN_PATH + " " + WIN_FLAG + " " + url;
    // url is HTML file Path
    Process p = Runtime.getRuntime().exec( cmd );
    Here there are two things i need to address ...
    1)The HTML file is opening up,but it always opens behind the swing application,that makes me every time to maximize the HTML file after it being opened up.I want to open it in front of the Swing Application.I need to implement "Always On Top" functionality for the html page.
    2)Whenever i trigger action to open different HTML page,it opens in new Internet Explorer window.
    I need to open it in same IE window.
    how to solve out these problems ??? any help would be greatly appreciated .Thanks in advance.
    - Manikandan

    any idea about this ????

Maybe you are looking for

  • Can't save anymore

    Hello from Brazil! Here goes my problem....I am working on a presentation with Rome. When I get near the 15th screen I can't get it to save my progress. When I select the option to save, the program crashes, then if I try to close its window it keeps

  • Script to Grant Role for All User Objects.

    Hi DBAs, I have created a select_only role. I need a script to populate that role with all user_objects belonging to one person and eventually grant that role to another person. Perhaps a dynamic sql. Please help. Thanks -Samar-

  • Fixing audio sync without re-compressing

    I wasn't sure which forum to post this in since this isn't really an iMovie question, but I figured this would be the best place. I have an .avi file where the audio is a little bit out of sync. What I want to do is sync the audio back up and save th

  • What is the termination fee?

    Hi, I'm planning on cancelling my 2 yr agreement and was wondering what is the termination fee? I did an upgrade last march of 2014 ... I was just wondering if anyone knows so I could plan ahead. Thanks!

  • Screensavers for XP which are currently available for Macs?

    Could there or are there any good screensavers available for XP? I love the Mac but am only XP due to finance however may in the future get a Mac.