Search:

Type: Posts; User: jack_nutt

Search: Search took 0.10 seconds.

  1. Replies
    15
    Views
    2,009

    Re: how to restart my program

    No i think my jar file is not working, when ever i click on it ,it gives an error
    "invalid or corrupt jar file C:\Users\abc\workspace\project\lib\jarf.jar "

    how can i do it in Eclipse? what...
  2. Replies
    15
    Views
    2,009

    Re: how to restart my program

    By your description i tried the command




    Runtime.getRuntime().exec("C:\\Program Files\\Java\\jre6\\bin\\java -jar C:\\Users\\abc\\workspace\\crejrfiles\\lib\\jarf.jar");



    As my jave...
  3. Replies
    15
    Views
    2,009

    Re: how to restart my program

    I tried this in Windows




    Runtime.getRuntime().exec("java -jar C:\\Users\\abc\\workspace\\crejrfiles\\lib\\jarf.jar");



    But its not working ...
  4. Replies
    15
    Views
    2,009

    Re: how to restart my program

    import java.io.*;
    public class a {


    public static void main(String[] args) {


    for(int i=0;i<50;i++)
    {
  5. Replies
    15
    Views
    2,009

    Re: how to restart my program

    What should be the "+[program file name here]" , should it be my java file name or the project folder name ??

    can you give an example as how to put the code for a specific file??

    thanks
  6. Replies
    15
    Views
    2,009

    Re: how to restart my program

    First of all you people have two different addresses,and i dint know both of them point to one forum ,its my fault!
    secondly atleast reply to a post,someone who needs your assistance is not here to...
  7. Replies
    15
    Views
    2,009

    Re: how to restart my program

    I have this code which one of my classmate is using ,but i dont know how should i use it ,it has .jar file in the syntax




    try{

    Runtime.getRuntime().exec("java -jar...
  8. Replies
    15
    Views
    2,009

    how to restart my program

    Hi
    i want to restart my program(a network simulator) after i check if the network has died in my program , so tha i dont have to hit the run button on eclipse. How can i do this
Results 1 to 8 of 8