Runtime.exec() - how to open new window for new program?
Hi,
I have searched through the forums but haven't found an answer to this one yet. I am using runtime.exec() to start up a new java program. At first I thought it wasn't running properly but, after checking task manager, I have discovered that the new program I open runs, it is just completely invisible to me. I am wondering how I can get the new program to run in a command window or something where I can monitor it.
Thank you for your help,
Drew
Thank you all. After trying to figure out why the start command wouldn't work in the runtime.exec() call(not an executable - I am a dolt), I tried putting it in a batch file and it worked perfectly. Thanks for your help,
Drew
Similar Messages
-
How to open IE window for .html user manual?
how to open an IE window for a .html user manual?
I'm creating a user manual in .html format, and I want to open that file in an IE window when a user click on the "Help" menu (JMenuItem - using ActionPerformed event).
Is it possible to do that in java?
What class shall I use?Call the following class from ur ActionPerformed();
import java.io.IOException;
public class BrowserControl {
private static final String WIN_ID = "Windows";
private static final String WIN_PATH = "rundll32";
private static final String WIN_FLAG = "url.dll,FileProtocolHandler";
private static final String UNIX_PATH = "netscape";
private static final String UNIX_FLAG = "-remote openURL";
public static void displayURL(String url) {
boolean windows = isWindowsPlatform();
String cmd = null;
try {
if (windows) {
cmd = WIN_PATH + " " + WIN_FLAG + " " + url;
Process p = Runtime.getRuntime().exec(cmd);
else {
cmd = UNIX_PATH + " " + UNIX_FLAG + "(" + url + ")";
Process p = Runtime.getRuntime().exec(cmd);
try {
int exitCode = p.waitFor();
if (exitCode != 0) {
cmd = UNIX_PATH + " " + url;
p = Runtime.getRuntime().exec(cmd);
catch(InterruptedException x) {
System.err.println("Error bringing up browser, cmd='"+cmd+"'");
System.err.println("Caught: " + x);
catch(IOException x) {
// couldn't exec browser
System.err.println("Could not invoke browser, command=" + cmd);
System.err.println("Caught: " + x);
public static boolean isWindowsPlatform() {
String os = System.getProperty("os.name");
if ( os != null && os.startsWith(WIN_ID))
return true;
else
return false;
} -
Open a link in new window for .doc, .xls, .pdf
How to link a PDF, word, & Excel file in fla by clicking
a button?
That link will open seperate window for any of these document
with the swf file still open in the background.vveena123 wrote:
Hi everyone,
I immediately need help,plz help me.this is not the way to get help around here
try stating the problem professionally, without the assumption that your problem is important to others
I have a jsp which has a link that should open in a new window.
when the user clicks again the same link it should not open in another new window instead it should open the previous window.this has nothing to do with java or jsp
this is an html target question
testing
say if a user clicks the link 5 times it shud not open 5 windows instead only 1
Thanks in advanceuse target="new" i think -
Mail has started sending duplicates of a message, especially group messages. It also opens 2 windows for writing a new email. Help. How do I fix this?
Unfortunately there isn't official commercial support for Mozilla Thunderbird from Mozilla Corp.. I believe some contributors here ([http://mozilla.magicfab.ca myself included]) do offer such support, though.
''Before doing anything else, please do exit Thunderbird completely and [https://support.mozilla.org/en-US/kb/profiles-tb#w_backing-up-a-profile backup the profile folder] - it contains all your email, settings, filters, etc.''
Regarding your issue, it looks like the mail folder information may be corrupt. In the left pane, in the folder list, right-click on the Sent folder and select '''Properties'''. Choose "'''Rebuild Index'''" or "'''Repair Folder'''" - do you even have that option? Once done, exit TB completely and restart it.
Updating to a newer version will help anyone help you, if only because some of the documentation for older Thunderbird versions is a bit harder to find and testing to try & reproduce your problem will be harder. Don't do this just yet, though :)
After this issue has been addressed I would suggest considering using IMAP if your provider allows you to, and of course archiving your email to Local Folders and doing regular backups of your profile.
If you want to arrange commercial support, contact me via the link I provided above and we can discuss rapidly. Otherwise I am fine continuing here, however I can only reply as time permits. I am in Montreal (so, EST time zone). -
How do I create a new window for the iTunes store?
Hi,
I have the latest iTunes update on a Windows PC, but I can't seem to open any new windows for the iStore like you used to be able to, so you have to come out of your iTunes library (annoying if you want to check that you haven't already purchased a song you're looking at etc.).
Please tell me there is a fix (easy or difficult) for this!!
Matt
P.s. I have the latest iTunes update.
PLEASE HELP!!!!Reboot the ATV and try it again. If it still won't play correctly, find the file in your iTunes store purchase history, click on the "Report a Problem" link, and report it to iTunes store support.
-
I'm sure this is a setting fix, but can't find it…. All of my windows for mac programs open when I turn on my computer, such that I have to close each one individually to get to my desk top. How do I adjust so none of them open unless I choose to?
Remove the check in the box "Reopen windows when logging back in":
-
Ever since firefox automatically updated itself, I am not able to open websites in new windows - meaning that if I am on a website and you click a link on it that opens in a new window, that new window is blank. It used to work perfectly. I even checked my foxit reader and that it working well
Hello Angelika.
I should bring your attention to the fact that your user agent says you're using Firefox 3.6, not 3.0. I will remind you that Firefox 3.0 has been discontinued and is no longer supported. Furthermore, it has known bugs and security problems.
As for your problem, you may be having a problem with some Firefox add-on that is hindering your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal?
Whenever you have a problem with Firefox, whatever it is, you should make sure it's not coming from one of your installed add-ons, be it an extension, a theme or a plugin. To do that easily and cleanly, run Firefox in [http://support.mozilla.com/en-US/kb/Safe+Mode safe mode] and select ''Disable all add-ons''. If the problem disappears, you know it's from an add-on. Disable them all in normal mode, and enable them one at a time until you find the source of the problem. See [http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes this article] for information about troubleshooting extensions and theme. You can troubleshoot plugins the same way.
If you want support for one of your add-ons, you'll need to contact its author. -
One specific webites's zoom is too big how can I decrease the zoom. (the font is normal) If I open new tab for new site that's normal. Im using a laptop. THANKS
Reset the page zoom on pages that cause problems: <b>View > Zoom > Reset</b> (Ctrl+0 (zero); Cmd+0 on Mac)
* http://kb.mozillazine.org/Zoom_text_of_web_pages -
everytime i click on a link on a webpage that is supposed to open in a new window, the new window is always just a blank white window/page
Is there a way for me to determine where on my desktop the new web pages open when I click on links?
Not sure if that can be done but you can press the Expose key which will show all open windows. -
How to open a window in full screen mode using lf_fpm_navigation?
Hi Guys
For the following applications
ESS Application: HAP_START_PAGE_POWL_UI_ESS
MSS Application: HAP_START_PAGE_POWL_UI_MSS
When the user clicks on the appraisal document name, a seperate window(not full screen) is generated to display the Appraisal docuemnt.
The code is as follows:
COMP: HAP_START_PAGE_POWL_UI
Object : COMPONENTCONTROLLER
Method: FOLLOWUP_POWL
Generate the URL to be called.
CALL METHOD cl_wd_utilities=>construct_wd_url
EXPORTING
application_name = 'HAP_MAIN_DOCUMENT'
in_parameters = lt_parameters
IMPORTING
out_local_url = l_url.
wd_this->url = l_url.
wd_this->display_document( ).
In Method: DISPLAY_DOCUMENT
lv_alias = 'EMPLOYEE_DOCUMENT_UI_OBN'.
use FPM navigation
ls_nav_key-key1 = 'HAP'.
ls_nav_key-key2 = 'HAP_GENERIC_UI'.
lr_fpm_navigation ?= lr_fpm->get_navigation( is_key = ls_nav_key iv_instance_sharing = abap_false ).
CALL METHOD lr_fpm_navigation->get_key_from_alias
EXPORTING
iv_alias = lv_alias
RECEIVING
rv_key = lv_key.
lr_fpm_navigation->modify_parameters(
EXPORTING
id_target_key = lv_key
it_application_parameter = lt_appl_param
it_business_parameter = lt_business_param ).
lr_fpm_navigation->navigate( lv_key ).
Any idea how to open this window in full screen?
Highly appreciate your help.
Thank and Regards
PramodHi Pramod,
This FPM navigation is achieved using settings made in Launchapd Customizing ( LPD_CUST ).
a) Execute Tran LPD_CUST
b) Go to Role HAP - Double Click to open it.
c) Open the second folder on the LHS menu - there you will find 2 entries
d) Click on second entry - in the entry setting you can see that it is configured for WD Application - HAP_MAIN_DOCUMENT
e) Click on button Show Advanced Parameters
f) There you will find a input box named as Window Features - here you can specify window features like
height=700,width=1100,position=center,menu=no,status=no,location=no,menubar=no,status=no,toolbar=no
save the settings come out and test ur app again.
change the height and width and other features as per ur req.
Regards
Manas Dua -
When I right click on the Firefox tab/icon in the taskbar, there is no option for me to open a new window or new tab. I am only offered the ability to Move, Size, Minimize, Maximize or Close Firefox.
That is the Windows System menu and is maintained by Windows XP.
You need to open Firefox to open a new tab or create a shortcut with the -new-tab or -new-window command line switch if you want to do that via the desktop.
*https://developer.mozilla.org/en/Command_Line_Options
*https://support.mozilla.org/kb/Tabbed+browsing -
IE11 restricted users opens links in new window instead new tab
Hello,
Have a problem. All restricted users, on several machines when try to open link in new tab, link opens in new window instead new tab. Pressing ctrl+K or ctrl+T works fine. Resetting browser setting didn't help. Red cross near resetting user customizations.
Administrators don't have this problem. OS: Windows 7 x64 + IE 11. Machine belongs to workgroup. All available updates are installed. Is there any decision?
ThanksHi,
This might be related with the UAC settings. See
this thread.
How are the restriction of the users configured here?
Best regards
Michael Shao
TechNet Community Support -
How do I load windows for mac I have DVD software
You can install Windows on a Mac with Boot Camp or a virtual machine. If you need maximum performance, use Boot Camp.
If you want to use Boot Camp, first check that the Windows version you want to install is compatible with your iMac > http://support.apple.com/kb/HT5634 Then, open Boot Camp Assistant, in /Applications/Utilities, and follow the steps to install Windows. Check > http://manuals.info.apple.com/en_US/boot_camp_install-setup_10.8.pdf
If you want to use the virtual machine, you have to install an application like Parallels, VMware Fusion or VirtualBox, create a virtual machine and install Windows there -
Command-T opens new window not new Tab with Snow Leopard
Does anyone else have this issue? Command-T opens new window not new Tab with SL.
And yes all my settings are correct!!Greetings,
If your preferences for Tabs are correctly set (the top two checkboxes are checked) and it's still opening a new window, then it would seem your preferences may be corrupt. In that case, you should quit Safari, go to Home/Library/Preferences and delete the com.apple.Safari.plist file.
Then restart Safari, setup your preferences again, and test to see if it works. -
everytime i start up firefox i get 30 firefoxs then i close and i get 31 on and on how do i fix to only get 1 firefox also ec new window has "new tab" in the tab box as the 1st tab
Hello,
If you can actually see all of your tiles, you can change your configuration page settings:
# In the [[Location bar autocomplete|Location bar]], type '''about:config''' and press '''Enter'''. The about:config "''This might void your warranty!''" warning page may appear.
# Click '''I'll be careful, I promise!''' to continue to the about:config page.
# Search for '''browser.newtabpage.columns''' and change it to 3, or however many columns you like
#* Note: '''browser.newtabpage.rows''' allows you to change to how many rows you want as well
Alternatively, you can set a fixed number of tiles with the following extension:
* https://addons.mozilla.org/en-US/firefox/addon/new-tab-tools/
Maybe you are looking for
-
How to fill a transport request from SPRO
How could I repeat transport of customizing already done and transported. I have feeling something is missing but I do not know exactly what. I know how to enter in a transport request content of tables(also customizing) but I am not sure this is the
-
IPhone 5 refuses to sync most of my music for no apparent reason
iPhone 5 running the latest version of iOS 7, trying to sync to the latest version of iTunes for Windows. Syncs about a third to half of my music (700-1200 songs out of 3000) before saying "finishing sync" and displaying nothing more than the Apple l
-
Can I uninstall the latest version of itunes and install a earlier version that I preferred
I am using win 7 and Itunes 11.1.12. Can I uninstall this version and install version 10 which I preferred Any suggestions appreciated Thanks
-
Some are for Walmart, some are for Best Buy, and lots of others I can't remember exactly what they were. A few seconds after I open a new tab, an audio message will begin to play, followed by a popup window that is a sales pitch.
-
Https serverfarm with http sorry server
Hello all, I am having difficulty configuring a sorry server for an existing https serverfarm. The sorry (backup) server is failing all connections and I think it's because I can not determine a way to differentiate ssl connections for the product