General :: Restart PADS From Java Program

Jul 7, 2010

I am facing problems to restart PADS(Passive asset detection system) from java program.I used the root as a user. So from the command prompt I can start PADS with out sudo ,but when I try to start PADS from the my java program i.e.

Process proc=Runtime.getRuntime().exec("pads restart");

It throws the error in log that FATAL error ! you not root and permission denied.

Then I tried the same with sudo

Process proc=Runtime.getRuntime().exec("sudo pads restart";

Here it create another two process extra
1 for stop the pads
2) for start the pads

It does not kill the previous process of PADS .and both the process get hung.

View 1 Replies


ADVERTISEMENT

Programming :: Restart The Program Execution - Java

May 3, 2011

In gui validation if user enters string in integer requiring field, a dialog box pops out. So on clicking the button i want to stop the program execution and return to the previous jframe(either the same one or newly created object of it).

How can i handle this in java.
I tried calling main(); but it doesn't work.
Also System.exit(0); doensn't work.

View 1 Replies View Related

Ubuntu :: Drawing Program - Edit And Make Images - Drawing Pads Will Work On?

May 11, 2010

I'm a web designer, and a key part of my job is to edit and make images and designs

On windows, I'm used to Fireworks, and illustrator.

Whats the equivalent in ubuntu?

Windows stinks, macs are overpriced, and linux rocks. taht's why im trying to design on linux :-

Also, do you think drawing pads will work on ubuntu?

View 2 Replies View Related

General :: Connect A Jsp Program With A Java Program?

Apr 30, 2010

I have a jsp code. After executing that code, a Java program should be executed without refreshing the page. that is, my first page is a login page which is in jsp. After logging in the next page must be displayed which is a Java code. is that possible? Can we use applet for that?

View 1 Replies View Related

General :: Restart Program When Crashed ?

Feb 5, 2010

I have a program called HelloWorld, but it crashes a lot,

is there anyway to tell Linux to automatically check if Hello World crashed, and if it is crashed, restart HelloWorld? Running Ubuntu.

View 1 Replies View Related

General :: Install Java Or Any Other Program?

Apr 27, 2010

I just got linux yesterday, ubuntu 9.1, with the wubi installer. I have no previous knowledge of linux and I am having a very hard time working out how to install or run any programs, at the moment I'm trying to get java to work.

View 4 Replies View Related

General :: Run Commands Using A Java Program?

Apr 9, 2010

I want to execute Linux commands using a Java program. I came to know that we can use Runtime.getRuntime().exec("commands") to execute the commands through the program. I'm new to both Linux and Java.

View 2 Replies View Related

General :: CentOs Java Program Doesnt Pop Up?

Jul 24, 2011

So this picture will explain [URL].. So after i typejj java -jar RSBot-257.jar it should have to come ijj up.It doesent show any errors but doesent start.What to do?

View 1 Replies View Related

General :: Cannot Compile Java Program In SUSE 11.1 Using Javac

Jun 17, 2010

i just grabed a book and wrote a program and tried to compile it using 'javac' and everytime i'm getting this error:

javac Example.java
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../lib64/crt1.o: In function `_start':
/usr/src/packages/BUILD/glibc-2.9/csu/../sysdeps/x86_64/elf/start.S:109: undefined reference to `main'

[Code]....

View 3 Replies View Related

General :: Run Java Program In System(virtual Machine)?

Jul 3, 2011

How to run java programs on linux .Do i have to install any other software to run java program in my virtual linux system.I use Ubantu.

View 1 Replies View Related

General :: Writing And Compiling Java Program In Fedora 12?

Mar 21, 2010

how we can we write java programs in java and how we execute it.. to produce output?

View 2 Replies View Related

Fedora Installation :: Java Sun - No New Plugin After Firefox Restart

Sep 21, 2009

I 'am trying to install Java on fedora but I 'am stuck a this line on this tutorial [URL]. Use spacebar to read the agreement. At the end type yes to proceed with the installation. To make Firefox use the installed plugin type:
su -c 'yum remove java-*-openjdk-plugin'
su -c 'ln -s /opt/jre1.6.0_14/plugin/i386/ns7/libjavaplugin_oji.so
/usr/lib/mozilla/plugins/libjavaplugin_oji.so'

