JAR Help Please.  Using SDK 1.5

I recompiled a simple java app using SDK1.5 and created an executable jar file. Low and behold, I can no longer double click on the jar file and execute the application. The old jar file works fine, the class files were created in 1.4.2.
I use "jar -cmf mainclassmanifest FileName.jar *.class" at the command line. FileName.jar is created successfully and I can run it at the command line using "java -jar FileName.jar" but, if I double click on the jar file, I get an error message "could not find main class. Program will exit"

Sorry, I figured it out. I needed to update my file association for JAR files.

Similar Messages

  • I'm in syria and they blocked me from using any VPN service please help without VPN i can't open the store help please ( using iphone 5 version 9.1.4 )

    I'm in syria and they blocked me from using any VPN service please help without VPN i can't open the store help please ( using iphone 5 version 9.1.4 )

    There is nothing that anyone here on a user forum can do to help you.  If it is a local issue in Syria, then you need to take it up with your phone company or authorities there who have prevented you from using VPN.
    Nobody here can help you.

  • Dreamweaver CC layout help please (using floats)

    Hi All,
    I'd appreciate any help with this problem creating my ideal Dreamweaver CC layout!
    Please see the screen shot below. Everything is perfect except I can't get the div labeled "div-right" at the bottom to sit on the right just like the one that sits on the left of middle divs that I have already aligned nicely.
    I have my coding the way I understand most, so I can attach that in another post if needed.
    Thanks!!!!

    sorry Nancy, work is very busy!
    For now, here is my code
    I hope its of some use at least for now..
    Thanks!
    <!doctype html> 
    <html> 
    <head> 
    <meta charset="utf-8"> 
    <title>HTML5 2-Col Layout</title> 
    <meta name="viewport" content="width=device-width, initial-scale=1"> 
    <!--[if IE]> 
    <meta http-equiv="X-UA-Compatible" content="IE=edge"> 
    <![endif]--> 
    <!--[if lt IE 9]> 
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> 
    <![endif]--> 
    <style> 
    /**CSS Reset**/ 
        padding: 0; 
    /**fixes the CSS box model in responsive layouts**/ 
        -webkit-box-sizing: border-box; 
        -moz-box-sizing: border-box; 
        box-sizing: border-box; 
    img { 
        max-width: 100%; 
        vertical-align: baseline; 
    body { 
        padding: 0; 
        width: 90%; /**adjust width in px or % as required**/ 
        margin: 0 auto; /**this is centered**/ 
        background: #F5DD83; 
        color: #505050; 
        font-family: Segoe, "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana, sans-serif; 
        font-size: 100%; 
        box-shadow: 2px 2px 4px #333; 
    header { 
        margin: 0; 
        padding: 0 1%; 
        width: 100%; 
        background: #B00202; 
        color: #FFF; 
    header h1, header h2 { 
        display: inline; 
        color: #F5DD83; 
        padding: 0 1%; 
    /**top menu**/ 
    nav { 
        background: #69C; 
        font-family: Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif; 
        font-size: 14px; 
        font-weight: bold 
    nav ul { 
        margin: 0; 
        padding: 0; 
    nav li { 
        list-style: none; 
        display: inline-block; 
        margin: 0 3% 0 5%; 
    /**menu link styles**/ 
    nav li a { 
        color: #FFF; 
        text-decoration: none; 
        line-height: 2.5em; 
        padding: 6px; 
        border: 1px solid #CCC; 
    /**on select or mouseover**/ 
    nav li a:hover, nav li a:active, nav li a:focus { 
        background: #CCC; 
        color: #505050; 
    #wrapper { 
        background: #DDD; 
        overflow: hidden; /**float contaiment**/ 
    /**left sidebar**/ 
    aside { 
        padding: 0 2%; 
        float: left; 
        width: 30%; 
    /**main content**/ 
    article { 
        padding: 0 2%; 
        background: #FFF; 
        float: left; 
        width: 70%; 
    figure {  
    width: 80%;  
    margin: 4% auto 4% auto;  
    text-align:center; 
    figcaption { 
        text-align: center; 
        font-style: oblique; 
        font-size: small; 
        color: #2294AE; 
    footer { 
        clear: both; 
        background: #B00202; 
        color: #FFF; 
        text-align: center; 
        margin: 0; 
    /**text styles**/ 
    h3 { 
        color: #2294AE; 
        margin-bottom: 0 
    p { margin: 0 0 1em 0 } 
    #left-div {
      background-color: #D3D3D3;
      height: 100px;
      width: 650px;
    </style> 
    <link rel="stylesheet" href="ajxmenu3.css" type="text/css">
    <link rel="stylesheet" href="ajxmenu4.css" type="text/css">
    <link rel="stylesheet" href="ajxmenu6.css" type="text/css">
    </head> 
    <body> 
    <!--begin header--> 
    <header> <h1>Hassengate Pharmacy</h1> 
    </header> 
    <!--begin navigation--> 
    <nav> 
    <ul> 
    <div class="AJXCSSMenuUGYETAC"><!-- AJXFILE:ajxmenu4.css -->
    <div class="ajxmw">
      <div class="ajxmw2">
    <div class="ajxtbg">
    <ul>
    <li class="tfirst"><a href="#">Home</a></li>
    <li class="tsub"><a class="ajxsub" href="www.google.com">Pharmacy</a>
      <ul>
       <li class="sfirst slast"><a href="#">News</a></li>
      </ul>
    </li>
    <li class="tsub"><a class="ajxsub" href="#">Shop</a>
      <ul>
       <li class="sfirst slast"><a href="#">Offers</a></li>
      </ul>
    </li>
    <li class="tsub"><a class="ajxsub" href="#">NHS Services</a>
      <ul>
       <li class="sfirst"><a href="#">MUR</a></li>
       <li class="slast"><a href="#">NMS</a></li>
      </ul>
    </li>
    <li class="tsub"><a class="ajxsub" href="#">Blah</a>
      <ul>
       <li class="sfirst slast"><a href="#">1</a></li>
      </ul>
    </li>
    <li class="tsub"><a class="ajxsub" href="#">Blah</a>
      <ul>
       <li class="sfirst slast"><a href="#">2</a></li>
      </ul>
    </li>
    <li class="tsub"><a class="ajxsub" href="#">Blah</a>
      <ul>
       <li class="sfirst slast"><a href="#">3</a></li>
      </ul>
    </li>
    <li class="tlast tsub"><a class="ajxsub" href="#">Blah</a>
      <ul>
       <li class="sfirst slast"><a href="#">4</a></li>
      </ul>
    </li>
    <li class="tlast tsub"></li>
    </ul>
    </div>
      </div>
    </div>
    <br >
    </div>
    </ul> 
    </nav> 
    <div id="wrapper">  
    <!--begin left sidebar--> 
    <aside>
      <p align="center"> 
      <p align="center">Conditions
      <div class="AJXCSSMenuWOENVAC">
        <div align="left">
          <!-- AJXFILE:ajxmenu6.css -->
        </div>
        <div class="ajxmw">
          <div class="ajxmw2">
            <div class="ajxtbg">
              <div align="left">
                <ul>
                  <li class="tfirst tsub"><a class="ajxsub" href="#">Condition 1</a>
                    <ul>
                      <li class="sfirst slast"><a class="ajxsub" href="#">1-1</a>
                        <ul>
                          <li class="sfirst slast"><a href="#">1-1-1</a></li>
                        </ul>
                      </li>
                    </ul>
                  </li>
                  <li class="tsub"><a class="ajxsub" href="#">Condition 2</a>
                    <ul>
                      <li class="sfirst slast"><a class="ajxsub" href="#">2-2</a>
                        <ul>
                          <li class="sfirst slast"><a href="#">2-2-2</a></li>
                        </ul>
                      </li>
                    </ul>
                  </li>
                  <li class="tlast tsub"><a class="ajxsub" href="#">Condition 3</a>
                    <ul>
                      <li class="sfirst slast"><a class="ajxsub" href="#">3-3</a>
                        <ul>
                          <li class="sfirst slast"><a href="#">3-3-3</a></li>
                        </ul>
                      </li>
                    </ul>
                  </li>
                </ul>
              </div>
              </div>
            </div>
        </div>
        <div align="left"><br >
        </div>
      </div> </p>
      <p> </p>
      </p> 
    </aside> 
    <!--begin main content--> 
    <article> <h3>Article</h3> 
    <p> </p> 
    <figure></figure>
    <figure>
      <figcaption></figcaption> 
    </figure> 
    </article> 
    <!--end wrapper--></div> 
    <!--begin footer--> 
    <footer>  
    <small>© Hassengate Pharmacy 2014 All rights reserved</small>  
    </footer> 
    </body> 
    </html> 

  • JAR Help Please

    Hi I been working on a program. This application will compile, run, and then jar up file. When I try to run it from the Jar, I get "Could not find the main class. Program will exit!" I though I told it where to go...
    I will list the information that relates to the jar file
    All the files are located in C:\Java
    I jar up my files with
    jar cmf RPGGame\JARManifestInfo.txt RPGGame.jar RPGGame\About.class RPGGame\Chara.class RPGGame\Creature.class RPGGame\Directions.class RPGGame\loadGame.class RPGGame\RPGMain.class RPGGame\saveGame.class RPGGame\SoundPlayer.class RPGGame\images RPGGame\saves RPGGame\sound
    My Manifest contents is: (yes it has the carrige return at the end)
    Main-Class: RPGGame.RPGMain.class
    Created-By: Chaos Programming
    Could some one help me figure this out?
    P.S. it will unjar with the DOS command jar fxv RPGGame.jar

    Main-Class: RPGGame.RPGMain

  • How to edit 'uses-sdk' element in manifest settings

    Hi,
    I created an Android App that works perfectly on my HTC Inspire.  It's just three buttons that link to web pages, a browser loads, very basic. I got it to install on 3 android devices, but it doesn't install on a Galaxy Tab and another unknown android device.  Those devices get a Parse Error.
    So I searched around and I found this possible solution from a few days ago:
    http://www.droidforums.net/forum/rescue-squad-help/148308-error-while-installing-android-a pplication-problem-parsing-package.html
    After hours of search, i found a little answer, actually it has every thing to do with the manifest, i changed the minSdkVersion="8" to minSdkVersion="7", and it worek on the first samsung mobile that i found, i have to check with other mobiles, but i think that is the solution!
    I decided that I better figure out how to edit the Manifest, only to find that:
    I found this bit of unsettling information in the Community Help files:
    uses-sdk elementI see there is a checkbox to 'Manually manage premissions and manifest additions in the application descriptor file.' But i'm not sure if I can just add the line
    You cannot include a uses-sdk element.
    <uses-sdk android:minSdkVersion="7" />
    Any work arounds?
    Thanks in advance!
    Tek

    Hi Pooja
    You can find the text in <b>ResourceEditControl**.properties</b> file, which is available under   <i>com.sap.km.cm.ui\lib\km.appl.ui.edit_api\com\sapportals\wcm\control\edit</i>..
    The text is represented by the key <b>txtUploadControl</b>..
    Regards,
    Sandip

  • Hi all! I was updating the software on i pad to ios6, update was interrupted(apple update server is unavailable...). iTunes Diagnostics shows that "secure link to I tunes store failed". I use Windows 7 Home Premium 64 bit. Can anybody help please?

    Hi all! I was updating the software on i pad to ios6, update was interrupted(apple update server is unavailable...). iTunes Diagnostics shows that "secure link to I tunes store failed". I use Windows 7 Home Premium 64 bit. Can anybody help please?
    The following was done so far:
    1. Windows Firewall - new rule created for itunes.
    2. iTunes - latest version installed.
    3. LAN setting : automatic detection of proxy is enabled;
    4. iTunes diagnostics shows:
    Microsoft Windows 7 x64 Home Premium Edition (Build 7600)
    TOSHIBA Satellite L655
    iTunes 11.0.2.26
    QuickTime 7.7.3
    FairPlay 2.3.31
    Apple Application Support 2.3.3
    iPod Updater Library 10.0d2
    CD Driver 2.2.3.0
    CD Driver DLL 2.1.3.1
    Apple Mobile Device 6.1.0.13
    Apple Mobile Device Driver 1.64.0.0
    Bonjour 3.0.0.10 (333.10)
    Gracenote SDK 1.9.6.502
    Gracenote MusicID 1.9.6.115
    Gracenote Submit 1.9.6.143
    Gracenote DSP 1.9.6.45
    iTunes Serial Number 003FB880034B7720
    Current user is not an administrator.
    The current local date and time is 2013-04-23 11:01:14.
    iTunes is not running in safe mode.
    WebKit accelerated compositing is enabled.
    HDCP is supported.
    Core Media is supported.
    Video Display Information
    Intel Corporation, Intel(R) HD Graphics
    **** External Plug-ins Information ****
    No external plug-ins installed.
    iPodService 11.0.2.26 (x64) is currently running.
    iTunesHelper 11.0.2.26 is currently running.
    Apple Mobile Device service 3.3.0.0 is currently running.
    **** Network Connectivity Tests ****
    Network Adapter Information
    Adapter Name:          {1CB5BBC2-8124-4664-899A-CE0A4683E3B4}
    Description:          Realtek RTL8188CE Wireless LAN 802.11n PCI-E NIC
    IP Address:          0.0.0.0
    Subnet Mask:          0.0.0.0
    Default Gateway:          0.0.0.0
    DHCP Enabled:          Yes
    DHCP Server:
    Lease Obtained:          Thu Jan 01 08:00:00 1970
    Lease Expires:          Thu Jan 01 08:00:00 1970
    DNS Servers:
    Adapter Name:          {8140112A-43D0-41D6-8B36-BE146C811173}
    Description:          Atheros AR8152/8158 PCI-E Fast Ethernet Controller (NDIS 6.20)
    IP Address:          10.5.7.196
    Subnet Mask:          255.255.0.0
    Default Gateway:          10.5.0.1
    DHCP Enabled:          Yes
    DHCP Server:          172.18.255.2
    Lease Obtained:          Tue Apr 23 10:14:40 2013
    Lease Expires:          Tue Apr 23 22:14:40 2013
    DNS Servers:          121.97.59.7
                        121.97.59.2
                        121.97.59.3
    Active Connection:          LAN Connection
    Connected:          Yes
    Online:                    Yes
    Using Modem:          No
    Using LAN:          Yes
    Using Proxy:          No
    Firewall Information
    Windows Firewall is on.
    iTunes is NOT enabled in Windows Firewall.
    Connection attempt to Apple web site was successful.
    Connection attempt to browsing iTunes Store was unsuccessful.
    The network connection timed out.
    Connection attempt to purchasing from iTunes Store was successful.
    Connection attempt to iPhone activation server was successful.
    Connection attempt to firmware update server was unsuccessful.
    The network connection timed out.
    Connection attempt to Gracenote server was successful.
    The network connection timed out.
    Last successful iTunes Store access was 2013-03-22 10:05:31.
    @@@. iTunes IS ENABLED THROUGH THE FIREWALL , even though diagnostics says "NOT enabled"

    hours after the first post i somehow got this to work. dont know how, but i do tried the dns clear cache, the clear host file, oh and i did the check automatically detech dns AND THEN se-check it again before i got this to work.

  • NEED HELP PLEASE!!!!  Not unzipping but executing .jar file on iPhone

    I am in need of help, Please, there has to be someone who knows how to do this!
    OK On iphone 4s, I used winzip to extract a .jar file but I am unable to open and use the actual file.
    This was expensive purchase and this is a time issue.
    Thank You Very Much!!!!

    You can't, .jar is a Java archive, iOS doesn't have a java virtual machine.

  • Executabe Jar File: Please Help

    Here is the problem. I had no problem before creating and running executable jar files at work or at home. I write the manifest file and then run "jar cmf mymanifestfile jarfile.jar *.class" and everything is fine. Both my work and home computer were set up to execute jar files, so all I had to do was click on the option.
    Now here is the problem. At work, they just installed PKZIP and now that is default for opening jar files. I still want it to execute the jar file though, so last night, when I went home, I right clicked on a jar file I had, clicked on properties, and saw that where it said "Open With" I had javaw. Sooo.. today, I come back to work, right click on a jar file here, and then where it says "Open With" I change it to "javaw" but now when I click on the file, it gives me a Java Virtual Machine error saying it can not find the main file. I am positive that this jar file was created correctly. Furthermore, if I go to the DOS prompt and run it using "java -jar jarFile.jar" it runs just fine (If I do "javaw jarFile.jar", it does NOT work).
    So my question is this: what do I need to set the "Open With" program to for executing jar files. Is there a way to do command line parameters so I can open with "java -jar". Please help.
    Any help would be very appreciated.

    Also, another thing that is weird is this.
    The old jar files that I created at home, run fine at home (execute when I double click them), and if you look at the properties they are run with "javaw", but, the new jar files I create, that I create exactly the same way as the ones I created before, dont work when I double click them.

  • I  used to have an OLD Photoshop cd but it has been lost and my program is no longer on cd. I talked with some photographer friends and this is what one of them told me to get: Adobe Photoshop Lightroom and CS CC... HELP please?

    I  used to have an OLD Photoshop cd but it has been lost and my program is no longer on cd. I talked with some photographer friends and this is what one of them told me to get: Adobe Photoshop Lightroom and CS CC... HELP please?

    If you still have your serial number, look at OLDER previous versions http://www.adobe.com/downloads/other-downloads.html
    Otherwise, the US$ 9.99 plan is what is current at Cloud Plans https://creative.adobe.com/plans

  • My iPad shows a message "Cannot find AirPrint printer". I used to use my iPad to print materials using HP wireless printer D110. Now it does not want to print. Is this because I am now using IOS 7? What should I do to solve the problem? Help please.

    My iPad shows a message "Cannot find AirPrint printer". I used to use my iPad to print materials using HP wireless printer D110. Now it does not want to print. Is this because I am now using IOS 7? What should I do to solve the problem? Help please.

    Restart your WiFi router and printer by removing power for 30 seconds.

  • I opened my iPod Touch up to fix my home button. When i closed it back up it had a white screen. I tried pressing lock and home button for 10 seconds and it worked but while i'm using it it goes white with lines on the screen. Help please

    I opened my iPod Touch up to fix my home button. When i closed it back up it had a white screen. I tried pressing lock and home button for 10 seconds and it worked but while i'm using it it goes white with lines on the screen. Help please. This has been happening for a while and i've tried everything but it doesn't work.

    Try:
    fix for Home button
    iPhone Home Button Not Working or Unresponsive? Try This Fix
    - If you have iOS 5 and later you can turn on Assistive Touch it add the Home and other buttons to the iPods screen. Settings>General>Accessibility>Assistive Touch
    - If not under warranty Apple will exchange your iPod for a refurbished one for:
    Apple - Support - iPod - Repair pricing
    You can do it an an Apple store by:
    Apple Retail Store - Genius Bar
    or sent it in to Apple. See:
    Apple - Support - iPod - Service FAQ
    - There are third-party places like the following that will repair the Home button. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens

  • Problem with RAM and slowing of computer when using CS5 can anyone help please?

    Hello I am having big problems at the moment with a slow computer when I am using Photoshop CS5 I am informed that I am low on memory.  I do not store any photographs on my computer they are all on an external hard drive, the only image on the computer are the ones I am working with.  I have been in touch with Norton who think it is an Adobe issue can anyone help please, looking forward to hearing from you and to a swift fix of the problem
    Best wishes
    Sheila

    How much memory do you have installed, and what operating system are you running?
    Mark

  • I changed the name of my apple id and now I can't use the app store on my phone correctly because it's using my apple id's old name. I signed out and in on itunes and synced my iphone. Still doesn't work. Help please?

    I changed the name of my apple id and now I can't use the app store on my phone correctly because it's using my apple id's old name. I signed out and in on itunes and synced my iphone. Still doesn't work. Help please?

    Settings>Store...tap the ID shown...sign out...sign back in with the ID you want to use.
    Note: Apps are forever tied to the Apple ID used to originally obtain them. They cannot be updated using any other Apple ID other than the one they were originally obtained with.

  • I just purchased Time Capsule today.  I ONLY want to use it as an external drive.  I do not need it for Time Machine. I can see the TC in my finder, but when I click on a file or video to drag and drop, I get message that TC can't be modified. Help please

    I just purchased Time Capsule today.  I ONLY want to use it as an external drive.  I do not need it for Time Machine. I need to free up room on my computer. As of now, I can't even load updates. I can see the TC in my finder, but when I click on a file or video to drag and drop, I get message that TC can't be modified. Help please!

    I agree with Kappy.. passing files and especially via wireless is slow as slow.
    Just need to be sure your TC is the new AC model??
    And the OS on the computer is Lion?
    Have you completed the setup of the TC via the utility? You do still need to get internet via the TC so it has to be plugged into the main router..
    Give us the full picture of the network.
    Then we can help you get into it.. whether you should put your files on it is another question.

  • Help please - An email address that I rarely used several years ago got reset to someone else's apple ID in place of the email account they used to create their account. How can this happen?

    A friend accused me of switching an email account that I used several years ago to send them photos on Flikr (gmail) for their Apple ID - in other words of.messing with their account. I only used the gmail account to post / send them and several other people photos on a few occasions and have not used the account since. I forgot that I had it. When this friend couldn't access their iTunes account the store discovered that the email had been reset to my very old gmail address. How is this possible? Now, they are accusing me of hacking in although no purchases were made and nothing was done with the account. Still, my reputation is at stake. Could they have done it in error? It looks bad for me. Help please.

    I made up the names edward and daniel, it's not actually anyone's email address, so no need for concern.
    In practice, I'm sure you're right that I would have fewer problems with a longer, more complex email address. But in principal, the problem remains. I could sign up for the Apple ID
    1234.NoOneWillEverUseThisAddress.5678@gmail
    and someone else could sign up for the Apple ID
    1234.NoOneWillEverUseThisAddress.5678+1@gmail
    and apple would have no problem with it, even though for all intents and purposes it's the same email address. So the problem is not just the ambiguity of my, to use Dahveed's words, overly simplistic and unsophisticated, email address:
    there is a fundamental flaw in the way Apple links email addresses to accounts that allows for this ambiguity.  If they followed the same conventions that gmail did, there would be no possibility of this problem.

Maybe you are looking for