Jar file won't run

Why is it that whenever i run my program using eclipse it works fine but whenever i export a jar file of it, it doesn't run at all?
It does not even give an error message and this happens for only one specific class, all the others expoort perfectly

Probably either 1) the jar file is not located where it should be, or 2) the jar file does not have (or it's incorrect) a manifest file.
Since you don't give any useful diagnostic information, hard to tell more.

Similar Messages

  • Random exe-files won't run on windows. Driver related?

    Hope someone smarter than me can find an answer to this...
    I've tried running a bunch of games via bootcamp and random exe-files won't run. A couple of times the setup.exe wouldn't start and other times the installations go fine but the game itself refuses. I get a short flash of a dos prompter that disappears within the fraction of a second and then nothing happens at all.
    I get the same thing weather I run XP SP3 or Win 7 x86 and I've probably tried ten games all together.
    I'm thinking it must somehow be driver (or else way BootCamp) related since all games have been successfully run on native PCs.
    Any ideas?

    I get a short flash of a dos prompter that disappears within the fraction of a second and then nothing happens at all.
    That sounds almost like trouble with your Windows Installer.
    What versions of Windows installer are you running for each of your OSes?
    A quick way to check: bring up a Run line, type msiexec and hit the Enter key. The Windows Installer version should be at the top of the information screen that comes up.

  • Aggregator EXE files won't run

    Hi,
    I'm new to using Captivate and I recently created my first Captivate-based lesson. I have 5 discrete learning modules each with their own multiple-choice quiz, so I decided it would be best to make 5 different projects and then stitch them together using Aggregator. I want to publish both an APP file for Mac users and an EXE file for PC folks. The APP file I create in Aggregator runs just fine, but the EXE file won't run. There are no error messages, it just doesn't do anything when you try to run the file.
    Here is what I have tried (without success):
    Both XP and Win 7 (won't run on either)
    Installing newest version of Flash Player
    Running the EXE file as an Admin
    Oddly enough, if I publish each of the 5 projects as an EXE separately, they run just fine. My back-up plan is to make the PC users open each of the 5 modules separately, but I'd prefer to avoid this if I can.
    Am I doing something wrong in Aggregator? It seems pretty simple and the APP file works...
    Thanks for any help!
    Jess

    Hi Rod,
    That was a great idea. Unfortunately, none of the 5 Aggregator EXE files (each with one of the 5 projects missing from it) worked. I double-checked the 5 EXE files that I published individually directly from Captivate (without Aggregator) and all of them work just fine. It's looking like I need to go with plan B and just force my users to return repeatedly to the CD-ROM to open each subsequent module.
    I asked a friend to run the Aggregator-created APP file on his Mac and it wouldn't run for him even though it will run for me on my Mac. So I'm thinking I will need to publish each of the 5 projects as separate APP files as well and the Mac and PC folks will be in the same boat.
    Thanks,
    Jess

  • Java Malfunction in Mac OSX 10.5 - .jar files won't open

    All of a sudden none of my .jar files will open (most importantly the dimsum.jar which I use almost everyday). I have run a clean up of my cache and tried everything I can think of to bring back the .jar operations and nothing works as it did before. Upon attempting to open the file my Console messages consist of a huge list of font names something like (0x0-0x233233.com.apple.JarLauncher1561 Type: TONES Name: ZoobeSSK-BoldItalic) and I get a loading window that freezes never leads to the main program.
    I had this problem before and I simply rearranged my Java preferences so the 32-bit J2SE 5.0 was at the top of the list and it solved the issue but this time it didn't work. Right now my Java Applications list order is like this
    J2SE 5.0 32-bit
    Java SE 6 64-bit
    J2SE 1.4.2 32-bit
    J2SE 5.0 64-bit
    Being that I am not an official "developer" and that I only basically know my way around OSX, I thought maybe I could skirt the problem by changing my .jar file into an .app and skip the Java console all together. So I DL'd jarbundler which it turns out is also a .jar file and it won't open either. I simply get a message saying "The Java JAR file "jarbundler 2.1.0.jar" could not be launched."
    Here is the Console message when I attempt to open Jarbundler.jar if this helps:
    10-1-28 上午07:34:44 0x0-0x503503.com.apple.JarLauncher3309 SystemFlippers: didn't consume all data for long ID 0 (pBase = 0x100142770, p = 0x100142774, pEnd = 0x100142778)
    10-1-28 上午07:34:44 0x0-0x503503.com.apple.JarLauncher3309 SystemFlippers: didn't consume all data for long ID 0 (pBase = 0x10012d530, p = 0x10012d534, pEnd = 0x10012d538)
    10-1-28 上午07:34:44 0x0-0x503503.com.apple.JarLauncher3309 Failed to load Main-Class manifest attribute from
    10-1-28 上午07:34:44 0x0-0x503503.com.apple.JarLauncher3309 /Users/XIV/Desktop/jarbundler-2.1.0/jarbundler-2.1.0.jar
    Can anyone PLEASE suggest a solution? Or a reason as to why this might have happened when it was working fine a month ago and how to prevent this from happening again?
    Thanks in Advance

    Recently nothing has really changed... I tried reinstalling my stock fonts and that didn't help. The programs that aren't working are Dimsum (http://www.mandarintools.com/dimsum.html) and Jar Bundler that comes with the Apple's free Xcode Developer Tools. I thought if I could get Jar Bundler to work I could turn Dimsum into an app and dodge the problem altogether, but that didn't work either... My Java is updated (according to my computers Software Update window) and everything else seems to be working fine... I hope it doesn't turn into a system reinstall...

  • Dynamic jar file inclusion at run time

    Hello,
    I have a java application which should accept the three parameters.
    1) The jar file location
    2) Particular Class file insdie that jar(we specified the location in step number 1)
    3) And method name in that class.
    My question is how to include specified jar location with jar name to CLASSPATH at run time. So that i can execute a particular method name in step number (3).
    I would appreciate for the quick reponse or any input.
    Thanks,
    Raghu

    And if you want to change the system classpathduring
    runtime, don't forget that you can always use
    reflection to call the System classloader'sprotected
    addUrl method :)Really?
    Seems reasonable although this is the first time I
    have seen that referred to.you can indeed. I've done this, as a quick avoid-writing-a-classloader hack. wouldn't really recommend it, though. if you're using reflection to modify access, chances are you're doing a massive fudge
    and of course, since it's not part of a public API, there's absolutely no reason to the method won't simply disappear in a future release....

  • How can I create a jar file that will run automatically on double click

    all the jars I created run only from the command-line.
    how can I make it run by double-click on it?

    First you will need to associate .jar files with the javaw.exe program in order to just be able to double click on the jar and run it from within a windows explorer application. Next you will need to set the main class attribute of the manifest file. My understanding is that the value of this attribute is used by the launcher to know which class to load. In other words, which is your main application class. To specify this attribute open your manifest file in a text editor. You will find this file located within the jar at META-INF/MANIFEST.MF. Then, add the line,
    "Main-Class:<relative path to the main class>" However, remember not to add the .class extension to the end of the class name.
    In Windows 2000 you can associate jar files with javaw by finding a jar file in Windows Explorer and right clicking it. This will give you a context menu which should have an Open With... option (if you are not using Windows 2000 and don't see the 'open with' menu item, try holding down the shift button while right click on the file). Select the Open With... option, then, when the dialog appears highlight javaw and select the "Always use this program to open these files" checkbox. When you hit the OK button you should have all your jar files associated with the javaw process.
    Once you've done this, you should be able to double click on your jar file and run your application.
    Regards,
    Daniel Walsh

  • JAR file decompressed before run?

    hi,
    does anyone know if a JAR file is decompressed totally to some temporary location before it is run? So if you had a 1Gb Jar file that was mostly odd files, and a few java classes to do some optional processing which never occured, would the remainder of the jar be decompressed?
    thanks,
    asjf

    Oops, wrong answer to wrong thread.
    Jars a decrompressed on demand but the JRE might cache the whole Jar file.
    But anyways: Who uses such big Jar files?

  • Batch File Won't Run as a Scheduled Task

    I have two batch files that won't run as scheduled tasks but run perfectly fine when I double-click them.
    I've already set them to run with highest privileges, the account running them is an administrator account, that account has full permissions to the folder and file. I've checked every thread I could find but they simply won't run. No error, no log, nothing...
    If I right click the scheduled task and select Run, nothing happens.
    Any ideas?

    Hi,
    As far as I know, you have to enter the script folder in the "Start in" field. Else it just won't work - and won't really give you any meaningful error messages. So, please check your setting.
    Roger Lu
    TechNet Community Support

  • Jar file doesn't run properly, please help!

    Hi everyone, i'm a student and i'm programming a game for my homework of AI subject. When i compiled the code from Eclipse, the game run smoothly, but when I create the jar file of the project, it appear blank when i run it. Here is the image:
    [blank screen|http://c.upanh.com/upload/4/299/3L0.8429518_1_1.png]
    and run from Eclipse:
    [Run from Eclipse|http://c.upanh.com/upload/4/299/TL0.8429668_1_1.png]
    I have followed the instruction of creating jar file in Eclipse properly, and now the trouble come. If anyone can show me how to solve this problem?
    Thanks all.

    I have all of e.printStackTrack( ) in my try - catch block. But i also think the blank screen appears because the class can not find my resources. Maybe it's my fault, because i create by hand a folder name "res" in project folder, then put all my resource in this folder. And in Eclipse when i try to get these resource, i wrote something like this:
         Image robot1N, robot1E, robot1S, robot1W;
         private void initResources() {               
              try {               
                   String sb = "car1";
                   robot1N = ImageIO.read(new File("res\\img\\unit\\" + sb +"_N.png"));
                   robot1E = ImageIO.read(new File("res\\img\\unit\\" + sb +"_E.png"));
                   robot1S = ImageIO.read(new File("res\\img\\unit\\" + sb +"_S.png"));
                   robot1W = ImageIO.read(new File("res\\img\\unit\\" + sb +"_W.png"));
              catch(Exception e) {
                   e.printStackTrace();
         }Maybe the string of path to resource is right in Eclipse but wrong in Window?

  • Decompiling jar file and then run

    Dear Members,
    I have a jar file and I have decompiled that jar file and converted into class file,
    now I want to run/edit using source code ,I am unable to run source code with out put whatever coming in jar file running,
    I am trying with class in which
    public static void main(String[] args)
    function defined,
    I am using Jcreater1.5 and from command prompt also running but unable to run and edit the programm,
    how to run these class file in complete project that output will come as running jar file
    regards
    SACHIN

    It sounds like you have unpacked the jar.
    To edit the source you need to decompile the classes to .java files.
    [http://www.google.co.uk/search?q=java+decompiler]

  • JAR files don't run on Linux

    Hey All:
    I installed JDK1.3.1(win32) on Windows, double clicked my JAR file (proper manifest and classes within) and it started the swing program just fine.
    I installed JDK1.3.1(linux) on Red Hat 7, double clicked my JAR file, and it wants to know which Fk'n program to open it with! What happened here, I thought java/swing runs on linux?
    The JDK installed java in /usr/java/jdk1.3.1/bin/java, do I somehow need to point linux there for .jar files to execute automatically? What are the commands to do this?
    Thanks in advance,
    Stephan

    As far as I know, the double clicking on a jar file to execute it only works on windoze. On linux, you can can use:
    java -jar foo.jar&
    to execute the jar, assuming you have the main class included in the manifest. I don't know if there are any plans to change this. You should be able to write a script or somesuch which prepends 'java -jar' when you double-click.
    m

  • Mac executable file won't run on Mac

    I am trying to get a mac executable file to run on a mac. It has been authored in Captivate 5.0 PC version.
    I have tried to run it on a Mac book, about 5 years old and nothing opens at all and same on an old G4. I have had no other opportunity to test it on another mac.
    The the html/flash version plays ok in safari, but not .app or PDF. All files designed to run on PC run ok.
    I am a complete novice on mac's, but assume that opening the .app file like an .exe file on PC will launch the program.
    The package I have made is about 96 mb as a .app file and is about 80 odd slides long and also contains an number of flv files.
    I have been looking very hard to see if anyone else is has experienced the same or similar problem and have found nothing useful.
    I would assume it has nothing to do with flash player as everything that the program needs should be self contained in the executable.
    Thanks

    The G4 is running OS 10.2.3.
    I created a test Mac projector in Director then tested it on the same Mac and the .classic and .osx files ran ok.
    Do you think it is an issue with Captivate .app files not being compatible with early version of OS?, or something more fundamental with the .app files and the OS.
    I guess there is no realistic way to convert the Captivate .app file directory to a .osx file?, as there may well be occasions when the package will be used on older Mac OS systems.
    I will try and get it tested on a  later OS System.
    Many Thanks

  • The mathscript file won't run past a certain point in the node.

    i have this plugged into my mathscript node and it won't run the output past the 2nd to last "if end" please help!!
    C=WB*(FL+FR)/(RR+RL+FR+FL)
    P=TW*(FL+RL)/(RR+RL+FR+FL)
    W=(RR+RL+FR+FL)
    if WA<0
    R=C/(cos((atan((WB*tan((pi/2)-abs(WA))+.5*TW)/C))+YA))/12
    end
    if WA>0
    R=C/(cos(-(atan((WB*tan((pi/2)-abs(WA))+.5*TW)/C))+YA))/12
    end
    LA=(V^2/R)/32.2
    if (WA<0)
    LO=PB*.008
    WL=W*((P/TW)-(LA)*(CGH/TW))
    WR=W-WL      
     WFL=WL*((C/WB)-(LO*CGH/(WB)))
     WRL=WL-WFL
     WFR=WR*((C/WB)-LO*CGH/(WB))
     WRR=WR-WFR
    end
    if (WA>0)
    LO=PB*.008
    WR=W*((P/TW)-(LA)*(CGH/TW))
    WL=W-WR      
      WFL=WL*((C/WB)-(LO*CGH/(WB)))
     WRL=WL-WFL
     WFR=WR*((C/WB)-LO*CGH/(WB))
     WRR=WR-WFR
    end
      if ((WA<0) && (YA>0))
    BFRL=WRL*.8*.2
    end
    if ((WA<0) && (YA<0))
    BFFR=WFR*.8*.3
    end
    if ((WA>0) && (YA<0))
    BFRR=WRR*.8*.2
    end
    if ((WA>0) && (YA>0))
    BFFL=WFL*.8*.3
    end
    if (BFFL>0)
    M=((((WFL*.8*.3*PB)+(WRL*.6*.2*PB))*(TW-P))-(((WFR*.8*.3*PB)+(WRR*.6*.2*PB))*(P))+((WFL+WFR)*(LA*.8)*(WB-C)-(WRL+WRR)*(LA-.6)*C))/12
    end
    % It won't calculate M past this point It is just always zero but it will calculate M for the statement above and if i switch them around it will work for which ever is on top
    if (BFFR>0)
    M=(abs((((WFL*.8*.3*PB)+(WRL*.6*.2*PB))*(TW-P))-(((WFR*.8*.3*PB)+(WRR*.6*.2*PB))*(P))+((WFL+WFR)*(LA*.8)*(WB-C)-(WRL+WRR)*(LA-.6)*C)))/12
    end

    Hi thomasgtsr,
    which are your inputs and outputs? Can you please explain a little bit more in detail what your problem is? Maybe it is possible for you to upload your vi.
    Mike

  • Jar file won't execute

    I have written a program to manipulate an access database, it works fine from Eclipse but when I create a jar file using Jarbuilder 0.8, this jar file wont execute. It returns
    Exception in thread "main" java.io.IOException: invalid header field
    at java.util.jar.attributes.read(Unknown Source)
    at java.util.jar.Manifest.read(Unknown Source)
    at java.util.jar.Manifest.<init>(Unknown Source)
    at java.util.jar.Jarfile.getManifest(Unknown Source)
    The whole set of classes is online together with the database at users.skynet.be/NewOne/Televisie.rar (with Hoofdvenster as Manifest)
    and the jar file at
    users.skynet.be/NewOne/Televisie.jar
    I was wondering, do I have to include anything special because i m working with an ODBC here, or what else could be the problem ?
    All comments and suggestions are welcome, thnx in adance !!

    Hi there!
    After a brief look at your manifest a saw that you specifie the path to your main-class like this:
    Main-Class: gui/Gui
    ...and when you make the jar-file you type:
    jar cmf Manifest.txt JAppointment.jar Gui/*.class ...etc..
    Remember that Java is case-sensitive and look at "gui" and "Gui" differently!
    Maybee that could be the problem?
    /Andrew

  • JAR file won't HTTP Upload

    I've set up an JavaScript-validated HTML form on CodeTree.org that accepts multiple file uploads: a jpeg, a zip file, and a JAR or SWF file. When site users attempt to upload the JAR file in Safari, it doesn't always work, yet the JPEG and ZIP always upload fine. Does anyone have an idea as to why this occurs? This isn't a problem with Firefox or IE6 PC, and I've written a pretty thorough checker in my PHP5 class.

    Hi there!
    After a brief look at your manifest a saw that you specifie the path to your main-class like this:
    Main-Class: gui/Gui
    ...and when you make the jar-file you type:
    jar cmf Manifest.txt JAppointment.jar Gui/*.class ...etc..
    Remember that Java is case-sensitive and look at "gui" and "Gui" differently!
    Maybee that could be the problem?
    /Andrew

Maybe you are looking for

  • Using Oracle Forms

    Ok I'm a beginner at this! I plan to use Oracle to create a medical data base for patients. However, This is the most complicated database I've seen and the best. So, how do I use create form for use on my personal computer first before trying to use

  • Gigabyte GA-X58A-UD7 No Longer Available?

    Great. I spend two days trying to decide what motherboard I should use which would be supported by BlackMagic DeckLink/IntensityPro. Of their short list of supported boards, I decide on a Gigabyte GA-X58A-UD7 which has all the features needed. I get

  • Why is text not showing

    I have been creating the same template brochure without any issues. However, today, something has happened with my layers and I can't figure why. Using the same template, I am replacing one background image with another and arranging it at the back (

  • Unable to burn long movie on Bluray

    Longer movies, edited in FCP , converted to QT, won't burn on my external bluray LG-burner. Short movies: no problem. I get this error code from Toast 10: - The drive reported an error - Sense key = medium error - Sense Code = 0x10 - Invalid block si

  • Export from FCP5

    Will anyone share their settings for the best (highest quality) settings for export from FCP5? I have had, what I would call, less than satisfactory results using Compressor 2. I know the MPEG encoder will have a significant impact on the quality of