Jar file Corrupted

Hi
I created an exe for a jar file using Xenoage.
The exe file executes fine in normal conditions.
I used a license manager for my software.
The input file for the license manager is the exe
file created by Xenoage.
The output file obtained is in an unrecognised format. When
i execute the file using java the error that i get is
Invalid or corrupt jar file+
What could be the reason for the jar file to be corrupt.
with Regards
A.Rajesh

>
I have auser that gets the following error message when he tries to launch my application through Java web start:
An error occured while launching/running the application.
Corrupted JAR file at http://javadl.sun.com/webapps/javawsautodl/AutoDL/j2se/javaws-1_0_1-j2re-1_6_0-inst-windows-i586.jar>
That URL is a 404, it does not exist. Where did it come from? Your JNLP file?
Speaking of which, where is your JNLP file (URL or content)?
>
I have asked to perform the following operations but without any success:
- re-install the JRE
- clear the cache of the JWS applications>How about changing the cache location entirely? I describe how on the last post of this thread.
<http://forum.java.sun.com/thread.jspa?threadID=5209499>
>
He gets exactly the same message when trying to execute:
javaws.exe -viewer >Same deal when launching the player?
<http://java.sun.com/products/javawebstart/apps/player.jnlp>

Similar Messages

  • Jar file corrupt  error in JNLP

    Hello there,
    I am developing a java swing application which i wanted to make it available on our corporate network for demo purpose.
    The java application uses oracle 10g database which i made it to run with web start i.e converted to jnlp.now the jnlp works fine on my computer i mean using
    <jnlp spec="1.0+" codebase="file:///C:/Project/jnlp/">
    but when i try to run it from my apache server
    <jnlp spec="1.0+" codebase="http://192.168.205.81" href="testJdbc.jnlp">
    ,i get jar corrupt error.i also tried to open the jar file from my apache webroot.but i get the same error.but when i tested a simple jnlp application from apache it works fine.but the difference between the two test is the simple jnlp has only jar fine which is the application.the other apllication has two jar files one for the application and another for oracle jdbc driver.please help. one thing to mention is
    when i clcik on the jnlp file in the browser,i get to see the java web start which shows the progress bar and mentioning downloading ojdbc14.jar which starts loading,then it says reading ojdbc14.jar which goes to 100 % and then it displays a box requested http://123.122.22.11/ojdbc14.jar and error saying corrupted ojdbc14.jar(which is the name of the jdbc jar file) .
    please help i have been stuck on this for the past one week.

    this is my virtual host i set up in my apache server
    NameVirtualHost *:80
    <VirtualHost *:80>
    ServerName jnlp
    DocumentRoot "C:/Project/jnlp"
    <Directory "C:/Project/jnlp">
         Options Indexes FollowSymLinks
              AllowOverride All
              Order allow,deny
              Allow from all
    </Directory>
    </VirtualHost>
    and this is my jnlp file
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+"
    codebase="http://jnlp/" href="TestDSL.jnlp"
    >
    <information>
    <title>Check</title>
    <vendor>Developer Connection</vendor>
    <description>Demonstration</description>
    </information>
    <offline-allowed/>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.2+" />
    <jar href="dedslam.jar"/>
    <jar href="ojdbc14.jar"/>
    <jar href="sqljdbc.jar"/>
    </resources>
    <application-desc main-class="src.com.victa.Login" />
    </jnlp>
    and i call this from the browser http://jnlp/TestDSL.jnlp
    but still i get the error.

  • Invalid or COrrupt JAR file

    I have one jar file of java classfiles created in eclipse. Its working fine with eclipse after giving Run Configuration (main class).
    But when I try to run jar file from command prompt its giving me error - ' Invalid or corrupt jar file'
    I have edited Manifest.mf for adding Main-Class also.
    I have also checked in Tools-->folder option-->File Types-->Selecting Jar-->Advanced-->Edit and given the correct path of javaw.exe like - "D:\SDP75\jdk\bin\javaw.exe" -jar "%1" %*. The same jdk used for compling the classes.
    Please help me. I have done volumes of googling for this. This is very crtytical to me.
    Thanks

    802387 wrote:
    Its working fine with eclipse after giving Run Configuration (main class).So it works if you just run the main class.
    >
    But when I try to run jar file from command prompt its giving me error - ' Invalid or corrupt jar file'
    But it doesn't when you attempt to run it as an executable jar.
    I have edited Manifest.mf for adding Main-Class also.
    As a guess that is the problem. You messed up that file.
    Or you are not running the same thing in both cases.

  • Application jar file is corrupt

    Hi Everyone,
    Having written a very simple application using ME software develeopement kit, when ran the emulator prompts me to either INSTALL APPLICATION or MANAGE CERTIFICATE AURTHORITIES.
    If INSTALL APPLICATION is selected I'm then prompted to ENTER A WEBSITE TO INSTALL FROM into a textbox. MANAGE CERTIFICATE AURTHORITIES presents some spurious code and I don't know what it means. However when ran for the first time, everything seemed to go swimmingly untill I was informe of (I Think) 'Application jar file is corrupt' and then subsequently as described above.
    I don't know a great deel about computers, but looks to me like a random problem requiring a random solution - very frustrating! If anyone would like to help I'd be very greatful indeed.
    James

    pavanpotru, welcome to the forum. Please don't post in threads that are long dead. When you have a question, start your own topic. Feel free to provide a link to an old post that may be relevant to your problem.
    I'm locking this thread now.
    db

  • Corrupted ojdbc14.jar file

    I have twice attempted to download the latest version of the Oracle JDBC drivers. Both times, the files seem to be corrupt.
    Attempting to examine the ojdbc14.jar file contents with the following command:
    jar tvf ojdbc14.jar
    leads to the following error message:
    java.util.zip.ZipException: incomplete literal/length tree
    Attempting to examine the ojdbc14_g.jar file contents with the following command:
    jar tvf ojdbc14_g.jar
    leads to the following error message:
    java.util.zip.ZipException: invalid stored block lengths
    Attempting to read either file with EnZip utility program gives the following errors:
    Warning - Error in Zip structure
    A central header signature is wrong
    Can anyone tell me how to get around these errors?
    Dave Eland
    [email protected]

    Well. On the third try, it worked OK. The first two times, I was using Netscape to access the web site, and the third time I had switched to Internet Explorer.
    This is the first time I have seen this phenomena. Whatever was causing the file corruption seems to have been resolved.

  • Corrupt .jar files

    Hi All,
    We are trying to deploy JDeveloper for OAFramework through patch 4573517.
    After extracting, we are facing errors for initiating OC4J instance due to corrupt .jar files.
    So if any one is having the listed .jar files for JDeveloper OAF compatible, kindly mail on [email protected]
    .jar files
    aolj.jar
    classes111.jar
    classes12.jar
    flex.jar
    oamdsct.jar
    ojdbc14.jar
    portalFlexComps.jar
    regexp.jar
    sax2.jar
    share.jar
    uix2.jar
    xmlparserv2.jar
    Thanks in Advance
    Sachin

    It didn't work, but I can reach sites that I have a link to on my Desktop. I haven't had Mozilla Firefox very long and I don't even remember what should appear when I select it. Any other thoughts? I appreciate your reply irregardless. At least I am now backed up with a new restore point. Many thanks bens545

  • Corrupt pbclient44 Jar file...

    Hey all,
    I seem to have a corrupt pbclient44.jar file, where one of the classes which is in it can not be 'found.' Other classes are accessed just fine, so I'm guessing it may have been a download problem or something.
    I really dont want to re-download the entire WebLogic Server software for just one JAR file. Is there a way to just get the pbclient44.jar file??
    Thanks for any help/insight...

    Try from Pointbase web site
    Jin

  • What do I do about a corrupt jar file at C:/Program Files (x86)/MozillaFirefox/omni.jar!/chrome/browser/content/browser/places/content-ui/controller.xhtml.

    Mozilla Firefox is my default browser, but the page doesn't load and I get the message that Mozilla can't find the file at Jar file. I was told to check the file name for capitalization or other typing errors. Then check to see if the file was moved, renamed or deleted. When I checked the file, I was told that it was corrupt. I use Mozilla Thunderbird and I don't want to do anything to jeopardize my e-mail and address book, etc.

    It didn't work, but I can reach sites that I have a link to on my Desktop. I haven't had Mozilla Firefox very long and I don't even remember what should appear when I select it. Any other thoughts? I appreciate your reply irregardless. At least I am now backed up with a new restore point. Many thanks bens545

  • Jar:// protocol corrupting stream when jar file changes

    We've implemented a custom classloader that allow it to be given multiple directories to search for classes including any jar files within the root of the directory.
    So if there are any Jars in the given directory then it will search in these jars for the class.
    Here lies the problem. To implement the findResources method in the classloader we need to pass back a URL object to this jar for the resource that we want.
    So for example if we want myText.properties that lives in the file myJar.jar then the classloader will find this jar and pass back a URL of jar://myJar.jar/!myText.properties.
    Then we can do a
    in=url.getInputStream();
    in.read(); which works fine.
    Now the problem.
    if we now update the jar file and create a new classloader object and go through finding this resource. When we try to read the inputstream we get the following exeption :
    java.util.zip.ZipException: invalid block type
         at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:137)I've narrowed it do to the JarURLConnection Stream handler. Seems that this is half caching or something.
    Here is a code sniped to reproduce the error.
    for(int a=0;a<2;a++){
            try {
              URL u=new URL("jar: " + new File("d:/myJar.jar").toURL() + "!/" + "myText.properties");
              JarURLConnection juc=(JarURLConnection)u.openConnection();
              InputStream in=juc.getInputStream();
              System.out.println(in.read());
              in.close();
               catch (Exception ex) {
                 ex.printStackTrace();
              System.out.println("Change the Jar file to a newer version you have 10seconds");
              synchronized (this) {
                try {
                  this.wait(10000);
                catch (InterruptedException ex1) {
          }So if you use one Jar version you'll get an output. Then it will wait 10seconds while you change or update your Jar and then it will go round again and produce the execption.
    This is happening on both 1_3_1_08 and 1_4_1_02.
    Any help would be appriciated.
    Cheers
    Johnnyfp

    I've seen a very similar result from using URL.openStream(). Start with two copies of 'yourJar.jar', but change the manifest of one to make it a different size.
    String jarName = "yourJar.jar";
    String containedFile = "META-INF\MANIFEST.MF"; // for example
    URL jarUrl = ...make an url from jarName and containedFile
    InputStream is = jarUrl.openStream();
    byte[] bytes = ...read the bytes...
    is.close();
    println( 'bytes found: " + bytes.length );
    Put this code into a method and put a call to it in a loop with XXX second sleep.
    This will work with either jar file. But if either jar is replaced by the other during sleep (simulating hot deployment), a ZipException is thrown, invalid block type.
    Each new iteration starts fresh with string names, the code doesn't explicitly retain any other references from one iteration to the next. There's no URLConnection on which to setUseCaches().
    The work-around for this is to avoid URL. Replace the 'URL...' and 'InputStream...' lines above with
    JarFile jf = new JarFile( jarName );
    InputStream is = jf.getInputStream( containedFile );
    and the same hot deployment scenario works.
    I've seen the same results with Sun 1.4.1_02, 1.4.2_01, 1.5.0 (beta) and IBM 1.3.1.

  • Dumping Firefox 4 due to constantly corrupted jar file

    Firefox can't find the file at jar:file:///C:/Program Files (x86)/Mozilla Firefox/omni.jar!/browserconfig.properties.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    See also:
    * http://kb.mozillazine.org/Preferences_not_saved

  • Deployment Profile Corrupts the jar file in Linux

    I am facing the follwing issue in the DROP 6 jdev.
    Have created a deployment profile which updates a jar file in <jdev>/extenstion directory. But whenever I try to execute it through jdev, the jar file is getting emptied. Any reason or workarounds for this issue?
    thanks
    Ramesh

    Please post DROP 6 issues on the Oracle internal discussion forums or to the jdev_us list

  • How to list files that are NOT in a .jar file?

    Is it possible to list files (resources, .gif/.jpg files, etc.) that are NOT included in the jar but are still to be considered part of the application somewhere in the jnlp-file?
    My applications requires lots of icons which I have put into .gif files. So far I kept them in individual files next to the .jar file and that worked fine.
    JWS now seems to support only stuff that is included in (a) .jar-file(s). That in itself woul not be much of a problem, however, when I include my .gif files into the .jar files they seem to get corrupted by the jar-signing process (at least that what's the code says, which can suddenly not handle these images any more).

    My previous seem to have been non-sense. The .gif file were not corrupted, but rather they were not found at all. They actually must NOT be included in the .jar file, or else they are not found. Strange enough, the .properties-file seemingly HAS to be in the .jar file to be found.
    This is something I'll probably never fully understand with java: which file-types it searches where...

  • Deleting file from .jar file

    I m having trouble with the Forum search, so sorry if this question has been answered before in this forum.
    If I create a .jar (or an .ear) file, then open the file using Winzip and then delete a file from the zip, does it corrupt the .jar file? I ran into such a problem recently where I could not deploy the application because the .ear file still contained references to the deleted file.

    No, Winzip doesn't corrupt jar files. But if you have something else that expects to find X in the jar file and you deleted X, it isn't surprising that problems arise.

  • Firefox won't open, error message"can't find file at jar:file" etc.

    "Firefox cannot find file@jar:file:///program files/Mozilla Firefox/omni jar!/browser config. properties." I tried to download firefox and refreshed the desktop link and still no go. Cannot get firefox to browse.

    Se also:
    *http://kb.mozillazine.org/Preferences_not_saved
    *https://support.mozilla.org/kb/Preferences+are+not+saved
    Create a new profile as a test to check if your current profile is causing the problems.
    See "Basic Troubleshooting: Make a new profile":
    *https://support.mozilla.org/kb/Basic+Troubleshooting#w_8-make-a-new-profile
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins" in case there are still problems.
    If that new profile works then you can transfer some files from the old profile to that new profile, but be careful not to copy corrupted files.
    See:
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • How do I add a jar file into the build path of the compiler?

    Hey,
    I'm trying to import a jar file into the build path of the compilation process, but it does not find the packages or the classes that are in it.
    I think I don't add it right...
              ArrayList<String> options=new ArrayList<String>();
              options.add("-d");
              options.add(targetDirectory);
              options.add("-classpath");
              for(String str:includeDirectory)
                   options.add(str);
              if (!compiler.getTask(writer, fileManager, diagnostics, options, classes, compilationUnits).call());
                    ....and I've tried this way:
         public void setTargetDirectory(String targetDirectory) {
              this.targetDirectory = "-d " + targetDirectory;
         private void compile(Iterable<? extends JavaFileObject> compilationUnits) throws Exception {
              ArrayList<String> options = new ArrayList<String>();
              options.add(targetDirectory);
              String classPath="-cp ";// tried this also with "-classpath"
              for (String str : includeDirectory)
                   classPath+=str+":";
              options.add(classPath);
         if (!compiler.getTask(writer, fileManager, diagnostics, options, classes, compilationUnits).call())
              // throw new Exception("Compilation Error");
         }Thanks in advance,
    Adam.
    Edited by: Adam-Z. on Feb 24, 2010 5:41 AM
    Edited by: Adam-Z. on Feb 24, 2010 5:42 AM

    Thank you for your reply,
    Q: Are there .class files in that directory in that jar file? (the compiler doesn't ( can't )) look for directories, it can just look for specific files , and scan to get a list of all files matching certain criteria. So if there are no class files, it will say the package doesn't exist, even if there is a directory, possibly containing other files.yes there are class files in the jar, the tree structure:
    j2MeDataChunkGenerator_Plugin\(lots of class files)
    META-INF\manifest.mf
    and thats it.
    , your code will only work on windows because other platforms use a different path separator. You should use java.io.File.pathSeparator not explicit ';" when building your classpath. (this is unrelated to your problem, but you should correct it)will do, thanks.
    Q: Is that error in your post formatted by your own diagnostics? (we could possibly help you better if we didn't have to guess!!)I would not post my own error code, this text is generated by the compiler diagnostic.
    {code}
         System.err.println(" Error details: " + diagnostic.getMessage(null));
    {code}
    Q: Is line 3 of ImageCroper_Editor.java (sic) an import statement? (we could possibly help you better if we didn't have to guess!!)it is an import error... didn't the error message stated that it is an import problem? wired, I'm sure before it did. anyway it is an import error.
    Also you don't show us what the variable includeDirectory is in terms of type, and contents, that might be helpful. (we could possibly help you better if we didn't have to guess!!)It has only one String object: "D:\%Important Documents\WorkSpaces\PacMan\ApplicationManager\Plug-in\Data Chunk Designer.jar"
    the last file on the classpath list.
    Q: Have you proven this? that i did post, in this long line of text.
    Q: Is the compiler finding other classes (in other packages) in that same jar file?No. all the class files are in the jar, they all have entries that start with "j2MeDataChunkGenerator_Plugin\*.class", and since I get 47 errors I guess it does not load any other class.
    thank you for you comments, the problem with having these errors, is that I can't even get a piece of information where this error is coming from, only that it is an import loading error package not found, what does that mean? that the jar was not loaded in compilation(no error about this), that the jar is corrupted(no error about this), that the path is incorrect(it is correct I made sure), that there is no such package in the jar(There is), that the compiler does not load the package(does it even do that?), really I can't even guess why this happens, I've been at this on and of all day today, really annoying.
    Thanks,
    Adam.

Maybe you are looking for

  • SAAJ with Attachment

    Hi, I have a problem when I use SAAJ with attachment, and I using jboss + axis. This is my error: "ERROR [MimeUtils] java.io.IOException: ClientAbortException: java.net.SocketException: Connection reset by peer: socket write error" Maybe, it's the si

  • PUrchase Variance

    Hi, i have a problem... i have check it, but until know not found the solution.. I have a PO and that PO is already MIGO and MIRO. for Example : in PO item A      qty 190     price : 1.3020 USD in purchase order history MIGO   - > qty : 190       Amo

  • Question-Recovering tablespace in physical Standby...Oracle 10g?

    Hello: I have an interesting issue. I thought I will ask the group. I have a physical standby database in 10g. Once of the datafile is in inconsistent state due to a crashed DB during recovery from the last time around. I do not have any archivelogs,

  • Aperture 2 and iPhoto

    Hello, Does anyone know if when you import iPhoto pictures into Aperture 2, does Aperture copy over the originals into the Aperture Library, or does it just create thumbnails in the Aperture Library. What I am trying to determine is whether or not Ap

  • WebDynpro Exception: ADS: Request start time: Wed Apr 29 06:32:41 CDT 2009

    Hi, I am running Interactive form through WebDynpro for ABAP in SE80 Tcode. While running i'm facing below problem. WebDynpro Exception: ADS: Request start time: Wed Apr 29 06:32:41 CDT 2009(200.101). �ꯂ塈��P The following error text was processed in