| | |
manifest jar files???
![]() |
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.
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.
*Voted best profile in the world*
•
•
Join Date: Jun 2004
Posts: 2,108
Reputation:
Solved Threads: 18
I hate to post an external link, but take a look at this:
http://www.wizardsolutionsusa.com/fo...read.php?t=100
http://www.wizardsolutionsusa.com/fo...read.php?t=100
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:
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*
•
•
•
•
Originally Posted by jwenting
complicated? A single line in a config file (which is what the manifest is) is complicated?
But I had to use three commands to get it to work.
First I had to jar it...
•
•
•
•
jar cvf ColorSlide.jar ColorSlide.class
•
•
•
•
jar xvf ColorSlide.jar
•
•
•
•
Main-Class: ColorSlide
Then make it executable...
•
•
•
•
jar cvfm ColorSlide.jar MANIFEST.MF ColorSlide.class
... 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*
•
•
•
•
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.
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*
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).
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.
![]() |
Similar Threads
- download jar files using java code (Java)
- JDBC jar files (Python)
Other Threads in the Java Forum
- Previous Thread: I need help as soon possible
- Next Thread: java gui libraries
| Thread Tools | Search this Thread |
-xlint android api applet application array arrays automation bi binary blackberry block bluetooth chat class client code compile compiler component converter database developmenthelp eclipse error fractal freeze functiontesting game gameprogramming givemetehcodez graphics gui health html ide image input int integer j2me j2seprojects java javac javaprojects jetbrains jni jpanel jtable julia learningresources lego linux list login loop loops mac main map method methods mobile myregfun netbeans newbie nonstatic notdisplaying number online problem program programming project qt recursion scanner screen server set singleton sms sort spamblocker sql string swing system textfields thread threads time title tree tutorial-sample update variablebinding windows working xor






