Cant get archived app to work!!!!!!

archived all 49 class files using:
'jar cvf Tutorial.jar Tutorial.class Tutorial$1.class' ........etc
goes fine.
Then I create a text file called 'mainClass', containing the text:
Main-Class: Tutorial
,then add this to the manifest file, using:
jar cmf mainClass.txt Tutorial.jar Tutorial.class
goes fine!! Then I try and run the app using:
java -jar Tutorial.jar
then get the error message:
'failed to load Main-Class manifest attribute from Tutorial.jar'
Dont know what the h*ll im doing wrong....been trying it for hours!! - been following the JAR tutorial on the sun website......Am i doing something basic wrong.....??
cheerz :)

ok.....got it working.....
....its a bit stupid tho! I unpacked the jar file, and it only ended up unpacking the main class file Tutorial.class. All the other 48 class files I had archived just didnt seem to be in there! So I re-archived it with the new meta file, and had to specify all the bloomin 49 class files again!! ..there must be an easier way?
.surely there is a program that can just read in a java file, then compile it and then archive it!!.....jbuilder can probably do it, but I cant even get my java file to compile in it!!....is there a simple, free program??!!
glad i got it workin tho!!
cheerz

Similar Messages

  • My "Hanging with Friends" app keeps crashing whenever I try to open it. I have deleted and re-downloaded the app, restarted my iPhone, and even restored my iPhone all together, and nothing is working. How can I get this app to work again?

    My "Hanging with Friends" app keeps crashing whenever I try to open it. I have deleted and re-downloaded the app, restarted my iPhone, and even restored my iPhone all together, and nothing is working. How can I get this app to work again?

    Can you start Firefox in [[Safe mode]] ?
    You can also do a clean reinstall and download a fresh Firefox copy from http://www.mozilla.com/firefox/all.html and save the file to the desktop.
    Uninstall your current Firefox version and remove the Firefox program folder before installing that copy of the Firefox installer.
    It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    You can initially skip the step to create a new profile, that may not necessary for this issue.
    See http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

  • I have an iPad that has one app that loads to only 72%. Apple tells me that the app is no longer available in canada but it has content that I paid for. How do I get the app to work again?

    I have an iPad that has one app that loads to only 72%. Apple tells me that the app is no longer available in canada but it has content that I paid for. How do I get the app to work again?

    If it's not available in your country and you do not have a copy of it in iTunes backed up on your computer, you don't.

  • Cant get graphics card to work on MS6166 board

    Iam tring to install nvidia graphics card(PCI) to my MS6166 mother board but cant get new drivers to work,I have disabled on board graphics via jumper on board but new graphics card still wont work.
    HELP!
    Anybody had same problem?

    Well, have you tried leaving the monitor cable connected to the onboard VGA and tried booting up? Sometimes you need to disable it within BIOS.

  • Cant get @font-face to work on my new web site

    Hi everyone,
    I Cant get @font-face to work on my new web site.
    I tryed it before on other web sites and it worked just fine.
    Here is the code i am using:
    CSS:
    @charset "utf-8";
    @font-face {
    font-family:"Caviar Dreams",sans-serif !important;
    font-style: normal;
    src:url ("../fonts/CaviarDreams.ttf") format('truetype');
    src:url("../fonts/CaviarDreams.eot") format('eot');
    src: url("../fonts/CaviarDreams.svg") format('svg');
    src:url("../fonts/CaviarDreams.woff") format('woff');
    src:url("../fonts/CaviarDreams.otf") format('otf');
    /* Simple fluid media
    Note: Fluid media requires that you remove the media's height and width attributes from the HTML
    http://www.alistapart.com/articles/fluid-images/
    img, object, embed, video {
    max-width: 100%;
    /* IE 6 does not support max-width so default to width 100% */
    .ie6 img {
    width:100%;
    Dreamweaver Fluid Grid Properties
    dw-num-cols-mobile: 5;
    dw-num-cols-tablet: 8;
    dw-num-cols-desktop: 10;
    dw-gutter-percentage: 25;
    Inspiration from "Responsive Web Design" by Ethan Marcotte
    http://www.alistapart.com/articles/responsive-web-design
    and Golden Grid System by Joni Korpi
    http://goldengridsystem.com/
    /* Mobile Layout: 480px and below. */
    body{
    background-image:url(../images/background/wraper_bg.jpg);
    background-repeat:no-repeat;
    background-attachment:fixed;
    background-size:100% 100%;
    font-family:"Caviar Dreams", sans-serif !important;
    .caviar{
    font-family:"Caviar Dreams", Arial, Helvetica, sans-serif ;
    .index_bg{
    width:100% !important;
    height:100% !important;
    background:url(../images/graphics/index_bg.png) !important;
    background-size:cover !important;
    .welcome_image{
    position:absolute;
    top:35%;
    width:95% !important;
    margin:2% !important;
    .nav{
    color:#FFFFFF !important;
    font-family:"Britannic Bold" !important;
    font-size:14px;
    font-weight:lighter !important;
    .background_white{
    background:rgba(255,255,255,0.7);
    .background_black{
    background:rgba(0,0,0,0.65);
    .background_black_2{
    background:#000 !important;
    .background_noir{
    background:rgba(179,1,1,0.7);
    .background_purple{
    background:rgba(152,131,201,0.7)!important;
    color:#FFFFFF !important;
    width:100% !important;
    height:25px;
    text-decoration:none !important;
    font-family:"Caviar Dreams" ;
    border:0px !important;
    margin:0px !important;
    padding:0px !important;
    .background_purple:hover{
    background:#FFFF00!important;
    color:#000 !important;
    width:100% !important;
    text-decoration:none !important;
    font-family:"Caviar Dreams" ;
    border:0px !important;
    .white{
    color:#FFFFFF !important;
    .black{
    color:rgba(0,0,0,1) !important;
    .red{
    color:#B30101 !important;
    .yellow{
    color:#FFFF00 !important;
    .black_span{
    background:#000000 !important;
    color:#FFFFFF !important;
    margin:1% !important;
    margin-left:5px !important;
    padding:5px !important;
    .black_span_margin1{
    margin-left:0px !important;
    .black_span_margin2{
    margin-left:0px !important;
    .border_white{
    border:3px solid #FFFFFF !important;
    margin:0px !important;
    padding:0px !important;
    .border_gold{
    border:0px solid #000!important;
    margin:0px !important;
    padding:0px !important;
    h1, h2, h3, h4, h5, h6{
    font-family:"Britannic Bold" !important;
    font-weight:lighter !important;
    color:#FFD700 !important;
    margin-left:2% !important;
    margin-right:2% !important;
    margin-top:2% !important;
    margin-bottom:2% !important;
    p{
    font-family:"Caviar Dreams", Arial, Helvetica, sans-serif !important;
    font-size:16px !important;
    color:#FFFFFF !important;
    margin-left:2% !important;
    margin-right:2% !important;
    margin-top:2% !important;
    margin-bottom:2% !important;
    .text-small{
    font-size:12px !important;
    .caviar{
    font-family:"Caviar Dreams" !important;
    I am trying to use the font Caviar Dreams on my new web site but i cant get it right,
    Can anyone tell me what is wrong.
    And also i would like some help with IE9, it seems the header is displaying in blue instead of black on IE9 and 10.
    My web site adrees is marcoalexwebdesign.site11.com  .

    I already fixed the issue, it seems trhat in dreamweaver the fonts ttf , otf, etc must be in a folder named webfonts, and then dreamweaver connects the fonts stylesheet to the main stylesheeet with @inport.I had to unisntall the fonts from my windows and download them again and add tehm with dreamweaver add web fonts feature.
    Thanks ayway.

  • I cant get a DVD to work

      I cant get a DVD to work on my MacBook Pro even though I have iDVD!

    iDVD is for creating movies on a DVD. Is that what you are trying to do?
    For playback of DVDs use DVD Player, or VLC:
    http://www.videolan.org/vlc/

  • I cant get my camera to work it says its on but has no feedback, any ideas?

    i cant get my camera to work it says its on but has no feedback, any ideas?

    Here are my best suggestions for your camera problem:
    • If Apple's http://support.apple.com/kb/HT2090
       suggestions do not help you, (the "reset" suggested there
       often restores normal function,) continue with the following.
    • Use your Mac's Disk Utility to repair permissions and then
       download and apply the latest Combo Update for your Mac OS.
       If you are using OS X 10.7 or later, reinstall OS X.
    • Repair permissions again immediately following the system restart
       that completes the Combo update or reinstall.
    Properly applying the Combo version of updates can sometimes correct software problems, but, if your trouble is caused by a hardware problem, there are no user serviceable parts of the camera.  For hardware help, contact Apple or an Apple-Authorized Service Provider for service.
    (Over time, Apple has changed the built-in camera's name on newer Macs from "iSight" to "FaceTime" and then to "FaceTime HD."  Regardless of the name of your Mac's built-in camera, the same info and troubleshooting applies.)
       Unless you have a current backup, make one now.
      Then use the final "Troubleshooting" suggestion:
    "... contact Apple or an Apple-Authorized Service Provider for service."

  • I had my hard drive replaced and I cant get my email to work on the new hard drive.  I have the ! in the triangle next to the inbox.  I tried "take all accounts online" and it ddidnt work.  The email account is working on my iphone and ipad.

    I had my hard drive replaced and I cant get my email to work on the new hard drive.  I have the ! in the triangle next to the inbox.  I tried "take all accounts online" and it ddidnt work.  The email account is working on my iphone and ipad, and my macBook is connected to the internet.

    Cant get help with this issue on Apple Support, so I have to go to the Apple store to the Genius Bar to get assistance.  All the help issues are so technical in their jargon, that I cannot understand how to fix the issue.

  • I cant get my email to work on my iphone 4

    hi, i cant get my email to work on my iphone, iv added my email address and password but when i go to mail there are no emails showing or accounts. my email is showing as on in settings but doesnt seem to be working. any advise would be great, thanks

    There is something wrong in your settings. As the settings for each email provider are different you need to check your email server's web site for instructions. Most now have specific instructions for the iPhone. Also see Apple's instructions: http://support.apple.com/kb/HT1385

  • I cant get the font to work on a picture in Photoshop, I have watched at least 12 how to videos and it wont work, Help

    I cant get the font to work on a picture in Photoshop, I have watched at least 12 how to videos and it wont work, Help

    Could you capture your screen and post it. Have the layers panel open and any layers that are collapsed, expanded. We will need to see the entire screen, as some information in the tab is important as well.

  • I cant get google chrome to work on my desk top

    i cant get google chrome to work on my desk top

    When posting in Apple Communties/Forums/Message Boards.......It would help us to know which iMac model you have, which OS & version you're using, how much RAM, etc. You can have this info displayed on the bottom of every post by completing your system profile and filling in the information asked for.
    CLICKY CLICK-----> Help us to help you on these forums
    ***This will help in providing you with the proper and/or correct solutions.***
    ===================
    Contact Chrome tech support and/or post in their forums.

  • I cant get my webcam to work on my g72

    I cant get my webcam to work on my laptop.

    Hi,
    Also.
    Do you have the Google Video Chat Plug-in installed ?
    You may have gained this by Installing Chrome if you did not manually download the Installer for Intel Macs Only.
    This can conflict with the Flash Plug-in.
    See Known Issues and open the bit on Google Talk Plug-in Disables iSight on Mac.
    10:16 PM      Thursday; October 6, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • HP Photosmart Printer-cannot get the apps to work with a USB hook up

    I purchased a HP Photosmart Printer C310 and hooked it up to a USB, not wireless. The apps on the printer will not work, says it has to be on wireless for those features to work. When I purchased it the guy said I could use those apps even if it was on a USB hook up? Any ideas of how to get the apps to work without the wireless?

    Make sure you have done this to reset the iPod
    http://support.apple.com/kb/ht1320
    and that you have restarted your computer since this problem occurred.  You should also try disconnecting all USB devices from your computer including hubs (except standard keyboard and mouse if normally used), and connecting the iPod by itself to a direct USB port.
    There are no iPod viruses. But data corruption on the iPod's storage is possible. 
    If doing the above does not help, you may want to do a Restore on the iPod, from the iPod's Summary tab in iTunes.  This will erase the iPod, re-install its software, and set it to default settings.  If data corruption or a software glitch is causing the problem, a Restore should fix it.

  • TS2972 cant get home sharing to work  any ideas?

    cant get home sharing to work.  any ideas?

    HOME SHARING
    Setting up Home Sharing on your Computer
    http://support.apple.com/kb/HT4620?viewlocale=en_US&locale=en_US
    Understanding  >  http://support.apple.com/kb/HT3819
    How to  >  http://support.apple.com/kb/HT2688
    Troubleshooting  >  http://support.apple.com/kb/TS2972

  • Cant get into App store reason restriction or locked out

    Cant get into App store reason restriction or locked out

    When I try to update my apps it tells me my account is locked and I need to reset my Apple ID

Maybe you are looking for