Opening a java jar file through a labview program

Hello,
I need to open a java jar file in labview........this jar file is a GUI with multiple frames and has buttons on each frame help navigate through between frames....i just require the program to open it and close it based on some signals so then i won't have to do it manually

LabVIEW doesn't have any control over what happens in a system exec, as you give the control to the system. You can, however, check the process list through .NET commands and kill the process (You should be able to stop it through "taskkill /F /im java.exe"). Not the prettiest solution, but should work.
/Y
LabVIEW 8.2 - 2014
"Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
G# - Free award winning reference based OOP for LV

Similar Messages

  • Help with running java .jar file

    Hi I just installed java with
    # pacman -S jre
    and when i try to run
    java -jar file.jar
    it says command not found. so what do i need to install to be able to run java .jar files through the CLI?

    do, what vintendo says. because it cant find the java in the default paths.

  • Open jar files through gui

    I have a program where i am trying to have a button allow the user to open a jar file from a different program and run that. Does anyone have any idea how i could go about this?
    Chris

    cmrozi1 wrote:
    First how do you search the jar file for that?You can use JarFile, its getManifest method, and Manifest to look up the value of the Main-Class attribute. If there is no Main-Class attribute in the manifest, you probably need to load each and every class file in the jar and check via reflection if the class has a main method or not.
    cmrozi1 wrote:
    I thought if its in that format it runs the file when you click it.No. This, however, is explained in the article.
    cmrozi1 wrote:
    Then second you say to use reflection to invoke the class main method. what exactly do you mean by this? do you have a tiny example?Information on reflection can be found in the Java tutorial: http://java.sun.com/docs/books/tutorial/reflect/index.html
    A tiny example:Class mainClass = ...
    try {
      final Method mainMethod = mainClass.getDeclaredMethod("main", String[].class);
      mainMethod.invoke(null, new String[0]);
    } catch (NoSuchMethodException e) {
      e.printStackTrace();
    } catch (IllegalAccessException e) {
      e.printStackTrace();
    } catch (InvocationTargetException e) {
      e.printStackTrace();
    }

  • Why will my java.jar file not open

    Why will my java.jar file not open

    This is the iPod touch forum. Do you have a question concerning an iPod touch? The iPod touch does not run Java.
    If you have a new Mac you have to download the Java program to run Java on a Mac. It no longer comes with the iOS.

  • What is the command to create a jar file through Command Promt?

    Hi,
    I done my java project. Now i need to create a exe or jar file to fully complete it. I decided to create a jar file. Because, It'll support both PC and MAC. I exported my JAR file through eclipse. But that jar file loads without images and icons when it is in other directory. How can i include images folder in a JAR File.
    For ex:
    I have parent folder named "Support". Under this there is 3 subfolder namely
    bin - Classes
    src - java files
    images - image files.
    I need to create jar file to "Support" folder which should contain all the above mentioned sub folders.
    I need to execute this jar file anywhere which should not depend on the above mentioned folders which mean adding the images folder in that created jar file.
    Pls guide me for this problem.
    Thanks in advance
    Regards,
    Mohan

    But that jar file loads without images and icons when it is in other directory.Images should be accessed via a URL rather than using a filename because they will exist as entries in the jar archive not as files. Typically this URL would be obtained by using the Class method [getResource()|http://java.sun.com/javase/6/docs/api/java/lang/Class.html#getResource(java.lang.String)]. There are details in this [Java World article|http://www.javaworld.com/javaworld/javaqa/2002-11/02-qa-1122-resources.html].

  • The Java JAR file "minecraft.jar" could not be launched.

    I just downloaded a new version of this game called Minecraft and it says: The Java JAR file "minecraft.jara" could not be launched. Check the console for possible error messages. I have checked the Console and it says: 
    15/10/2011 23:11:08 [0x0-0x1d01d].com.apple.JarLauncher[191] Failed to load Main-Class manifest attribute from
    15/10/2011 23:11:08 [0x0-0x1d01d].com.apple.JarLauncher[191] /Users/sabi1110/Desktop/minecraft.jar/minecraft.jar
    Help?

    How to Diagnose Jar File Problems
    Open Applications > Utilities > Terminal.app, and then type in the following:
    java -version
    java -jar <drag the minecraft.jar file here>
    Then press Enter. Copy and paste whatever error message appears.

  • How to open a seperate Word File through a button in WDA?

    I try to embed a world fine inside my WDA-View, but some necessary functions are deactivated.  (see [my question|A question about the SAP Demo Example: OfficeControl in WebDynpro ABAP; )
    So now I try another way to open a separate Word File through a button. Do you know any suggestions?
    Many thanks!

    Thanks a lot for the quick replies!
    Now I can open a Word file. But the content is not connected. Do you know what's the problem? The codes are as following:
    METHOD onactionopen_wordfile .
      DATA : mime_repository TYPE REF TO if_mr_api,
      content TYPE xstring,
      url TYPE string VALUE 'D:\YWU\LernenMaterial\bingen\Web Dynpro\HelloWorld.doc',
      lv_fnam TYPE string..
      mime_repository = cl_mime_repository_api=>get_api( ).
    get the content of the word file
      CALL METHOD mime_repository->get
        EXPORTING
          i_url              = url
          i_check_authority  = ' '
        IMPORTING
          e_content          = content
        EXCEPTIONS
          parameter_missing  = 1
          error_occured      = 2
          not_found          = 3
          permission_failure = 4
          OTHERS             = 5.
      cl_wd_runtime_services=>attach_file_to_response(
      EXPORTING
      i_filename = url
      i_content =  content
      i_mime_type = 'APPLICATION/MSWORD').
    ENDMETHOD.

  • Traversing the Java Jar file

    Hi,
    This might sound like a weird question, but I need to traverse the Java Jar file and create respective Java objects into objects in some other language using reflection.
    Is it possible to find the path for the class files located in any jar file? Does Java supports traversing or reading and finding jar contents?
    Thanks

    I found a way to traverse the Jar, using java.util.zip, one can create a zip file for the given jar file and using ZipEntry it is possible to findout the properties associated with the jar/zip entries.

  • Howto execute java jar file via html ?

    hi
    howto execute java jar file via html ?
    could someone pls post a html code ?
    kind regards
    upiter77

    hi
    howto execute java jar file via html ?You can't.
    could someone pls post a html code ?No. you can search for yourself and find the code you need.
    Now, it sounds to me like you're trying to build an Applet or do Web Start or something. In any event, you need...wait for it....Google! :-)

  • Installation hangs on 'createing java jar files' section

    Hi,
    On installtion of JRE 1.4, on a new Win98 installation, the installation hangs at the point, "Creating java JAR files". Any ideas on the reason for this hanging
    Regards.

    I had this same problem under Windos XP. Solved when I turned off my Norton Antivirus. It went away, and installation completed

  • Opening a java script file

    How do I use notepad to open a java script file.

    Encephalopathic wrote:
    This reminds me of one of my favorite urban legends, the "too stupid to own a computer" legend:
    http://www.snopes.com/humor/business/wordperfect.asp
    it's a classic!That made me remember back in the day when I was convinced you had to power cycle your monitor when you rebooted your computer. :( Ah, to be young and ignorant again.

  • How to run java jar file

    Hello,
    I got a java jar file which contains folders with class file. When I double click on the jar file, it gave a error
    Exception in thread "main" java.lang.NoClassDefFoundError
    How can I run this jar file?
    Thanks,
    CR

    Hello,
    I got a java jar file which contains folders with
    class file. When I double click on the jar file, it
    gave a error
    Exception in thread "main"
    java.lang.NoClassDefFoundError
    How can I run this jar file?
    Thanks,
    CR... and assuming that Jar contains a manifest file, what does it look like? I would guess that the Main-Class entry is incorrect, or that the Jar has external dependencies to other jars not listed properly in the Class-Path entry.

  • Open console when i run java jar file

    greetings all
    i have a java program that i execute through JCreater. i want if i make its JAR file then its console should be open so that i could see thats printing when i use "System.out.println". is there anyway? right now when i double click my JAR file then nothing is displayed. how can i make that happen?

    thx flounder
    you see i need to see whats printing through my System.out.println() command. I am working on JCreater at the moment. when i execute my program an output window is opened, it displays whatever i have written in System.out.println. now i want to make an executable JAR of my program and also want to see my output window. is there any way to do that?

  • Writing into a jar file through Java program

    Is there a way to get a file from a jar (for ex. a properties file) make changes to it on the fly and write the same file back to the jar through a Java program?

    I cannnot give u exact code as i am bit busy..but i am giving close to exact
    below is code for reading contents of jar file
    import java.io.*;
    import java.util.jar.*;
    public class JarRead {
    public static void main (String args[])
    throws IOException {
    if (args.length != 2) {
    System.out.println(
    "Please provide a JAR filename and file to read");
    System.exit(-1);
    JarFile jarFile = new JarFile(args[0]);
    JarEntry entry = jarFile.getJarEntry(args[1]);
    InputStream input = jarFile.getInputStream(entry);
    process(input);
    jarFile.close();
    private static void process(InputStream input)
    throws IOException {
    InputStreamReader isr =
    new InputStreamReader(input);
    BufferedReader reader = new BufferedReader(isr);
    String line;
    while ((line = reader.readLine()) != null) {
    System.out.println(line);
    reader.close();
    now here say u have test.jar which contains test.txt (file)
    then
    java JarRead test.jar test.txt
    will print content of text.txt
    now in ur case u write content of each file in some other file modify it there and then create a jar file from those files using jaroutput stream .....
    this may not be all clear ..but what to do..bit busy...u are welcomed to make changes in above stratergy....n queries if any after using above stratergy and/or your great brain...

  • Can we send java classes instead jar files through web start?

    HI,
    As we all know through web start we can send jar files from server to client system and run application. is it possible to send only java class file directly without making it jar? if yes then how it is?

    no - not possible in jnlp specification.

Maybe you are looking for

  • CC 2014 could not save because the document is bigger than 2 gigabytes

    I am working with a large files, currently it has 149 layers, all of which are high resolution photographs. It is part of my final degree show work and i am needing to save all of the layers with the image size remaining a4- this is so that if a few

  • Value of Textfield on Masterpage is not rendered!

    Hi all, I design a new form using HRFORMS. When I put a simple textfield on a master page and give the textfield a default value and render my form using transaction PC00_M01_CALC_SIMU, the value of the textfield is NOT rendered. I am using Adobe Liv

  • Updating my apps on my Iphone

    Everytime i try to update apps on my iphone it aske me for my id and password and once i put it in it tells me your apple id has been disabled, how do i fix this?

  • WL 7.0 and Web Application Deployment - HELP

    I've got a problem with WL 7.0 on Windows 2000. I messed up a Web Applications deployment. I was having problem with an example of an application I installed. Someone suggested I do the following: Shut down WL cd c:\bea\user_projects\AppDomain mv Buy

  • Lobster-bib: cli search of bibtex db (using btparse)

    This is an insanely simple project, but I've found it handy so I thought I'd post it. Lobster-bib A CLI frontend to the btparse bibtex database parser Usage lobster-bib <file.bib> [ -o ] [ <search-strings> ] [ : <output-types> ] file.bib: required an