Application won't start

i'm trying to write a java application but i can't get it to start. there are no error messages or warnings. can anyone help me please?
here's to code that i have written
import java.applet.*;
import java.awt.*;
import java.awt.Color;
import java.net.*;
import java.lang.*;
import java.io.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.AbstractButton;
public class db_queryTool extends JFrame {
JComboBox options;
GridBagLayout gbMain;
GridBagConstraints gbcMain;
public db_queryTool() {
     super();
public void init() {
     this.getContentPane().setLayout(gbMain);
     gbcMain.fill = GridBagConstraints.HORIZONTAL;
     gbcMain.anchor = GridBagConstraints.CENTER;
     options = new JComboBox();
     gbcMain.insets = new Insets(1,1,1,1);
     gbcMain.gridx = 0;
     gbcMain.gridy = 1;
     gbcMain.gridheight = 1;
     gbcMain.gridwidth = 1;
     gbcMain.weightx = 1.0;
     gbMain.setConstraints(options, gbcMain);
     add(options);
     setVisible(true);
public static void main(String[] args) {
     new db_queryTool();

Or try adding the init() method to your constructor
public db_queryTool() {
super();
init();

Similar Messages

  • JavaFX Application won't start

    When i start an example application e.g. LocalSearch i will get an error and the application won't start. Whatever i try, LocalSearch.jnlp or LocalSearch.html or another application from the javafx site, i see only the pretty java-gif-circle.
    It looks like that there is an update in progress on the sun site and the new files are not available.
    Even the 'javaws -import http://dl.javafx.com/javafx-cache.jnlp' update command failed with this exception.
    What happening here?
    Here is the exception:
    com.sun.deploy.net.FailedDownloadException: Ressource konnte nicht geladen werden: http://dl.javafx.com/javafx-rt-windows-i586__V1.2.1_b23.jar
         at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
         at com.sun.javaws.LaunchDownload.downloadJarFiles(Unknown Source)
         at com.sun.javaws.LaunchDownload.downloadEagerorAll(Unknown Source)
         at com.sun.javaws.Launcher.downloadResources(Unknown Source)
         at com.sun.javaws.Launcher.prepareLaunchFile(Unknown Source)
         at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
         at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
         at com.sun.javaws.Launcher.launch(Unknown Source)
         at com.sun.javaws.Main.launchApp(Unknown Source)
         at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
         at com.sun.javaws.Main$1.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    java.io.FileNotFoundException: http://dl.javafx.com/javafx-rt-windows-i586__V1.2.1_b23.jar
         at sun.reflect.GeneratedConstructorAccessor2.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
         at java.lang.reflect.Constructor.newInstance(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
         at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
         at com.sun.deploy.net.BasicHttpRequest.doGetRequest(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
         at com.sun.javaws.LaunchDownload.downloadJarFiles(Unknown Source)
         at com.sun.javaws.LaunchDownload.downloadEagerorAll(Unknown Source)
         at com.sun.javaws.Launcher.downloadResources(Unknown Source)
         at com.sun.javaws.Launcher.prepareLaunchFile(Unknown Source)
         at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
         at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
         at com.sun.javaws.Launcher.launch(Unknown Source)
         at com.sun.javaws.Main.launchApp(Unknown Source)
         at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
         at com.sun.javaws.Main$1.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.FileNotFoundException: http://dl.javafx.com/javafx-rt-windows-i586__V1.2.1_b23.jar
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at java.net.HttpURLConnection.getResponseCode(Unknown Source)
         ... 20 more
    Greetz
    Mike

    I tried to clear the cache, but the problem still exists.
    here a snippet from the java console when i launch the LocalSearch application:
    network: Created version ID: 1.6.0.16
    network: Created version ID: 1.6
    network: Cache-Eintrag gefunden [url: file:/D:/project/netbeans/Local%20Search/dist/LocalSearch_browser.jnlp, Version: null]
    temp: new XMLParser with source:
    temp: <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+" codebase="file:/D:/project/netbeans/Local%20Search/dist/" href="LocalSearch_browser.jnlp">
    network: Cache-Eintrag nicht gefunden [url: http://dl.javafx.com/javafx-rt-windows-i586__V1.2.1_b23.jar, Version: null]
    network: Cache-Eintrag nicht gefunden [url: http://dl.javafx.com/javafx-rt-windows-i586__V1.2.1_b23.jar, Version: null]
    network: Verbindung von http://dl.javafx.com/javafx-rt-windows-i586__V1.2.1_b23.jar mit Proxy=DIRECT wird hergestellt
    network: Verbindung von http://dl.javafx.com:80/ mit Proxy=DIRECT wird hergestellt
    network: Verbindung http://dl.javafx.com/javafx-rt-windows-i586__V1.2.1_b23.jar mit Cookie "s_sq=sunglobal%2Csunjavafx%3D%2526pid%253Djavafx%25253A/learn/community.jsp%2526pidt%253D1%2526oid%253Dhttp%25253A//forums.sun.com/forum.jspa%25253FforumID%25253D932%2526ot%253DA; s_cc=true"
    java.io.FileNotFoundException: http://dl.javafx.com/javafx-rt-windows-i586__V1.2.1_b23.jar
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at com.sun.deploy.net.HttpUtils.followRedirects(Unknown Source)
         at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
         at com.sun.deploy.net.BasicHttpRequest.doGetRequestEX(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
         at com.sun.javaws.LaunchDownload.downloadJarFiles(Unknown Source)
         at com.sun.javaws.LaunchDownload.downloadEagerorAll(Unknown Source)
         at sun.plugin2.applet.JNLP2Manager.downloadResources(Unknown Source)
         at sun.plugin2.applet.JNLP2Manager.prepareLaunchFile(Unknown Source)
         at sun.plugin2.applet.JNLP2Manager.loadJarFiles(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    network: Verbindung von http://dl.javafx.com/javafx-rt-windows-i586__V1.2.1_b23.jar mit Proxy=DIRECT wird hergestellt
    network: Verbindung http://dl.javafx.com/javafx-rt-windows-i586__V1.2.1_b23.jar mit Cookie "s_sq=sunglobal%2Csunjavafx%3D%2526pid%253Djavafx%25253A/learn/community.jsp%2526pidt%253D1%2526oid%253Dhttp%25253A//forums.sun.com/forum.jspa%25253FforumID%25253D932%2526ot%253DA; s_cc=true"
    com.sun.deploy.net.FailedDownloadException: Ressource konnte nicht geladen werden: http://dl.javafx.com/javafx-rt-windows-i586__V1.2.1_b23.jar
         at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
         at com.sun.javaws.LaunchDownload.downloadJarFiles(Unknown Source)
         at com.sun.javaws.LaunchDownload.downloadEagerorAll(Unknown Source)
         at sun.plugin2.applet.JNLP2Manager.downloadResources(Unknown Source)
         at sun.plugin2.applet.JNLP2Manager.prepareLaunchFile(Unknown Source)
         at sun.plugin2.applet.JNLP2Manager.loadJarFiles(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by:
    java.io.FileNotFoundException: http://dl.javafx.com/javafx-rt-windows-i586__V1.2.1_b23.jar
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at com.sun.deploy.net.HttpUtils.followRedirects(Unknown Source)
         at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
         at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
         at com.sun.deploy.net.BasicHttpRequest.doGetRequest(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
         at com.sun.javaws.LaunchDownload.downloadJarFiles(Unknown Source)
         at com.sun.javaws.LaunchDownload.downloadEagerorAll(Unknown Source)
         at sun.plugin2.applet.JNLP2Manager.downloadResources(Unknown Source)
         at sun.plugin2.applet.JNLP2Manager.prepareLaunchFile(Unknown Source)
         at sun.plugin2.applet.JNLP2Manager.loadJarFiles(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    The jar file http://dl.javafx.com/javafx-rt-windows-i586__V1.2.1_b23.jar does not exist on the sun server.
    HTTP Status 404 -
    description The requested resource () is not available.
    Sun Java System Application Server 9.1_02
    I hope this will be fixed soon.
    Thats weird... it works on my notebook at home. There is the http://dl.javafx.com/javafx-rt-windows-i586__V1.2.0_b233.jar stored in the cache and when i try to update the cache with javaws -import http://dl.javafx.com/javafx-cache.jnlp it is all ok. No request to download the v1.2.1.jar.
    Mike
    Edited by: dr.motte on 02.09.2009 21:38
    I've found one solution.
    The jnlp file http://dl.javafx.com/1.2/javafx-rt.jnlp in my cache had the version V1.2.1_b23. So this was the actual version and was not updated with the cache update. In this file there was the refenrence to the rt-windows.jar V1.2.1_b23, but this isn't jet downloadable. So i've deleted the http://dl.javafx.com/1.2/javafx-rt.jnlp from the cache and run an update again. Now the right version was downladed and i'm happy now.
    But i don't know where i've got the javafx-rt.jnlp V1.2.1_b23 file. It doesn't matter anymore.
    Have a nice day.
    Mike
    Edited by: dr.motte on 03.09.2009 09:42

  • Oracle 11g application won't start sometimes(jar files issue)

    Hello,
    The issue we experience is that now and then, our forms 11g application
    won't start.
    So it can be the case that, for example, the application can be started
    succesfully 5 times in a row, but the 6th and 7th time, it won't start
    anymore. But when we relaunch it for the 8th time, it launches perfectly.
    When the application isn't starting, a new window is opened having a yellow triangle
    with an exclamation mark on the top right corner.
    After a long period, we suddely discovered that it had something to do with ".jar" files.
    Because when we clear the "java jar cache" on the client machine
    (start -> control panel -> java -> "general" tab -> "view..." button -> select all the files and click on the
    cross(remove selected sources) ), the application succesfully starts for about 10 times in a row.
    But the first time we start the application(after clearing the cache), it takes much longer, because the application
    is downloading the .jar files again. (java logo appears with a progress bar)
    But clearing the cache every time before starting the application can't be a decent solution we think.
    When we enable all java debugging info in the console, we received the error below 2 times when launching a application session that refused to start:
    java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.awt)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPackageAccess(Unknown Source)
         at sun.plugin2.applet.Applet2SecurityManager.checkPackageAccess(Unknown Source)
         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at oracle.forms.engine.Main.initDesktop(Unknown Source)
         at oracle.forms.engine.Main.start(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Anyone having a clue ?
    thanks in advance !

    Sorry, I meant WEB-INF\lib in the WAR file inside my EAR.
    I put all the jar files in the WEB-INF\lib of the WAR file but it still does not work. I have to specify them in the classpaths and put the jar files in the domains\domain\lib directory
    I thought if you put it in the WEB-INF\lib then you don't have to put them in the classpath.
    Am I right?

  • I recently downloaded the new version of photoshop, but the application won't start.

    I recently downloaded Photoshop CC but the application won't start.

    What platform are you on. What is the URL you used to downloade.  Did you install what you downloaded.  Was what you downloaded Photoshop CC 2014 or the Creatice Cloud Desktop application that is used to download and install cloud applications like Photoshop CC 2014?

  • Java application won't start anymore

    Hi,
    I am using a Java Application (Protege) that was running just fine last week but today it just won’t start!
    When click-on it jumps about 3 time in the dock and stop. I was able to run the connected .jar file but most of the features are not available this way.
    I have not done anything special since last week beside Safari update (1.3.2.).
    Any help is greatly appreciated.
    Regards,
    Adrien
    iBook G4 (1Ghz)   Mac OS X (10.3.9)  

    Did you update Quicktime to 7.0.4? See if the following discussion seems relevant. There's a solution in the fourth message (reverting to Quicktime 7.0.1).
    http://discussions.apple.com/thread.jspa?messageID=1500443
    If that's the fix, the problem may be due to Protege using an outdated JavaApplicationLauncher. See
    http://www.opensubscriber.com/message/[email protected]/3072264.html
    --Davipo
    iMac G5   Mac OS X (10.3.9)  

  • ISE Application won't start after upgrading to 1.2

    Hi,
    we have a customer which is using a ISE-3315 Hardware appliance running 1.1.4.218 Patch 1. He needed to upgrade to 1.2 Patch 2 to support iOS7. There is no secondary appliance so this is a standalone deployment.
    We did the upgrade according to Cisco documents (backup, patching the current to the latest patch, performing the upgrade). This all seems to have successfully gone through. I can access the CLI via SSH but the application services are not going to start. I tried to stop and start the services (application stop ise/ application start ise) but I get the following message:
    ise/admin# application start ise
    Waiting up to 20 seconds for lock: APP_START to complete
    Database is still locked by lock: APP_START. Aborting. Please try it later
    % Error: Another ISE DB process (APP_START) is in progress, cannot perform Application Start at this time
    I waited for half a day but it stayed the same. Also commands like application configure or application config-reset do not work. restarting the ISE did not work aswell.
    Has anyone encountered this problem and solved it? My next Idea would be a clean re install of ISE 1.2 and then restoring the backup.
    regards,
    Patrick

    Hi Everyone
    The we have the same problem - it doesn't seems if Cisco cares to solve this obius prblem with new upgrade images on CCO...
    After 4 Hours of update of a stand-alone-VM the processes failed to start even waiting for 12 hours.
    The Update seems to have successfully gone through, we can access the CLI via SSH,
    but the application services are not going to start.
    We also tried to stop and start the services (application stop ise/ application start ise) but I get the following message:
    ise/admin# application start ise
    Waiting up to 20 seconds for lock: APP_START to complete
    Database is still locked by lock: APP_START. Aborting. Please try it later
    % Error: Another ISE DB process (APP_START) is in progress, cannot perform Application Start at this time
    I'ts really anoying with the poor software quality from Cisco!

  • X11 and X11 applications won't start

    I seem to be having a problem getting the X11 application, which I installed from the 'optional installs' package on the OS X installation DVD, working. I originally posted this elsewhere, but was advised to post it here, where people familiar with X11 might be able to help.
    I'll just quote what I posted elsewhere below, and hopefully someone can help.
    I seem to be having a problem with the X11 utility, which I installed off of the OS X DVD (from the 'optional installs' package), and a problem with The Gimp, both of which i think are probably related.
    Well I installed The Gimp a while ago, aswell as the X11 program, and both worked fine (you probably already know that The Gimp needs X11 to run). But at some point, it suddenly stopped working. I think it may have been after an update, but I really can't remember.
    The problem I was having with The Gimp is that it would go to start up, but just after the X11 icon appeared in the dock, the cursor would change to an X for a few seconds. The splash screen would come up, but it didn't even appear to have a background or progress bar or anything, and didn't do anything.
    At that point, just running X11 on it's own, or OpenOffice.org worked fine.
    Well recently, i've tried to run The Gimp again, and something different happens. The X11 icon comes up and starts bouncing in the dock, but after a few seconds, it closes again, and The Gimp tells me that it needs X11 to run (which I already have of course).
    When I try to run X11 on it's own, the same thing happens. The icon comes up in the dock, starts bouncing, then goes again.
    I've used the Console program in the Utilities folder, and both times, for both problems (when The Gimp had the funny splash screen and wouldn't start, when it wouldn't start up at all, and when X11 wouldn't start), I get the same few lines which might help, these are below:
    XFree86 Version 4.4.0 / X Window System
    (protocol Version 11, revision 0, vendor release 6600)
    _XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root
    [DRI] screen 0 installation complete
    Screen 0 added: 1280x1024 @ (0,0)
    Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list!
    Quitting XDarwin...
    So now, I have The Gimp that doesn't work, X11 that doesn't work, and OpenOffice.org doesn't work either (same problem where X11 quits), which is rather annoying, since I could do with using The Gimp.
    I hope that explains my problem a bit, and I hope someone can help me sort it out. Thanks in advance for any help
    Mac Mini   Mac OS X (10.4.3)   1.33 GHz Power PC G4, 512 MB RAM, 40 GB HD

    I have a similar problem that I described in a different forum, but was referred to this one and hope that someone can give me clue.
    My original message was:
    Hello,
    Brandnew here and new to the Mac environment (former Windows user), so excuse for anything dumb as it may follow.
    Wanting to install GIS software (Grass GIS) it appears to require X11 application. Found the refence in Machelp to the topic on the Apple site. However, it doesn't provide a link to the actual software, just states it is on the Install disc. Indeed, there is a package on the install disk (under Xcode Tools/Packages) called X11SDK.pkg. I thought that this might be the required app, but after installation of the Xcode tools the Grass software still doesn't function (start-up screen only and error message indicating that there is no X11 found).
    Thus the question is: how do I properly install the X11 app and where do I find the software?
    I hope that someone can help me out (as the AppleCare helpdesk doesn't seem to function today). Many thanks in advance.
    Bram

  • JWS application won't start

    Hello,
    I'm having trouble getting by Java Web Start to work. I'm trying to follow along with this tutorial: http://java.sun.com/docs/books/tutorial/deployment/webstart/deploying.html and I'm getting stuck at the point when the application is supposed to start. Instead, it gives me the error message:
    "Unable to launch the application"
    and under details --> Exception it says:
    "java.lang.ClassNotFoundException: HelloWorldJFrame
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
    at com.sun.javaws.Launcher.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)"
    For some reason, it can't find the HelloWorldJFrame class.
    I've got the following files all in the same folder: HelloWorldGUI.jar, helloworldgui.jnlp, and helloworldgui.html.
    Here's helloworldgui.jnlp:
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp>
         <information>
              <title>Hello World GUI</title>
              <vendor>Gibran Shah</vendor>
         </information>
         <resources>
              <jar href="HelloWorldGUI.jar"/>
         </resources>
         <application-desc main-class="HelloWorldJFrame"></application-desc>
    </jnlp>Here's HelloWorldJFrame.java, the file containing the class containing public static void main (String[]) (produced by NetBeans):
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    * HelloWorldJFrame.java
    * Created on Jun 21, 2010, 11:47:12 AM
    * @author gibran
    public class HelloWorldJFrame extends javax.swing.JFrame {
        /** Creates new form HelloWorldJFrame */
        public HelloWorldJFrame() {
            initComponents();
        /** 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.
        @SuppressWarnings("unchecked")
        // //GEN-BEGIN:initComponents
        private void initComponents() {
            jLabel1 = new javax.swing.JLabel();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            setTitle("Hello World GUI");
            jLabel1.setText("Hello World");
            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jLabel1)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jLabel1)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            pack();
        }// //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 HelloWorldJFrame().setVisible(true);
        // Variables declaration - do not modify//GEN-BEGIN:variables
        private javax.swing.JLabel jLabel1;
        // End of variables declaration//GEN-END:variables
    }I know it works because I compiled it and ran it from a command prompt. It's just a simple GUI (JFrame) with a label that says "Hello World".
    Finally, here's my HTML file:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <title>Hello World GUI</title>
    </head>
    <body>
    <script src="http://www.java.com/js/deployJava.js"></script>
    <script>
        // using JavaScript to get location of JNLP file relative to HTML page
            var dir = location.href.substring(0, location.href.lastIndexOf('/')+1);
            var url = dir + "helloworldgui.jnlp";
            deployJava.createWebStartLaunchButton(url, '1.6.0');
    </script>
    <!-- if javascript is not enabled, use this: -->
    <!--
    <a href="/absolute path to JNLP file/dynamictree-webstart.jnlp">Launch Notepad Application</a>
    -->
    </body>
    </html>The jar file was made (as instructed in the above tutorial) from the compiled file HelloWorldJFrame.class and possibly HelloWorldJFrame$1.class (though I have no idea what this last one is).
    I've searched online for a solution to this problem to no avail. Does anyone see where I went wrong?
    Edited by: gib65 on Jun 21, 2010 2:32 PM
    Edited by: gib65 on Jun 21, 2010 2:34 PM

    Actually, the problem was that I had to make the class files part of a package and to specify that package in the application-desc tag. The question that leaves me with is whether and how it's possible to do it without packaging.
    I went back to unpackaging and tried your suggestion. There's some difficulty however as it is not running under a domain name, it's just sitting on my desktop. So I tried:
    <jnlp spec="1.0+" codebase="C:\Documents and Settings\gibran.GIBCOMPUTER\Desktop\java\JavaWS\" href="helloworldgui.jnlp">
    and variants thereof... none of which worked. It tells me:
    The field <jnlp>codebase has an invalid value: C:\Documents...
    Anything special I have to do if its running on my desktop?

  • Sportstracker application won't start on N73

    Hi - i've recently got hold of a BT GPS unit, and have been enjoying playing with Maps and navigation on my N73
    However, i've had no luck at all with Sportstracker - i've installed it over air, via BT and via a cable - before and after updating the firmware - but the fault I have is always the same... clicking on the Sportstracker icon, it appears to think about starting up, but then after about half a second the screen reverts back to the Applications menu.
    Like I said - i've tried various installs, and updating firmware... what am i missing: does anyone have any tips and advice?
    thanks
    john

    It is quite obvious why Nokia doesn´t provide earlier versions...they remove bugs from versions and add new features, and people still complain about the program beacuse they are using old buggy versions... If the new versions don´t work on your model, how about reporting it the developers. They surely are interested in fixing it!
    I´ve had a look at AFTRACK and I couldn´t see why it is so much better than Sportstracker. Maybe you could be a bit more specific about that. Thanks!
    By clicking the "Kudos!" or the "Solution?" button on the right you can say "Thank You" and you´ll show the author and others that the post is useful.
    The day we stop improving is the day we stop being good.

  • Application won`t start - starts when logged in as another user

    An application created by Unity doesn`t start. When I double click (or right mouse click and choose `open`) nothing happens. However, when I log in as another user, or when I try to run the same program from a flash drive, it works. I tried a lot, including repairing permissions, but nothing helped.
    Thanks in advance !

    Try logging into your user while holding down the shift key on your keyboard, to supress any startup items that may be interfering with your program.
    If that does not do it, look for a preference file in you user folder by choosing the Go menu from the Finder and selecting Go to Folder and enter ~/Library/Preferences and checking for files having to do with your application. If there are any, move them to your desktop and try again.
    If that does not fix it, move them back, replacing the new ones that will be built. Also, if your program uses any data files or libraries when started up, try removing those. Again, if not fixed, put them back.

  • Illustrator CC application won't start

    Everytime we try to start AI in CC the application stops right after the splash screen!?

    Hi Straatnaambord,
    I have tried that and a lot of more things, and the solution was to reinstall the wacom plugin. Those error lines appear in the log, but Adobe couldn't see it although it was very clear in the first paragraph of the log.
    So if the problem persist, try to reinstall the wacom plugin.

  • IWork '08 applications won't start on my Mac Pro, 10.5.1

    I installed iWork '08 (5-person family license); install seemed to go well. None of the three iWork '08 applications opens. I don't even get to the "please enter your license number" screen: a few bounces and then immediate premature termination. None of my other applications appears to be affected. I'm quite confident my disk drive directory is uncorrupted.
    I tried all of the following without benefit:
    1. Restarting computer
    2. Restarting in Safe mode
    3. Reinstalling iWork '08
    4. Updating through Software Update
    Curiously, I also have a demo copy of iWork '06. Keynote shows the same immediate termination behavior, but Pages opens normally and shows me the appropriate "do you want to use this in demo mode" startup screen.
    I installed iWork '08 and ran it successfully on my wife's Power PC (dual 2 GHz) running 10.4.11, using the same source disk. It also works without a hitch on my 24" white Intel iMac running 10.5.1.
    Here's a dump from system.log on the Mac Pro:
    Dec 25 16:01:14 Macintosh Keynote754: * Assertion failure in -NSMenu itemAtIndex:, /SourceCache/AppKit/AppKit-949/Menus.subproj/NSMenu.m:819
    Dec 25 16:01:14 Macintosh Keynote754: An uncaught exception was raised
    Dec 25 16:01:15 Macintosh Keynote754: Exception caught by top level: NSInternalInconsistencyException : Invalid parameter not satisfying: (index >= 0) && (index < (_itemArray ? CFArrayGetCount((CFArrayRef)_itemArray) : 0))
    Dec 25 16:01:15 Macintosh Keynote754: * Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: (index >= 0) && (index < (_itemArray ? CFArrayGetCount((CFArrayRef)_itemArray) : 0))'
    Dec 25 16:01:15 Macintosh Keynote754: Stack: (\n 2463965803,\n 2522640539,\n 2463965259,\n 2467922148,\n 2496296467,\n 2499741030,\n 2501968700,\n 16995,\n 2464025205,\n 2496161134,\n 2496120732,\n 2496119037,\n 2496118080,\n 2496117886,\n 15599,\n 15493,\n 315990,\n 315773\n)

    Additional debugging information: creating a dummy new account on the Mac Pro allows me to use iWork. So there's something specific to my main user account -- that DOESN'T turn off in Safe mode -- that's interfering with starting iWork but doesn't mess up other programs. Man, I REALLY don't want to have to dump my main user Library and put it back piece by piece until I find the offending code. Any suggestions?

  • ITunes downloaded applications won't start on my iphone

    Hi there, I have updated my iphone to the new version of 3.1.2 and I have noticed that any applications downloaded from itunes, whether it was through my pc or the iphone, do not start on my device. are there any suggestions on what I should do?

    Have you rebooted your device by holding the power button and swiping the top red slider to shut down first?
    I've seen small instances of that where the app crashes cause this...
    Otherwise, I'd suggest that you go back into iTunes and do a re-restore process on the phone again... Somehow something didn't occur accurately if the reboot doesn't help.

  • Some of the CC applications won't start

    I've installed full group of CC applications on my computer (Win8-64 bit)-
    When i launch some apps as premiere, after effects, audition and more all work prefectly
    when i double click on some other as dreamweaver or photoshop nothing happens, no crash, no error messages, simply nothing
    I've upgraded from CS6 and then disinstalled both CS6 and CC and reinstalled plan CC, nothing change.
    Ideas?

    Hi Roberto,
    Please try to run the software's as Administrator, right click on the Photoshop program in start menu, click on properties and you will Photoshop has an option with a check mark to run as Administrator. Click check mark and launch  the software again.
    If that doesn't work then Turn on the hidden admin and try to launch there, please see the steps to turn on and off http://www.howtogeek.com/howto/windows-vista/enable-the-hidden-administrator-account-on-wi ndows-vista/
    Thanks!
    Ankit

  • DRM 11.1.2.1 application won't start

    Hi,
    I just recently installed DRM 11.1.2.1 and trying to start an application. I've successfully created the repository. However I noticed that no application was showing when trying to access through the Web client. Here's the error
    Oracle.DataAccess.Client.OracleException ORA-12541: TNS:no listener at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure, Boolean bCheck)
    at Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, Object src)
    at Oracle.DataAccess.Client.OracleConnection.Open()
    at Oracle.Drm.DalFramework.Provider.ProviderAdapterOdp.InitializeConnection(DbConnection connection)
    at Oracle.Drm.DalFramework.DatabaseContext.CreateConnection()
    at Oracle.Drm.DalFramework.DatabaseContext.get_Connection()
    at Oracle.Drm.DalFramework.DataAccessLayer.TestConnection()
    at Oracle.Drm.DalFramework.DataAccessLayer.RetrieveVersion()
    at Oracle.Drm.DalFramework.DrmDataAccessLayer.Initialize(Boolean ignoreVersion)
    at Oracle.Drm.DalFramework.DrmDataAccessLayer..ctor(DalConnectionInfo settings)
    at Oracle.Drm.Global.Initialize(Boolean readOnly)
    at Oracle.Drm.Engine.Host.Program.Main(String[] args)
    Has anyone seen this before? Thanks.
    Regards,
    Gerd

    Just try restarting the services in the console, this may help

Maybe you are looking for

  • NMI: Parity Check / Memory Parity Errors on Lenovo T500 2082-58M running Windows XP.

    NMI: Parity Check / Memory Parity Errors are occurring on five out of five Lenovo T500 laptops 2082-58M tested. I can get the error to re-occur consistently by installing IBM Director Client version 5.20 or 5.23, taking remote control and then within

  • SharePoint 2007 (WSS 3.0) migration to SharePoint Foundation 2013

    Hi I have a requirement to migrate a SharePoint 2007 (WSS 3.0) farm to a SharePoint Foundation 2013 farm. The WSS 3.0 farm has SQL Server 2005 Standard running so no restrictions on the size of the content database. The SharePoint Foundation 2010 and

  • Adobe Application Manager Update Error U44M1P7

    The application manager gives me a error U44M1P7 so I tried updates from the site but now I got a updates could not be applied message . This is for Bridge patch 5.0.2, Flash Pro CS6 update 2, FireworkS CS6 , Can't even Find the new Photoshop update

  • In production order checking the errors

    Hi Experts, In production order i have created two new tabs. So if all the errors is rectified means while adding some errors while come"Product Number is missing" "dud date is missing" so if all the condition satisfied means all errors is cleared th

  • AD groups renamed - not resolving correctly in SP 2010

    HI All, a colleague changed a some AD groups and now they are not displayed correctly in SP 2010, rather picks up both names. How do I solve this please?