App won't run outside of the netbeans ide

I created a very simple app using the netbeans ide I made a jframe that when the button is pressed displays text, it works when I select "run file" however when it is built into a .jar it doesn't run, I think it might be because the main is empty and the jframe contains the actual code, I'm lost as I'm a complete noob

it works when I select "run file" however when it is built into a .jar it doesn't run, I think it might be because the main is empty and the jframe contains the actual codeDo this:
In the "projects" tree structure, right click on the current project node which contains the jframe. Select 'Properties' , a dialog would show, select 'Run' in that dialog, you can find a field 'Main class', check whether it shows the correct class, if not click the Browse button in front of it and select the correct class i.e the jframe class.
Now when this is done, right click the Project node again and select 'Build' , then after 'building' right click and select 'Run', if the project runs correctly everything is alright.
Now go to the place where your project is actually saved, go to 'dist' folder and double click the jar file or run the jar through cmd, it would work.... and don't copy the jar file somewhere else, if you want to run it somewhere else, copy the whole 'dist' folder and run the jar from there.... thats what previous reply recommended.
Thanks!

Similar Messages

  • HT201210 Can the OS for an iPod Touch be updated beyond 3.1.3?  iTunes tells me that this is the latest software but many apps won't run on this older os.

    Can the OS for an iPod Touch be updated beyond 3.1.3?  iTunes tells me that this is the latest software but many apps won't run on this older os.

    If you have a 1G (first generation) iPod touch then it can only go to iOS 3.1.3. To identify yours:
    Identifying iPod models
    If you need a higher iOS, you will have to get a newer model iPod.

  • HT4314 how do I turn off a game after playing so the app won't run down my battery?

    How do I turn off a game after playing it so the app won't run down the battery. This has happened 2x and I have had to reset my phone.

    To completely close an app (though a lot of apps don't remain active when you switch into a different app or go to the homescreen) : from the home screen (i.e. not with the app that you want to close 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.

  • My Silverlight app won't run in debug on 3.6.6 or 4 beta. I managed to find 3.5 and my app works. No clue why.

    My Silverlight 4 app won't run in debug on 3.6.6 or 4 beta. I managed to find 3.5 and my app works. No clue why. Sorry, my app is not on the web. I could zip up the whole project and send it to you if you're interested. It doesn't do much so far. Just started.
    == URL of affected sites ==
    http://

    Hi Tobbi,
    SL version 4. Reinstalled many times. Running Windows 7.
    Not sure exactly what version I was running prior to 3.6.6.
    Tried version 4 beta - didn't work. Found 3.5 and it works.
    When I run, I get the white screen with the dots going around in a circle forever (Silverlight loading thing). I could send you a screen shot, but I really don't want to go back to 3.6.6.
    I set a break point at the earliest possible place in my code and it never gets there.
    Thanks

  • Many apps won't run any longer on yosemite

    All of a sudden on my iMac with Yosemite, many apps won't run, Word, PhotoShop Elements, TrueCrypt .... most are not
    64 bit, but what happened with update it the last week that would cause this

    If you have a 1G (first generation) iPod touch then it can only go to iOS 3.1.3. To identify yours:
    Identifying iPod models
    If you need a higher iOS, you will have to get a newer model iPod.

  • Automator app won't run from double-click

    automator app won't run from double-click in finder or from alert from ical. Will only run if I open in automator editor.
    I found a solution on my own. I opened activity monitor and all the automator apps that I run daily were hanging up and the auromator launch was hanging up. I force quit them from the activity monitor. Now it works again.

    I might have gotten there eventually on my own, but I suspect finding your post saved me a lot of work. Thanks for posting your solution.

  • In the middle of downloading an update for garage band and lost the connection, now the app won't open or finish the download.  Can I reinstall the app without losing my music?

    In the middle of downloading an update for garage band and lost the connection, now the app won't open or finish the download.  Can I reinstall the app without losing my music?

    The obvious way to resolve this on a computer would be to uninstall the app, then reinstall it, however on an iOS device that would cause all the data assoicated with the app to be thrown away.
    Make sure your iTunes library has the latest updates for all your apps, then backup and restore the device. This should pull back a fresh copy of the app from your iTunes library and then give it the data from your device backup.
    tt2

  • I want to buy a book I created in iPhoto.  I want to leave blank some spaces in the photo layout, but the app won't let me "buy the book" unless all the layout spaces are filled.

    I want to buy a book I created in iPhoto.  I want to leave blank some spaces in the photo layout, but the app won't let me "buy the book" unless all the layout spaces are filled.

    That is correct - you must have a photo in every photo frame to order
    LN

  • ABC app says I am outside of the USA

    I have read other posts that have shown the abc app does not work outside of the USA. However, I bought a refurbished unit from the apple store. I live in the USA but am still getting this message. Any thoughts? Thanks

    By any chance, is your itunes account based off a non-USA credit card? That could be it ... if not, I'd first try rebooting your iPad, and/or deleting and reinstalling the ABC app.

  • Sun Studio (12,1) is unable to find a supported version of the Netbeans IDE

    Hi all,
    We're working on upgrading both the hardware and software on our application currently, and part of this involves upgrading our compiler to Sun Studio 12.1. I downloaded
    SunStudio12u1-SunOS-SPARC-pkgs-ML.tar.bz2
    from the Sun website and we installed it into the following location on our server:
    /opt/compiler/sunstudio12.1
    I successfully compiled all my code using the compiler, however, when I try to launch the debugger by typing ./sunstudio in the 'bin' directory, I get the following error:
    {opt/compiler/sunstudio12.1/bin}./sunstudio
    Sun Studio is unable to find a supported version of the NetBeans IDE.
    Sun Studio requires a NetBeans IDE version 6.5.1 with NetBeans C/C++ module (cnd
    2) enabled.
    Sun Studio looks for a valid NetBeans IDE installation in the following order:
    1) Location specified with --netbeanshome command line option
    2) At /opt/compiler/sunstudio12.1/netbeans
    I have seen references to executing 'prepare_system' on forums while I was trying to investigate this, but when our sys admin folks try to execute the command, it does not work (command not found). They've mentioned that they expected a prepare_system script in the directory where we untarred the downloaded sun studio tarfile, but it is not there:
    drwxrwxr-x 4 59001 staff 1024 Aug 20 2009 .
    drwxr-xr-x 3 yu12 lifecad 1024 Jul 2 09:48 ..
    drwxrwxr-x 4 59001 staff 1024 Aug 17 2009 LEGAL
    -rw-rw-r-- 1 59001 staff 3985 Aug 19 2009 SS12u1_README-pkgs.txt
    -rw-r--r-- 1 59001 staff 5598 Aug 20 2009 SS12u1_README-pkgs_ja.html
    -rw-r--r-- 1 59001 staff 4155 Aug 20 2009 SS12u1_README-pkgs_zh.html
    -rwxrwxr-x 1 59001 staff 517979136 Aug 6 2009 SunStudio12u1-SunOS-SPARC-pkgs.sh
    -rwxrwxr-x 1 59001 staff 11814 Aug 6 2009 install_patches.sh
    drwxrwxr-x 5 59001 staff 96 Aug 17 2009 patches
    I can see a netbeans directory was created as part of the install, but I'm not sure why sun studio thinks netbeans is not available (afraid my knowledge about netbeans is practically non existent):
    {opt/compiler/sunstudio12.1/netbeans}ls -l
    total 6062
    drwxr-x--- 2 root root 512 Apr 5 11:14 bin
    drwxr-x--- 7 root root 512 Apr 5 11:14 cnd2
    -rw-rw-r-- 1 root root 5254 Mar 5 2009 CREDITS_ja.html
    -rw-rw-r-- 1 root root 5175 Mar 5 2009 CREDITS_pt_BR.html
    -rw-rw-r-- 1 root root 4908 Mar 5 2009 CREDITS_zh_CN.html
    -rw-rw-r-- 1 root root 5434 Mar 5 2009 CREDITS.html
    -rw-rw-r-- 1 root root 1717 Mar 5 2009 DISTRIBUTION.txt
    -rw-rw-r-- 1 root root 0 Aug 6 2009 dummy
    drwxr-x--- 2 root root 512 Apr 5 11:14 etc
    drwxr-x--- 7 root root 512 Apr 5 11:14 gsf1
    drwxr-x--- 6 root root 512 Apr 5 11:14 ide10
    -rw-rw-r-- 1 root root 1845 Mar 5 2009 LEGALNOTICE.txt
    -rw-rw-r-- 1 root root 64275 Mar 5 2009 LICENSE.txt
    -rw-rw-r-- 1 root root 37141 Mar 5 2009 moduleCluster.properties
    drwxr-x--- 7 root root 512 Apr 5 11:14 nb6.5
    -rw-rw-r-- 1 root root 15822 Mar 5 2009 netbeans.css
    drwxr-x--- 8 root root 512 Apr 5 11:14 platform9
    -rw-rw-r-- 1 root root 6141 Mar 5 2009 README_ja.html
    -rw-rw-r-- 1 root root 5692 Mar 5 2009 README_pt_BR.html
    -rw-rw-r-- 1 root root 5122 Mar 5 2009 README_zh_CN.html
    -rw-rw-r-- 1 root root 5155 Mar 5 2009 README.html
    -rw-rw-r-- 1 root root 2913280 Mar 5 2009 THIRDPARTYLICENSE.txt
    drwxr-x--- 5 root root 512 Apr 5 11:14 websvccommon1
    Our server details are:
    {opt/compiler}uname -a
    SunOS a03714 5.10 Generic_142900-03 sun4v sparc SUNW,T5440
    Any advice appreciated on how to get the debugger working. Ideally, I'd prefer not to uninstall / reinstall if at all possible as we're about to start system testing our executables, and I think a reinstall would require more unit teting and delays to our project (yikes!). But any input would be appreciated here.
    Thanks,
    Brendan.

    Hi David,
    First off - thanks for the response. I do have some follow up questions if you don't mind though:
    1. When you say the install is corrupted, do you suspect
    - the file I downloaded from the website either was corrupted, or was not the correct file for my platform
    - the procedure used to install the software was incorrect
    - something else
    2. Is there a logfile that the sun studio install creates which would indicate an error during the installation procedure? I'm sure our admins who performed the install would have shouted if an error was logged... but on the offchance that the installation does not 'shout loudly' for some errors, I'd like to see a log of the error. At a minimum, I'd expect it to say why the install failed, and what we need to modify to ensure a successful install next time 'round.
    3. I successfully compiled my code using the C compiler from the install. My unit tests also look good... does this suggest that the install was at least a partial success, and would you suspect that my recompiled executables are reliable, despite the fact that I cannot launch the IDE?
    4. Today, one of our admins telnetted to our unix server - not via exceed by the way, but he did try the following test:
    - set his display env variable (he knew he would not get a display however)
    - executed the sunstudio script
    He did not get the netbeans error, and the process appeared to be running (as I mentioned, without a display) until he killed it. I've asked if they can repeat the test using an exceed session. I thought there may be something on his $PATH that I did not have - unfortunately this was not the case (although, he may have access as 'root' to something that I require to launch the IDE). My question is, would you expect this behaviour if the install was corrupted?
    Let me know what you think.
    Thanks,
    Brendan.

  • Sun Studio is unable to find a supported version of the NetBeans IDE at the

    I'm following the system install instructions in the Grid Compute Utility guide, Appendix A "Building a Local Development Environment" and am getting stuck on step 4, installing sunstudio. I'm running Solaris 5.10 on x86 and can run netbeans IDE without problem. Here is some info, I'm not sure what other system info is relevant:
    bash-3.00# which netbeans
    /opt/netbeans-5.5.1/bin/netbeans
    bash-3.00# which sunstudio
    /usr/bin/sunstudio
    bash-3.00# sunstudio
    Validating NetBeans IDE at: "/opt/SUNWspro/../netbeans-5.5.1"
    Sun Studio is unable to find a supported version of the NetBeans IDE at the specified location.
    Sun Studio requires a NetBeans IDE version 5.5.1 with NetBeans C/C++ Development Pack version 5.5.1
    installed. Sun Studio looks for a valid NetBeans IDE installation in the following order:
    1) Location specified with --netbeanshome command line option
    2) At /opt/netbeans-5.5.1 location, if exists
    3) At /opt/SUNWspro/../netbeans-5.5.1 location, if exists
    4) At /opt/SUNWspro/../../netbeans-5.5.1 location, if exists
    Please run the System Preparation Tool (prepare_system), if available, to set up your environment.
    Any help!?

    Did you install NetBeans separately or let Sun Studio installer do it? The latter usually results in working configuration.
    I think that NetBeans installation simply doesn't have c++ pack; you can install one following usual NetBeans modules installation path and then re-try starting Sun Studio.
    Another option is to uninstall NetBeans and re-install Sun Studio using its installer, which should set up NetBeans properly.

  • Building AIR Applications with the NetBeans IDE

    Hello Everyone,
    Here's a link to screencast showing you how to Build AIR
    Applications with the NetBeans IDE.
    http://xwisdomhtml.com/netbeans-and-air.html

    Neat!

  • I have a 4g touch. I updated ibook in itunes and now, every time I sync, I get the message that the app won't run in os6. Is there any way I can revert the app in itunes so I have the latest version that will work with OS6?

    I recently updated ibook in my Itunes.  Now, every time I sync, I get the message that it won't update the ipod as ibook won't run in OS6. Is there any way I can revert the ibook app in itunes so it quits trying to install the current ibook app. I am trying to stop getting the warning message. I am also concerned if I ever have to reinstall the app.

    Delete the app from the iTunes library on your computer and then transfer the version from iPod to computer by:
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer

  • I've downloaded Itunes, but my computer says that the app won't run on my PC. What do I do?

    I just recently got a new laptop with Windows 8. However after I downloaded Itunes I clicked on the program and I get a message that says that the app can not run on this PC. I've tried running the  troubleshoot compadibility multiple times and it still does not work. I've tried downloading the newest version and the one before that, and neither are working. What do I do?

    I get an error message saying that this app can't run on my pc and that I need to find a version that will work through my administrator.
    That suggests that the installer is getting damaged during the download.
    I'd first try downloading an installer from the Apple website using a different web browser:
    http://www.apple.com/itunes/download/
    If you use Firefox instead of IE for the download (or vice versa), do you get a working installer?

  • How do I access my podcasts when the official podcast app won't run on my iPod?

    I am trying to load new episodes of a podcast onto my iPod, and I cannot.  It tells me I have to use the podcast app, but I am unable to install it.  It needs OS 7, but my iPod appears to not support that OS- attempts to update tell me that I have the most up-to-date OS for my device, which is OS 6.1.6.  Is there a way around this incredibly frustrating situation, or has this change effectively rendered podcasts completely inaccessible to my device?

    Download the iOS 6 compatible version by:
    Starting when iOS 7 was released, Apple now allows downloading the last compatible version of some apps (iOS 4.2.1 and later only)
    App Store: Downloading Older Versions of Apps on iOS - Apple Club
    App Store: Install the latest compatible version of an app
    You first have to download the non-compatible version on your computer. Then when you try to purchase the version on your iPod you will be offered a compatible version if one exists.

Maybe you are looking for

  • Remote front panels

    when I use remote front panels in LAbVIew 6.1, The Web Server and the client interact using DataSocket Technology through the ActiveX controls embebed in the web page?

  • IPhoto has become "unreadable"!!!!

    Hi all, My iPhoto has suddenly stopped "working", how do I get it back to normal and keep all my photos? I have followed the instructions given by Apple but it hasn't worked. It says i can try restoring my library from a backup and I don't know how t

  • Getting error when installing addons on production

    Hi all, I have created addons setups using "sapb1addon installer.NET wizard"  when i intalled its, on development server its working fine same thing when i am trying to install on production server i am getting below error msg plz solve it as soon as

  • Download updates

    I received a text message that said there was a new version of Blackberry to download to my phone.  Blackberry 4.5.  So I hooked my phone to my computer to start the process.  Half way through there was a message that said the download had encounter

  • Error While Doing LSMW For CL20N.

    Hi Experts, Am creating a LSMW For CL20N. While doing tht through the Batch Input Method its throwing a Runtime error message DYNPRO-NOT-FOUND. If any one know this please  help me to sort out this problem.. With Cheers, Sumodh.P