How to make executeable jar

can someone teach me how to make jar, step by step to make jar in windows xp. Why the dos(command prompt) cannot recognized the
the jar command?

Please refer to this tutorial:
http://java.sun.com/docs/books/tutorial/deployment/jar/index.html

Similar Messages

  • How to make a jar file from a java file?

    how to make a jar file from a java file, is there any one tht can help me thank you;

    You can study this.
    http://java.sun.com/docs/books/tutorial/jar/basics/index.html

  • How to make a jar please help...this is urgent.

    hi guys, as you know i am a novice programer...I need to make a jar in order to reuse some of my servlet. but how I do that...please be kind to give me the instruction
    novice programer

    hi guys, as you know i am a novice programer...I need
    to make a jar in order to reuse some of my servlet.
    but how I do that...please be kind to give me the
    instruction
    novice programerTry these links:
    http://java.sun.com/j2se/1.3/docs/tooldocs/win32/jar.html
    http://java.sun.com/docs/books/tutorial/jar/

  • How to make a jar file downloadable with IE

    hello,
    I just bought a website:
    http://www.frozenfountain.net/
    and I put a jar file on it called Logo.jar
    Using Mozilla, the jar file downloads as expected, but with Internet Explorer, it tries to download it as .zip file.
    How do I get it to download as a .jar file with IE?
    thanks

    Just post a link to the Jar. Mozilla will download
    it as a jar. Windows will download it as a zip.
    Only one link. No problem, really. ;-)There is a problem. People who arent as good with computers as you are won't know how to run the jar file after downloading with IE.
    At school, I told someone to download the file, which they did with IE. It downloaded to desktop as a zip. They extracted and were left with a bunch of .class files.
    On a sidenote, how do you draw text with a gradient?

  • How to make new jars available globally on the portal to all projects?

    Hello,
    I have downloaded few jar files which are needed for few projects and aren't comming with the portal by default.
    I would like to make these jars available globally to every project I will write in the future. What is the exact procedure I need to do on the portal server in order to acheive this?
    Regards,
    Roy

    I've been playing around with this as well (in combination with NWDI).
    You need to consider what should happen if you ever have an update of the "common" jar-files that you are adding. They might break some of the portal apps that use them, so it's not a good solution to use a J2EE Library DC if you know there will be updates in the future. If you're sure there will be no updates, this is indeed the simplest way to implement this. All you need to do is to specify a PrivateSharingReference for the portal apps as explained here: http://help.sap.com/saphelp_nw04/helpdata/en/88/bdfc3f48ecc742e10000000a1550b0/content.htm
    The 2nd available option (based on NWDI) is to create an External Library DC and add your jars to that. Create an extra public part for assembly (next to the existing public part for compilation called ExternalLibs). Then, for each portal app DC add the External Library DC as a used DC, create an assembly public part and add an Entity Reference to the assembly public part of the External Library DC. This way the jars will be assembled in the PAR file for each portal app. The nice thing is that you are still maintaining the jar files in one central place, but that you have the option to update and test the portal apps individually.

  • How you make a jar file a plugin.

    I'm currently using a jar file to store my class files in. This jar file is downloaded every time the user looks at the page. Is there any way i can install it as a ie or netscape pluggin so that the user does not have to do this?
    Thanks very much
    Duncan
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Sample html code being used.
    <!-- applet controls and parameters -->
    <APPLET CODE="graphcls.class" ARCHIVE="graphcls.jar" WIDTH="590" HEIGHT="312">
    </APPLET>                     
    <!-- end of applet -->

    If you use the Java Plug-in you can specify that you want to cache the Jar on the client machine - you do this by adding an archive parameter to your object/embed tag.
    Take a look at the plug-in faq at http://java.sun.com/products/plugin/1.3/devinfo.faq.html
    /Peter

  • Quick question: How to make a JAR file

    Well I have jdk1.5.0_02/bin/jar.exe file into my file with all of my classes which work using my schools java editing program. I'm trying to get it to run and I have my manifest.txt with "Main-Class: Driver" in it. Driver is my class with "public static void main(String args[])" in it and I have the cariage return in the manifest.txt file. Thanks for the help.

    Well I have jdk1.5.0_02/bin/jar.exe file into my file
    with all of my classes which work using my schools
    java editing program. I'm trying to get it to run and
    I have my manifest.txt with "Main-Class: Driver" in
    it. Driver is my class with "public static void
    main(String args[])" in it and I have the cariage
    return in the manifest.txt file. Thanks for the help.What is the problem? You told us what your are trying to do, not what is happening. If you get an error, you better post it. You could also post the command you are using.

  • How to make changes to the Pagetoolbar.par to ge customized Links

    Hi Experts,
    We have a Requirement of making changes to the pagetoolbar.par
    below are the files available in the PAR file:
    - 2 Javascripts(1 each for page tool bar and light page toolbar)
    - a single JSP(for light toolbar - lightPageToolbar.jsp)
    - a Jar file ->com.sap.portal.navigation.pagetoolbar_core.jar
    for getting a link for 'add to favorites' on the page toolbar (calling same functionality as in the options menu)
    please guide exactly where should we make changes and how ?
    any inputs on the same will be helpful .
    With Regards,
    Dayakar.

    Hi Deepak,
    Thanks for your reply,
    But there is only one JSP and that also corresponding to Lightpage Toolbar.
    if we make any changes in this JSP the changes are not reflected on the Page toolBar.
    we tried to make changes in the Javascript corresponding to pagetoolbar but not changes observed.
    we have tried another option - decompiled the JAR file ->there are 4 Java files ....if changes need to be done here How to make a JAR out of the changed files ?
    any input will be very hepful
    With Regards,
    Dayakar

  • How should I create JAR file which  contain JMF library and project classes

    Hi,
    I installed the JMF windows pack. I compiled and ran successfully myApplet (which use JMF librarie) in Internet Explorer on my machine. When I run this applet on some different machine, where JMF isn�t installed- it�s not running.
    There is an error:
    java.lang.NoClassDefFoundError: javax/media/ControllerListener
    I was trying to create jar file, which contain librarie JMF.jar and all other files which are require to run myApplet (*.jar, *.class, the files from folder �MyApplet�) and run it on the other computer. It still doesn�t work.
    Also I ran a JMF Customizer and created customize.jar but this file contains only JMF classes. I don�t know how add other files to it.
    How should I create a jar file which will contains all essential files to run myApplet on other machine (something like �All In One� J )
    I�m using Eclipse.
    Can somebody help me?.
    Thank You!
    Best regards:
    Peter

    Hi
    i want to make a jar file of application which is using JMF to play audio
    and video. it works well during compilation and execution but doesn't
    works in jar file.
    please help me how i make a jar file whic will run audio and video too
    your's truely
    abdul

  • NetBeans 5.5. + layout - how can I make a jar?

    1. I try to build my application.
    2. I've developed it in NetBeans 5.5
    3. I ve used form as a base for my GUI
    4. I've made application with help of GUIBuilder+some swing components I create dynamically during program execution.
    The problem:
    I can't make runnable JAR.
    When I try to launch project.jar form folder /dist I get message:
    "No main class found"
    I need to have these jars (they are in my project's library section:
    1.swing-layout-1.0.1.jar
    2. AbsoluteLayout.jar
    I found a solution:
    How can I package the swing-layout-version.jar library
    into my application JAR?
    Having developed your Swing application in Matisse (using the "Free Design" layout) you can
    package the required swing-layout-version.jar library inside your application JAR file.
    Requirements:
    &#9679; Standard Java project
    &#9679; Swing Layout Extensions library included in your project's classpath
    Open your project's build.xml from the Files tab and insert this:
    <target name="-post-jar">
    <jar update="true" destfile="${dist.jar}">
    <zipfileset src="${libs.swing-layout.classpath}"/>
    </jar>
    </target>
    Just press F11 to build your project as usual. This Ant target will bundle swing-layout.jar
    inside your distribution JAR file.
    You can adapt this Ant target to different requirements.
    So I've inserted this code into my build.xml
    Size of built project jar file increased.
    I try to lauch it and I get no message. Nothing happens.
    What else I have to do if I want to get distributable jar....?

    So I found a problem.
    Jar with main class created using GUIBuilder (NetBeans) doesn't launch.
    I use netbeans 5.5. + jdk 1.6.
    If I launch jar with frame-based main class - everything works.
    If I try to launch form-based main class - it doesn't work.
    I do not get any error message or something like that.
    What it can be?

  • How do I make a jar of netbeans (or anything big)?

    I was searching for a jar file of netbeans and instead found a different installation file per operating sytem. I am not complaining about this but I want to make a jar out of this (or another big problem) for the sake of learning how (a jar actually does have some benefits like bringing a program on a flash drive and making sure it works on all operating systems and CPU architectures). For small programs that I made myself, I basically have to make the class files in lets say directory "programDir" (without the quotes). I then make a file called x.mf and in it put "Main-class: MyClass" (without the quotes) followed by the "jar -cmf x.mf nameOfJarFile.jar *.class" command (without the quotes).
    I think the process is made more difficult when involving packages? So apart from the package issue, I think all I need to do is *1)* find the source code of lets say netbeans *2)* figure out which is the class with the main method in it.
    And yes, I have trouble finding the source code of netbeans! I downloaded the "OS-independent zip" and found a few .java files but it didn't seem to be the entire program!
    Any input would be greatly appreciated!
    Thanks in advance!

    s3a wrote:
    Why is it a bad example? To me it seems to be a very good one because like in Physics or ChemistryWell, we also do things in Poetry, but those have nothing to do with programming.
    I tried with a "toy application off my own" and I am having problems so maybe you can help me there? I have two java files each of which get compiled to class files and then converted to a jar correctly but once I add the line package SudokuPackage; at the top then the class files still get compiled but the jar file made is not one that works.
    When I remove package SudokuPackage; I have Main-class: SudokuDriverCode in the x.mf file but when I add package SudokuPackage; at the top of my java files and then compile (and use Main-class: SudokuPackage.SudokuDriverCode in the x.mf file), the jar does not work.
    How would I make programs with packages work?So what's the error message?
    Also package names are lowercase by tradition.
    Also, doesn't Netbeans have an install wizard? It's not distributed around as a regular jar.
    You need to get your basics straight before you start thinking of anything advanced.
    Edited by: Kayaman on Nov 7, 2010 8:07 PM

  • How to make jar files at runtime in a server application

    I am using Jung API and i need to load the class files in this JAR file for my application at runtime.
    I am using an applet which uses this API which is loaded with the help of a Servlet.
    The code is getting compiled but the JAR files and associated classes are not available at the runtime
    How to make themk avalable.
    I have tried various options like placing jar files in
    WEB-INF/lib
    $Catlina_Home/commons/lib
    But it is not working can anyone help me it is of high urgency to me
    How to make that classes in the JAR file available to my applet at runtime

    SuperJavaHello wrote:
    How to make that classes in the JAR file available to my applet at runtimeAhh! The runtime is an appler! The applet is on the Client, and the Client does not have access to the Server's classpath. You need to un-pack the JAR, then re-pack the classes into the JAR used to pack your Applet, the one that you are using as the code source in the applet tag.

  • How to make Jar files in JBuilder

    I would like to know how to make jar files using JBulider. I have a problem with a project that I am working with in Swing. I have made the project on JBuilder and when I make a jar file it will not run upon clicking.
    Any body with an answer, please help
    Abhi

    It sounds like your Main-Class is not set properly in your manifest. To set your Main-Class, please follow these directions:
    http://java.sun.com/docs/books/tutorial/jar/basics/run.html

  • How to make jar files availabe for deployed EJBs

    Hi,
    I'm interested on how to make jar files availabe for deployed EJBs.
    My EJB is packed in an ear. It uses a util jar. I now just add the jar to the
    classpath, but I think that shouldn't be the way. Is there somthing in the admin
    console to make jars available or do I have to insert it in the ear file? And
    if so, where do I hve to place it?
    Thanks
    Claudia

    Put the util.jar in the ear with your ejb jars - at the same level (i.e. in
    the root) - but do not include them in the manifest.xml.
    Also each ejb jar that refers to util.jar must have util.jar on its internal
    classpath in the manifest.
    "Claudia" <[email protected]> wrote in message
    news:3d537db5$[email protected]..
    >
    Hi,
    I'm interested on how to make jar files availabe for deployed EJBs.
    My EJB is packed in an ear. It uses a util jar. I now just add the jar tothe
    classpath, but I think that shouldn't be the way. Is there somthing in theadmin
    console to make jars available or do I have to insert it in the ear file?And
    if so, where do I hve to place it?
    Thanks
    Claudia

  • How to make jar

    hi
    i have a folder name cdma in that i have classes and one folder named images.
    i use to get the image as follow
    JLabel label=new JLabel(new ImageIcon("images/abc.gif"))
    now i want to make the jar file which i put on the desk top and by double clicking the application run.
    i make Manifest file as
    Main Class: Mymain
    but i do not know how the image folder add in jar for getting the images from image folder.please help me with statements.
    thanks

    Just add it. A JAR is nothing but a zip file.
    Resources are loaded from JARs using Classloader's getResource("/images/abc.gif") or getResourceAsStream() methods.

Maybe you are looking for

  • HELP DESPERATE CMSS 3d / EAX

    HELP> DESPERATE CMSS 3d / EAX? ok the other day i had done somethign to my settings in control panel and when i went ingame (counter-strike .6) it felt like i was actually there i Could hear Everything Everyware and i could pinpoint everything. It ki

  • PC to mac how to move itunes?!

    Hi! I just switched from a sony vaio to a macbook. I can't figure out how to transfer my itunes library from my pc to my mac. Any help would be great! Thanks!

  • Apple's little USB modem is decent?

    I need dialup capability on my MacBook in addition to wireless connectivity. Has anyone had good experience with Apple's little USB external modem? I have found some unfavorable comments about it online.

  • Updation of higher level item text to lower level item text

    Hi All, while creating sales order VA01   i need to pass the value of higher level item text to lower level item text for that i read the text of the higher level item text using the fm read_text and pass the text to the lower level items using save_

  • DR server

    Hi All, what do we mean by DR instance...or DR server... i want the abbreviation...