Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , ,

Sponsored Links



Error in JBuilder 2005 application

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 11-05-2009
Elsie's Avatar
Member
 
Join Date: May 2008
Posts: 353
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:

Quote:
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.
Reply With Quote
  #2  
Old 11-05-2009
kelfro's Avatar
Member
 
Join Date: Apr 2008
Posts: 1,976
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.
Reply With Quote
  #3  
Old 11-05-2009
Elsie's Avatar
Member
 
Join Date: May 2008
Posts: 353
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.

Quote:
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)
Reply With Quote
  #4  
Old 11-05-2009
kelfro's Avatar
Member
 
Join Date: Apr 2008
Posts: 1,976
Re: Error in JBuilder 2005 application

Quote:
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.
Reply With Quote
Reply

  TechArena Community > Software > Software Development


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Error in JBuilder 2005 application"
Thread Thread Starter Forum Replies Last Post
Ms Sql Server 2005 Error angaiah Software Development 2 07-07-2011 01:34 AM
Error “Error 0x80070643 for Microsoft SQL Server 2005 Express Edition Service Pack 4 (KB2463332)", while Windows Updating. Qamar Operating Systems 3 02-04-2011 08:33 AM
Jbuilder for Mac OS X Simpson Operating Systems 3 16-03-2009 11:43 PM
SQL Server 2005 express Edition Service Pack 3 & SQL Ser5ver 2005 Dennis TR Windows Update 5 12-02-2009 12:48 AM
jbuilder project to other ide Gagnesh Software Development 2 15-12-2008 06:06 PM


All times are GMT +5.5. The time now is 04:24 AM.