Run a jar on Windows without the command window

I would like to run a jar and close the command window after starting up. Is this possible please.

I would like to run a jar and close the command window after starting up. Is this possible please.why do you want to do that? jar files are executable files so when you double click it, it will execute without having to run it from the command prompt. So, you don't have to even open the cmd prompt to run .jar files.

Similar Messages

  • Running an EXE from LABVIEW without the 'cmd' window showing

    Hi,
    I am currently using the 'system exec.vi' in a LabVIEW application to open files in external executables (mainly Windows Explorer, Acrobat Reader and Word).  This actually works fine and while my application is fairly sleek (even if I do say so myself) I am annoyed by the cmd window that momentarily appears each time I use the 'system exec.vi'.
    Is there any way to disable this window?  Or maybe there is another way of opening the files altogether?
    I am using LabVIEW 8.0 on Windows XP Pro.
    Any help would be appreciated.
    Bazza

    Bazza wrote:
    Thankyou for your comments...
    I do buy LV as part of a developer suite so could use the toolkit you mentioned.  While PDF's and Word docs are the main files I open they are not the only.  I guess I could open different file types different ways.  I just hoped there was a better all round way to do it.
    As far as Windows Explorer goes...  My application is a file manager targetted directly at the file structures we use for developing functional test applications.  The application handles all the file management requirements (i.e. WIP Backups, deploying, zipping/archiving etc) and its an added feature that you can 'explore' a given folder directly from the application.  The general idea is that all our developers create systems using the same structure and approach.
    Cheers,
    Bazza
    Have you looked at the VI in vi.lib\Platform\browser.llb\Open a Document on Disk.vi. It opens the document passed in according to its file ending and attempts to communicate with the target application through DDE if possible before using the command line. Even then I have not seen a cmd window popup so far.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Jar File executes without the CLASSPATH being set???

    Hello all:
    I have been writing an application with JBuilder 4.0 Professional. I have finished the program and then let JBuilder create a JAR file. About the first 5 times I created the JAR file, I could never get it to execute from the command line. However, the last time I created the JAR file, I doubled clicked on it and it executed by using javaw. I had the CLASSPATH pointing to the file. I later removed the CLASSPATH variable, and the JAR file still executed. My MANIFEST.MF file includes the package name(not classpath) and the main class(which contains the public static void main method).
    I installed the JAR file and the JRE on another computer and it would not work. Can anyone give me some information??? Thanks in advance.

    probably this is due to the fact on your windows explorer under view - options, File Types tab you have the executable jar file pointing to a jdk.
    click on Executable Jar File and click edit then click on open in the Actions box (if this isn't here then this isn't the reason, sorry) and click edit. a pop up will appear with the java exe path - this is what the app is running from.
    gaz

  • Running Predictive/Progresive outbound campaigns without the use of IVR

    Is it possible to run a predict/progers outbound campaign with a 3:1 (port:agent) ratio without the use of ivr
    could i instead place the customers on hold somewhere in icm while the agents are busy?
    just a thought...

    What you are asking for in essence is the ability to queue the call. This is only possible in an ICM environment with an IVR or with some other peripheral integration utilizing the Service Control interface.

  • How to run a Java program without the command line.

    Is there anyway to create a Java program that runs like most programs do in Windows ,by double clicking on their icons?
    Thanks,
    Vance

    http://www.ej-technologies.com/products/exe4j/overview.html
    Looks kinda cool. Most java-2-exe programs are usually way too expensive and wont work with GUIs and require other dlls/libraries...

  • Running executable JARs from Windows

    Hi!
    I have this executable JAR file with no problems for running it from the Windows console using the "java -jar jarfile" command. But if I double click the same JAR file in Windows explorer I get a "Main class not found" error. Does anyone know what's happening here ?
    Thanks in advance

    I think the following varies somewhat depending on which Windows you are using. On Win 2000 in a Windows folder, select Tools menu, Folder Options and select File Types. Then select JAR and click on Advanced. Under Actions, there select "open" and click on Edit. For the Application, you should see something like "C:\Program Files\Java\j2re1.4.1_01\bin\javaw.exe" -jar "%1" %*

  • Run procedure in Application Server from the command line

    Hi
    I created a procedure (VARKPI and placed in C:\Program Files\SAP BusinessObjects\Strategy Management\ApplicationServer\home) to call another procedure (VAR_CRE, this is created in the model). Nothing is happening and no error message also.
    This is the code of my VARKPI procedure which i placed in home directory.
    TRACE both 'batchload1.txt'
    SUP KILL CONN TO CPM
    USE CPM EXC
    job VAR_CRE
    trace both off
    exit clear
    My VAR_CRE in CPM model contain very simple queries to create measures.
    Then i went to Run->CMD and to the directory ApllicationServer.Used the below command to run the job
    PASAdmin.exe -j varkpi -u admin -p <pwd>
    I only see that wkadmin file is shown in the Home directory whenever i run the procedure but the measures are not created in the CPM model. What could have been wrong?
    Please suggest.
    Thanks
    Praveen

    Hi Praveen,
    The other thing that you will likely need to do is specify the model that you want the procedure to be executed from unless you want to run it from the default model specified for the user in question.  For example, if you run the job as ADMIN, then that will try and execute the procedure from JUICE by default.  If you want to change this, you need to do something like:
    PASAdmin.exe -u admin -j test;PROCLIB
    or
    PASAdmin.exe -u admin -j test;&USEDATABASE
    which will execute the procedure from your use database.
    However, unless you're making sure you use RETAIN keywords when switching between models, what usually makes much more sense as it avoids issues with model locking which can occur if you're executing the procudure from a model, is to make sure your job is run from an external file.  For example:
    PASAdmin.exe -u admin -j test;ext
    or
    PASAdmin.exe -u admin -j 'test.pro';ext
    Hope this helps,
    Robert

  • How to run jFram created by Netbeans in the command line or Jcreator

    Dear Friends
    I have designed a fram in Netbeans and the fram have many Jbox and Jcheck Boxes and Text areas. Net beans uses it is oun library. However after I used the facilities and finished the design I am looking to run it in faster IDE, such as Jcreator.
    The problem is that Netbean uses its library and Jcreator is not identifying it. My question, How to have it working else outside netbeans.
    here is the main problem, not sure how to have it available out side netbeans,ext such as
    getContentPane().add(jTextField11, new org.netbeans.lib.awtextra.AbsoluteConstraints(860, 120, 50, 20));
    Thanks for any help

    Dear Friends
    I have designed a fram in Netbeans and the fram have
    many Jbox and Jcheck Boxes and Text areas. Net beans
    uses it is oun library. However after I used the
    facilities and finished the design I am looking to
    run it in faster IDE, such as Jcreator. This is bullshit. You shouldn't run apps from within an IDE. And there's certainly no speed difference for your app.
    The problem is that Netbean uses its library and
    Jcreator is not identifying it. My question, How to
    have it working else outside netbeans.Import the library orjust use standard classes.

  • Click box problem..loop to next slide without the command

    Guys, I have a problem with my click boxes.
    I'm using captivate 5.5.
    details:
    I have 4 click boxes
    3 for hide and show objects
    1 for go to next slide.
    I have 2 slides only.
    first slide has the changing view.
    sample:
    clickbox1 opens object 1 2 and 3 and triggers audio inside object 1 (working)
    clickbox2 hides objects 1 2 and 3..shows 4 5 and 6 objects with audio also.
    clickbox 3 goes the same process.
    Problem: when I click clickbox2..it performs the action but maybe at around 1 second then proceed to the next slide. in which in the action, there was no command that say go to next slide or any.
    the button for the next slide is on the 4 clickbox.
    I'm using advance actions by the way.
    I'm confused, this is my second time to do this..the first was working, what could be the problem?
    Thanks

    link sent thru PM.
    I'm thinking  if this is an inconsistency of  CP.
    action..for page2
    http://i266.photobucket.com/albums/ii254/leslhanl/page2action.jpg
    timline
    http://i266.photobucket.com/albums/ii254/leslhanl/timeline.jpg

  • How do I run a 10g rep file from the command line, send output to previewer

    Hi Everyone,
    We are migrating from Reports 2.5 to 10g.
    We are creating a batch file to run one of our reports that is in the .rep file format. Can you tell us what we need to put in the batch file to run the report as a paper report and have the reports runtime prompt the user for the login and show the report in the previewer just like in Reports 2.5?
    Thanks.
    Emad

    They should take a look at the "Oracle Application Server - Reports Services - Publishing Reports to the Web" from Application Server Doumentation downloadable from Reports Homepage http://otn.oracle.com/products/reports
    Martin

  • Running a GUI application without holding command prompt

    Hi there ,
    I have developed a GUI application using Swing. After compiling the same successfully , when I run the same , presently , I am running it like ,
    c:\> java xxx
    where c:\ is the general command prompt on a Windows machine where I can type in my commands like javac or java and xxx is the class file name . Now till I complete using my GUI application and exit from the same , the command prompt will also be there ( and probably displaying the output of my System.out.println ) . So , two sessions are running , one is just the command prompt and another is the actual GUI application.
    How can I avoide this ? e.g. when I type command "notepad" and press enter , notepad is started and the command prompt returns after starting notepad i.e. the notepad and the command prompt are not related now , I can close the command intrepreter and still notepad is running . What should I do to create such a Java GUI application ? Please advice .

    If I understand you correctly this is something that happens in linux also. And I believe that you can solve this by creating to shortcut to this program.
    And the shortcut or link to application will be the command line that you use to run the Java Application.
    i.e.
    java c:\javadir\subjavadir\application.class
    And I believe that this will allow it to run without the command prompt. Just showing the GUI and no additional command prompt window. Freeing the command prompt is something that I don't know how to do in either OS.
    I use the Link To Application method because I ultimately don't need to have multiple windows for one application. Even though it is nice to be able to kill the Application by destroying the command-prompt session (in case your app causes lock-ups during testing).
    Post your results . . . I'm not even sure that I'm being clear at all with my explanation to your question.

  • 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).

  • Java Connector Server - run as service on Windows

    Hi
    For whatever reason, I'm not able to install the java Connector Server as a service on my Windows server.
    It does give a successful message upon connectorserver.bat /install, but it does not show up.
    I can run and use it fine with the command connectorserver.bat /run
    Also, the .Net version installs fine as a service.
    Any ideas out there?
    - Lars

    Update in this one.
    I got it installed as a service (it was a user rights problem). Now the problem is that it won't start.
    It gives me the error:
    +[173 javajni.c] [error] %1 is not a valid Win32 application.+
    +[898 prunsrv.c] [error] Failed creating java c:\Oracle\Java\jdk1.7.0_10\jre\bin\server\jvm.dll+
    +[1132 prunsrv.c] [error] ServiceStart returned 1+
    In dire need of help, as it would be impossible to keep running this connectorserver with the /run parameter. :)
    Some additional information:
    OS: MS Win Server 2008 R2
    System: 64-bit
    Java-version: JDK1.7.0_10
    Edited by: lloberg on Jan 18, 2013 1:36 AM

  • How can i activate my iphone 4 without the old apple id and password?

    please help me, i erased all contents in my iphone 4, it is bought second hand here in the Philippines, then when it opened it asks for an activation id and password of the first owner, sad to say we dont know who owned it since it is bought second hand only. please help me because can no longer contact the person. itr was a gift from my mom, we cannot afford to buy brandnew phone  my phone cannot be used anymore. please email me on my yahoomail thank you and Godbless
    <E-mail Edited by Host>

    FYI: not a wise idea to post your email address in a public forum. The hosts
    may edit it for you, but expect a full inbox courtesy of the spiders.
    You have run into Activation Lock. Without the requested AppleID and password,
    you will not be able to activate the iPhone. Return it for a refund if you can.
    There is no workaround for Activation Lock. You can learn more here:
    iCloud: Find My iPhone Activation Lock in iOS
    http://support.apple.com/kb/HT5818?viewlocale=en_US&locale=en_US
    http://support.apple.com/kb/TS4515

  • Is it possible to run a java program without using the command prompt?

    Hi,
    I was wondering whether it is possible to run a Java program (not an applet) without using a command line in the command prompt?
    Basically I want to run a program that will be continually running in the background and hence I don't want to have a command prompt screen loaded up as well - I just want the program to be running in the task bar.
    I know how to run the program in the task bar - but I still need to launch the program from the command prompt - is there anyway I can get a program running without having to start it from the command prompt?
    Cheers

    Or create a desktop shortcut (in Windows) or an application launcher ( in Linux GUI).

Maybe you are looking for