The Mother Board

Motherboards.org forums. Free tech support, motherboard ID, and more.
It is currently Tue Sep 25, 2018 4:08 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: corrupt jar file
PostPosted: Thu Jan 06, 2005 3:03 pm 
Offline
Black Belt
Black Belt

Joined: Mon Apr 12, 2004 2:32 pm
Posts: 851
Location: Chicago
i followed the steps from the tutoriial to make a jar file and it creates it fine. However, when i try to open it it says its corrupt and doesnt open this is the error i get when i dont make a manifest file. When i try to create the jar file with a manifest it gives the the error message "failed to loadMain-Class Manifest attibute." What is wrong is there a file missing or something?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Jan 06, 2005 3:08 pm 
Offline
Green Belt
Green Belt

Joined: Thu Jun 27, 2002 8:11 pm
Posts: 222
What exactly do you mean by "try to open it"?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Jan 06, 2005 3:09 pm 
Offline
Black Belt
Black Belt

Joined: Mon Apr 12, 2004 2:32 pm
Posts: 851
Location: Chicago
like when i double click on the file to open it.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Jan 06, 2005 3:11 pm 
Offline
Green Belt
Green Belt

Joined: Thu Jun 27, 2002 8:11 pm
Posts: 222
Jar files are like rar or zip files. You need to extract them with something like winrar


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Jan 06, 2005 3:16 pm 
Offline
Black Belt
Black Belt

Joined: Mon Apr 12, 2004 2:32 pm
Posts: 851
Location: Chicago
o duh im so stupid cause it said executable i think so i thought i could just run it. My Bad :oops:


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Jan 06, 2005 3:20 pm 
Offline
Green Belt
Green Belt

Joined: Thu Jun 27, 2002 8:11 pm
Posts: 222
cwl157 wrote:
o duh im so stupid cause it said executable i think so i thought i could just run it. My Bad :oops:


I'm still a novice with jar files myself, but this is from my teacher:

Quote:
A useful technique for organizing class files is to combine them into a single file called a JAR or Java Archive. A JAR file is simply a ZIP compatible file containing a collection of java files (typically, class files, but any other kind of file could be included as well). You can pack a component or a complete application in a single file. Additionally, you can make an GUI application run direct from the JAR file without the console window.


IIRC You just have to import the packages you put in your jar in order to use those classes in future 8)


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Jan 06, 2005 11:57 pm 
Offline
Lead Mobo-fu Master
Lead Mobo-fu Master

Joined: Sun Dec 16, 2001 1:01 am
Posts: 14301
Location: Maine
Interestingly enough I found two infected files on my PC the other night. Both of them being .jar files...

_________________
Compaq-Fu Master
Ctechinfo funding drive information


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Jan 07, 2005 1:57 am 
Offline
Green Belt
Green Belt

Joined: Thu Jun 27, 2002 8:11 pm
Posts: 222
Toby B. wrote:
Interestingly enough I found two infected files on my PC the other night. Both of them being .jar files...


Yes I wouldn't have imagined Java to be the virus writers language of choice.

PS Long time no see Toby. The programming forum brought me back :wink:


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Jan 07, 2005 2:02 am 
Offline
Lead Mobo-fu Master
Lead Mobo-fu Master

Joined: Sun Dec 16, 2001 1:01 am
Posts: 14301
Location: Maine
Quote:
PS Long time no see Toby.
Ditto. Glad to see that you decided to stop back in.

_________________
Compaq-Fu Master
Ctechinfo funding drive information


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group