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...
Type: Posts; User: jack_nutt
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...
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...
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...
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...
I tried this in Windows
Runtime.getRuntime().exec("java -jar C:\\Users\\abc\\workspace\\crejrfiles\\lib\\jarf.jar");
But its not working ...
import java.io.*;
public class a {
public static void main(String[] args) {
for(int i=0;i<50;i++)
{
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
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...
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...
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...
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
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...
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
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;
how can i make num visible in the other class?
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;
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?
<code>public class mHandler
{
public static int num=4;
...............
...........
.........
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
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
the output is like:
flag being set
flag being set
flag being set
this body:
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);...
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...
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
No actually i did not get why the value is not different ,a lil insight might help
thanks