Executable Jar file - Does not open

Hi,
I have an executable jar file. The icon of that executable jar is that of an unknown file instead of the normal java icon. So when I try to run that executable jar it shows 'open with'. What is the reason for this? What should be done in order that I can run this executable jar?
Anees

Associate .jar files with java -jar in your OS. I didnt get you.
Normally it should open with these softwares installed, rt?

Similar Messages

  • Executing jar file does not work

    i am using net beans 4.1, jdk 1.4.2_09 and jre 5.0 update 4.
    i create a jar in netbeans, exit netbeans, go to the directory where the jar has been placed and double click the jar file to run it. when i do so i get an hour glass momentarily and then nothing. the program does not execute. i hope i am not missing something very basic here. i assume i can run the program by double clicking the jar file ....
    i have checked in netbeans to insure that all classes are in the jar, the manifest looks good, etc, etc. it looks like all the pieces of the jar are in place but the program will not run. please help.
    thanks,
    dave ...

    Directory of C:\JAVA\PROJECTS\DIST
    10/04/2005 10:09 AM <DIR> .
    10/04/2005 10:09 AM <DIR> ..
    10/04/2005 10:09 AM 25,203 gift_email.jar
    1 File(s) 25,203 bytes
    2 Dir(s) 124,456,144,896 bytes free
    C:\JAVA\PROJECTS\DIST>echo %CLASSPATH%
    c:\java\projects\dist;c:\Program Files\netbeans-4.1\ide5\modules\ext
    C:\JAVA\PROJECTS\DIST>java -jar gift_email.jar
    Exception in thread "main" java.lang.NoClassDefFoundError: org/netbeans/lib/awtextra/AbsoluteLayout
    at giftrecpt.email.gift_email_gui.initComponents(gift_email_gui.java:38)
    at giftrecpt.email.gift_email_gui.<init>(gift_email_gui.java:24)
    at giftrecpt.email.gift_email_gui.main(gift_email_gui.java:142)
    C:\JAVA\PROJECTS\DIST>
    i added the location of the absolutelayout method to the classpath but still get the error. i also included this same reference in netbeans to the project under run-time libraries. so it seems that i have added the necesary references but still no luck. what could i be missing? the manifest makes no mention of class path. here it is below:
    Manifest-Version: 1.0
    Ant-Version: Apache Ant 1.6.2
    Created-By: 1.4.2_09-b05 (Sun Microsystems Inc.)
    Main-Class: giftrecpt.email.gift_email_gui
    X-COMMENT: Main-Class will be added automatically by build
    thanks,
    dave ...

  • JAR file does not get uploaded to client for my SERVLET generated APPLET

    Some help please...
    I have a servlet that generates the HTML code that contains an APPLET. This APPLET needs a JAR file that is listed under its ARCHIVE property. The SERVLET is in a JAR file that is in the same directory as the other needed JAR file. If I create a static HTML with the output of the SERVLET it works fine. But if go through Weblogic the needed JAR file does not get uploaded to the client so I get a java.lang.NoClassDefFoundError:and my APPLET does not load.
    Q1: I am not sure what to put under the CODEBASE tag. I tried "." and I also tried "http://mymachine" but both did not work. I also tried without the CODEBASE tag. No luck. The SERVLET is bound to http://mymachine/servlet.
    Q2: Does anyone have any suggestions on how to do this? Is there a way to force the browser to upload a certain JAR file?
    Thanks...

    It works!!
    This is what I did:
    The jar file in question was the weblogic.jar. I tried putting it under the lib directory of my war file but I had problems because the weblogic.jar contains other war files inside so when I tried to deploy my war file it also tried to deploy the inner war files which for some reason did not work. So I tried removing the war files from the weblogic.jar and this time I had no problems deploying my war file but I still could not find the classes I needed. So I tried moving the weblogic.jar to the root dir of my war file and it worked!! Now the trick here was: I did not set the CODEBASE AND I had the ARCHIVE paramenter set in TWO places like below:
    <APPLET CODE = "marketmap.client.MarketMapApplet"
    ARCHIVE = "weblogic.jar"
    WIDTH = "657"
    HEIGHT = "382"
    ALIGN = "BOTTOM"
    ALT = "APPLET tag not recognized">
    </XMP>
    <PARAM NAME = CODE VALUE = "MyApplet" >
    <PARAM NAME = "type" VALUE="application/x-java-applet;version=1.2.2">
    <PARAM NAME = "scriptable" VALUE="false">
    <PARAM NAME = ARCHIVE VALUE="weblogic.jar">
    </APPLET>
    Actually if you do not place a parameter named ARCHIVE (at the end) it wil NOT work. I tried with multiple jar files listed and it works great too.
    Anyway I figure I'd share. Thanks for the help too.
    Lastly for people who choose not to upload the jar files to clients, you should look at the bea documentation on applets. It lists a classpath servlet that allows you to provide classes to the clients without having to force them to download the jar file.

  • When I click PDF file, the file does not open and  installation software for creative suite automatically begin to start. Even after re-installation of creative suite 5.5, only acrobat reader dose not work and the same phenomena occurs.

    When I click PDF file, the file does not open and  installation software for creative suite automatically begin to start. Even after re-installation of creative suite 5.5, only acrobat reader dose not work and the same phenomena occurs.

    Did you ever install Acrobat? It is not installed automatically with CS, but requires an extra installation step.

  • CS5: double-click on file does not open the file

    If Photoshop is closed, double-click on a file will always successfully launch Photoshop and open the picture.
    If Photoshop is running, double-clicking on a file will activate Photoshop, but very often the file does not open. It works from time to time though, and that seems to be on a random basis.
    Opening a file through the Open command will always work.
    I am working with 10.6.3 on a loaded Mac Pro.
    Did anybody experience this difficulty? Any help would be appreciated, before I take more drastic measures like reinstalling the software of worse than that. I've already done the usual maintenance operations.

    Marian Driscoll wrote:
    Caustic waltz, while brief, may have hit the nail on the head. If you do not want to continue this thread, you can search the forum for existing posts about Snow Leopard and file-program association confusion. Snow Leopard changed some things and that might be your issue.
    More simply, do your image files have extensions? (.PSD, .JPG, etc...)
    Hello Marian:
    While browsing through my Adobe account, I saw that you took the time to leave a comment two days ago. While it did not solve my problem, I will mark your comment as "helpful" for several reasons. It could have been a cause. And I will add politeness, courtesy and language precision. I'm an old guy and I quite value those elements.
    True, Snow Leopard changed changed the way files are associated to applications. Thank God! Here in our small office, we do a lot of cross-platform transfers and finally it works seamlessly. A good description of the new file identification system can be found here.
    Now, here are the reasons why Snow Leopard cannot be put at fault in my case:
    • If Photoshop CS5 is not launched, double-clicking on any psd, tiff or jpeg file will launch it and open properly.
    • If Photoshop CS5 is already running, double-clicking on any psd, tiff, or jpeg file will activate Photoshop CS5 but will not open.
    This points at either a bug or damaged Photoshop CS5, or maybe a damaged OS. Don't forget that out of maybe a hundred apps, this is the first time I meet with that problem. Of course, the easier course, but by no means guaranteed to work, is to presume that Photoshop CS5 is damaged or that its installation did not work properly. So I did the following things:
    • I deactivated Photoshop CS5 and uninstalled it.
    • I ditched all remaining files related to CS5, CS4, CS3, CS2, CS... yes I know, but then you know as well as I do0 that getting really rid of Photoshop is a daunting task. It took me almost two hours, but I am reasonably sure that the cleaning job was complete.
    • I reinstalled Photoshop CS5.
    Now everything works just fine at least for the time being. Time will tell, of course, but I think that the problem is solved.
    Regards

  • Executable JAR file: Could not find the main class.

    Hello,
    I have a problem with making an executable JAR file.
    I have written a JAVA program that consists of five different classes of which User.java is the main class and I have saved a text document with Main-Class: User and a blank line after that.
    If I try:
    jar cmf MainClass.txt User.jar User.class Beheerder.class Operator.class Manager.class MaakVisueelSchema.class
    it makes a executable jar file which actually works! :)
    But when the Operator class trys to open the MaakVisueelSchema class the screen stays blank.
    I can run MaakVisueelSchema with java MaakVisueelSchema.
    So I tried to make an executable JAR that consists only of MaakVisueelSchema, the same way as I did for User:
    Main-Class: MaakVisueelSchema
    jar cmf MainClass.txt MaakVisueelSchema.jar MaakVisueelSchema.class
    Then I get the error message:
    Could not find the main class. Program will exit.
    from the Java Virtual Machine Launcher.
    The big difference between MaakVisueelSchema and the other classes is that MaakVisueelSchema contains a PaintComponent method and an ComponentListener. Is it possible that one of those creates the error?
    Can anyone help me with this problem?
    Thanks in advance!
    Bye!

    Yes,
    I tried:
    jar xvf MaakVisueelSchema.jar
    and it returns:
    META-INF/
    META-INF/MANIFEST.MF
    MaakVisueelSchema.classN/G. You need to manually create a manifest file in a text editor, have it point to your main class, and enter it in your jar command as an argument.

  • XSLT Mapper file does not open in design view

    XSLT mapper file in the composites exported from weblogic EM as a jar and imported in JDeveloper 11.1.14 does not open in design view. There is no option of design view itself in the tab structure. It is viewable only in source view.
    Please suggest, how do I view the desgn view of the xslt mapper?
    Thanks,
    Promiit

    When you export composites from Weblogic EM in jar format, the resulting files are differently formatted from what was used for deployment.
    So, basically, the XSLT file, you are trying to open in Jdeveloper has lost the "mapSources" and "mapTargets" sections, which are generally present in the header section of the jdeveloper-generated XSLT file. Try to manually hand-crack those sections and you should be good to go.
    Hope it helps !

  • The jsp file does not open the new login window but opens the source code.....plz help

    When i try to log in to the log in link at the site https://efp.bpcl.in the log in page does not open but the firefox wants to ask with which program the firefox should open the file and when we give firefox or internet explorer than it opens the source code.Plz help...

    Those files are send as application/octet-stream and that makes Firefox display a download dialog.
    http://developer.mozilla.org/en/docs/Properly_Configuring_Server_MIME_Types

  • PDF files does not open in IE 8

    When I click on a link on a web page which is to open a pdf file in acrobat reader, it does not open and gives me a error mesage
    The instruction at "0x02d96433" referenced memory at "0x00000000". The memory could not be read
    and then it opens a blank new window.

    Hi,
     Maybe you can refer to the following link
    to try to solve your problem, thanks.
    http://helpx.adobe.com/acrobat/kb/cant-view-pdf-web.html
    | SQL PASS Taiwan Page |
    SQL PASS Taiwan Group
    |
    My Blog

  • Double clicking Illustrator (.ai) file does not open a file with opened app.

    Hello,
    I have an Illustrator CS5 (15.0.2) running on Windows 7 Pro. Here are the symptoms: when double clicking the Illustrator file once the application is already open, the file will not open. You will see an hourglass for a few seconds, but no file contents are displayed. However, if I were to close Illustrator application and then double click on the file, Illustrator will open the file correctly. Additionally, if I go to File -- Open and manually select the file, it also opens the file correctly. Only double clicking the file once the Illustrator application is already open does not work.
    Has anyone seen this issue and knows how-to fix it?

    Right click on a .ai file and choose properties, check to see what application is set to open .ai files. Try running in 32 bit mode.

  • In Dropbox, mobile index.html file does not open in Ipad with ios7

    Before upgrading to ios7 the index.html file opened to text.  Ios7 was to correct this, but the file will not open in a browser.

    I don't think this is a Flash Player problem, but possibly something wrong on your website.
    Try asking in the Dreamweaver forum.

  • Execute jar file: "could not find the main class" program will terminate

    Hey,
    I am new to Java. I have started to make a small java program which supposed to help me at my studies to lean the Dominic Memory System. I have used the latest version of Netbeans 5.5.1 to build my program in. I have two problems which I cannot figure out how to solve, please help me.
    The first problem is that the java script I have made works when I compile it in Netbeans, but when I create a Jar file it does not work. I receive a pop up message in windows ?could not find the main class program will terminate? when I execute the jar file.
    The second problem I have is that I need to compare the strings generated by the "numbers" and "TIP" and if the numbers is not identical the numbers in the ?Center? JPanel should be highlighted as red.
    If anyone would like to clean up the code I would be pleased. I have copied quite a lot from anyone because of my one lack of knowledge.
    * GoListener.java
    * Created on 12. september 2007, 21:48
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    package grandmaster;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.Vector;
    import java.util.StringTokenizer;
    import java.awt.Color;
    * @author Computer
    public class GoListener implements ActionListener {
    private JTextField viewer;
    private JTextField TIP;
    private JTextField freq;
    private JTextField max_num;
    private Vector numbers;
    public GoListener(JTextField j,JTextField k, JTextField m, JTextField f, Vector n) {
    freq = f;
    max_num = m;
    viewer = j;
    numbers = n;
    TIP = k;
    public void actionPerformed(ActionEvent e){
    int time = Integer.valueOf(max_num.getText());
    int f = Integer.valueOf(freq.getText());
    if (e.getActionCommand() == "GO") {
    for (int i = 0; i< time;++i) {
    int number=0;
    number = (int)Math.floor(100*Math.random());
    while(number>51){
    number = (int)Math.floor(100*Math.random());
    if(number<=9){
    viewer.setText(" "+"0" + String.valueOf(number) + " ");
    } else{
    viewer.setText(" " + String.valueOf(number) + " ");
    viewer.paintImmediately(viewer.getBounds());
    numbers.add(number);
    try {
    Thread.sleep(f*1000);
    } catch (Exception exp) {
    viewer.setText(" XX ");
    viewer.paintImmediately(viewer.getBounds());
    if (e.getActionCommand() == "VIEW") {
    try {
    //int numb = Integer.valueOf( TIP.getText() ).intValue();
    StringTokenizer tokenizer = new StringTokenizer(TIP.getText(), " ");
    String[] split = null;
    int tokenCount = tokenizer.countTokens();
    if (tokenCount > 0) {
    split = new String[tokenCount];
    for (int current = 0; current < tokenCount; current++) {
    split[current] = tokenizer.nextToken();
    viewer.setText(" " + String.valueOf(numbers) + " ");
    // k=numbers(1);
    /*while(c<i){
    String.valueOf(k).equals(split[1]);
    c++;
    TIP.setText(" " + split[2] + " ");
    } catch (Exception exp) {
    try {
    //string testit = numb.toString();
    //String str = "" + numb;
    //viewer.setText(str);
    //viewer.setText(numbers.toString());
    numbers.clear();
    } catch (Exception exp) {
    * Main.java
    * Created on 12. september 2007, 21:07
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    package grandmaster;
    import java.util.Vector;
    import javax.swing.*;
    import java.awt.event.*;
    import javax.swing.JButton;
    import java.awt.*;
    import grandmaster.GoListener;
    * @author Computer
    public class Main extends JFrame {
    private JTextField viewer;
    public JTextField TIP;
    // private TextInputPanel TIP;
    private Vector numbers;
    /** Creates a new instance of Main */
    public Main() {
    numbers = new Vector();
    JPanel p = new JPanel(new GridLayout(0,4));
    JButton go = new JButton();
    JButton view_num = new JButton();
    go.setText("Go!");
    go.setVisible(true);
    go.setActionCommand("GO");
    view_num.setText("VIEW");
    view_num.setVisible(true);
    view_num.setActionCommand("VIEW");
    JTextField max_num = new JTextField();
    max_num.setText("5");
    JTextField freq = new JTextField();
    freq.setText("1");
    viewer = new JTextField();
    viewer.setText("XX");
    TIP = new JTextField("");
    p.add(go);
    p.add(max_num);
    p.add(freq);
    p.add(view_num);
    getContentPane().add(p,BorderLayout.NORTH);
    getContentPane().add(viewer,BorderLayout.CENTER);
    getContentPane().add(TIP,BorderLayout.SOUTH);
    setSize(200,200);
    GoListener g = new GoListener(viewer,TIP,max_num, freq, numbers);
    go.addActionListener(g);
    view_num.addActionListener(g);
    * @param args the command line arguments
    public static void main(String[] args) {
    // TODO code application logic here
    Main window = new Main();
    window.setVisible(true);
    }

    NetBeans questions should be posted to the NB site. It has mailing lists and associated forums.
    This tutorial from the NB site addresses running programs outside of NB
    http://www.netbeans.org/kb/articles/javase-deploy.html
    When you compare objects, use ".equals()" and reserve == for comparing values.

  • Double-clicking on rpt file does not open report

    Post Author: lindad
    CA Forum: General
    When I double-click on a *.rpt file, Crystal Reports opens but does not bring up the report file.  I have to then go to File/Open in order to open the file.  I don't receive an error. Does anyone know how to get Crystal Reports to open the file at the same time as executing the crw32.exe?
    I checked in Windows Explorer under Tools/Folder Options/File Types, selected RPT which is associated to Crystal Reports, went to the Advanced options, and all I have is Open for an Action.  I have the following settings for Open:
    Application Used to Perform Action:  "C:\Program Files\Crystal Decisions\Crystal Reports 10\crw32.exe" "%1" /dde /e /n
    DDE Message:  &#91;FileOpen("%1")&#93;
    Application: crw32

    Post Author: lacsapper
    CA Forum: General
    I had to go into the Advanced settings and delete the "Open" action, then click "OK" to exit.  Then go back in and re-add the Open action, browse to your crw32.exe file as the application to open.  Seems to correct the problem; not sure of the cause.
    TTFN

  • What does E_ADEPT_XML_SYNTAX mean.. The downloaded acsm-file does not open in Adobe Digital Editions

    downloaded Adobe Digital Editions 4, and registered computer, verified email and then downloaded e-book from retailer, but the acmsfile does not want to open.
    This is very frustrating

    Since Re-activation as suggested by the link above is not working for you, Can you please confirm the following:
    The OperatorURL is reachable. ( you can find the operatorURL from the acsm file by opening it in notepad,etc)
    And Book is still available on the book-store for purchase.
    (If any of first two are not available, you might have to talk to distributor for next action item to get the book. Since you will have record of purchasing the book, (in my opinion) they should provide you the new token for downloading the book)
    And please confirm this that you used the same userID for downloading that you used when you first fulfilled/downloaded the book.
    (If it is the case, then you have to use the correct userID)
    I hope it helps.

  • Word file does not open automatically on export

    When I click on the Export to Word icon from the toolbar the file exports to C:\Program Files\SAP Business One\Worddocs\<company>\<bp ID>\<filename.doc> but it doesn not open automatically as it does in Excel.
    I can open the file once exported but I have to go into that path to do so. Is there something I can do to have it open automatically? MS Word does not even come up when the file is exported. I'm using MS Office 2007 and SAP Business One 8.8 PL 13.

    Hi Alan.......
    i guess what you need to do is Go to Administration> System Initialization> Print Preferences
    Select the Document say Invoice on Per Tab and tick on Export to MS-Word.
    Once you add the AR Invoice it will be exported to MS Word automatically.......
    Hope this will solve your problem.....
    Regards,
    Rahul

Maybe you are looking for

  • To send multiple operation commands to serial port

    My AC power source is able to communicate to PC via serial port using LABView and I can perform any operation by giving commands in Hex individually, But when it comes to the parallel operation of all the commands or to put them in a particular seque

  • Lock screen in Xcode

    Hello I'm new in Xcode. I would like to make an Lock Screen application. How can I tell the textfield that when the word 'test' is entered, the program closes.But if Ienter a different word should appear a message. Example code would be helpful. Than

  • Temp CLOB tablespace not released - Returning CLOB from SP

    I'm trying to call a stored procedure from a .NET application that returns a CLOB as an OUT parameter. The problem that we are experiencing the tablespace allocation from the temporary clob created in the stored procedure is not released after the st

  • CSS with OS X newbie problem

    Hi! I'm a complete newbie to DW but I've just undertaken a Two day intensive on a PC with MX 2004. Got a site going, basic, learning CSS. But the way of using this seems to be different in windows.. Is this true? On my Mac G5 I am getting a choice of

  • EOS 6D zoomed remote live view sharper??

    Hi, I've got this Canon Zoom lens EF 70-300mm on my EOS 6D, connected via EOS Remote Utility on my Macbook Pro running MacOS 10.9.1. Everything is working great, and I'm really impressed by the level of details I can achieve by zooming on the moon: I