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

Similar Messages

  • 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.

  • 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.

  • Javax.naming.LinkException: Help please

    Hi all,
    I hope one of you can help figure this out.
    I am useing WLS 7 on Win2K.
    When I try this:
    home = (ObjectIDLocalHome) ctx.lookup("ObjectIDLocalHome");
    I get this:
    javax.naming.LinkException: . Root exception is javax.naming.NameNotFoundException: Unable to resolve 'java:app.ejb/gs-ejbs.jar#ObjectID/local-home' Resolved: ''
    Unresolved:'java:app' ; remaining name 'java:app.ejb/gs-ejbs.jar#ObjectID/local-home'
    My weblogic-ejb-jar.xml has:
    <weblogic-enterprise-bean>
    <ejb-name>ObjectID</ejb-name>
    <entity-descriptor>
    <entity-cache>
    <cache-between-transactions>False</cache-between-transactions>
    </entity-cache>
    <persistence>
    <persistence-use>
    <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
    <type-version>7.0</type-version>
    <type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
    </persistence-use>
    </persistence>
    </entity-descriptor>
    <local-jndi-name>ObjectIDLocalHome</local-jndi-name>
    </weblogic-enterprise-bean>
    And my ejb-jar.xml has:
    <entity>
    <description>Entity Bean ( CMP )</description>
    <display-name>ObjectID</display-name>
    <ejb-name>ObjectID</ejb-name>
    <local-home>com.oga.gserve.biz.oid.ObjectIDLocalHome</local-home>
    <local>com.oga.gserve.biz.oid.ObjectIDLocal</local>
    <ejb-class>com.oga.gserve.biz.oid.ObjectIDBean</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.lang.Integer</prim-key-class>
    <reentrant>False</reentrant>
    <cmp-version>2.x</cmp-version>
    <abstract-schema-name>ObjectIDBean</abstract-schema-name>
    And yes the EJB lives in gs-ejbs.jar
    When I goto the WLS console and look at the JNDI Tree I see ObjectIDLocalHome under javax.
    I hope this is just something stupid that I have over looked. HELP please.
    Brad

    Hi Guys,
    Please help me with the solution if any one got it by now ??
    Malay
    >
    Shan, have you found a solution? I'm interested in
    knowing since the same error
    is happening at my end!
    Thanks!
    "Shan" <[email protected]> wrote:
    I am facing the same problem too. Please someonesolve it.
    Thanks.
    ~Shan
    "George Job" <[email protected]> wrote:
    I too am facing the same problem. Does anyone have
    a solution to this
    problem.
    please help.
    "zollen" <[email protected]> wrote:
    I am having the same problem. I even packaged the
    ejbs and jps files
    into a web
    application archive file. It does not seems tosolve the problem. Would
    you mind
    sharing your solution??
    Brad@NoWhere wrote:
    Hi all,
    I hope one of you can help figure this out.
    I am useing WLS 7 on Win2K.
    When I try this:
    home = (ObjectIDLocalHome)
    ctx.lookup("ObjectIDLocalHome");
    I get this:
    javax.naming.LinkException: . Root exception isjavax.naming.NameNotFoundException:
    Unable to resolve'java:app.ejb/gs-ejbs.jar#ObjectID/local-home'
    Resolved:
    Unresolved:'java:app' ; remaining name'java:app.ejb/gs-ejbs.jar#ObjectID/local-home'
    My weblogic-ejb-jar.xml has:
    <weblogic-enterprise-bean>
    <ejb-name>ObjectID</ejb-name>
    <entity-descriptor>
    <entity-cache>
    <cache-between-transactions>False</cache-between-tran
    sactions>
    </entity-cache>
    <persistence>
    <persistence-use>
    <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
    <type-version>7.0</type-version>
    <type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</ty
    pe-storage>
    </persistence-use>
    </persistence>
    </entity-descriptor>
    <local-jndi-name>ObjectIDLocalHome</local-jndi-name>
    </weblogic-enterprise-bean>
    And my ejb-jar.xml has:
    <entity>
    <description>Entity Bean ( CMP)</description>
    <display-name>ObjectID</display-name>
    <ejb-name>ObjectID</ejb-name>
    <local-home>com.oga.gserve.biz.oid.ObjectIDLocalHome<
    /local-home>
    ><local>com.oga.gserve.biz.oid.ObjectIDLocal</local>
    ><ejb-class>com.oga.gserve.biz.oid.ObjectIDBean</ejb-c
    lass>
    ><persistence-type>Container</persistence-type>
    ><prim-key-class>java.lang.Integer</prim-key-class>
    <reentrant>False</reentrant>
    <cmp-version>2.x</cmp-version>
    <abstract-schema-name>ObjectIDBean</abstract-schema-n
    ame>
    And yes the EJB lives in gs-ejbs.jar
    When I goto the WLS console and look at the JNDITree I see ObjectIDLocalHome
    under javax.
    I hope this is just something stupid that I haveover looked. HELP
    please.
    Brad

  • I keep being asked to update my Safari but when I do a Software update it scans but never gives me a list and just says no new updates. Help please!

    I keep being asked to update my Safari but when I do a Software update it scans but never gives me a list and just says no new updates. Help please!

    There are no updates to either OS 10.5.8 or Safari 5.0.6.
    If you need a later version of Safari you must first upgrade your operating system to a later version of OS X.

  • At the end of my IMovie I want to write some text: as in" Happy Birthday Mandy we had a great time with you. etc..  How do I go about this? Which icon in IMovie lets me have a place to write text?? help please

    Please see my ? above: Im making an IMovie and need the last frame to just be text (can be on a color). I don't know how to go about doing this.  Ive already done all my photos and captions. Need to have it ready for TOMORROW: Friday May 23rd. Help please!
    Thanks

    You can choose a background for the text from Maps and Backgrounds.  Just drag a background to the end of the timeline, adjust to desired duration then drag title above it.
    Geoff.

  • I have just updated my PC with version11.14. I can no longer connect to my Bose 30 soundtouch via media player Can anyone help please

    I have a Bose soundtouch system .Until today I could play my iTunes music through it via air  player . .I have just uploaded the latest upgrade from iTunes and now I am unable to connect to the Bose system . Can anyone help please? I can connect via my iPad and by using the Bose app so it is not the Bose at fault

    @puebloryan, I realize this thread is a bit old, but I have encountered a similr problem and wondered if you had found a solution. I've been using home sharing from itines on my PCs for years, but two days ago, it suddenly stopped. I can share from my Macs, but not from the ONE PC library where I keep all my tunes. I tried all the usual trouble-shooting measures.
    After turning home sharing off on the PC's iTunes, turning it back on and turning some other settings off and on, my Macs and Apple TV could briefly "see" the PC library, but as soon as I try to connect -- the wheel spins for a bit and then the connection vanishes. It's as if they try and then give up.
    Since this sounds so similar to your problem, I was hoping you finally found a solution. I am also starting a new thread. Thanks!

  • My iMac 24 can no longer be paired with the keyboard; it doesn't recognise any keyboard at boot up, even the one it is paired with. Can anyone help, please?

    My iMac 24 can no longer be paired with the keyboard; it doesn't recognise any keyboard at boot up, even the one it is paired with. Can anyone help, please?
    Thank. Simon

    Brian - The batteries are fine and there has only every been one keyboard paired with it. We have tried my MacPro keyboard as well, and it will not even recognise that there is a discoverable keyboard nearby.
    Thanks, Simon

  • Photoshop Elements 6 on Mac help please !!!!!

    Hi there,
              I need help please !!!!!
    I have PSE 6 for my imac and bought myself a NIKON D60 so far so good. I have installed PSE 6 which comes with ADOBE Bridge CS3
    I have bought a book as well as I am new to photoshop and in fact DSLR cameras.
    I have got my photos into Bridge OK by the way they are JPEG format. According to the book I can open the JPEG in camera RAW by either selecting the JPEG and then pressing cmd+R or by selecting the JPEG and select open with and camera RAW should be available to selct.
    I cannot get of the options to work any ideas please
    Secondly I have taken some photos in RAW format and put then into Bridge again I cannot get the camera RAW interface to open with these neff images.
    If I try to open the image PSE 6 opens and gives me an error that the file format is not supported by PSE 6
    Am I missing something here as I have been trying for a week now !!!!!
    Sorry if this comes across a stupid question but it is new to me
    Chris      UK

    There's no "theory" about it. You should be able to open a raw file from bridge by double-clicking it, but it will open in ACR in PSE. You can't just use ACR within bridge in PSE, if that's what you're trying to do. To open a JPEG in ACR, go to file>Open in PSE and choose Camera raw as the format after you select the file but before you click Open.
    If you've correctly updated ACR, bridge should show you thumbnails of your raw files. If it doesn't try emptying the Bridge cache.

  • Photoshop CS2. Help please.

    Approx 8 years ago I purchased Photoshop CS2 online from Adobe. This past weekend I had to buy a new computer (Windows 8.1), and when I logged into my Adobe account just now to obtain my serial number and enter it after I attempted to download CS2, it said invalid serial number. Help please.
    Both tech support and the online chat person were not able to help me.

    The Activation Servers for CS2 and prior have been taken down. See the link below for an explanation and solution. Be sure to follow all directions, including using the new download serial number supplied on the page.
    CS2 and prior
    http://helpx.adobe.com/x-productkb/policy-pricing/creative-suite-2-activation-end-life.htm l
    --OB

  • 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

  • Creative live cam voice help please

    Help please,
    We are using the "live cam voice" model, with our computer (Vista 32bit), that appears to work OK, but after a few minutes we get the BSOD! We have tried un installing and re-installing drivers without any effect.Has anyone had this problem and if so how did you fix it.
    Regards,
    Arthur

    Thanks for your response. I have tried 3 ports so far, all with the same outcome. One of my sons had it happen to him on another computer (XP SP2) using this webcam . As to programmes open at the same time, I am not computer literate and have no idea what programmes were running on each occasion.We use the webcam for Skype and apart from that I may also have IE open and perhaps Outlook Express. Over and above those CS4 sometimes.
    If I cannot resolve this, can any one suggest another webcam please.
    Regards,
    Arthur

  • I get error message "unknown error" When trying to log on to itunes via pc, help please!

    I get error message "unknown error" When trying to log on to itunes via pc, help please!

    Hello, trolle56.
    Thank you for the question.  You may find these articles helpful in troubleshooting the error received with the iTunes Store. 
    Can't connect to the iTunes Store
    http://support.apple.com/kb/ts1368
    iTunes: Advanced iTunes Store troubleshooting
    http://support.apple.com/kb/ts3297
    Cheers,
    Jason H. 

  • I downloaded an upgrade to my adobe reader today, and ever since my search engine has switched to yahoo and wont change back to google. I have a macbook pro, help please? Does anyone know how I can change this back? I have tried through my settings but it

    I downloaded an upgrade to my adobe reader today, and ever since my search engine has switched to yahoo and wont change back to google. I have a macbook pro, help please? Does anyone know how I can change this back? I have tried through my settings but it doesnt work

    Hi Timia,
    If you are using Safari as a web browser :-
    Open Safari, go to Safari menu > Preferences > General, and put Google as the homepage. Then, choose Google as your default search engine.
    If you are using Google Chrome as the web browser :-
      Open Google Chrome.
      In the top right corner of the page, click the Chrome menu Chrome menu > Settings.
      In the "Search" section, select Google from the drop-down menu.
    Let me know if you still experience any issue.
    Regards,
    Aadesh

Maybe you are looking for

  • Canon mp 600 won't scan.

    I can not seem to scan in the Leopard OS on my Canon MP 600. I was able to scan in the Virtual xp os I'm using VM fusion. Printer is disconnected and is shutdown. Fusion is closed, I've rebooted, I can print but can't scan.

  • List Split icons

    In dreamweaver CS6 - In the JQuery Mobile swatches, the List Split Icons are not displaying,  even once data-split-icon is allocated. Anyone else having this issue?

  • 1 Mail Rule automatically turns off upon launching Mail

    I have recently upgraded to Snow Leopard (10.6.4) from Tiger. I moved the "Mail" & "Mail Downloads" folders, as well as the "com.apple.mail.plist" preference file, from the old system into the new one in the appropriate user folder. I also rebuilt al

  • How to Crop out Certain Part of Photo

    Hi, am brand new to Photoshop, and I have the following image: I just want to crop the image so that only the racoon is left. I have a bunch of photos like this where I need to do the same. What is the best way to go about doing this?

  • Mass delete opportunity

    Hi ,   Is there any way to mass deletion of opportunity. Any reports and any other way for <b>mass</b> delete. Thanks, Bala