Search:

Type: Posts; User: jack_nutt

Page 1 of 3 1 2 3

Search: Search took 0.14 seconds.

  1. Replies
    1
    Views
    572

    Developing a simulator

    Hey ,

    I have designed a network simulator in java, and has several number of node objects( as wireless nodes in network) and each node object has its x,y (say nodeobj.x , nodeobj.y) values and a...
  2. implementing graphics for network simulator

    Hey ,

    I have designed a network simulator in java, and has number of node objects( as wireless nodes in network) and each node object has its x,y (say nodeobj.x , nodeobj.y) values and a residual...
  3. Replies
    15
    Views
    700

    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...
  4. Replies
    15
    Views
    700

    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...
  5. Replies
    15
    Views
    700

    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 ...
  6. Replies
    15
    Views
    700

    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++)
    {
  7. Replies
    15
    Views
    700

    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
  8. Replies
    1
    Views
    995

    executing a process in backhand

    Hi

    Using Netbeans i can build my project and get the jar file path where it is automatically built ,however eclipse does not provide the path for a jar file nor does it make a jar file.

    I was...
  9. Replies
    15
    Views
    700

    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...
  10. Replies
    15
    Views
    700

    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...
  11. Replies
    15
    Views
    700

    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
  12. Replies
    2
    Views
    570

    passing refeerence of class

    hi ,

    i have a class by the name Node which is linked to class Interest ,Data,Timer.

    Node _____*Interest______0..1 Data_______Timer


    in timer class i start a thread ,after thread expires...
  13. Thread: Time stamp

    by jack_nutt
    Replies
    2
    Views
    259

    Time stamp

    How can i generate a timestamp which is simple and can be attached to a message as integer insteead of a string.. any neat ideas Gurus

    thanks
  14. Replies
    11
    Views
    775

    Re: array element declaring problem

    public class mHand {

    /**
    * @param args
    */public static int num =3;
    public static void main(String[] args) {

    b m=new b(num);
    c g=new c();
    m.aList[0]=g;
  15. Replies
    11
    Views
    775

    Re: array element declaring problem

    how can i make num visible in the other class?
  16. Replies
    11
    Views
    775

    Re: array element declaring problem

    public class mHand {

    /**
    * @param args
    */public static int num =3;
    public static void main(String[] args) {

    b m=new b();
    c g=new c();
    m.aList[0]=g;
  17. Replies
    11
    Views
    775

    Re: array element declaring problem

    i know, but how can i define num once such that i dont have to change it in the other calsses by declaring its value?
  18. Replies
    11
    Views
    775

    array element declaring problem

    <code>public class mHandler
    {


    public static int num=4;


    ...............
    ...........
    .........
  19. Replies
    1
    Views
    369

    Timer expiry calls a method

    Hi,
    Can you guide me to design a simple logic to invoke a mehtod in main() when a timer expires after 5 seconds?
    how can i do this..
    I am not using GUI
  20. Replies
    7
    Views
    777

    Re: Timer expires invoke method

    I have tried this on Eclipse and Netbeans IDE .
    I got this :


    flag being set
    timer was set
    this should be truetrue
    this should be falsefalse
    method
    timer cleared
  21. Replies
    7
    Views
    777

    Re: Timer expires invoke method

    the output is like:


    flag being set
    flag being set
    flag being set


    this body:
  22. Replies
    7
    Views
    777

    Re: Timer expires invoke method

    the logic

    if(b.flag)
    {System.out.println("timer was set");
    System.out.println("this should be true"+b.flag);
    b.flag=false;
    System.out.println("this should be false"+b.flag);...
  23. Replies
    7
    Views
    777

    Timer expires invoke method

    Hi ,
    i want to set a timer for 5 secs and once the timer wakes up i want to invoke a method . i am checking a boolean flag of class b,once set i want to invoke the method . but the logic is not...
  24. Re: my pointer's value is the same when referencing

    Norm i figured out what was wrong,i want assigning dobj to both nodeobj.dlist so it was refering to same variables..
    i have put different object in dlist and its ok now,thanks
  25. Re: my pointer's value is the same when referencing

    No actually i did not get why the value is not different ,a lil insight might help
    thanks
Results 1 to 25 of 69
Page 1 of 3 1 2 3