Executable Jar? - Googled for hours, tried many solns, still doesn't work!
I am fairly new to Java, and I'm just simply trying to create an executable jar that will run when I double-click on the icon.
I have created my very basic program that uses java swing on Netbeans. I have right-clicked on the project, selected properties, and checked the packaging section to make sure that it creates a jar file. I also selected compress jar file, which some tutorial told me to do as well. (I've also tried not checking compress jar file to see if it made a difference... it didn't).
I then went to folder options to make an association with the jar file to javaw.exe so that when I clicked on the icon, it would know to use javaw.exe to open it. When I double click on the jar file, it now just makes the error noise and nothing happens. Before I made the assocation, it would open up ultimatezip which would show me the original source code, the class file, and the manifest.mf file.
In any event, I'm just playing around with creating an executable jar file and any advice on how to make it so that the GUI launches when I double click on it would be extremely helpful.
Edited by: bigbamboo on Oct 13, 2009 8:41 AM
bigbamboo wrote:
Thanks for your prompt response. I just tried your suggestions. 1 & 2 both worked for me. I have fiddled around some more with my file association and have looked at several sites that go through it step-by-step and I have tried them all. I went to tools, folder options, and I have changed the association to javaw.exe
I just can't figure out what's wrong.Good. So at least you know that it is the file type association that is not working correctly.
On my Windows PC, when I edit the open Action for .jar files, the command string is
"C:\Program Files\Java\jre6\bin\javaw.exe" -jar "%1" %*Maybe that will help. Of course, the path to your javaw.exe may be different.
Similar Messages
-
I keep getting a runtime error, tried reinstalling itunes still doesn't work. R6034 ituneshelper.exe. Any ideas on what to do?
Hi Hamshow,
Thanks for using Apple Support Communities. This article has steps you can take for the error you're seeing:
iTunes 11.1.4 for Windows: Unable to install or open
http://support.apple.com/kb/TS5376
Cheers,
- Ari -
i've updated my iphone 3gs software to the latest version of ios and now my device does not activate. i've searched for help here and it still doesn't work...is there anything else i can do, or i have to take the device back to the store?
Where did you buy this iPhone and how did you unlock it?
-
There is still an issue with making new actions that include saving for web. While recording the action, save for web functions as it should. But once the action is played, regardless of the original format the saved image should be, it gives it an html filename extension. This can be extremely frustating when you have an action that saves over a hundred images from a single action.
I have seen posts in Adobe forums from many people regarding this very irritating bug, including posts from Adobe employees acknowledging the bug. This was present in the Beta, the initial release, and in this 13.0.1 update. No fix.
http://feedback.photoshop.com/photoshop_family/topics/ps_cs6_actions_recorded_action_expor ts_html_instead_of_jpg
The employee acknowledged this bug THREE months ago (as of this post), yet all things considered, this doesn't seem like something that would take three months to fix!
I have spoken about this bug with a friend that is a computer programmer. Considering that the action is saving the file correctly, and it's only the name that is not saving properly indicates that this is a superficial error, and not an issue that would require rewriting the code completely. Also consider that this WAS functioning properly in CS5, and that this is a very easily reproducible bug. Adobe should have plenty of information required to correct the issue. I understand that this fix may be more or less difficult to do than what I am suggesting, but it should have been fixed by now.
I don't understand this mentality. Please Adobe... Put CS7 down for a little while, and fix what needs to be fixed in CS6. People (myself included) have paid A LOT of money for your products, it's not unreasonable to expect them to work properly. Bugs happen, it's understandable, but it's not unrealistic to expect a fix for them when the software is as expensive as it is. Is there actually any plan to correct this issue?See also: http://forums.adobe.com/message/4662367#4662367
-Noel -
I have Lightroom 4 and a new 70D camera and when I try to important my photos Lightroom says it doesn't recognize my CR2 files. Can someone help? I have downloaded 8.3 from Adobe, but still doesn't work?
Lightroom doesn't use the Camera Raw plug-in. All of the Camera Raw technology is part of the Lightroom program. You will either have to upgrade to Lightroom 5 or use the DNG converter to create digital negative copies that can be used with Lightroom 4.
-
"could not write value quicktime task to key \SOFTWARE\Microsoft\Windows\CurrentVersion\Run verify that you have sufficient access to that key, or contact your support personnel.
if anyone can help that would be great thanks!I have tried that but still doesn't work, I have right clicked the itunes setup right as administrator, still has the key problem, this time, it is the ituneshelper key same location, but ituneshelper key
-
Apple changed my Apple ID to the email address associated with my iTunes account. I now can no longer access my account because the old user name is no longer valid and has no password. I have been on the phone with tech support for hours trying to fix this. I can not update any of the apps associated with that user name.
Is this itunes on the iPad or on my computer? Thank you for the reply.
-
Hi, I am trying to download the trial version of photoshop but it is stuck on 42% (has been for several hours). I have tried refreshing but it doesn't work. I am using Yosemite OSX 10.10.3. Any suggestions?
Re: creative cloud hangs at 42%
-
Many common websites won't load, all I get is a blank page. I am running Windows Vista. Tried virus scans, got rid of some adware but it still doesn't work. I am now using Google Chrome. I've used Firefox for many years, but this isn't acceptable
== URL of affected sites ==
http://www.amazon.com
== User Agent ==
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4Update: This is NOT just related to "Yahoo" pages, while this problem first began with some of my Yahoo pages, it is now also happening with other NON Yahoo things I want to load up. Like Twitter, or Links in emails that load Blank, or even images within emails that show up Blank in the preview part of Yahoo mail. It is NOT a Yahoo issue as I have loaded up my Yahoo Mail in IE and Chrome, and everything loads wonderfully. I can even load up sites like Twitter, and other websites that will NOT load in Firefox, but they come up fine in other Browsers.
I have done the ONLY suggestion that came from Firefox Tech support, to load up FF in Safe Mode, but the problems still exists. I have uninstalled FF and re-loaded it, but the same problem is there.
Does anyone have any ideas here at all? I can't seem to get any Fire Fox help, so I am reaching out to the community here to see if anyone can help.... Thank you !! -
My phone 5s 16gb gold did the new update and will not come back on. I already tried hard reboot still won't work. Been over a hour now. Please someone help I need my phone. This phone is not even 6 months old been in case no scratches. This is driving me crazy.
Connect your phone to a computer and restore your software using iTunes.
-
my 80gb IPod doesn't boot up this morning. Worked great last nite. The apple logo keeps coming up for a few seconds then you hear it "wind down" and got blank. Tried reseting multiple time - doesn't work. Ideas?
my 80gb IPod doesn't boot up this morning. Worked great last nite. The apple logo keeps coming up for a few seconds then you hear it "wind down" and got blank. Tried reseting multiple time - doesn't work. Ideas?
-
Question
I have a MacBook and I am unable to successfully update Firefox. I click "Update Firefox" and it's starts updating but never completes the process. I sometimes leave it for hours and it's still updating! It's almost as if something is blocking it ffrom completing the process. Please helpNext time an app update gets stuck try a reset. Press and hold both the home and power buttons for10-15 seconds till the Apple logo appears. Then release both buttons. Wait till your iPad starts on it's own. Try now. Also YouTube is still available. If you can't find it the the app store go to the bottom of the app store page and tap purchased. All your deleted apps will be listed and you can reinstall YouTube from there.
-
After change to Mavericks my Mac become too slow e I can't use it because stays asking passwords for "talagent" and "messages agent" as icloud keys. I got changed the icloud password many times and still doesn't work. I can't open any program.
Back up all data.
Launch the Keychain Access application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad. Click Utilities, then Keychain Access in the icon grid.
Select the login keychain from the list on the left side of the Keychain Access window. If your default keychain has a different name, select that.
If the lock icon in the top left corner of the window shows that the keychain is locked, click to unlock it. You'll be prompted for the keychain password, which is the same as your login password, unless you've changed it.
Right-click or control-click the login entry in the list. From the menu that pops up, select Change Settings for Keychain "login". In the sheet that opens, uncheck both boxes, if not already unchecked.
From the menu bar, select
Keychain Access ▹ Preferences ▹ First Aid
If the box marked Keep login keychain unlocked is not checked, check it.
Select
Keychain Access ▹ Keychain First Aid
from the menu bar and repair the keychain. Quit Keychain Access. -
I HAVE BEEN WITH GOOGLE FOR WHILE NOW BUT I STILL CAN'T ACCESS TO MY GOOGLE WALLET, BOTH ACCOUNTS, PERSONAL AS WELL AS BUSINESS. WOULD YOU PLEASE SHOW ME HOW? THANKS
Seems like that would be a better question for a Google forum since it it Google's app. Here is a link about it from Google:
https://www.google.com/wallet/
If you need further help, I would suggest you post to a Google forum.
GB -
I have no sound in my computer, only with headphones, i tried the software update but it still doesn't work, and i have a red light on in my computer. How to resolve that ?
Plug and unlpug the headphone jack with some intention to get the mechanical switch to flip.
You can google for more intrusive methods.
ex. Read through all the many approachs: http://www.ifixit.com/Answers/View/8797/Audio+jack+problem,+no+speaker+sound,+re d+light
Maybe you are looking for
-
I am not able to make International calls from iPhone 5s
I got this new iphone 5s as a gift a week days ago, and It was working all great for 2-3 days. But from last 4days i AM not able to make international calls Whenever I dial, I can't hear any ring going on and all I can hear is my own voice reverting
-
Printer not present when trying to connect even though drivers have been installed
printer not present when trying to connect even though drivers have been installed
-
How to get higher and second higher value in one row?
Hello world, I want to get higher and second higher sal from emp in one row ,, Thanks
-
Problem in Using Java Bean in JSP
Hi, I have a bean called BankAccount.....I tried to use it in a jsp file called Usebean.jsp like this <jsp:useBean id="BA" class="BankAccount" scope="application" /> I tried in both tomcat and j2ee1.3 server... but when i run the jsp file i get an er
-
Trying to import songs onto CD but says not in MP3 format
So, I was trying to burn some CDs yesterday off of my iTunes and the blank CD was detected by iTunes - but once I created the playlist and clicked on Burn, it said that all the songs had problems with them because they weren't in MP3 format. I went i