Export jdeveloper as jar executable file

hello, I have a simple application developed using jdeveloper which access an oracle database and retrieve data. I would like to export this application as jar executable file. how can I do this using jdeveloper.
Best regards

Add a manifest file that identifies the main class. If you have questions on how to do that using your IDE, I suggest you hit 'F1' or visit a forum that deals with that IDE.

Similar Messages

  • Export Results in Unix Executable Files Instead of .jpg

    When I try to export an album to a folder, the exported files are in "unix executable file" format instead of .jpg
    How do I fix this?
      Mac OS X (10.4.6)  

    Harley:
    Welcome to the Apple Discussions. In the file export window have you selected jpg or "original format" and have the Add extension checkbox checked?
    Do the exported files have a extension? If so and it's jpg, then select on and bring up the Info window for it (Command-I). Then under default application select Preview and click on the Apply to all.. button. If you prefer to use a 3rd party editor like Photoshop or PS Elements then select that and click on the Apply to all... button. But the files should have an extension.
    Do you Twango?
    G5 Dual Core 2GHz, 2G RAM, 250G HD; G4 Dual 1Ghz, 1.5G RAM, 80G HD,   Mac OS X (10.4.6)   22 LCD Display, 200G & 160G FW HDs, Canon S400, i850 & LIDE 50, Epson R200

  • Including images in jar executable files. Using images in jar files.

    Does anybody know what is the reason of my problem??
    I created a package called test in my eclipse env. and in that package I placed folder named graph in which there is a file Help.png.
    Here is all the code I run in eclipse and it runs properly. When I create a jar file (using eclipse wizard) to execute without eclipse it can not execute and shows nothing (process starts and I have to kill it by myself in OS). Maybe there is some mistake with making jar... I do not know
    So let someone try tu run my class or build jar file and try to execute and share his observations (solutions) ??
    package test;
    import java.awt.Toolkit;
    import javax.swing.ImageIcon;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.UIManager;
    public class TestWindow extends JFrame {
         private JButton jButton1 = new JButton(new JARImage().getImage("Help.png"));
         public TestWindow() {
              this.getContentPane().add(jButton1);
              this.validate();
              this.setVisible(true);
         private class JARImage {
              protected ImageIcon getImage(String imageName) {
                   ImageIcon image = new ImageIcon();
                   try {
                        image.setImage((Toolkit.getDefaultToolkit().getImage(getClass()
                                  .getResource("graph/" + imageName))));
                   } catch (Exception ex) {
                        System.out.println("Image Error: " + ex);
                        ex.printStackTrace();
                   return image;
         public static void main(String[] args) {
              try {
                   UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
              } catch (Exception e) {
                   e.printStackTrace();
              new TestWindow();
    }

    Uncaught error fetching image:
    java.lang.NullPointerException
         at sun.awt.image.URLImageSource.getConnection(Unknown Source)
         at sun.awt.image.URLImageSource.getDecoder(Unknown Source)
         at sun.awt.image.InputStreamImageSource.doFetch(Unknown Source)
         at sun.awt.image.ImageFetcher.fetchloop(Unknown Source)
         at sun.awt.image.ImageFetcher.run(Unknown Source)

  • Problems creating a jar executable file...

    Hi there, I am new to these forums, my name is Jay.
    I am trying to create an executable .jar file for my program I created in JBuilder 2005, with java files and several other files as well. I am having MAJOR problems with either the main class not being found or failing to load Main-Class manifest attribute.
    I tried to make a .txt with two lines, including the first with the MAIN-CLASS: className and stuff and a second line blank, and use the cmf command line to run it and include it in there. I ran it and created it no problem, but then I try to run it, and I get the error of the main class not being found and I have specified the correct directory and class name.
    Then I try to make my own manifest file with the correct directory and class name by making a txt file into an .mf file and when I try the cf command line this time, it gives me the error of failing to load Main-Class manifest attribute.
    I have even followed the tutorials on the Sun developer website including Manifest making and stuff and everything.
    I have worked on this program (java) for months and I am now STUCK. If someone could maybe give me some assistance or suggestions as to what my problem might be, I would greatly appreciate it so much. Or if you want, you can e-mail me, @ [email protected] with suggestions. Thank you all very much.
    I have a folder in a directory. It's called SuperPassword, which is the folder where my project files and EVERYTHING is. my .class files are in the classes/superpassword subdirectory of the folder SuperPassword, my java files are in the src/superpassword subdirectory and my manifest file and txt files are in the SuperPassword main directory. Maybe that could give you guys a bit of a hint as to what I am dealing with, I want to explain it as clearly as possible.
    Jay

    I have a folder in a directory. It's called
    SuperPassword, which is the folder where my project
    files and EVERYTHING is. my .class files are in the
    classes/superpassword subdirectory of the folder
    SuperPassword, my java files are in the
    src/superpassword subdirectory and my manifest file
    and txt files are in the SuperPassword main
    directory. Maybe that could give you guys a bit of a
    hint as to what I am dealing with, I want to explain
    it as clearly as possible.
    JaySo I guess you have a directory path SuperPassword\classes\superpassword and the .class files are inside. Are the classes in a superpassword package? If they are, then the Main-Class must be something like "superpassword.MainClass" and when you jar the .class files you need to make sure they are in a superpassword directory inside the jar - like "jar cmf thejar.jar themanifest.txt superpassword\*.class"
    You can check the directory structure by displaying the contents of the jar using "jar tf thejar.jar"
    Also, remember that java is case sensitive.

  • How to convert the javasource file(*.class) to execute file(*.exe)?

    How to convert the javasource file(*.class) to execute file(*.exe)?
    thank you!

    Although i have seen a few programs (that are platform specific) that will embed a small jvm into an exe with your class file, it is generally excepted that you cannot create an executable file using java. The JAR executable file is probably the closest your going to get
    Pete

  • Jar executable issue after jvm update

    I created a small demo application and bundled my classes and media files in a jar executable file. Everything was fine until I updated J2SE from 1.5.0 to 1.6.0_01.
    The application now starts, gets its input normally but soon after hangs, and the Swing GUI doesn't show up anymore.
    The jar file contains 4 packages (one of them contains the main class) and this simple manifest file:
    Main-Class: myapp.myAppLauncher
    Classpath: .\myapp.jar
    I created the jar as follows:
    jar cvfm gdv.jar Manifest.txt myapp mypackage2 mypackage3 mypackage4
    I recompiled the source before creating the jar archive, and if I launch the application from the console I see no difference from before. The problem is only for the jar version.

    Manually download and install the Java 4 update http://www.apple.com/downloads/macosx/apple/application_updates/javaformacosx105 update4.html, and Safari 4.0.1 http://www.apple.com/safari/download/ Run Software update, install anything that pop up, repair permissions, and restart. That should fix your problem.

  • Export a "FAT" Jar file

    Hi all.
    I created a new Java project as a DC in NWDS.  This project references jars stored in a library DC with in the same SC. 
    I am trying to export the java project as an executable jar.  The jar will export, but when I try running the Jar, main throws an exception.  I have tried updating the build path in NWDS with no luck.  I am able to get the jar file to run from the command line if I include the class-path to each external jar.  I believe the issue is that the external jars from the library DC are not being included in the executable jar.
    Does anyone know how to export a fat jar file which includes the external jars?
    Thanks
    Ryan

    Glad you found an answer, the issue you were having sounds similar to mine (using 3rd-party jars for axis / wsdl4j). According to SDN docs, you create an external library to wrap the jars (sounds like you did). In your public parts for the external library DC, you need to create both the COMPILATION and ASSEMBLY public parts (both representing the jars) and grant access to them from your consuming DC. Sounds like you did that too, I certainly did.
    In my case, I had:
      SC
        DC -> extjars
          libraries -> contains qname.jar and wsdl4j.jar
          extjars_assm_pp -> ASSEMBLY public part ref's both jars
          extjars_comp_pp -> COMPILATION public part ref's both jars
        DC -> wsdl4jEJB -> references javax stuff in wsdl4j.jar
          dependencies -> extjars:extjars_comp_pp
        DC -> wsdl4jEAR -> packages the extjars and the wsdl4jEJB
          dependencies -> extjars:extjars_assm_pp
        ...Web Dynpro DC that uses the wsdl4jEAR to import the EJB model...
    The trick to making the wrapped jars appear in the compilation command line for the DC deployment of the wsdl4jEAR (from Development Infrastructure perspective) was adding the ASSEMBLY public part reference to the wsdl4jEAR dependenciens. Also, the SAP doco was a bit confusing; on the extjars project the doc states to add the jar files to the public part. Be sure to add the jar files as Archives and not as regular Files (otherwise, the jars aren't added to the buildpath during DC deployment build).
    Hope this helps someone else if it doesn't actually pertain to the OP's issue, it would have saved me a bit of digging and debugging...
    Edited by: ANDY BRUCE on Jan 28, 2009 5:06 PM

  • How to get a file in the same dir with the jar-executable

    Hi,
    I need to read/write a file that exists in the same directory with the jar-executable. How can i do that? I think that when i specify no path for the file, the file has to be in current path. (Is that right?)
    Note: I do not know in which directory the jar and the file are.
    Thanx in advance

    Hi,
    I need to read/write a file that exists in the same
    directory with the jar-executable. How can i do that?
    I think that when i specify no path for the file, the
    file has to be in current path. (Is that right?)
    Note: I do not know in which directory the jar and
    the file are.
    Thanx in advance
    When you specify no path for the file, the file has to be in the directory where the virtual machine was started. ( the directory the java command was invoked in .)
    If you can't control the directory in which the vm is started, but you know the name of the .jar file you can do the following. This trick takes advantage of the fact that if you are using classes in a jar file, the name of the jar file must be in your classpath.
    public static String getPathOfJar( String nameOfJar )
    throws Exception
    StringTokenizer st = new StringTokenizer(
    System.getProperty( "java.class.path" ) ,
              System.getProperty( "path.separator" ) );
    String jarfile = "";
    while ( st.hasMoreTokens() )     
    String token = st.nextToken();
    if ( token.indexOf( nameOfJar ) > -1 )
    jarfile = token;
    break;
    if ( jarfile.equals("") ) throw new Exception( "Jar not found in classpath" );
    String path = jarfile.substring( 0 , jarfile.indexOf( nameOfJar ) );
    return path;
    //To open a file in the same directory as the sun archive tools.jar
    File f = new File( getPathofJar( "tools.jar" ) + "someFile.txt" );

  • How to export the result from executing sql statement to excel file ?

    HI all,
    Great with Oracle SQL Developer, but I have have a trouble as follwing :
    I want to export the result from executing sql statement to excel file . I do easily like that in TOAD ,
    anyone can help me to do that ? Thanks so much
    Sigmasvn

    Hello Sue,
    I just tried to export to excel with the esdev extension and got java.lang.NumberFormatException. I found the workaround at Re: Windows Multi-language env, - how do I set English for application lang?
    open the file sqldeveloper\jdev\bin\sqldeveloper.conf and add the following two lines:
    AddVMOption -Duser.language=en
    AddVMOption -Duser.country=USyet now my date formats in excel are 'american-style' instead of german. For example 01-DEC-01 so excel does not recognize it as date and therefore I can not simply change the format.
    When export to excel will be native to 1.1 perhaps someone can have a look at this 'feature'
    Regards
    Marcus

  • Mac olm outlook files exported as unix executable files

    Hi There,
    I had to export all my mail in outllook 2011 on my MacBookPro due to size limitations with my company exchange account.  When I tried to import the exported file, I noticed it was identified as "unix executable file" & outlook could not import it.  I have tried to change the file extension but my Mac continues to handle the file as "unix executable file".  I am in complete panic as my entire email archive is contained in this exported file & I am unable to access it.  Any help is appreciated.  Thanks. 

    I just tried it and my .olm file is simply a blank document with no application assigned to open it. You need to do a Get Info on the file and select the application to open the file. You might have better luck getting your question answered at the Microsoft Office for Mac Outlook forum - http://answers.microsoft.com/en-us/mac/forum/macoutlook.
    Good luck,
    Clinton

  • How do I put my jar executables into a cab file to create a setup/install?

    I want to create a setup program for installing my jar executable. I've seen ones that create cab files with a setup.exe program and would like to do the same. Any suggestions?

    Well, JARs generally don't have support files. That's the whole idea. A JAR is designed to be a stand alone application. You don't really need to install it, for that matter. I just thought you might be wanted shortcuts or something.
    Actually, there is some way to install Java programs through Java Web Start, if you want to check that out. I don't know anything about it, though.

  • How do I read a text file in a Jar Executable?

    Hello All,
    I have a need to package a text file into a Jar Exectable file and then have my java code read that text file in using a BufferedReader. Can anyone out there tell me how to do this? My first question is how do I reference this file by the path name? O, I'm also using Windows.
    Thanks for your help.
    Karl

    I have the same problem with kportner . I did by joop_eggen but I got the error at:
    BufferedReader in = new InputStreamReader(is);Can't conver from BufferedReader to InputStreamReader
    When I up my applet to server and get it from client. My applet couldn't read the text file.
    Any one help me!
    Thanks.

  • Creating a JAR executable

    I made a simple calculator in java and I want to zip it up in an excutable jar file. I have 3 classes including my main in my .java file and am having trouble creating the jar archive. The source code for this program is:
    import java.awt.*;
    import java.awt.event.*;
    import java.io.File;
    import javax.swing.*;
    // Frame for button panel
    class CalculatorFrame extends JFrame
         public CalculatorFrame()
              Toolkit kit = Toolkit.getDefaultToolkit();
              // sets title & icon image for window
              setTitle("Java Calculator v1.0 by D. Burkland");
              Image img = kit.getImage("calc.gif");
              setIconImage(img);     
              // add panel to frame
              CalculatorPanel calculator = new CalculatorPanel();
              add(calculator);
              pack();
              // centers frame
              Dimension screenSize = kit.getScreenSize();
              int screenHeight = screenSize.height;
              int screenWidth = screenSize.width;
              // center & set dimensions of frame
              setSize(width, height);
              setLocation(screenWidth / 3, screenHeight / 3);
              // set file chooser
              chooser = new JFileChooser();
              chooser.setCurrentDirectory(new File("."));
              // set up menu bar
              JMenuBar menuBar = new JMenuBar();
              setJMenuBar(menuBar);
              JMenu filemenu = new JMenu("File");
              JMenu helpmenu = new JMenu("Help");
              menuBar.add(filemenu);
              menuBar.add(helpmenu);
              // action of the exit text
              JMenuItem exitItem = new JMenuItem("Exit");
              filemenu.add(exitItem);
              exitItem.addActionListener(new
                        ActionListener()
                             public void actionPerformed(ActionEvent event)
                                  System.exit(0);
              JMenuItem helpItem = new JMenuItem("About");
              helpmenu.add(helpItem);
              helpItem.addActionListener(new
                        ActionListener()
                             public void actionPerformed(ActionEvent event)
                                  JOptionPane.showMessageDialog(null, "Java Calculator By: D. Burkland Summer 2006");               
         public static final int width = 350;
         public static final int height = 200;
         private JFileChooser chooser;
    // Calculator panel
    class CalculatorPanel extends JPanel
         public CalculatorPanel()
              setLayout(new BorderLayout());
              result = 0;
              lastCommand = "=";
              start = true;
              // add the display
              display = new JButton("Hello");
              display.setEnabled(false);
              add(display, BorderLayout.NORTH);
              ActionListener insert = new InsertAction();
              ActionListener command = new CommandAction();
              // adds the buttons in a 4 x 4 grid
              calculator = new JPanel();
              calculator.setLayout(new GridLayout(4, 4));
              addButton("7", insert);
              addButton("8", insert);
              addButton("9", insert);
              addButton("/", command);
              addButton("4", insert);
              addButton("5", insert);
              addButton("6", insert);
              addButton("*", command);
              addButton("1", insert);
              addButton("2", insert);
              addButton("3", insert);
              addButton("-", command);
              addButton("0", insert);
              addButton(".", insert);
              addButton("=", command);
              addButton("+", command);
              add(calculator, BorderLayout.CENTER);
         Adds a button to the center panel
         @param lable the button label
         @param listener the button listener
         private void addButton(String label, ActionListener listener)
              JButton button = new JButton(label);
              button.addActionListener(listener);
              calculator.add(button);
         // Inserts the button action string to the end of the display
         private class InsertAction implements ActionListener
              public void actionPerformed(ActionEvent event)
                   String input = event.getActionCommand();
                   if (start)
                        display.setText("");
                        start = false;
                   display.setText(display.getText() + input);
         // Executes the command that the button action string demotes
         private class CommandAction implements ActionListener
              public void actionPerformed(ActionEvent event)
                   String command = event.getActionCommand();
                   if (start)
                        if (command.equals("-"))
                             display.setText(command);
                             start = false;
                        else
                             lastCommand = command;
                   else
                        calculate(Double.parseDouble(display.getText()));
                        lastCommand = command;
                        start = true;
         // Carries out the pending calculation
         public void calculate(double x)
              if (lastCommand.equals("+")) result += x;
              else if (lastCommand.equals("-")) result -= x;
              else if (lastCommand.equals("*")) result *= x;
              else if (lastCommand.equals("/")) result /= x;
              else if (lastCommand.equals("=")) result = x;
              display.setText("" + result);
         private JButton display;
         private JPanel calculator;
         private double result;
         private String lastCommand;
         private boolean start;
    public class Calculator
         public static void main(String[] args)
              CalculatorFrame calculator = new CalculatorFrame();
              calculator.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              calculator.setVisible(true);
    }I am using Eclipse to create the jar files so if anybody has any advice I would be very grateful if you shared it.
    Thanks,
    Danny

    Well I keep getting errors so I am doing something wrong. The errors I get are:
    java.io.FileNotFoundException: jarexample.jar (The system cannot find the file specified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:
    106)
    java.io.FileInputStream.<init>(FileInputStream.java:66)
    at sun.tools.jar.Main.run(Main.java:122)
    at sun.tools.jar.Main.main(Main.java:903)So I have 3 classes, but after compiling the program I have many .class files: Calculator.class, CalculatorFrame$1.class, CalculatorFrame$2.class, CalculatorFrame.class, CalculatorPanel$CommandAction.class, CalculatorPanel$InsertAction.class, and CalculatorPanel.class. Which files do I want to export into my jar file and do I have to open these class files in Eclipse? Also could you explain the manifest thing first, I have googled for this stuff but get confused because of the class file issue that I previously stated.
    Thanks again for helping a noobie out :)
    Message was edited by:
    danny9894
    Message was edited by:
    danny9894

  • JAR Executable works in netbeans but not under Dos?

    Hi all,
    I have created a jar executable and it works fine in netbeans(it was not created in netbeans) but I can't get it to run on the command line. If I type java ClassName.MainClass it will run but not using the command java JarFile.jar or java -jar JarFile.jar
    Any help would be most appreciated.

    When creating the manifest file did you add a carriage return at the end of the manifest? e.g.
    Main-Class:Hello.class
    (carriage return here on new line)
    I think it runs into problems if you dont add a carriage return ( a new blank line after manifest).
    Hope this helps
    Riz

  • How to export data to multiple csv files?

    Hey Scripting Guys,
    As stated by the name I'm a novice at scripting.  Typically I'm able to resolve most of my scripting challenges by reading through your site or scouring the internet.  This challenge I haven't been able to resolve.  Please help!!
    I'm running a script (posted below) to grab data and export it to a csv file.  My challenge is that I want to run the script daily via task manager and have it create a new csv file either daily or weekly.  I'm having trouble with the scripting
    creating a new csv file.  How do I resolve this?  
    It would be beneficial to append the date to a standard file name, ex. c:\exportedcsv7-11-2014.csv; the next day it would be c:\exportedcsv7-12-2014.csv; and so on.
    Thank you in advance to any assistance.
    Respectfully,
    ScriptingNovice
    Get-Datastore -Name "*DS*" | Sort $_.name | Get-View | Select -ExpandProperty Summary | `
    Select Name,
    @{N=”FreeSpaceGB”;E={[Math]::Round($_.FreeSpace/1GB,2)}},
    @{N=”CapacityGB”; E={[Math]::Round($_.Capacity/1GB,2)}},
    @{N=”UncommittedGB”; E={[Math]::Round($_.Uncommitted/1GB,2)}},
    @{N=”ProvisionedGB”;E={[Math]::Round(($_.Capacity – $_.FreeSpace + $_.Uncommitted)/1GB,2)}},
    @{N=”Over-Provisioned-DS”;E={([Math]::Round($_.Capacity/1GB,2)) – ([Math]::Round(($_.Capacity – $_.FreeSpace + $_.Uncommitted)/1GB,2))}}| `
    select Name,CapacityGB,FreespaceGB,ProvisionedGB,UncommittedGB,Over-Provisioned-DS | export-csv -notype c:\vmds.csv

    Thank you for the information and the tip.  I took your advice and did some research on Strings, something that I do have trouble grasping.  I'm familiar with variables already and feel comfortable using them.  I also need to study .Net which
    I totally don't understand. 
    Since I appreciate your advice and guidance I'd like to know if I'm on the correct track.  Please look at my breakdown to see if I'm explaining it correctly.
    $d=Get-Date
    Here a variable is being created using the Get-Date cmdlet, if we execute $d the date will appear
    $d.ToString('dd-MM-yyyy')
    This converts the date into the format dd-MM-yyyy.
    I took the information and tips you provided then came up with this after reading about strings.
    export-csv -notype "c:\folder\vmds_$($d.ToString('MM-dd-yyyy')).csv"
    The double quotes evaluate the variables.  The single quotes do not evaluate anything they just show what's inside of them (a.k.a. literal string). The $() evaluate the expression in ('MM-dd-yyyy') before writing it.
    You are correct I definitely need to strengthen the foundation of my basics.  Thank you for the direction and advice.

Maybe you are looking for

  • Installing Windows XP pro from a ZIP file

    Hi, I bought a OEM copy of windows XP pro. It comes in a ZIP file. Is there a way to install it using Bootcamp directly or must I first create a CD with this file? Also, is there a difference in using the 64 bit version instead of the 32? Which one i

  • Which compression is the best for iDVD?

    I have about 9 footages ready to export to quicktime format in order to create an iDVD, however, I need to know which compression method produces the best quality of video for iDVD? I've been using MEPG4 so far but I have no idea if there's anything

  • Create a package

    Can any one lead me to an example of how to create a package? add a Main.as package { import flash.display.MovieClip; import flash.utils.Timer; import flash.events.TimerEvent; public class Main extends MovieClip { *constructor. pulic function Main()

  • YES AND NO buttons!!

    HOw do you implement a yes and no button and what it does if you press yes and no?

  • Problem In Cross Application  in Unicode

    Hi  ,     There is one application  using  Biztalk  . one RFC is called for update   .     when RFC is beign  passed from Biztalk application  it passes all fields  to SAP RFC ,     but  when is passes QTY value  is passes only  0.000  value  .   Pro