Help coderanch get a
new server
by contributing to the fundraiser

Kuba Bernatowicz

Greenhorn
+ Follow
since Dec 03, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Kuba Bernatowicz

Well, I need to execute it on all machines on my network, so I was thinking that I put a jar file on a network drive (\\192.168.0.3\sth\ <- this is my share ) - so I don't have to copy it on every computer - and execute it at user logon, from a batch file in Autostart.


I didn't want to execute it remotely, but since you asked, I'm thinking of it - if it's possible to execute an application on remote computer without installing any client software? I know there are some Windows apps that can do this, but they all have limitations, for obvious security reasons.
In this case I think it's easier to just execute jar file from network drive.

Kuba
15 years ago
Thanks, that's what I was looking for, but now when I got it working, I need something more .

I thought it was easy to autostart java app in LAN, but I can't figure out how to do this.

I have my app in jar file and I want to run it on several computers in my Windows network ( autostart ), what should I do ?
I tried writing .bat file with
javaw -jar \\192.168.0.4\myApp.jar myParameters , but when I run it all I can hear is BEEP .. so I don't think it's a good idea.

Do I have to use Java Web Start or is there some other way ?

Kuba
15 years ago
Hi,

I've just finished my java app, but the only way I can make it run is by typing :
java -jar MyApp myParameters
, but then I get Windows' command line box.
I need it to run without that, so the only possible way to stop it is killing it in Task Manager ( it runs in background ) .

Can anybody give me an advice ?

TIA
Kuba
15 years ago
Hi,

Sorry, I forgot about it.

JDK1.6.0_07
15 years ago
Hi,

First of all Hi to everyone, as this is my first post here !

I'm writing (trying) a simple java app that could make a db query, fetch result and display message on the screen ... and do it every 5 min .
I've got everything working except those 5 min ...
I need to pause timer somehow, and start next delay (period) again only after a button has been pressed.
Now if I don't press OK button for let's say 2h, I'll need to press it about 24 (2h/5min delay) times ...
I hope I made myself clear ...

Can anyone give me an advice?
Is java.util.Timer a good solution ?

This is how my code looks like now :




Kuba
15 years ago