Check an application alive in the system

Hi friends,
I have a requirement to open a MATLAB session through Java. I have done that using the Runtime class
Runtime.getRuntime().exec(matlabPath);But I observed that if the open session method is called multiple times, it opens multiple MATLAB sessions. Its not allowed. So I need to check whether the MATLAB session is already opened / alive and if it is opened I have use the same session and not open a new session. Can anyone guide me
Thanks in advance,
Ruban

If I execute the Runtime.getRuntime().exec command it will open the particular session and it will become alive. So if I use the Process.getexitValue(). it will throw an exception even for the first time I open the session. so How to overcome this??
Moreover I want to use the existing session, So how to activate the older session??
Regards,
Ruban.

Similar Messages

  • Upgrading JWS applications installed in the system cache (enterprise)

    Hello,
    On request from several customers, I've looked into the best way to install a web start application for all users on a computer. These customers have users sharing computers, and the IT department doesn't want to be inconvenienced with installing applications on every user profile on every computer. The following articles provides a thorough explanation into how this can be done.
    http://download.oracle.com/javase/1.5.0/docs/guide/javaws/developersguide/javaws.html
    http://download.oracle.com/javase/1.5.0/docs/guide/deployment/deployment-guide/properties.html
    By specifying the system deployment.config and deployment.properties files and performing the following installation command as an administrator, the application is made available for all current and new users with shared icons on the desktop and the start menu. This works actually very nicely.
    javaws -system -import https://server/app.jnlp
    However, I'm running into different problems when trying to upgrade the application. The application uses an online shortcut (but can be run in offline) and the update check is set to background.
    If an ordinary (non-administrator) user start the application when a new version is available on the server, web start downloads the new version in the background, but into the user's personal cache! When restarting the application, the old shared version still starts. Web start does not download the new version, presumably because it found the new files in the personal cache.
    Another approach I tested was to use offline icons and manually performing a new system installation/import. This downloads the new version into the shared system cache, but leaves all shortcuts invalid. Now the only solution to start the application is to run it from Java Control Panel. It's not even possible to recreate the shortcuts.
    I'm wondering if I'm doing anything wrong or if there exists some best practices for enterprise installations that I'm not aware of. I'm suspecting that these problems are due to limitations or bugs with JWS, but I thought to check with the community before reporting it officially to Oracle.
    The customers are using client computers with Windows flavours.
    I've been testing on Windows 7 64 bit using the 32 bit JRE 1.6.0_u23.
    Any suggestions would be really appreciated. If you are handling enterprise installations in altogether different manner, don't hesitate to respond.
    Thanks.

    Hello,
    Were you able to solve your problem?
    Actually, I'm planning to install the application for all users in a system and I'm on the investigation process.
    In fact, these are my concerns:
    - What is going to happen if a user with limited permissions tries to install a javaws application and it has been enable to be installed on system cache?
    - Where the deployment files need to be located? In the web server (where jnlp is located)?
    - Could system cache installation be performed automatically (when jnlp file is launched) or it would be performed by a system administrator?
    If you could share some information on how you installed a javaws application for all users, I would really appreciate it.

  • HT3964 My internal camera is no longer registering on any application or in the system utillities even ater i followed the trouble shooting instructions on mac, what do i de next?

    I have resently updated to mavericks and  my camera has been working fine, then it has just stopped registering on the comuter. I have followed all the instructions of the trouble shooting guide for isight and still nothing is registering.

    I have resently updated to mavericks and  my camera has been working fine, then it has just stopped registering on the comuter. I have followed all the instructions of the trouble shooting guide for isight and still nothing is registering.

  • I have a problem with Apple store when installing large application: The system crashes. Any suggestion?

    I have a problem with Apple store when installing large application (example xCode): The system crashes.
    It begun with 10.8 usualy with few tries it work but with 4.6 no succes.
    Any suggestion?

    If you have more than one user account, you must be logged in as an administrator to carry out these instructions.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Select the most recent panic log under System Diagnostic Reports. Post the entire contents — the text, please, not a screenshot. In the interest of privacy, I suggest you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header and body of the report, if it’s present (it may not be.) Please don't post shutdownStall, spin, or hang reports.

  • Script for adding a login item for all accounts in the system

    Hi,
    Thanks for reading this query. I am new to the mac environment. I have developed a java application and created an installer of this application for MAC system.I want to run this application on starting the system. So I have written an apple script for adding this application in login items and this script will run immediately after completing installation process. And the entire process is fine. But the problem is, the application is added to login items of only the user who installed the application. But I want to get available the application in the login list of all accounts created in the system. How can I achieve this? Once more thanks in advance. I am attaching my script below:
    +*tell application "System Events"*+
    +* make login item at end with properties {path:"/Applications/MyApplication.app", hidden:true}*+
    +*end tell*+

    Hi,
    Try to use tables RSOSFIELDMAP, RSDSSEGFD and RSTRAN
    Hope it helps
    bhaskar

  • Forcing a web browser to use the system cache

    Greetings,
    We are setting-up an "enterprise configuration" of JWS where we want JWS applications installed under the system folder (e.g. "<Windows Directory>Sun\Java\Deployment") rather the user "Documents and Settings" folder. The install script will run on thousands of desktops the same day. Since we do NOT want the JAR files downloaded to all these desktops at the same time, the script does not run "javaws -import" at the end - it simply copies the files deployment.properties and deployment.config under the sysem folder with the following properties set:
    deployment.system.security.trusted.certs = C\:\\WINDOWS\\Sun\\Java\\Deployment\\keystore.jks
    deployment.system.cachedir = C\:\\WINDOWS\\Sun\\Java\\Deployment\\cache\\
    deployment.system.config = file:\\C:\\WINDOWS\\Sun\\Java\\Deployment\\deployment.properties
    deployment.system.config.mandatory = true
    The install script also copies a shortcut with the target "jawaws -system...."
    This setup works fine and the shortcut does cause the application to be downloaded at the proper system location.
    However, if the user starts the app from IE (e.g. http://xx.xx.jnlp), it ignores the system configuration and downloads the app to the local user folder.
    Is there anyway to force the download to occur in the system folder ? What I find pretty odd is that even lanuched from IE, JWS does read the deployment.properties and deployment.config files from the system folder. I've put a typo and it there and JWS complained right away.
    Thanks

    No that is not possible with code on web pages (userContent.css could probably do this).<br />
    The persona is only used as the background for the user interface (toolbar) area and not for websites.<br />
    The dimensions of the persona with the height of 200px is also not enough to cover a page.

  • Can a single datasource be used by more than one Application running on the

    Can a single datasource be used by more than one Application running on the system?

    What, in this context, do you mean by "datasource"?

  • I just bought macbook pro with 10.8.3 os. When i start the system, all applications automatically start up as well! How can I turn them off. I checked the user settings and no application is set tom open automatically!

    I just bought macbook pro with 10.8.3 os. When i start the system, all applications automatically start up as well! How can I turn them off. I checked the user settings and no application is set tom open automatically!

    You have 14 days to return the computer w/no questions asked.  Plus you have 90 days of FREE phone tech support on top of your standard 1 year warranty unless you also purchased AppleCare which gives you an additional 2 years of coverage plus FREE phone support.
    Strongly suggest that you take FULL advantage of the above before it runs out.  Let Apple deal w/the problems.

  • How to check if a user exists in the system ?

    Dear Gurus,
    I want to check whether a user ID exists in the system after logon by using VBA. If the user ID exists, then I will update the user's information with external data by using the method user.change.
    When running below codes, error occurs and error msg is: "The persistent key for an business object instance of type USER has not been set. Cannot invoke method EXISTENCECHECK"
    How can I do to check the user ID existence ?
    Set oUser = oBAPICtrl.GetSapObject("user")
    oUser.ExistenceCheck "MyUserID", return:=oReturn
    Thanks and Regards,
    Bao Yan

    Mickey,
    I'm afraid I never did get this to work properly. However, in the way of all bad/good (delete as appropriate) programmers eveywhere I worked around this problem. I was using this code in Banner.asp to change the view based on the user group so if a given session variable was set a user would see a different view. It works fine with no slow down on the page and you should be able to adapt it to what you need.
    Hope this helps.
    Neville
    Note: Application variables are ones I have defined in config.xml.
    Code follows:
    <!--START:INC\common\getgroup.asp-->
    <% 'NAH 29/03/2004 ' 'This check the to see if the current user has the group in their membership that has been defined as the group to provide an alternative view of the portal.' 'The group variable is defined in the config.xml as "ALTVIEWGROUP"'
    'Do not do this is we have already matched the group'If Session("groupMatch") <> "1" and Session("groupMatch") <> "2" then
    Dim pGroup
    pGroup = Application("ALTVIEWGROUP") Set Session("groupMatch") = nothing
    Dim Plumtree
    Set Plumtree = Server.CreateObject("ADODB.Recordset") Plumtree.ActiveConnection = "Driver={SQL Server};Server=" & Application("DBSERVER") & ";Database=" & Application("PLUMTREEDB") & ";" Plumtree.Source = "SELECT GROUPID FROM " & Application("PLUMTREEDBUSER") & ".PTGROUPMEMBERSHIP WHERE (USERID = " & strUserID & ") AND (GROUPID = " & pGroup & ")" Plumtree.CursorType = 3 Plumtree.CursorLocation = 2 Plumtree.LockType = 1 Plumtree.Open()
    'If there are records we should have a match otherwise set the session varible to no match.' If Plumtree.EOF then Session("groupMatch") = "2" Else 'By getting here the user should have the matching group but complete one final check to make sure' If cInt(Plumtree.Fields.Item("GROUPID").Value) = cInt(pGroup) then Session("groupMatch") = "1" Else Session("groupMatch") = "2" End If
    End If
    Plumtree.Close() Set Plumtree = Nothing
    End if%><!--END:INC\common\getgroup.asp-->

  • The ITS could not connect to the Web Application Server or the R/3 System

    Hi Gurus
    we are in the process of insalling ITS 6.20 (ITS version is 620010318381 ( itsWindowsX64_31-200001681, R/3 4.7 200)
    Actually we installed it for dev/qas server with connectin mode property as "Connect to SAP system Using Applicatin Server"  these are working fine for webgui!
    and the same thing i installed for Production as connection mode property as " Connect to SAP System Using message Server" (hostname/IP, port as 3600 (as instance number is 00) here in the production evnironment we have 2 app servers. The installation got successful but i am not getting the log on screen through the link: http://10.3.3.175:81/scripts/wgate/webgui!
    the error message is :
    Connect Error
    The ITS could not connect to the Web Application Server or the R/3 System
    any help please
    Thanks in advance

    Hello Balaji,
    Check the global.srvc file for errors in the R/3 system information.  The ITS uses the following to connect to your system:
    ~appserver     
    ~routestring     
    ~systemname
    ~systemnumber     
    ~logingroup     
    ~messageserver     
    Which parameters are used depend on how you are connecting (logon group, route string, etc.)
    Edgar

  • ITS could not connect to the Web Application Server or the R/3 System

    ITS 6.20 on a single host on a WinXP test machine, connecting to R3 4.6C.
    The webgui <u>was</u> working, but a test application created in the WebStudio would not work.
    Now it's the other way around, the test application works fine, but the webgui fails with a "The ITS could not connect to the Web Application Server or the R/3 System."
    I have not managed to get ../scripts/wgate/admin/! to work either.
    Is it possible to have both the webgui and WebStudio created applications, working on the same ITS installation?
    If yes, any ideas how?
    Many thanks
    Tim

    Hi Tim,
    You have to check the connection data in the relevant service file e.g.
    ~systemname   
    ~messageserver
    ~logingroup   
    ~appserver    
    ~systemnumber 
    ~routestring  
    ~connectstring
    If the Agate doesn't run you would see an ITS 500 error in the browser.
    Thanks and regards,
    Dieter

  • I received an error "iTunes requires 64-bit mode" says to go into my iTunes application and 'uncheck' the 'open in 32-bit mode' checkbox - i went into the application and the box was not checked anyway so why am i getting this prompt?  Never happened b4

    i received an error message "iTunes requires 64-bit mode" says to go into my iTunes application and 'uncheck' the 'open in 32-bit mode' checkbox - i went into the application and the box was not checked anyway so why am i getting this prompt?  Never happened before. yesterday did the sofware update for maverick.

    Thank you for your response, Chris. But I'm afraid I have to disagree. There are native 64 bit versions of iTunes available for OSX and Windows.
    In a 64 Bit Windows environment native 64 Bit Applications install the DLL's in a directory called "Program Files" and a directory called "Program Files (x86)" (32 Bit applications only use the ladder).
    iTunes 9 is consistent with this behavior - and it identified itself to the system as a 64 bit application (meaning it's process appears without a "*32" tag on it).

  • Error occurred in deployment step 'Recycle IIS Application Pool': Could not load file or assembly 'Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specif

    Hi All,
    I am using Virtual box to connect to Sharepoint 2013 VPC. Due to an unexpected sutdown of my machine the VPC got some issue. Now I restored it using my bak up file. But after this when I deploy my sharepoint 2013 farm solution Iam getting the following error.
    Error occurred in deployment step 'Recycle IIS Application Pool': Could not load file or assembly 'Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified..
    Editing the web.config and adding dependentAssembly didnt worked for me.
    What could be the issue? Any suggestions ?
    Thanks in advance...
    Regards
    Nimisha
    [email protected]

    Hi,
    Please try to do as follows:
    1. Check your farm solution whether reference the Microsoft.SharePoint.dll. Or try to add the Microsoft.SharePoint.dll into the bin folder.
    2. Execute the iisreset command.
    3. Create a new farm solution and check whether the issue still occurs or not.
    Best Regards
    Dennis Guo
    TechNet Community Support

  • What is the application in the System Application Server

    Hi, I'm a beginner who does not have much knowledge on Application Servers and databases. Would like to ask, when we log in to the Sun Java System Application Server, we can create a database under Connection Pools. So would like to ask, what is the application in the system application server, and where is it located?
    I also have this application server with database, so how do I check if the database is connected to the application server?
    Much help is needed, thanks.

    Hi, I'm a beginner who does not have much knowledge on Application Servers and databases. Would like to ask, when we log in to the Sun Java System Application Server, we can create a database under Connection Pools. So would like to ask, what is the application in the system application server, and where is it located?
    I also have this application server with database, so how do I check if the database is connected to the application server?
    Much help is needed, thanks.

  • Can not login into command line tool or check out application system

    Hi,
    I'm not able to check out application system. Message error stack is empty. If I try to connect using command line tool to purge the version I get this:
    Repository Command Line Tool: Production on 11-July-03, 18:46
    Release 9.0.2.90.21 - (c) Copyright 2002 Oracle Corporation. All Rights Reserve
    d
    REPCMD> conn repos_manager@msdes01
    Enter password: ******
    [JDK2] No message error
    oracle.repos.services.ReposServiceException
    at oracle.repos.services.connection.RepositoryConnection.setConnection(R
    epositoryConnection.java:613)
    at oracle.repos.services.connection.RepositoryConnection.setConnection(R
    epositoryConnection.java:539)
    at oracle.repos.tools.cmdline.util.CmdLineConnection.setConnection(CmdLi
    neConnection.java:162)
    at oracle.repos.services.connection.RepositoryConnection.<init>(Reposito
    ryConnection.java:333)
    at oracle.repos.tools.cmdline.util.CmdLineConnection.<init>(CmdLineConne
    ction.java:122)
    at oracle.repos.tools.cmdline.ConnectCommand.runConnect(ConnectCommand.j
    ava:197)
    at oracle.repos.tools.cmdline.ConnectCommand.exec(ConnectCommand.java:78
    at oracle.repos.tools.cmdline.BaseCommand.exec2(BaseCommand.java:130)
    at oracle.repos.tools.cmdline.CommandLine.run(CommandLine.java:494)
    REPCMD>
    Any help will be greatly appreciated.
    Thanks,
    Radek

    Radek,
    See Metalink article <Note:178311.1>
    I assume sqlplus and the Repository Object Navigator are working.
    Check the tnsnames.ora file:-
    i.e Change the entry
    DTE817.world = (DESCRIPTION = (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ukp-desteam)(PORT = 1521)))
    (CONNECT_DATA = (SID = DTE817)))
    to
    DTE817.world = (DESCRIPTION = (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ukp-desteam)(PORT = 1521)))
    (CONNECT_DATA = (SERVICE_NAME = DTE817)))
    David

Maybe you are looking for

  • IMac 20" Will no longer Boot.

    I went to change the icons on my desk top this week and while playing around with them i miss clicked "Burn Macintosh HD to Disk" and it brought up bar as if it were copying something there was not Stop button and any way to cancel it and either way

  • Hard Drive Failure... is it just me?

    OK some would say to have one hard drive failure is unlucky, to have two fail is careless but three failures make me think we have a problem. So now my MacBook goes back for repair, before that my MacBook Air, before that my MacBook Pro... no problem

  • Display BLOB from remote database

    Context: We are offloading documents (pdf) from our OLTP database to a dedicated 'output database.' These documents must be displayed from the application on our OLTP database using a database link. Various posts show that querying a BLOB from a remo

  • ADS in the Java stack of a Dialog instance on Windows + CI on iSeries

    Hi, I read the document "Using Adobe Document Services with SAP on IBM DB2 for i5/OS". Summary of the document - There are two possible technical scenarios: 1. ADS in the Java stack of a Dialog instance on Windows 1.1. ABAP+Java dialog instance on Wi

  • Problem Re-applying Develop settings after roundtrip to photoshop!

    I am having a very annoying problem with re applying develop settings back to an image after touching up in photoshop. Here is my basic workflow. 1 - import camera files to lightroom (Raw .cr2 Files) 2 - make slects and experiment with color develop