Restart Firefox and Tools -> Addons -> Plugins. If the plugin was successfully installed you should see Java(TM) Plug-in among the plugins. Now, if you also want to run java programs using Sun's java type in a console:

My shell
[root@shadow ~]# ln -s /opt/jrel.6.0_16/plugin/i386/ns7/libjavaplugin_oji.so
> /usr/lib/mozilla/plugins/libjavaplugin_oji.so
You have mail in /var/spool/mail/root
[root@shadow ~]# ln -s /opt/jrel.6.0_16/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/libjavaplugin_oji.so
ln: creating symbolic link `/usr/lib/mozilla/plugins/libjavaplugin_oji.so': File exists
After restart Firefox i don't see any new plugin. ?

View 5 Replies View Related

Software :: Installing BasKet Note Pads On A Non-KDE System?

Feb 9, 2010

I've discovered BasKet, and love it. However, I don't use KDE, and installing it on something else (CrunchBang in my case, which is Ubuntu-based) can mean a huge number of dependencies. (e.g. 28 MB just for kde-icons-oxygen, an icon theme). I don't know if most of them are actually needed though - relatively few "k..." programs are actually showing in the task manager when I run basket: kded, kdeinit, kio_file, klauncher, and knotify.

View 1 Replies View Related

General :: Command To Check The Java Version: Java -versionand Got :bash :java: Command Not Found?

Jul 26, 2010

I've just installed java (jre-6u21-linux-i586.bin) on Red Hat 4.4 AS and issued this command to check the java version: java -versionand got :bash :java: command not found

View 4 Replies View Related

OpenSUSE Multimedia :: How To Restart Program?

Jul 2, 2010

I removed gxine and got this message.

Code:
Continue? [y/n/?] (y): y
Removing gxine-0.5.905-0.pm.2.9 [done]

There are some running programs that use files deleted by recent upgrade. You may wish to restart some of them. Run 'zypper ps' to list these programs.

View 2 Replies View Related

Ubuntu :: Program Freezes - Anyway To Restart?

Sep 1, 2011

Any way using terminal or another method to restart a frozen or crashed program in Ubuntu?

View 4 Replies View Related

Ubuntu :: Automatically Restart A Program On Close?

May 18, 2010

I'm trying to get a program to automatically reload if I accidentally close it. This is a remote access program, so it has to be relaunched without me doing anything to help it along if it crashes or I accidentally close it. I noticed that someone came up with a way to solve this back in 2007 [URL].. but the files don't appear to exist any more for it to work. how I might get a program to automatically reload on exit?

View 6 Replies View Related

Ubuntu :: Script To Restart X After Program Crash

Aug 20, 2010

What I would like to do is if the app crashes which kills xinit for the system to either kill login (which will auto login and restart the app) or just to execute the startx command (which auto launches the app) as if typed in from the keyboard. I am trying to find a way that will use the least amount of system resources, rather than a loop.

View 1 Replies View Related

Ubuntu :: Program Disappears From Launcher After Restart

May 11, 2011

I have installed Blender from Blender.org. I have installed it my home directory. After launching Blender the icon appears in the unity launcher. Then I fixed the icon in the launcher via the context menu. After restart the Blender icon does not reappear? How can I realize that the Blender icon shows up very time after starting Ubuntu?

View 9 Replies View Related

Debian :: Setting Up An Automatic Program Restart

May 20, 2010

I tried to set up an automatic program restart on Debian Lenny for fail2ban and asterisk. Google helped me to find some HowTos. However, all what I tried so far doesn't work. The latest version: According some instructions the following commands have been written in a file called auto_start_stop:

Code: #! /bin/sh

-> saved in the folder /etc/init.d and
-> its properties changed with a right-click to 075.
-> The links have been created with update-rc.d auto_start_stop defaults

Why this doesn't work and how I could correct it?

View 5 Replies View Related

Software :: Trying To Run Java Program ?

Mar 25, 2011

I have a problem starting a java program.

I installed and am trying to run Antelope an ant file editor. When I try to start antelope I get the trace-back listed below.

When I first tried to start Antelope it asked me where ant/lib was located. I pointed it to /usr/share/ant/lib which has 3 jar files named ant.jar ant-bootstrap.jar and ant-launcher.jar.

I am running in Fedora14. With java version "1.6.0_20"

OpenJDK Runtime Environment (IcedTea6 1.9.7) (fedora-52.1.9.7.fc14-i386)

OpenJDK Client VM (build 19.0-b09, mixed mode) and javac 1.6.0_20

When I try to start it I get

Code:

I have tried it 2 ways, one with the environment variable ANT_HOME set to /use/share/ant/lib - which has some 3 jar files - and also to /home/knox/apache-ant-1.8.2/lib which has about 25 jar files. Same error message both ways.

View 15 Replies View Related

Debian Configuration :: Restart From Suspend - How Can Autorun A Program?

Jul 12, 2011

Now Debian6 suspend and rstart is all ok!

Auto start a program with login is ok.

How to auto start a program with debian suspended and restart ?

Maybe with gdm3 or NIC....?

How can I catch a event to auto start my program?

View 1 Replies View Related

Software :: When Shut Down Either Program And Restart Accounts Will Not Connect

Nov 17, 2010

I'm running Debian Squeeze x64 and have an odd problem with both Empathy and Pidgin. After I launch the program and add my accounts everything works fine. When I shut down either program and restart the accounts will not connect. I have to delete the accounts and re-add them and all is good until the next time. It's not a firewall issue as I've tried it with the firewall turned off.

View 1 Replies View Related

Fedora :: Run A Jar (java) Written Program?

Apr 28, 2010

Trying to use the html editor 'Arachnophilia'... here are the instructions on their website. ".Open a command console (Linux: shell console), move to the Arachnophilia program directory, type "java -jar Arachnophilia.jar" For convenience, this command can be made part of a shell script, and those using X windows can easily make a desktop icon." hoping someone can explain how to run this program.. using a new install of fedora 12 (which has java)...i'm a newbie, trying to go open source on a low end laptop - LOVE Fedora .[URL]..

View 14 Replies View Related

General :: Restart Dhcp From /etc/init.d/dhcpd Restart

Feb 27, 2010

i have installed dhcp,there i declared the subnet and network,i used command include "/etc/dhcpd.conf.jutu1"; to start and other files, but it show me this error when i want to restart the DHCP, if you need more information contact me, i have configured this file too jutu1, but it don't let me to restart dhcp from /etc/init.d/dhcpd restart, this show me this message

[Code]..

View 3 Replies View Related

Ubuntu :: Kde Restart When Click On Program Icon On Task Manager Or With Alt+tab

Jun 8, 2011

I run Ubuntu 10.10, recently I got this problem. if I open more than one program, and click on icon of them on task bar to switch between them, KDE crash and restart with log in screen. now since 2-3 days this restart also happening when I ALT+TAB to switch between running programs .

View 4 Replies View Related

Fedora :: Open A Java Program In Foreground

May 25, 2010

I have a java program with gui. I want to start this program in the start of system (rc3.d) and when I connect to the machine bring to front without open another time the program. I want to connect to opened program in the start of system.

View 1 Replies View Related

Installation :: Install Java Program On Ubuntu?

May 9, 2010

How can i do Java programming on ubuntu.
i mean how to install java on ubuntu.
i tried but fail to install jdk.

View 1 Replies View Related

Ubuntu :: Make Shortcut To Java Program?

Sep 15, 2010

How to make a shortcut to a program?

It's a Java program started by a shell script

#!bin/sh
java -jar LinShredder.jar

It starts okay in its original folder, but when I link to it from e.g. the desktop it doesn't work.

View 9 Replies View Related

Ubuntu Servers :: Force Java Program To Use More CPU

Mar 23, 2011

I have ubunto 10_4 X86-64 (I use putty to connect)
installed apps
screen
mysql server-client
my java program
open jdk* 64bit
apanche2 (the web server stuff)
and its aVPS machine
Xeon 2.0 64bit 4 GB ram

How can I make (or force) my java program to use more then 1 core? I would like it to be using just 5 of the 6 that I have. I use a .sh to run it this is the code for it.
Code:
#!/bin/bash
cd "${0%/*}"; java -Xshare:auto -Xmx2662M -jar craft.jar

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved