Jar file runs from the command line, but not when I double click it

Hello, I'm running windows xp. I've created an executable jar file and it runs fine from the command line when I type;
java -jar wizard.jar
but, when I double click it . . . nothing.
Any ideas?

nothing ? that's weird, windows XP should prompt you to select the program you want to use in order to open Jar files (and give you this silly piece of advice to search the web for the appropriate program)
you might want to check what program (if any) got associated with .jar extensions :
in Windows Explorer : Tools => Folder Options => File Types
hth

Similar Messages

  • SQL 2012 SSIS package runs from the command line (dtexec.exe) and completes right away ...

    Hi
    I’m upgrading our SSIS packages from SQL 2005 to SQL 2012 .
    Everything is working fine in Visual Studio, but when I’m submitting dtexec.exe it’s finishing right away in the command line (the actual execution takes long time). 
    It looks to me that as the return code doesn’t pass properly.
    As I have depending tasks how I can make sure all jobs will be executed in the proper order.
    (We never had this issue in SQL 2005)
    C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn>dtexec.exe /ISSERVER "\"\SSISDB\Direct_Prod\Direct_SSIS_Package
    \DD_Load_Customer.dtsx\"" /SERVER TORSQLSIS01 /ENVREFERENCE 2
    Microsoft (R) SQL Server Execute Package Utility
    Version 11.0.2100.60 for 32-bit
    Copyright (C) Microsoft Corporation. All rights reserved.
    Started:  10:21:55 AM
    Execution ID: 21138.
    To view the details for the execution, right-click on the Integration Services Catalog, and open the [All Executions] report
    Started:  10:21:55 AM
    Finished: 10:21:56 AM
    Elapsed:  0.766 seconds

    As per MSDN /ENVREFERENCE argument is used only by SQL Server Agent
    see
    https://msdn.microsoft.com/en-us/library/hh231187.aspx
    below part is what it says
    /Env[Reference] environment reference ID
    (Optional). Specifies the environment reference (ID) that is used by the package execution, for a package that is deployed to the Integration Services server. The parameters configured to bind
    to variables will use the values of the variables that are contained in the environment.
    You use /Env[Reference] option together with the /ISServer and the /Server options.
    This parameter is used by SQL Server Agent.
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Run javascript (not in a jsx file) from the command line extendscript

    Hi all,
    I was wondering if anyone knew how to run javascript from the command line in Extendscript (meaning Extendscript would be the target application). I know about the -run command line flag in which allows you to run a .jsx script from the command line but what I'm looking for similar syntax to run a script directly without needing to put it in a file. For example I have tried (obviously unsuccessfully):
    C:\Program Files (x86)\Adobe\Adobe ExtendScript Toolkit CC\ExtendScript Toolkit.exe -run "alert('Hello World');"
    Thanks!

    You might be looking for something like this: javascript - Is it possible to execute JSX scripts from outside ExtendScript? - Stack Overflow
    Although that one is about executing JSX files, the solutions given (Applescript as well as COM/VBScript) can be adapted to simply run a javascript code snippet rather than JSX file because the solutions simply call the Adobe app's Applescript/COM API to "execute javascript" (actually execute ExtendScript technically), and in the solution, they using includes to pull in the JSX file. You'd simply replace the include with actual javascript code snippet inserted in.
    Though this would then require you to run a VBScript, Applescript, or other script (that calls the COM/Applescript API) rather than the ESTK command line option.

  • Getting SimpleChat.mxml example running in the command-line

    Hi,
    I am working on getting a connection to cocomo working. Unfortunately, the documentation is highly unclear about how to get this running from the command-line(not to mention the example file in flash builder 4 crashes when run...).
    Directly run, this is the error I'm getting:
    $ /Developer/flex_sdk_4/bin/mxmlc cocomo_load.mxml
    Loading configuration file /Developer/flex_sdk_4/frameworks/flex-config.xml
    /Users/vlion/Documents/work/flixn/repos/vss/sandbox/cocomo_load.mxml(72): Error: Could not resolve  to a component implementation.
    /Users/vlion/Documents/work/flixn/repos/vss/sandbox/cocomo_load.mxml(84): Error: Could not resolve  to a component implementation.
    When adding --show-actionscript-warnings=true --strict=true, I get the same warning.
    I have afcs.swc in the directory I'm running this from.
    However, when run with --library-path=., I receive a slew of "could not find resource bundle for local en_US" warnings. Setting the local to en_US doesn't help the matter.
    Reviewing the discussions I found online, this appears to be related to namespace issues. However, it is unclear what the namespace issue is.
    What, exactly, is the problem, and what needs to be set to resolve it?
    Message was edited by: pnathan_: added filename and some readability formatting.

    Hi,
    Thanks for bringing this in notice to us. Since we were not building the examples in command-line with flex 4,  we didn’t see this problem earlier.
    The problem happened because our LCCS components were built with halo component and namespace in flex 3. So, when you are using the spark framework and flex 4, if you do not mention that you also need the halo theme , our components won't work. Flex Builder takes care for it but while doing command-line compiling you need to mention the theme specifically. If you run your current script with Flex 3 sdks, it would have built fine. This has nothing to do with our namespaces or using locale.
    I am attaching a quick ant build script which I used to build our DefaultPods example with Flex 4 sdks( this script file is in same folder as DefaultPods.mxml).
    You can see the build  script and make any changes ( since I used for windows) and let us know if everything works fine for you.
    Thanks again for bringing it to our notice. We will make sure that this gets added to the docs in next-release.
    Thanks
    Regards
    Hironmay Basu
    Here is the Ant Script
        <property name="cocomoSDK.dir" value="$/../../../cocomo" />
        <property name="FlexSDK.dir" location="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0" />
        <property name="mxmlc.jar" location="${FlexSDK.dir}/lib/mxmlc.jar" />
        <property name="cocomo.lib.dir" location="$/../../../cocomo/lib/" />
                    <!launcher>
                            <arg value="-output=$/DefaultPods.swf" />
                            <arg value="-file-specs=$/DefaultPods.mxml" />
                        </java>
            </target>
    </project

  • How to burn CD's from the command line in 2009?

    I've always managed to burn CDs and DVDs from the command line but I haven't done it in a long time. cdrecord wasn't working as root and I noticed it was just a symlink pointing to wodim.
    I tried the following command as root in a directory with some wav files:
    # cdrecord -dev=/dev/sr0 -driveropts=burnfree -audio -pad *.wav
    Which gives me:
    Mar 6 08:43:18 wilco ata7.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
    Mar 6 08:43:18 wilco ata7.00: cmd a0/00:00:00:00:00/00:00:00:00:00/a0 tag 0
    Mar 6 08:43:18 wilco cdb 35 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    Mar 6 08:43:18 wilco res 40/00:02:00:0c:00/00:00:00:00:00/a0 Emask 0x4 (timeout)
    Mar 6 08:43:18 wilco ata7.00: status: { DRDY }
    Mar 6 08:43:18 wilco ata7: hard resetting link
    Mar 6 08:43:19 wilco ata7: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
    Mar 6 08:43:19 wilco ata7.00: configured for UDMA/100
    Mar 6 08:43:19 wilco ata7: EH complete
    This worked for me in 2008, so has anything big changed?

    Rasi wrote:
    Wilco wrote:
    Dieter@be wrote:I did not follow the discussion, but I just use wodim as specified on http://wiki.archlinux.org/index.php/CD_Burning_Tips, and that works great for me.
    Hmm strange, I tried the same command as in my first post and it works fine with the real cdrtools but not with wodim (I also tried k3b and that failed too). So I just stick with cdrtools
    Hooray, one more convert
    I haven't really followed the discussion either but why choose an "emulated cdrecord" that doesn't work instead of the real program that works great?

  • Accessing Runtime Mbeans from the command line.

    Hi,
    I just wanted to know if runtime Mbeans can be invoked from the command line.
    I tried accessing the ExecuteQueueRuntime mbean from the command line but nothing ever comes back.I am able to retrieve configuration mbeans without errors.
    Do I need to create the runtime mbeans before I can use them ?
    Or I need to invoke these commands via server code only?
    Thanks.

    Can you post the command you are using? I just tried this and seems to work.
    D:\>java weblogic.Admin -username weblogic -password weblogic get -type ExecuteQueueRuntime -pretty
    MBeanName: "mydomain:Location=myserver,Name=weblogic.admin.RMI,ServerRuntime=myserver,Type=ExecuteQueueRuntime"
    CachingDisabled: true
    ExecuteThreadCurrentIdleCount: 2
    ExecuteThreadTotalCount: 3
    ExecuteThreads: [Lweblogic.management.runtime.ExecuteThread;@3eb934
    Name: weblogic.admin.RMI
    ObjectName: weblogic.admin.RMI
    Parent: myserver
    PendingRequestCurrentCount: 0
    PendingRequestOldestTime: 1129990444704
    Registered: false
    ServicedRequestTotalCount: 87
    Type: ExecuteQueueRuntime
    MBeanName: "mydomain:Location=myserver,Name=weblogic.kernel.System,ServerRuntime=myserver,Type=ExecuteQueueRuntime"
    CachingDisabled: true
    ExecuteThreadCurrentIdleCount: 5
    ExecuteThreadTotalCount: 5
    ExecuteThreads: [Lweblogic.management.runtime.ExecuteThread;@2cfc8c
    Name: weblogic.kernel.System
    ObjectName: weblogic.kernel.System
    Parent: myserver
    PendingRequestCurrentCount: 0
    PendingRequestOldestTime: 1129990444754
    Registered: false
    ServicedRequestTotalCount: 124
    Type: ExecuteQueueRuntime
    MBeanName: "mydomain:Location=myserver,Name=weblogic.kernel.Non-Blocking,ServerRuntime=myserver,Type=ExecuteQueueRuntime"
    CachingDisabled: true
    ExecuteThreadCurrentIdleCount: 0
    ExecuteThreadTotalCount: 0
    ExecuteThreads: [Lweblogic.management.runtime.ExecuteThread;@2d125d
    Name: weblogic.kernel.Non-Blocking
    ObjectName: weblogic.kernel.Non-Blocking
    Parent: myserver
    PendingRequestCurrentCount: 0
    PendingRequestOldestTime: 1129990444764
    Registered: false
    ServicedRequestTotalCount: 0
    Type: ExecuteQueueRuntime
    MBeanName: "mydomain:Location=myserver,Name=weblogic.admin.HTTP,ServerRuntime=myserver,Type=ExecuteQueueRuntime"
    CachingDisabled: true
    ExecuteThreadCurrentIdleCount: 2
    ExecuteThreadTotalCount: 2
    ExecuteThreads: [Lweblogic.management.runtime.ExecuteThread;@2d260e
    Name: weblogic.admin.HTTP
    ObjectName: weblogic.admin.HTTP
    Parent: myserver
    PendingRequestCurrentCount: 0
    PendingRequestOldestTime: 1129990444814
    Registered: false
    ServicedRequestTotalCount: 0
    Type: ExecuteQueueRuntime
    MBeanName: "mydomain:Location=myserver,Name=weblogic.kernel.Default,ServerRuntime=myserver,Type=ExecuteQueueRuntime"
    CachingDisabled: true
    ExecuteThreadCurrentIdleCount: 15
    ExecuteThreadTotalCount: 15
    ExecuteThreads: [Lweblogic.management.runtime.ExecuteThread;@2d3a8c
    Name: weblogic.kernel.Default
    ObjectName: weblogic.kernel.Default
    Parent: myserver
    PendingRequestCurrentCount: 0
    PendingRequestOldestTime: 1129990444854
    Registered: false
    ServicedRequestTotalCount: 7
    Type: ExecuteQueueRuntime
    D:\>
    Thanks,
    -satya
    BEA Blog: http://dev2dev.bea.com/blog/sghattu/

  • Running a jar from the command line

    I am trying to run a Jar from the command line. I have a number of classes in a package called "trainnn".
    I put all the classes into a jar
    jar cvf name.jar trainnn\*.classI then creat a file called mainClass.txt with the line (with a blank return line after it, where QueryMatch has the main). This file was placed in the same directory as the package and the jar file
    Main-Class: QueryMatch
    then
    jar cmf mainClass.txt network.jar G:/TrainNN/src/trainnn/QueryMatch.classthis worked fine.....but it is from here I have problems when I try run the jar
    java -jar network.jarbut get this error.
    Exception in thread "main" java.lang.NoClassDefFoundError: QueryMatch
    I cant figure out this error, I have tried specifying the exact path in the mainClass.txt file but that didnt work.
    Any ideas
    Thanks in advance.

    Hi,
    To start a java app in the command line with "java -jar yourJarFile.jar", the jar needs to have a mainfest file "MANIFEST.MF" in a folder called "META-INF". The manifest file would have to contain the name of your starting class, e.g. it could look like thisManifest-Version: 1.0
    Main-Class: com.yourCompany.yourProject.YourClass Hope that helps. Cheers, HJK

  • Problem with running a java program from the command line

    I have this code:
    package pkg;
    import jxl.*;
    import java.io.File;
    public class TestClass {
         public static void main(String[] args) {
              try{
                   Workbook book = Workbook.getWorkbook(new File("d:/testWorkspace/excFile.xls"));
                   Sheet sheet = book.getSheet(0);
                   String s=sheet.getCell(4, 2).getContents();
                   System.out.println(s);     
              }catch (Exception e){System.err.println(e);}
    }I've wrote it in Eclipse, added jxl.jar to the buildpath, and it works fine.
    Then I tried to run it from the command line and I did it like this:
    D:\testWorkspace\testProject\bin> java -cp \jxl.jar pkg.TestClassThe result was:
    Exception in thread "main" java.lang.NoClassDefFoundError: pkg/TestClass
    Caused by: java.lang.ClassNotFoundException: pkg.TestClass
    ...but the file TestClass.class DOES exist in the folder d:\testWorkspace\testProject\bin\pkg\ and the file jxl.jar IS on the root of drive D (like I already wrote, it worked fine inside the Eclipse).
    So, my question is: How to run this code from the command line?
    I have no idea what went wrong.
    Can someone help me, please?

    The current directory is not implied in the classpath.
    D:\testWorkspace\testProject\bin> java -cp .;d:\ pkg.TestClassor
    D:\testWorkspace\testProject\bin> java -cp .;d:\jxl.jar pkg.TestClassI always forget which is right since I never work with jars...

  • Help required - running a Java program from the command line

    Hi,
    I have a small non-graphical Java application, packaged into a Jar file. My program relies on classes in another (external) Jar file.
    When I run the application from the IDE, everything works fine. However, when I try to run the application from the command line, I keep getting a NoClassDefFoundError for classes in the external jar.
    Both the application jar file and the external jar file are in my root directory (C:\).
    My command line call is as follows:
    java -cp c:MyExternalLib.jar -jar MyApp.jar
    Any help greatly appreciated.
    Thanks,
    Walter

    hi,
    set classpath=%classpath%;c:\myjar.jar;
    here i have specified myjar.jar file as an example u give ur location.after setting the classpath run ur java application.
    java mypgm
    this will solve ur problem
    regards,
    Ganesh

  • Get the absolute path and filename of the file from the command line

    Hi,
    when we run the class we give the command
    java <filename>
    How can I capture the filename given above and get its absolute path inside the
    public static void main(String [] args){}
    args[0] gives me the command line argument after the filename. How do I capture the filename itself from the command line argument and also get that files absolute path
    Thanks

    I don't know of any way to capture the java command input, but there are ways to find out where the application is being run from. (the "absolute path")
    http://forum.java.sun.com/thread.jsp?forum=31&thread=335394

  • Running powewrpc programs from the command line

    I am trying to run a powerpc application (quicken) from the command line. I want to log into the mac over my local network and run a powerpc program, but I get the following when I try it:
    cannot execute binary file
    I am logging in via ssh, and am running the X11 package from a different unix system which also runs X11.
    How do I get the application to execute? (it runs fine from the desktop).

    I am sitting at a Sun Solaris machine (it runs X11R6
    and Matif). I want to run Quicken, which is on the
    mac mini. I log into the mac with ssh -X. I find the
    Quicken program, but the permissions are set to 644
    (read, but not execute). If I change the permissions
    and try to run the program I get teh error message
    "cannot execute binary file".
    The window interface of the Mac is not X11: so you cannot output it on another X system. Is is not like connecting to another Un*x system.
    Said that, you should be able to launch a program, but you cannot see the output. However, usually Macosx applications are bundles with some executable inside, not directly an executable file: .app files are folders, not files. In order to launch such kind of apps, you have to use the open command I suggested in the previous post.
    I have no idea what VNC is. If this is how I can do
    this, then please provide me a link to it.
    VNC is a screen sharing application, just like Windows Remote Desktop. You may install a VNC server on your mac mini, and then connecting with a VNC client you will see all your computer screen as if you were there. It is cross platform, so no matter which is your client (including mobile phones).

  • Can't send files to Trash from the command line

    Hello,
    as I'm programming in JAVA I must do all "special" operations as from the command line.
    I found several solutions but they don't work for me, at least not in Mavericks.
    I tried:
    osascript -e "tell app \"Finder\" to delete POSIX file \"/Users/me/totrash\""
    I got:
    21:60: execution error: Finder got an error: Handler can’t handle objects of this class. (-10010)
    I tried:
    echo "tell application \"Finder\" move POSIX file \"/Users/me/totrash\" to trash end tell | osascript
    I got:
    26:30: syntax error: Expected end of line but found command name. (-2741)
    Is there any working AppleScript way to send a file to the Trash Bin?
    Thanks in advance.
    ;JOOP!

    Near ....... I did not misspell 'me', I was in a different directory after all my experimenting .....
    Curse those who write cryptic error messages ...
    Bless those who still get it.
    So, thanks.
    ;JOOP!

  • Is it possible to run Acrobat3D from the command line?

    I'd like to know if it is possible to run Arobat3D from the command line in batch mode. I'm interested in knowing if this is possible in either a windows or unix environment.
    My objective is to convert CAD data e.g. CATIA V5 or DXF etc to PDF, in batch mode without using the Acrobat3D interface itself.
    I know that it's possible to run a batch process from within Acrobat3D itself, therefore one solution may be to invoke those batch processes from the command line.
    I've looked through the other listings on this forum and seen this question asked previously, but I've not seen any responses that suggest this is even a feasible concept.

    As of now, it's not possible in the cmd-mode to just remain connected and not stream.
    But the reason you want to do that is because of the long start-up time. That 20 sec time can be divided into:
    1. launch time
    2. time to start encoding (after pressing start button) -> cannot be reduced even if 'connected only' feature is available in cmd-line
    Below are tips you can use to reduce this 20 sec of time:
    1. Lesser the no. of devices connected to the system, shorter is the launch time. Disable the devices which are not to be used in the session.
    2. Try using device indexes (0, 1, 2, etc) instead of device names in the profile. Indexes might change after you disable some of the devices.
    3. Use the profile with correct settings, to avoid any validation errors.
    4. Higher the video size, higher is the overall time. Small sizes take lesser time to start.
    Let me know if you see any improvement in the startup time.

  • Determining the name of the jar file running from JAVA

    Hi everyone,
    This is probably a silly question, but how do you determine the name of the jar file running from within the jar file.
    E.g. If I'm running the jar file "Test.jar", then how can I get the String value "Test.jar" from within my program?
    Any help would be appreciated! Thanks:)

    I think that you can use the solution above to get the jar file resources associated with a particular jar file, and then use the JarFile class to get a manifest of whats in there, and then find your class?
    This is only off of the top of my head, and I haven't tested it. Let me know if it works

  • Running a function from a powershell script from the command line

    Rather than creating several scripts each with one function, I have one script with has several functions.... I would like to call the script and select the function i want to use from the command line.
    so far, if i change directory to that of the script i can call the function by doing this:
    cd c:\myscripts
    . .\mytestscript.ps1; myfunction
    this works fine.... i have also tried, what I would like to achieve is calling it like this
    c:\myscripts\mytestscript.ps1; myfunction
    however, i am trying to run this as part of an MDT task sequence, my command line looks like this and using the ; myfunction at the end doesn't work.
    powershell.exe -ExecutionPolicy Bypass %SCRIPTROOT%\CustomScripts\mytestscript.ps1; myfunction
    how can i adapt my command line so that it will successfully call the function within my script?
    thanks
    Steve

    Rename the file from ps1 to psm1 and create a powershell module that contain multiple functions. A module will autoload like the built-in modules.
    Placement of the psm1 file is important for Powershell to find and autoload it.
    The file name and folder name must be the same, for example MyModule.psm1 should be in the folder:
    user\documents\windowspowershell\modules\mymodule
    Windows PowerShell Modules
    http://msdn.microsoft.com/en-us/library/dd878324(v=vs.85).aspx
    PS C:\> get-childItem env:PSModulePath
    Name Value
    PSModulePath C:\Users\User\Documents\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules\

Maybe you are looking for

  • Getting error in report

    Dear all, i had made inventory report for opening ,closing stock and issue stock. i'm getting the perfect data for all the days, but for a single day in a year the closeing stock and next days opening stock not matching . Thanks and Regars, KaushiK S

  • Error 403 when accessing workflow manager page after install

    Hey, I'm in the process of setting up a new workflow manager farm for my SP2013 environment. At the moment I'm setting up the stage WFM farm which consists of only one dedicated server (meaning not running on a SP server). My live WFM farm will be ma

  • Every Firefox action works, but brings up a window saying "A javascript error has occurred."

    for several months now, every Firefox action works but brings up an error message, "A Java script error has occurred." I cancel out the error messages (two identical error messages show up each time) and Firefox continues to work normally.

  • Classloader issue with resource adapter and webservice

    The following applications are planned to be deployed on the server. 1.My-shared-lib.ear (J2EE shared library). 2.My-Service-ear.ear (Service) 3.My-Resource-Adapter.rar The My-shared-lib.ear contains a war which has 3rd Party jars. The My-Service-ear

  • Another CRM Forum where you could discuss about your issues !!!!!

    Another SAP Forum where you could discuss about your issues and cookbooks for various SAP modules - http://sapcookbook.com/sapcookbook.com/forum/. There are plenty of users (many of them are very experienced) there as well to discuss your issues. The