No luck with JAR's

Im having no luck with packaging my app as a JAR at all, just a massive headache.
Im using eclipse to develop the app in and have tried to export the app to a JAR and have added the correct main class (CustomCell). When I execute the JAR file I get the error: "Could not find the main class. Program will exit."
I have read everything I can about packaging my app and it still wont work. I have tried creating the jar and then adding the manifest to it, still to no avail.
After unzipping the JAR and looking at the manifest, it contains:
Manifest-Version: 1.0
Sealed: true
Main-Class: CustomCell
Why is this not easier? The directory structure I have is as follows:
CustomCell(folder containing all class files)
CustomCell>Icons (containing all icon files)
Any help will be greatly appreciated.

Ok when I try to run from the command line I get the following:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/jms/MessageList
ener
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
4)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
4)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
I think it maybe because Im using external JAR files, how do I go about including these?

Similar Messages

  • NetBeans 4.1 Any luck creating jars?

    Has anybody had any luck creating executable jars with NetBeans 4.1?
    After trying to create an executable jar for about 6 hours I have come to the conclusion that 4.1 kinda sucks. I had better luck with 3.6. Although not intuitive it did have some instructions on how to do this.
    The manifest file that is created contains a comment " X-COMMENT: Main-Class will be added automatically by build" , so why isn't my main class added when I build the project? Did I not set my main class? It compiles and runs fine from the IDE so it obviously knows what the main class is.
    When I change the manifest and specify my main class ( as I did in 3.6 ) I get a could not find the main class error message.
    When searching for information I mostly get unanswered questions from other frustrated users. If anyone has had any luck with this, please , please let me know how it is supposed to be done.
    Thanks.

    To check, if this is an IDE or a project problem try to create a new executable project jar.
    To do this follow this procedure:
    1. Create a new Java project
    1.1 From the main menu select File->New Project->Choose Project->General->Java Application->Next
    1.2 Choose a name for the project (e.g. TestApp)
    1.3 Select [x] Set as Main Project
    1.4 Select [x] Create Main Class, give it a name (e.g. TestApp)
    1.5 Click on Finish
    2. Inside the created new project there is a new created class TestApp.java already with a public static void main(String[] args) method. Put something working there (e.g. System.out.println("Hello World!");
    3. In the Projects View on the left side right-click on the bold name of the project and select Properties
    4. In the popping up window select the bottom most entry, Run
    5. Behind the entry Main Class there should be one entry, TestApp. If not, you can use the button to the right, Browse... to locate any class with a main method inside your project to be the one executed.
    6. Click OK
    7. From the main menu select Build->Clean and Build Main Project
    8. After the output window displays "BUILD SUCCESSFUL (total time: <xxx> seconds)" you can switch to the shell window and execute the jar file with:
    java -jar TestApp.jar Of course you have to be carefull with the paths to java and to TestApp.jar
    9. The shell displays: Hello World!

  • TS1398 Got the dreaded no wifi on my wife's iPhone 4S. Wifi greyed out and no luck with the reset network instructions. Why isn't Apple addressing this issue? We are a family of Apple product users, 2 ipads, an ipad mini, 4 iPhones but one isn't working!

    Got the dreaded no wifi on my wife's iPhone 4S. Wifi greyed out and no luck with the reset network instructions. Why isn't Apple addressing this issue? We are a family of Apple product users, 2 ipads, an ipad mini, 4 iPhones but one isn't working! Issue began whenwe upgraded the operating system.....
    Come on Apple.....get this issue sorted out!

    Just out of warranty. This is a software issue. everything was ok until the software update. Apple just need to sort it out.

  • Anybody had luck with there wifi greyed out after update to IOS 7

    I've been trying all sorts to get my wifi working on my iphone 4s, been searching the internet to solutions, turning airplane mode on and reseting network settings - didn't work, reseting all settings - didn't work. Some have said that if you erase all content and data, basically a factory reset turning it back into what it was when you got it out the box works, but it doesn't, for starters it still doesn't go back to IOS 6 (what it would of been out the box), its still IOS 7, when you go into setting/general/about section and look at the wifi there is no wifi address. Has anybody had any luck with solving it, tried going through apple but they say because its out of warrenty i've got to pay for a repair, seen as its happened ever since putting IOS 7 on my phone, i see that as apple broke my phone, so they should fix it for free.

    This is almost always a hardware problem that requires repair or replacement of the phone. Downgrading to iOS 6 wouldn't help, even if you could.  There's a small chance that it can be fixed by following the suggestions  in this support article:
    iOS: Wi-Fi settings grayed out or dim
    FYI, do not try the "freezer" or "hairdryer" methods you may see posted.  At best they are temporary fixes and are very likely to cause additional damage to the phone...

  • No luck with LOM

    I am having no luck with lights out management. I'm running on the new Xserve line. I configured LOM in the Server Monitor tool. I gave the LOM a static IP based on the ethernet ID it gave. I then opened up server monitor on my Mac Pro and plugged in the IP, user and pass and am just getting waiting for results. The Xserve is plugged in on ethernet port 1 so I set up LOM on port 1. Any ideas?

    Hi
    Have you looked at these yet?
    http://www.apple.com/support/downloads/xservelightsoutmanagementfirmwareupdate11 .html
    http://docs.info.apple.com/article.html?artnum=304896
    Hope this helps, Tony

  • How to use javap with jar files ?

    how to use javap with jar files ?
    thanks

    As long as the jar is on the class path, your gold. So,
    javap -classpath myjar.jar mypackage.MyClass
    Chuck

  • Any luck with a 3.1.3 fix? Aside from the one(s) that have yet to work

    Any luck with 3.1.3 anyone? I am captive to a wi-fi connection and its getting really annoying not being able to use the 3g service when I leave my house. The solution(s) provided so far have done nothing to fix the problem. This is in regards to apps crashing and no internet service while on the iphone 3g network.

    I have tried all the fixes suggested multiple times then went to apple store and the guy told me I should buy a new phone? Just hoping the issue isn't dead as it still seems to be a problem for some, lots of threads about it still being reported as an issue.

  • RAM: Has anyone else had good luck with Corsair?

    First of all, thanks Bas and Scottg26 for pointing out the correct version of Memtest86+.
    I know that Corsair has a crappy rep around this forum when it comes to the Athlon 64.  However, I've had nothing but good luck so far (knock on wood).  I've been up and running for almost a month now with no BSODs and the computer has booted every time so far.  I'm using Corsair TwinX 1024 LL in slots 1 and 2 with the speed settings on Auto in the BIOS with a voltage of 2.6.  I've run Prime95 for up to 10 hours or so with no errors and I just ran one pass of Memtest86+ v1.00 with no errors.  It took 18:50 and showed the following settings:
    Memory: 1024M  1447MB/S
    Settings: RAM: 200Mhz(DDR 400) / CAS:2-3-2-6 / Single Channel (64 Bits)
    However, I will point out that the only real world test it's really passed so far is playing Call of Duty.
    Here's a link to the actual RAM on NewEgg:  http://www.newegg.com/app/ViewProductDesc.asp?description=20-145-435&catalog=147&manufactory=BROWSE&depa=1
    Is anyone else happy with their Corsair RAM so far or did I just get extremely lucky?

    Quote
    Originally posted by amxandy
    I read the horrible reviews for Corsair on this forum after placing my order for a stick of Corsair CMX512-3200C2PRO memory (I couldn't resist the activity lights). I have had no problems running at specified memory timings. I have always had good luck with Corsair and will continue to use them.
    Yeah They are neat at that. Question is how well do they overclock?
    I'm getting a 28Mhz fsb overclock out of these dimms that I have and They are used I admit, But like the seller said they are great overclockers!

  • No luck with SCT

    I tried overstock and J Crew and didn't get any pop ups. I even made sure my pop up blocker was off and that I'm opted in for offers. Is it because I was in using my phone? Wasn't sure if that matters or not.

    texasmommy wrote:
    Ok, I should've known that. Lol. I was hoping I'd get an offer based on my TU score. Thanks!Although the SCT doesn't work on Synchrony Bank, the best part about them is that they are mostlyTU pulls and after 2-3 months, the hard pulls generally fall off your report.  You have 3 cards and if you have loans or a mortgage, then you would have the diversity you need to help your score improve.  I've only been working on rebuilding my credit in earnest in the last 6 months.  Comenity store cards are a good way have more tradelines, but the downside is that unless you have a good score to begin with then you get some credit limits like $200-$500 and YMMV on increases.  Overstock and JCrew have grown the best for me and I think as my score improves, then I'll be able to get multiple increases at once rather than one monthly.  I guess I'm a fan of Synchrony because Sam's Club is my smallest limit and next month I plan to ask for $5k. Someone on the forum once said only get the store cards you really plan to use and they were right because I have closed 4 and I will probably close one more if I can replace it with a bank card.   Remember, each time you apply for EQ and EX, your score will take a hit, and the same with TU, but you might have better luck with Synchrony Bank. 

  • I am new with JAR files please help me

    Hi Dear All,
    I am new with JAR files, I know concept, but dont know how to careate JAR, and how do i use it?
    Please help me.
    Thanks

    This tutorial covers that:
    http://java.sun.com/docs/books/tutorial/deployment/jar/index.html

  • Please Help With Jar File

    I have a jar file named Helper.jar with
    com.xyz.util.Helper.class in it.
    Now I have a SrcFile.java that
    imports com.xyz.util.Helper;
    It compiles fine with:
    java -classpath Helper.jar;. SrcFile.java
    ...and runs fine with:
    java -cp Helper.jar;. SrcFile
    When I jar it with:
    jar cvfm SrcFile.jar SrcFile.mf *.class
    ...and run it with:
    java -cp Helper.jar;. -jar SrcFile.jar
    I get the following exception:
    java.lang.NoClassDefFoundError: com/xyz/util/Helper
    ...but yet, Helpler.jar runs fine with:
    java -jar Helper.jar
    Does anyone have any idea what I am doing wrong or
    do I have to un-jar the Helper.jar file and
    re-jar SrcFile.jar with all the .class files?

    I've replied to this same thread in the New To Java Technology fourm, see there for a suggestion.

  • Any luck with Sigma X3F raw files and 1.1?

    I am still waiting to switch to Aperture as 1.0 did not support the Sigma SD-10/SD-9 raw files (.X3F).
    Any luck with the latest 1.1 version? It is great that Apple revised the price on it but I still have to wait for X3F support because my camera only shoots in RAW. Converting may not be worth the effort and extra time...
    Thanks,
    iSrael

    I am still waiting to switch to Aperture as 1.0 did
    not support the Sigma SD-10/SD-9 raw files (.X3F).
    Any luck with the latest 1.1 version? It is great
    that Apple revised the price on it but I still have
    to wait for X3F support because my camera only shoots
    in RAW. Converting may not be worth the effort and
    extra time...
    Nope, no X3F support yet.
    You can still use the program pretty well just by exporting 16-bit TIFF files from PhtooPro, just export in batch with corrections set to auto.

  • HT1206 i have had bad luck with computers laitly and have 5 pc allready authorised now i have a new one i cant authorise it so i can not access my itunes account can u deauthroise my pc from my accont so i can access it again

    i have had bad luck with computers laitly and have 5 pc allready authorised now i have a new one i cant authorise it so i can not access my itunes account can u deauthroise my pc from my accont so i can access it again
    <Email Edited by Host>

    http://support.apple.com/kb/HT1420

  • I'm having bad luck with motherboards from Newegg.

    Hi all,
    I have successfully built several systems from the ground up with motherboards from Microcenter. However, I'm having no luck with the 2 motherboards i got from Newegg.
    The first one, ASUS P6T, would not reboot unless the reset button was pressed a few times. Then i ordered the GIGABYTE GA-EX58-UD5 X58. I had high hopes but it  too came out of the box with a problem. It start/stops/starts/stops.... I discovered that if i remove the 8pin power connecter, the mb starts but still will not post. I removed and replaced all components including the PSU and still no joy.

    The original PSU i got two weeks ago for the new system is a PC Power & Cooling (PP&C )910 watt unit. I think thats plenty of power. The PSU tester diaplays the following:
    +5V = 5.3
    -12V = 12.2
    +12V1 = 12.3
    +12V2 = 12.3
    +3.3V = 3.4
    5VSB = 5.3
    P.G. = 300ms
    I plugged the PP&C 910w PSU as well as a completely different 400w PSU into the GA-EX58-UD5 with the following components removed - no drives, cards or case fans and all drive/audio/usb connectors disconnected - just the i7 920 CPU and ram - the mb acted in the same manner.  Actually, its the PSU that's reacting to the motherboard i think. I can hear both  PSU's "click" like its tripping a breaker then resetting - hence the mb starting and stopping.
    Anyway, after i removed some and then all of the ram, the system started without stopping but still no post.  I have also been getting a debug error code of 62. From what i understand, the error code indicates that the motherboard is not recognizing the ram.
    It would appear that your both wrong in this case.
    I searched the internet and found some posts where either the bios has to updated to accept ram i have or the ram has to be replaced with something the GA-EX58-UD5 likes. In one post,  the current ram, Crucial DDR3 1066 (thats what i got), was replaced with Corsair XMS3 1333 ram and the system booted up.
    I'll keep you updated.

  • IPhone white screen with jarred graphics

    Hello.
    I have an intermittened fault that is now happening all the time.
    All you see on the screen is white with jarred box graphics. Sometimes doing hard resets or just pressing the on/off button brings the screen to normal. But as soon as it goes to black screensaver, when i press the bottom button it can go back to white.
    I have done a system restore but i haven't tried doing one by wiping it to 'as new', i just restored from a previous back up.
    The phone is still fully functioning as I can still receives calls and you can guess where the slide bar is. The phone hasn't been dropped, it is in a padded casing and the problem started the day after downloading the FatBooth app. It is out of warrenty.
    Please help. How can this be fixed?

    Hi babette1952,
    If you are having screen issues with your iPhone, you may find the Display troubleshooting section of the following article helpful:
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/ts2802
    Regards,
    - Brenden

Maybe you are looking for