How do you create a jar file in JDeveloper 11.1.2.0.0

How do you create a jar file in JDeveloper 11.1.2.0.0

1) Select the project for which you would like to generate the jar.
2) Right Click the selected right and select 'Project Properties'
3) Select the 'Deployment' in the left tab.
4) Click on 'New' to create a new deployment profile and in the popup dialog, select 'Jar File' profile type and provide the name.
5) Press 'ok' to save the changes.
6) Select the project and right click and select 'Deploy to' and select the jar profile name you have specified.
The Jar library is generated and the full path to the library jar is shown in the log window.
Thanks,
Navaneeth

Similar Messages

  • How do you create a jar file with txt and classes?

    Hey, I'm trying to create code to create a jar file with a text file, but I can't figure out how to add the text file. Here is what I have so far:
    try {
                // Name of jar file to write
                String archiveFile = "test.jar";
                Manifest jman = new Manifest();
                try {
                    // Create a manifest from a file
                    //InputStream fis = new FileInputStream("manifestfile");
                    //Manifest manifest = new Manifest(fis);
                    // Construct a string version of a manifest
                    StringBuffer sbuf = new StringBuffer();
                    sbuf.append("Manifest-Version: 1.0\n");
                    sbuf.append("Ant-Version: Apache Ant 1.7.1\n");
                    sbuf.append("Created-By: 1.5.0_19-137 (Apple Inc.)\n");
                    sbuf.append("Main-Class: Main\n");
                    sbuf.append("Class-Path: lib/swing-layout-1.0.3.jar\n");
                    sbuf.append("X-COMMENT: Main-Class will be added automatically by build\n");
                    // Convert the string to a input stream
                    InputStream is = new ByteArrayInputStream(sbuf.toString().getBytes("UTF-8"));
                    // Create the manifest
                    jman = new Manifest(is);
                } catch (IOException e) {
                FileOutputStream stream = new FileOutputStream(archiveFile, true);// archive file is jar file name
                JarOutputStream out = new JarOutputStream(stream, jman);
                out.putNextEntry(new JarEntry("test.txt"));
                out.closeEntry();
                out.close();
            } catch (Exception ex) {
            }It creates the .jar file with the correct manifest but I can't get it to write the test.txt or anything else into the jar file.
    -Gandolf
    Edited by: GanMatt on Jun 18, 2009 8:18 AM
    Edited by: GanMatt on Jun 18, 2009 8:19 AM

    Alright, my question has changed. Here's the code:
    try {
                // Name of jar file to write
                String archiveFile = "test.jar";
                Manifest jman = new Manifest();
                try {
                    // Create a manifest from a file
                    //InputStream fis = new FileInputStream("manifestfile");
                    //Manifest manifest = new Manifest(fis);
                    // Construct a string version of a manifest
                    StringBuffer sbuf = new StringBuffer();
                    sbuf.append("Manifest-Version: 1.0\n");
                    sbuf.append("Ant-Version: Apache Ant 1.7.1\n");
                    sbuf.append("Created-By: 1.5.0_19-137 (Apple Inc.)\n");
                    sbuf.append("Main-Class: Main\n");
                    sbuf.append("Class-Path: lib/swing-layout-1.0.3.jar\n");
                    sbuf.append("X-COMMENT: Main-Class will be added automatically by build\n");
                    // Convert the string to a input stream
                    InputStream is = new ByteArrayInputStream(sbuf.toString().getBytes("UTF-8"));
                    // Create the manifest
                    jman = new Manifest(is);
                } catch (IOException e) {
                FileOutputStream stream = new FileOutputStream(archiveFile, true);// archive file is jar file name
                JarOutputStream out = new JarOutputStream(stream, jman);
                out.putNextEntry(new JarEntry("test.txt"));
                out.write("Hi".getBytes());
                out.flush();
                out.closeEntry();
                out.close();
            } catch (Exception ex) {
                JOptionPane.showMessageDialog(this,ex.toString(),"BUG!",JOptionPane.INFORMATION_MESSAGE);
            }It creates the jar file with the txt file inside it, but I can't write "Hi" inside of the text file. Any ideas?
    -Gandolf

  • How do you convert a jar file into a java file,  ?

    how do you convert a jar file into a java file ?
    I am new to Java ,but have a little experience in C++ and Visual Basic.
    I want to edit and maybe create my own mobile games that are written or converted into jar files.
    At the moment I am using Java NetBeans , and Easy Java( the java pad).
    However the only solution I tried was to open the JAR file in winrar and see that its made up of png picture files,
    midi music files and class files. Unfortunately when I uncompressed the JAR file , there was NO java file to be seen and the JAVA editors Do not show the class file like a Java file. So why is there no extension Java file in the mobile JAR game ?

    801283 wrote:
    how do you convert a jar file into a java file ?You generally don't. There exist decompilers, but if you're meant to have the source, you should either have it because you are the author, or you should be able to get it from the author.
    I am new to Java ,but have a little experience in C++ and Visual Basic.Does that experience include turning .exe files into C++ code? Because that's the equivalent of what you're asking
    I want to edit and maybe create my own mobile games that are written or converted into jar files.Eh?
    Are you saying you want to take existing games and modify them? If the creators allow you to modify their source, then they'll provide you with that source (the .java files). If you're allowed to add things but not modify, you don't need .java files. Just documentation, which, again, the creators should be providing.
    Or are you saying you want to create your own games and distribute them in jar files? If so, there's no need to turn jars into .java.
    However the only solution I tried was to open the JAR file in winrar and see that its made up of png picture files,
    midi music files and class files. Unfortunately when I uncompressed the JAR file , there was NO java file to be seen and the JAVA editors Do not show the class file like a Java file. So why is there no extension Java file in the mobile JAR game ?Why would you expect there to be one?

  • How can I create a jar file

    Hello!
    How can a create a jar file?
    I want to run an application just clicking in a icon.
    How can I do this?
    Thanks a lot.
    K�tia.

    Get to the command prompt
    change directories to the directory where the main class resides.
    Open your text editor and type the following in it:
    Manifest-Version: 1.0
    Main-Class: NameOfMainClass //Just name without ".class"!!!
    Created-By: Your Name Here
    Save this file as whatever you want to name it with ".mf" as the extension.
    Then go back into the command prompt and type the following:
    jar cfm "NameOfJarFile".jar "NameOfManifestFile".mf *.class
    (without the quote marks of course)
    Hit "Enter"
    This will jar it up and make it executable.
    If you have any images associated with the program you can add them in the same way as above. Just add *.gif or *.jpg after the *.class portion.
    Good luck!
    LEEMAX I. T.

  • How can I create a jar file that will run automatically on double click

    all the jars I created run only from the command-line.
    how can I make it run by double-click on it?

    First you will need to associate .jar files with the javaw.exe program in order to just be able to double click on the jar and run it from within a windows explorer application. Next you will need to set the main class attribute of the manifest file. My understanding is that the value of this attribute is used by the launcher to know which class to load. In other words, which is your main application class. To specify this attribute open your manifest file in a text editor. You will find this file located within the jar at META-INF/MANIFEST.MF. Then, add the line,
    "Main-Class:<relative path to the main class>" However, remember not to add the .class extension to the end of the class name.
    In Windows 2000 you can associate jar files with javaw by finding a jar file in Windows Explorer and right clicking it. This will give you a context menu which should have an Open With... option (if you are not using Windows 2000 and don't see the 'open with' menu item, try holding down the shift button while right click on the file). Select the Open With... option, then, when the dialog appears highlight javaw and select the "Always use this program to open these files" checkbox. When you hit the OK button you should have all your jar files associated with the javaw process.
    Once you've done this, you should be able to double click on your jar file and run your application.
    Regards,
    Daniel Walsh

  • How can I create a jar file at a Unix systems?

    Hi there,
    how what's the command to create a jar file in Unix? I'm creating a zip file and then renaming it to jar, but it's size is smaller than the one when I use the WinZip tool at a Windows system.
    Thanks,
    Andre

    Oops,
    it very easy to do. Just use the jar -cvf command
    Andre

  • How do you execute a JAR file?

    I'm sorry this is so basic, but I honestly do not know how to do this nor can I find anything online here or anywhere via Google to help me with this one.
    I have a JAR file that I created on another machine using JDK 1.6.0 and NetBeans 5.5 on WinXP.
    I copied and pasted that JAR file over to my machine at home also using JDK 1.6.0 and NetBeans 5.5 on WinXP
    I put the exact directory name where the JAR file resides, "C:\Program Files\Java\jdk1.6.0\classes", in CLASSPATH and rebooted my machine.
    However, upon CD'ing to that directory and doing "java -classpath . GUI.jar", I get a "NoClassDefFoundError" when trying to do so.
    Furthermore, I was not sure how to use NetBeans to run the JAR file to execute the classes within.
    What did I do wrong? I'm so sorry this is so basic.
    Thanx
    Phil

    You are using netbeans to build your jar. Go to your project properties (right click on the project name and choose properties). Then select "Run" from the tree. You will find a text box "Main Class" there, put the name of the class in there that has your main() method, including full package if you have one. That is WITHOUT the .class extension.
    Build your jar, it will be placed in the dist directory of your netbeans project. You can now run it from netbeans itself if you want. If ever you want to run the jar from the command line on your home machine, just navigate to the directory with the jar file and execute this:
    java -jar yourjar.jarand you're off. If your runtime environment is propertly setup you can even execute the jar by simply double clicking on it from the windows explorer. No need to change the CLASSPATH variable at all, in fact it is ignored when executing a jarred application.
    Also a note: you do not need to reboot your machine when you change an environment property. Simply change them using my computer -> properties -> advanced tab -> environmental variables. If you have any command prompts open, close and reopen them so the properties are updated properly.

  • How do you create an xsd file for an xml schema in BI Publisher?

    Helllo.
    I hope this is a really daft question for somebody..
    How I create an xsd file to be used as an xml schema to attach to a Data Definition that Ive created? I've obv. got the xml and rtf files ready and attached. I've looked through the relevant docs (XML Publisher Report Designer's Guide.pdf & XML Publisher Administration and Developer's Guide.pdf) but can't find where..
    Once this has been done then I can run the template via ORACLE Financials for the reports I've converted.
    many thanks..
    Steven

    I don't think you need to have an XSD it's an optional field. If you really want to create one use this site: http://www.hitsw.com/xml_utilites/
    I believe I answered your question, don't forget to give me the points.
    Ike Wiggins
    http://bipublisher.blogspot.com

  • How do you create a wsdl file from a FM?

    Hello friends,
    Could some one please let me know how to create a wsdl file from a function module?
    I have gone up to the stage of creating webservice  and also released it for SOAP runtime using tranasaction code wsconfig.
    But I don't know how to proceed from there and create a wsdl file.
    Your help will be greatly appreciated.
    Tks
    Ram
    Edited by: Ram Prasad on Nov 18, 2008 4:44 PM

    I was able to solve the issue with a friends help. Here are the steps
    STEPS in CREATING WSDL file from a FM:
    1.Goto SE80 Create a package or select a package in which you want to create a web service.
    2.Right click and select Create -> Enterprise Serve/Web Service -> Web Service
    3.Follow the wizard steps answering all the questions until complete. This creates the service definition.
    4.Goto transaction code <WSCONFIG> and enter the service definition name you have created in previous step. Enter the same name in both u2018service definitionu2019 and u2018variantu2019 fields.
    5.Then click on Create button and save. This releases the webservice you created in to soap Runtime.
    6.Goto transaction <WSADMIN>
    7.Open the tree structure to see the webservice that you just released and click on the right most button (Globe shape).
    8.Select u2018Document Styleu2019
    9.You have now created the wsdl file for the FM.

  • How do you create a .cdr file from Apple's DVDs?

    I'm generally pretty religious about backing up DVD media to .cdr files in Disk Utility. As I look the iWork DVD that I have doesn't show any way to do this in Disk Utility right now.

    I was able to solve the issue with a friends help. Here are the steps
    STEPS in CREATING WSDL file from a FM:
    1.Goto SE80 Create a package or select a package in which you want to create a web service.
    2.Right click and select Create -> Enterprise Serve/Web Service -> Web Service
    3.Follow the wizard steps answering all the questions until complete. This creates the service definition.
    4.Goto transaction code <WSCONFIG> and enter the service definition name you have created in previous step. Enter the same name in both u2018service definitionu2019 and u2018variantu2019 fields.
    5.Then click on Create button and save. This releases the webservice you created in to soap Runtime.
    6.Goto transaction <WSADMIN>
    7.Open the tree structure to see the webservice that you just released and click on the right most button (Globe shape).
    8.Select u2018Document Styleu2019
    9.You have now created the wsdl file for the FM.

  • How do you make a jar file for your program?

    Title says it all - I don't have software that automatically does it for me.
    Using text pad :O

    Everything you always wanted to know about JAR files, but were afraid to ask:
    http://java.sun.com/docs/books/tutorial/deployment/jar/index.html

  • How do you create a new file in Bridge CS4?

    For 12 hours I have been trying to create a new folder in Bridge  I am using the book Adobe Creative Suite 4 Design Premium Digital Classroom.  I am only on step five of "Using folders in Adobe Bridge"(pg. 5) and I cannot get create a new folder to work.  Both the icon in the upper right corner and the file > New folder are ghosted.  Does anyone know what could be going wrong?  I have followed all of the instructions and I have even reinstalled the CS4 Design Premium software.  Anyone?  Bueller, Bueller?
    Thanks for any advice.

    It sounds like you are trying to create a folder on a CD, DVD or a drive to which you do not have write permissions…

  • How do you create a pdf file by using ActiveX?

    Is there a way that you could use activeX to write the data into pdf file? If so, do you have to have Adobe Writer install?
    thank

    hello
    you could generate a report using the report - VIs (gives you opportunity to add headers, footers, tables etc.) and print the report to a PDF - Printer (e.g. FreePDF). No ActiveX or Adobe Writer needed.
    greetings
    chris
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"

  • Keynote creates separate audio and image file when exporting to quicktime, how can you create one unique file?

    I have a Kenote 09 presentation with a presentation soundtrack, when I export it to Quicktime two files are created one with audio and one with video.
    ¿Is there a way to have this be just one file or to combine this files to have one video+audio file?
    I was able to put them together with iMovie, but the image looses quality.
    Thanks

    Thanks Gary
    I tried fixed timing but I needed different timing for each slide. But I did manage to resolve using the following.
    Since the audio was just music I first set both Input and Output sound setting in preferences to use Soundflower instead of internal mic and speaker, then played the presentation while recording audio so that the music would be recorded. And finally exported using Recorded Timing. This way the output was one unique file!
    Good day

  • How do you create an .iso file from a bdmv folder?

    It's all in the subject line.
    Thanks.

    smplayer2-git doesn't want to build
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /tmp/yaourt-tmp-a/aur-smplayer2-git/src/SMPlayer2
    Scanning dependencies of target translations
    [ 1%] [ 2%] [ 1%] [ 2%] Generating smplayer2_uk_UA.qm
    Generating smplayer2_zh_CN.qm
    Generating smplayer2_zh_TW.qm
    Generating smplayer2_vi_VN.qm
    lrelease: could not exec '/usr/lib/qt/bin/lrelease': No such file or directory
    lrelease: could not exec '/usr/lib/qt/bin/lrelease': No such file or directory
    lrelease: could not exec '/usr/lib/qt/bin/lrelease': No such file or directory
    src/CMakeFiles/translations.dir/build.make:92: recipe for target 'src/smplayer2_zh_CN.qm' failed
    make[2]: *** [src/smplayer2_zh_CN.qm] Error 1
    make[2]: *** Waiting for unfinished jobs....
    src/CMakeFiles/translations.dir/build.make:97: recipe for target 'src/smplayer2_vi_VN.qm' failed
    make[2]: *** [src/smplayer2_vi_VN.qm] Error 1
    src/CMakeFiles/translations.dir/build.make:87: recipe for target 'src/smplayer2_zh_TW.qm' failed
    make[2]: *** [src/smplayer2_zh_TW.qm] Error 1
    lrelease: could not exec '/usr/lib/qt/bin/lrelease': No such file or directory
    src/CMakeFiles/translations.dir/build.make:102: recipe for target 'src/smplayer2_uk_UA.qm' failed
    make[2]: *** [src/smplayer2_uk_UA.qm] Error 1
    CMakeFiles/Makefile2:142: recipe for target 'src/CMakeFiles/translations.dir/all' failed
    make[1]: *** [src/CMakeFiles/translations.dir/all] Error 2
    Makefile:117: recipe for target 'all' failed
    make: *** [all] Error 2
    ==> ERROR: A failure occurred in build().
    Aborting...
    ==> ERROR: Makepkg was unable to build smplayer2-git.
    ==> Restart building smplayer2-git ? [y/N]
    I'm not exactly a master at building things from source code so I don't understand what's gone wrong here.

Maybe you are looking for

  • I can't burn DVD's on DVD Studio Pro since I install Snow Leopard

    Well, my computer was working great, I had tiger installed and I decided to update to snow leopard and "big mistake" since then I haven't been able to burn DVD's from DVD Studio Pro, at the time to start writing the information to burn it, it shows a

  • How to select a set of points in a xy graph contained in an area draw with the cursor ?

    I'm using tIhe XY graph to plot a Pointcare representation of RR intervals (heart beat). I would like to use the mouse to draw a polygone surrounding the points of interest and get their indexes from the original array. Thank you to oriented me to so

  • Star Program Modification

    my code currently is this public class Stars    //  Prints a triangle shape using asterisks (stars)    public static void main (String[] args)       final int MAX_ROWS = 10; //when the number of rows is less than 10 (the max number of rows) then add

  • Adobe Illustrator CS5 - Missing required plugins.BrS pencil tool/will not open program

    Hi! We hve downloaded a trial version of Adobe Illustrator CS5 and we are not able to open it. We followed Step 1 and Step 2 and then opened up the Zip version.I also have Windows Vista Home Premium Copyright 2007. Would anyone know how I can access

  • Having trouble positioning text

    http://kurtesposito.com/contact.htm Looking for some help on how to position this text on this page. Not sure what I'm doing wrong. Also looking for helping on that horizontal strip of white running along the top of my image. Thanks