Results 1 to 4 of 4

Thread: Error in JBuilder 2005 application

  1. #1
    Join Date
    May 2008
    Posts
    351

    Error in JBuilder 2005 application

    I developed an application in JBuilder2005 and I create the .jar file. But when I try to run it from the command line, I get the following error message:

    Exception in thread "main" java.util.zip.ZipException: The file is not found
    at java.util.zip.ZipFile.open (Native Method)
    at java.util.zip.ZipFile.<init> (ZipFile.java: 112)
    at java.util.jar.JarFiles.<init> (JarFile.java: 127)
    at java.util.jar.JarFiles.<init> (JarFile.java: 65)
    I even tried to double click the .Jar file but that doesn't work either. I reinstalled the JBuilder2005 but the problem remains the same.

  2. #2
    Join Date
    Apr 2008
    Posts
    2,005

    Re: Error in JBuilder 2005 application

    How are you running your jar from the command line?

    Also usually when there is an exception, the StackTrace will also tell you where is your error. e.g which line number generates that error.

  3. #3
    Join Date
    May 2008
    Posts
    351

    Re: Error in JBuilder 2005 application

    Code:
    java -jar name_application. jar
    this is how I ran the jar file.

    For the line that generates the error, everything is mentioned in the first post. I think you missed that part.

    at java.util.zip.ZipFile.<init> (ZipFile.java: 112)
    at java.util.jar.JarFiles.<init> (JarFile.java: 127)
    at java.util.jar.JarFiles.<init> (JarFile.java: 65)

  4. #4
    Join Date
    Apr 2008
    Posts
    2,005

    Re: Error in JBuilder 2005 application

    at java.util.zip.ZipFile.<init> (ZipFile.java: 112)
    at java.util.jar.JarFiles.<init> (JarFile.java: 127)
    at java.util.jar.JarFiles.<init> (JarFile.java: 65)
    This certainly occurs if you are calling things that do not exists. As per your code, at the 112 line you might have called for a zip file which either doesn't exists or the location of the file is wrong. The same goes with the jar file in line 127 and 65. Just provide the proper location and that's it. You are done.

Similar Threads

  1. Ms Sql Server 2005 Error
    By angaiah in forum Software Development
    Replies: 2
    Last Post: 07-07-2011, 12:34 AM
  2. Replies: 3
    Last Post: 02-04-2011, 07:33 AM
  3. Jbuilder for Mac OS X
    By Simpson in forum Operating Systems
    Replies: 3
    Last Post: 16-03-2009, 10:43 PM
  4. jbuilder project to other ide
    By Gagnesh in forum Software Development
    Replies: 2
    Last Post: 15-12-2008, 06:06 PM
  5. Error trying to install Visual Studio 2005 Pro
    By Aadimoolan in forum Window 2000 Help
    Replies: 1
    Last Post: 31-08-2007, 11:44 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,138,326.97532 seconds with 16 queries