JAR suddenly not working on double click...

I have a program that I have been working on for the past few months. I want to run it from the desktop in the form of a .jar file. I use netbeans to create the jar file. In previous versions, this has worked very well. With the most recent build, I have problems running it when clicking on it.
When the .jar is within the project's folder it is possible to run by double clicking. When I take that same file and move it anywhere else, for example, the desktop, it will not run on double click. It forms a javaw.exe process and hangs. I can run the newly moved jar from the command line with "java -jar 'path'", but not with the double click I want. I have tried this on several computers using the same version of Java..
This really puzzles me cause it has worked as intended for a few months now, but not anymore.. If anyone has any suggestions of why this might be happening, it would be very much appreciated as I really need this thing to run like I hoped it would
Thanks!

no, there is a bug in your code that is causing this strange behavior. What people here are suggesting is that this bug is probably causing an exception, but you are not handling this exception correctly, probably catching it but never doing even a printStackTrace(). This causes the application to fail without you knowing why.
My suggestion is to run the code from an IDE so you can step through it in debug mode, and see where it is going wrong.

Similar Messages

  • HT1222 My mouse pointer in finder is not working by double clicking on the application.I have to double click and select open for opening the application.Can you suggest me some settings to fix this problem?

    My mouse pointer in finder is not working by double clicking on the application.I have to double click and select open for opening the application.Can you suggest me some settings to fix this problem?

    Hi,
    Try this ... reboot your Mac and see if double clicking works again.
    Also, you can just select the Application you like to open and hold down the Command+O to open.
    Also, did you check your setting for the mouse in system preferences.
    Dimaxum

  • Jar file not executing on double-click

    Hello,
    I have a .jar file that I would really like to execute using a double-click in win xp.
    I can execute the jar file witha java -jar command on the command prompt and the program runs but when double-clicking i get the error: cannot find the main class: program will exit
    I had win rar installed on my computer which changed itself to the default app to open jar files.
    So this is what I've tried
    I tried modifying the registry command to run java -jar, javaw -jar but they don't work.
    I have created several manifest.mf files with this in them
    Manifest-Version: 1.0
    Created-By: 1.4.2_07 (Sun Microsystems Inc.)
    Main-Class: MyClass
    I know that a carraige return needs to be at the end though I don't know really how to check for it (I assume its there because I have a few extra lines after the last text peice). I've read through some other threads but nothing seems to work. It's getting really annoying always having to go through the runline. Thanks for the help.

    I don't understand why Netbeans has such a hard time creating working jar's for applications. This is the second time I've written an application that just will not work when trying to execute using the jar. The last time this happened I used Eclipse and imported everything (including the layout) and Eclipse got it working the first time.
    This time, I thought I'd go back to Netbeans since they released a newer version 4.0 (I haven't gone to 4.1 yet). Apparently nothing has changed as my application, once again will not run from the jar. What's the deal with Netbeans?
    I think I'll, once again bring my project into Eclipse and have that make the jar.
    Kurt

  • All of all of a  sudden I need to double click an icon to make it work.  What happened

    All of all of a  sudden I need to double click an icon to make it work.  What happened and how do I fix it?

    Triple tap the home button to disable the VoiceOver option.

  • Events will not open with double click/double click not working.

    Have just upgraded to iPhoto'11 and finding it a pain to use after previous iPhoto.  Events will not open with double click (even though highlighted in yellow) and photos will not open with double click or videos play.  How can we fix this please?

    That sounds very like an issue with your mouse/trackpad and not iPhoto. Go to your SystemPreferences and chck the speed you've set for double clicking
    Regards
    TD

  • Help! My MacBook is all of a sudden not working. I can login to my account but as soon as I do that the screen goes completely white. I can change the volume and I have a mouse but that is it. I've tried safe starting my computer and that doesn't work.

    Help! My MacBook is all of a sudden not working past the login page. A white screen comes up that I cannot get rid of. I attempted a safe start up and that failed as well. It's a white screen where I have a mouse and when I click the volume buttons I can hear it working but nothing else just white. Please help.

    Something you can try is resetting it all Settings > General > Reset > Reset all settings. Or go to Settings > Store & sign out & log back in. Another thing you can do is restore your ipod. This has happened to me but the only thing i did was that i created a new account but try doing the things above i just told you. :)

  • ITunes on my iPhone 5 is suddenly not working.

    iTunes on my iPhone 5 is suddenly not working. Updated to IOS8.0 (not running 8.0.1) a few days go but was fine up until today. Now, when attempting to play a list of songs (artist, playlist or album) it rapidly shuffles through all of them without playing and then it displays a red square next to songs and won't play them at all. It seems to sync with my MBP but then new playlists I've created don't appear on the iPhone even though iTunes on the MBP has them appearing when I click the "on my iPhone tab. Tried the obvious quit and restart approach. No effect. Does anyone have any ideas?

    It's not a hardware problem. The same exact thing just happened to me. My husband reset all settings, not erase all content and settings, after the phone started back up, everything worked like normal again. You just have to redo your settings.
    General>Reset>Reset all settings
    Hope this helps you!

  • HT201365 How do you close Apps in iOS 7? It doesn't work by double clicking power button.

    How do you close Apps in iOS 7? It doesn't work by double clicking power button.

    Double tap the Home button, then swipe upwards on the App Preview (not the App Icon)

  • Rules set in mail are suddenly not working?

    I had my rules set in mail and now they are suddenly not working, what to do to fix?

    I'm having the same problem, but not with all messages. Only a few slip through. However, when I right-click and Apply Rules to individual emails, the rule suddenly works.
    What I'd like to work (and it doesn't), is to be able to select-all emails in inbox and then right-click, Apply Rules. But this never works. AND it'd be must faster than doing it individually. Thx!

  • My 4s suddenly tells me to double click for all functions. How do I revert to normal function please?

    My 4s suddenly tells me to double click for all functions. How do I revert to normal functions please?

    https://sites.google.com/site/appleclubfhs/support/advice-and-articles/voiceover -on-off
    (Note that my links to other pages may promote my organization, and this should not be taken as an endorsement by Apple)

  • Why does Acrobat suddenly not work on my Mac (won't open pdf files from a web page), yet I can open them from my iPhone? Everything worked fine yesteray.

    Hello:
    I have a Mac running OS 10.8.5 and I use Acrobat Pro and Acrobat Reader. Today for some reason, any time I try and access a pdf file from a web page, it won't open. I get a blank window. PDF files already on my computer open fine and I can create PDF files from Word docs, but I can't download or view any pdf file from any web page. Strangely, PDF files on web pages open just fine on my iPhone.
    I checked that both my copy of Acrobat Pro and Acrobat Reader are up-to-date. They are.
    I checked that my copy of Firefox is up-to-date. It is. And nothing changed with Firefox within the last 24 hours.
    I am a humble computer end-user. I am baffled as to why this would suddenly not work. I have not changed any settings, etc. Any help or suggestions would be greatly appreciated.

    Thank you.
    I checked your instructions you sent and as far as I can tell all of my settings, etc for Firefox (plugin updates and preferences) are correct but I am having the same problem.
    However, everything works in Safari. I don't have time to attempt to diagnose why Firefox no longer works. I will just switch to Safari.
    Many thanks.
    Charles
    Charles Deister
    (503) 949-5762
    [email protected]<applewebdata://81CB4171-226F-49DF-BD59-A38A7360B3FB/[email protected]>
            PO Box 5032
         Salem, OR 97304
    http://www.pilotstrat.com<http://www.pilotstrat.com/>
    This transmission (including any attachments) may contain confidential information, privileged material, or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.

  • Private Browsing function is suddenly not working. Error message :"The URL is not valid and cannot be loaded." How can I repair?

    Private Browsing function is suddenly not working. Error message :"The URL is not valid and cannot be loaded."
    How can I fix it?

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • IChat video suddenly not working

    Can anyone help? I'm using iChat 4.0.8 on an almost brand new MacBook Pro. The video worked perfectly fine with my parents, and then suddenly stopped working when we moved. We're still using a wireless connection with an airport extreme. Funny thing is, the video works fine with my husband's MacBook Pro, and my brother who is in California. Why would it suddenly not work with my parents when computers haven't changed?
    please help!

    Did the Modem change ?
    10:49 PM Monday; October 19, 2009
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

  • Apple TV suddenly not working

    My Apple TV is suddenly not working. I have tried the trouble shooting suggestions of restarting, upgrading the system, checking everything etc,  but to no avail. When I do a system test, all is ok, but I just cannot download /view my purchase - I get a constant 'ready in one minute' message with a wait symbol. There doesn't seem to be an issue with movies I have already purchased. I tried apple online support and a 'helpful support' person didn't respond to my query in 'under 2minutes' - or at all for that matter. Of course no problem with the billing - my account hash been charged for a movie I can't watch. All very frustrating! We have had Apple TV for over 18 months with no problems.

    Welcome to the Apple community.
    So is it just one movie.

  • AppleTv2:  HDCP suddenly not working on netflix after update

    I have had a working AppleTV2 for about a year and have been using netflix to stream movies.  After most recent update I can no longer stream due to HDCP error.  There are been no changes to the hardware (cables, TV, power, etc.)  This can only point to the update.  I tried to do a restore from Mac to the most recent update.  I took it into the genius bar and they tried to do the same thing.  No change, they only offer the $69 Service replacement.  I have tried changing the outputs, the hdmi cable and powering up in a certain manner.  None of these work?  Why is this suddenly not working?
    Thanks for any help.

    Interesting (albeit, odd) addition to this issue --
    on my work system (dual G5, decked out, 23" Cinema), the same issue started to happen after the QT upgrade... however in my situation, the movie would load, but then just sit there, frozen.
    The first time I saw this, I started to move my mouse across the web page, and noticed that every time the pointer would roll over a URL link or any other rollover type of object within the browser window (e.g., a link or even a tab or bookmark shortcut in the Safari toolbar) the movie would suddenly start and stop, but just for a fraction of a second. But yet, if I just leave my mouse sitting on top of the URL or rollover object, it does nothing. It appears to be directly related to the action of roll-on or roll-out from other objects on the page, or within the overall window.
    So basically, if I take my mouse and move it ridiculously fast back and forth over any one of these rollover items, the movie will play for a fraction of a second each time the pointer passes over the object and makes it highlight... something to the effect of watching a flip-book animation that stutters along.
    Very bizarre -- not sure what happened with the update, but hoping that there is a patch released soon. It would appear that it's conflicting with other objects within the window, or it's waiting for some action on another rollover-type of item that is loaded within the overall window.
    G4 Cube   Mac OS X (10.4)   Maxxed out.

Maybe you are looking for