manifest jar files???

Reply

Join Date: Aug 2005
Posts: 5,266
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 377
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

manifest jar files???

 
0
  #1
Dec 27th, 2005
Hi, I so close to getting this to work. Basically, I trying to wrap my program up in a jar file. So that wen i doulbe click it, it executes. Much like c/c++ programs do.

I can jar it up from the command line, but when i double click it it gives me errors. Please help, I be soooooooooo greatful.

My file is called ColorSlide.java.

To jar it up I use the command:

jar cf ColorSlide.jar ColorSlide.class

But when I double click it, and expect it to run it gives me this?


God bless.
Attached Thumbnails
jar.PNG  
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 2,108
Reputation: server_crash is on a distinguished road 
Solved Threads: 18
server_crash server_crash is offline Offline
Postaholic

Re: manifest jar files???

 
0
  #2
Dec 27th, 2005
I hate to post an external link, but take a look at this:

http://www.wizardsolutionsusa.com/fo...read.php?t=100
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,266
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 377
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: manifest jar files???

 
0
  #3
Dec 27th, 2005
OMG THAT'S BRILLIANT!!!

I owe you server big time. I was tearing my hair out.

To the guys at sunmicrosystems..Why is it so freaking complicated?

One other thing. I know jwenting mentioned something about needing the jvm, (java virtual machine) for it to run on other machines.

I was planning to drop the jar executable into a floppy and take it to my friends computer. Do they need the java plugin to run it? And is that the same as the plugin needed to view applets?

God bless.
:cheesy:
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 2,108
Reputation: server_crash is on a distinguished road 
Solved Threads: 18
server_crash server_crash is offline Offline
Postaholic

Re: manifest jar files???

 
0
  #4
Dec 27th, 2005
You would need to download the JRE, but I'd say your friend probably has it. If he don't, then it's no big deal to download it.
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: manifest jar files???

 
0
  #5
Dec 28th, 2005
complicated? A single line in a config file (which is what the manifest is) is complicated?
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,266
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 377
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: manifest jar files???

 
0
  #6
Dec 28th, 2005
Originally Posted by jwenting
complicated? A single line in a config file (which is what the manifest is) is complicated?
Maybe I'm missing sumthing.

But I had to use three commands to get it to work.
First I had to jar it...

jar cvf ColorSlide.jar ColorSlide.class
Then extract it...

jar xvf ColorSlide.jar
Then open the manifest file and by freakin hand, insert the line:

Main-Class: ColorSlide
Without the .dotclassextension

Then make it executable...

jar cvfm ColorSlide.jar MANIFEST.MF ColorSlide.class
For someone who has never worked from the command line b4
... that's complicated.

C/C++ on the other hand. All you have to do is compile and run it and the executable automatically appears in your folder.
That's simple.
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: manifest jar files???

 
0
  #7
Dec 28th, 2005
The first 2 commands aren't needed.
You could have just created the manifest file yourself, everything in it except that single line is just comments and not needed.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,266
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 377
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: manifest jar files???

 
0
  #8
Dec 28th, 2005
Originally Posted by jwenting
The first 2 commands aren't needed.
You could have just created the manifest file yourself, everything in it except that single line is just comments and not needed.
Sweet...

Ok, how do I add my own icon to the executable, and is the java Run time environment the same as a 'java plugin' the same thing that is used to view java applets?

God bless.

:cheesy:
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: manifest jar files???

 
0
  #9
Dec 29th, 2005
Not sure how and if you can set a custom icon on a jarfile. You'll have to search for that.
The Java plugin is the browser plugin which is (usually) installed as part of the installation of the Java runtime environment (and uses the JRE internally).
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Java Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC