Let two less associated programs run in only a jvm,is that possible?

public class one{
  public static void main(){
    System.out.println("one");
public class two{
  public static void main(){
    System.out.println("two");
}let one and two run in only a jvm,is that possible?

Maybe the OP were asking for "JVM sharing", that would enable us to run several user programs in a single JVM instance, saving a lot of memory. I guess that there is an IBM implementation of it in z/OS.
The forthcoming J2SDK 1.5 will have the "Class Data Sharing" feature, that is not the JVM sharing feature, but it aims to reduce memory usage.
From the [url http://java.sun.com/j2se/1.5.0/docs/relnotes/features.html ]Summary of New Features and Enhancements:
[url http://java.sun.com/j2se/1.5.0/docs/guide/vm/class-data-sharing.html] Class Data Sharing
The class data sharing feature is aimed at reducing application startup time and footprint. The installation process loads a set of classes from the system jar file into a private, internal representation, then dumps that representation to a "shared archive" file. During subsequent JVM invocations, the shared archive is memory-mapped in, saving the cost of loading those classes and allowing much of the JVM's metadata for these classes to be shared among multiple JVM processes. For more information, click the above link.

Similar Messages

  • Yosemite 10.10.2 server app. FTP help. I have a program running in my local server enviroment that wants to FTP to my mac folder. It asks for the server , name, password, port and path. what are they?

    So I have set up a localhost area in my Mac. I have the new server.app and I am running yosemite 10.10.2 .
    I have a program running in my local server enviroment that wants to FTP to my mac .
    It asks for the server , name, password, port and path. what are they?
    I am pretty certain that the Serveris "localhost",
    Name is my macs name (like my-mac-min)
    password is "my login password"
    and they suggest port 21.
    But what is the file path, lets just say my site is set up http://localhost/siteftp and is actually at my Users/Sites/siteftp folder.
    Why cant this program connect to the mac.
    Is it because they are both operating in the same localhost enviroment,
    could it be my folder permissions are not correct on siteftp folder?
    Help please !

    I tried turning the computer off and then back on. The alerts don't show the notice to update as resolved. Hopefully this is not a problem or an indicator or another problem. Should I ignore or reload 10.10.1 from the app store to trigger a resolved check in a green circle?
    Interesting that I had to buy server software after my free Yosemite download. I would have hoped that the two pieces of software would have gone together without any complication. It is not positive to end up buying a problem. Ah well, time to move on.

  • I want emails to be updated only in wifi, is that possible

    I want emails to be updated only in wifi, is that possible in iphone4

    You don't have to disable that. Just disable the mail option under tht menu. You will find it when yoou scroll down.http://cdn.gottabemobile.com/wp-content/uploads/2013/06/iOS-7-data-use-tracking- by-app.jpg
    It would look something like this

  • I set up "Find My Iphone App" using the same apple id and password on two iphones. Now the app only finds the phone that I did the setup on first. Do I need a different apple id and password on each phone for the app to run correctly?

    I setup two iphones on "Find My Iphone App" Using the same apple id on each phone. Now the app finds only the phone I setup first. Do I need to use two different apple ids? If your answer is yes then how do I errase the setup in the second phone and assign a new id?

    As TJBUSMC1973 states, and as I said earlier, the Find My iPhone app has nothing to do with your use of Find My iPhone. The app is just used if necessary to locate another iOS device from that particular iOS device. To see if both of your devices are being located in Find My iPhone, log into www.icloud.com and select Find My iPhone. Both of the devices should appear. If they do not, then go into whichever of the devices does not appear and make sure that Find My iPhone is activated. It has to be activated through iCloud, and for both to show on the same map, they both have to have the same iCloud ID.

  • Apple's power adapter replacement program - U.S. only

    Hello,
    I have a macbook air.
    Its power adapter has a L-shape, but I have the same problem because of strain relief.
    I found that Apple's power adapter replacement program page on web, About Apple's Power Adapter Replacement Program -- U.S. only.
    I think that the T-shape photo on web is just an example showing what strain relief.
    When I visit the apple retail store and ask the program, they answered me that program is only available for T-shape power adapter.
    is it correct? do I need to buy additional power adapter for my air?
    Thank you,

    Yes, that is correct.

  • Interaction Between programs running on 2 JVM

    I need to send certain data (primitive/objects) from a program running on one JVM to another program running on a different JVM. And need to get a response back from the program running on second JVM. This process needs to be synchronous.
    Is it possible to achieve this by deploying a servlet on second JVM? If yes how?
    And is there any better method to achieve this?

    Without knowing your exact problem i'll bet it can be solved with RMI (Remote Method Invocation).
    RMI uses protocol so was designed for communication between Java programs on seperate machines, but is just as effective when both programs are running on one host.
    Here is good place to start
    http://java.sun.com/docs/books/tutorial/rmi/overview.html
    or
    http://forum.java.sun.com/forum.jspa?forumID=58
    Bamkin.

  • I have two iMac's one running 10.6.8 and the other 10.8.2  What Apeture program should I purchase?

    I have two iMac's one running 10.6.8 and the other 10.8.2  What Apeture program should I purchase?

    You can currently only buy the current version Aperture 3.4.3 at the AppStore, and that version requires MacOS X 10.7.5. at least, see the release notes: Aperture 3.4.3
    So you will not be able to install this version on your Snow leopard machine. Maybe you can buy a boxed retail version of an earlier release, compatible with Snow Leopard, but the newer version is faster and compatible with iCloud.
    Do your iMacs both have the same processors and memory? You will wan to use your fastest mac with the best graphics card and the most RAM to run Aperture, also a large screen would be desirable.
    Regards
    Léonie

  • Why does a new run once start up program run every time I start my computer? The start up program is coming from Reader XI. The only name on it is a number starting with 141_______.

    Why does a new run once start up program run every time I start my computer? The start up program is coming from Reader XI. The only name on it is a number starting with 141_______.

    See also https://forums.adobe.com/thread/1654402

  • How can we let the program run in backgroud automatically?

    normally,we need to find peak off time run big program
    that read pooled table and slowly.
    How can we let the program run in backgroud automatically?
    BTW:before that pop a window just give runner a notice.

    Here is an example, try this one.
    REPORT ztest.
    PARAMETERS: p_vbeln LIKE vbak-vbeln,
                p_bkrun NO-DISPLAY.
    DATA: ls_vbak LIKE vbak.
    DATA: v_answer,
          v_jobcount LIKE tbtcjob-jobcount.
      IF p_bkrun IS INITIAL.
    *-- not background processing
        CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
             EXPORTING
                  textline1      = 'This may time out.'
                  textline2      = 'Do you want to run in background?'
                  titel          = 'Warning!!!'
                  cancel_display = space
             IMPORTING
                  answer         = v_answer.
        IF v_answer = 'J'.
    *-- run in the background
          CALL FUNCTION 'JOB_OPEN'
               EXPORTING
                    jobname          = 'ZTEST'
               IMPORTING
                    jobcount         = v_jobcount
               EXCEPTIONS
                    cant_create_job  = 1
                    invalid_job_data = 2
                    jobname_missing  = 3
                    OTHERS           = 4.
          IF sy-subrc <> 0.
            MESSAGE ID sy-msgid TYPE 'E' NUMBER sy-msgno
                    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
            EXIT.
          ENDIF.
    *-- submit the program in the background
          SUBMIT ztest
            WITH p_bkrun = 'X'
            WITH p_vbeln = p_vbeln
            USER sy-uname
            VIA JOB 'ZTEST' NUMBER v_jobcount AND RETURN.
    *-- close the job
          CALL FUNCTION 'JOB_CLOSE'
               EXPORTING
                    jobcount             = v_jobcount
                    jobname              = 'ZTEST'
                    strtimmed            = 'X'
               EXCEPTIONS
                    cant_start_immediate = 1
                    invalid_startdate    = 2
                    jobname_missing      = 3
                    job_close_failed     = 4
                    job_nosteps          = 5
                    job_notex            = 6
                    lock_failed          = 7
                    OTHERS               = 8.
          IF sy-subrc <> 0.
            MESSAGE ID sy-msgid TYPE 'W' NUMBER sy-msgno
                    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ENDIF.
          EXIT.
        ELSE.
          CLEAR v_answer.
        ENDIF.
      ENDIF.
      CHECK v_answer IS INITIAL.
      SELECT SINGLE * FROM vbak
                      INTO ls_vbak
                     WHERE vbeln = p_vbeln.
      IF sy-subrc <> 0.
        WRITE:/ 'Invalid Order Id.'.
      ENDIF.
    END-OF-SELECTION.
      CHECK v_answer IS INITIAL.
      IF p_bkrun IS INITIAL.
        WRITE:/ 'Here is the result running the program in foreground.'.
      ELSE.
        WRITE:/ 'Here is the result running the program in background.'.
      ENDIF.
      WRITE:/ ls_vbak-vbeln,
              ls_vbak-vkorg.

  • Interaction between 2 labview programs running on two distinct computers

    hi
    i have two distinct computers and 2 labview programs running on each computer. in one computer labview program is prepared for data acquisition and saving acquired data. now i want to send these acquired data by cable to another computer to be processed. first i am searching for the best protocol for sending data between these two computers. it is important for me to diliver data near real time approximately in milisecond. and finally is there neccessary to have any special kind of software?
    best regards
    Message Edited by farashi on 01-30-2010 01:36 AM
    Solved!
    Go to Solution.

    Farashi-
    A real-time system doesn't mean an instantaneous system, or a fast system.  It actually means a deterministic system, or a system that you know exactly how long it will take to complete a process.  As was mentioned before, even Gigabit ethernet has latency, and that latency is not deterministic.
    If you want a real-time system over the network, here is a KB that has the software and hardware setup you would need to do.
    http://zone.ni.com/devzone/cda/tut/p/id/4720
    Mostly, to accomplish what you want to do, you won't be able to use windows, because there is non-determinism there.  You will get latency problems when windows decides to use the processor for something other then your application.  For the best real-time systems, look into the Compact FieldPoint of a Compact Rio system that you can deploy your code to.
    Scott Wiest
    Applications Engineering
    National Instruments
    National Instruments
    Applications Engineer

  • Safari 8 needs two click to load links or send to homepage, only on a website that runs well in other mac or browser: how to reset safari?

    Hello, i'm going crazy with this issue.
    I upgraded to 10.10 my MBP Retina two weeks ago without any problem.
    Yesterday i noticed that one website i mange (e-commerce done with magento) all links, tabs and menù didn't worked.
    Whatever i was clicking I always was redirected to the homepage (Index.php).
    I empty the cache, I canceled the user and passwords connected to this website (public or backend), i removed all data form "privacy" menù....
    nothing...
    I also tried, in development menù, to de-activate "styles" (in Italian we have "stili) that is the template, but i get the sam effect.
    Changed connection, restarted the mac, restarted safari...
    I only noticed one thing: if i make a "double click" on the link, menù, ecc.. it will bring me on the correct page and will keep in
    If i press just one time i see an instant the correct link than a redirect to homepage....
    This happens only with one of my websites, all made with magento, all placed in the same server.
    If i try using chrome or firefox it works well
    If i use my iMac with Yosemite it works well.....
    I'm going crazy... please help me

    I used this method and all seems ok... i hope...
    Is this a virus?

  • How come my ipod will let me download Temple Run Two but not Temple Run One?

    Its so weird. I can download Temple Run two.... but I can't download Temple Run 1? I have a 4th generation Ipod and my cousin who has a 2nd generation can download the first temple run... whats up with that???

    What happens when you try to download Temple Run 1 (do you mean just Temple Run since I can't find a Temple Run1 in the USA app store)
    What iOS is on the iPod?

  • Why won't Ovi Store let me download any programs -...

    I have an E71 and just updated the firmware. As moving settings over messed my wifi up last time, I opted to do this manually and reinstall all my programs - I set aside a few hours last night to get this done.
    Ovi Store is widely known to have serious design flaws. The main being it does offer a direct download of the .sisx files on the PC version, only a text message with a link - which goes without saying is a terrible way of receiving files.
    Last time I used the PC version my text messages showed up several days later - and this time none have appeared yet, as expected.
    So I used the phones built-in Ovi Store, which does the job.
    However, after just about installing all my programs I checked out the 'settings' in Ovi Store and saw that the default was for them to be stored on the memory card, which fundamental logic dictates is wrong - they go on the phone memory because it is faster.
    Why is the default for programs to be stored somewhere no sensible, intelligent person would store them?
    As there does not appear to be any semblance of a functional file system on the E71 (certainly not something capable of showing which memory various applications are saved to, or the option of being able to move them from the memory card back to the phone) I decided formatting the card would be the most sensible option.
    I did this, lost a bunch of my apps that were on the memory card and went over to the Ovi store on my phone to re-download them.
    It now has these apps greyed out as if they are still installed - which they are not!
    I then went on my PC - and of course the website might as well not exist, because Nokia don't send me SMS messages for a few days, if at all.
    I really don't know what I've done to deserve this. I've purchased two E71s, Nokia drive AND the traffic updates (which are now free) in the last 18 months - and all Nokia do is work as hard as they can to punish me, ruin my phone experience and force me onto the new Windows 7 phone that I am almost certain to order on release.
    There is no coincidence about the degree of deliberately compromising hardware/software decisions I've complained about on this forum, Nokia never sending me programs I want via SMS but happily filling my SMS and email inbox with marketing - and waiting until I paid up for my Maps before making it free and now this.
    It is clear that Nokia do NOT want me to enjoy their phone and buy an E72 soon - and instead want me to go with Windows 7. They have put great time, resources and effort into forcing me into this decision.
    - Why does Ovi store online not have the manual download function that any sensible, reasonable human would demand?
    - Why does the second-rate, third-world SMS download function not bother sending the link for several days?
    - Why does the Ovi software install programs somewhere that no human with the slightest comprehension of IT skills would advocate installing them?
    - Why does the Ovi software not let me re-install programs from the built-in store that are no longer on my phone?
    I will be the last of my friends who have returned various phones such as the disasterous N97 and permamently moved to different phone manufacturers when my contract ends this summer.

    1. Actually, any sensible intelligent person would store the programs on the memory card. Not doing so would mean that he has less knowledge of the phone. If any of the programs come into conflict with other programs causing certain problems like restarts general hangs, and unable to start the phone, if this app is on the phone memory, it would be hell of a problem. You can change it if you want. Your choice. Also I keep too many apps for them to be stored on phone memory. Python, Java 2.0, Flash Lite, MS Silverlight for Symbian and Ovi Maps already take up too much space to leave enough for buffer.
    2. There is an application manager on the E71. Also, AFAIK the application manager also shows which memory the app is stored in (a little memory card icon beside apps in memory card). It should be in Menu>Tools>Manager
    3. The apps are greyed out because you did not uninstall them properly. On the phone memory, where the Oinstallation logs are saved, there is no log of the apps being uninstalled, so Ovi Suite sees them as installed.
    FOr the questions in bold:
    1. This is done through a firefox plugin. We do not know why, but I suspect its with distribution rights and to make sure that only Nokia phones can access several apps that are exclusive for Nokia users only. For example, Gameloft and Polarbit gave away several paid games for free to Nokia users. If the apps were downloadable in sis files, the game manufacturers would not earn from Sony users who can get the files for their Satio for free through Nokia sites.
    2. Not really sure. There are times I receive the SMS instantaneously, sometimes I receive them a few hours late. 
    3. False. In fact as I already stated above, it is more advisable to install apps in memory card as opposed to phone memory.
    4. Also already explained above. 
    If you find my post helpful please click the green star on the left under the avatar. Thanks.

  • Program running under UAC prompt hides mapped drives

    I have a user on Windows 7 with a non-admin account who runs a program that pops up the UAC. She clicks yes and the program runs. However, since the UAC was involved, it is running with a different token than what she logged into the computer with.
    This means that the program doesn't see her mapped drives when doing a File | Open. She has to navigate to the data folder on the server via Network. Needless to say this is cumbersome and inefficient.
    What can I do so that the program sees her mapped drives? I don't know of a way to get rid of the UAC except to turn off UAC which I do not want to do.
    Jonathan

    Hi Jonathan,
    I hope this might help you.
    Running Your App with Administrator Privileges
    There are times that you may need administrator privileges for an application. You may write code that directly interacts with a piece of hardware or an app that sets machine-wide settings in HKLM. When possible, you should design your apps to limit the
    need for admin privileges to narrow sections of code, or communicate to an application started with full administrator privileges. Aside from MSI-based elevation, there are two ways to create processes with a user's full administrator token. The Application
    Information Service (AIS) will check during process creation and during the creation of a COM object using the CoCreateAsAdmin moniker to see if the
    binaries require administrator privilege. It is important to note that the elevation occurs at the time of process creation. The process token never has privileges or group membership added during run time, only when it is
    created.
    More information:
    Teach Your Apps To Play Nicely With Windows Vista User Account Control
    http://msdn.microsoft.com/en-us/magazine/cc163486.aspx#S7
    Making Your Application UAC Aware
    http://www.codeproject.com/Articles/17968/Making-Your-Application-UAC-Aware
    Thanks.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • I keep geting this message when trying to udate to Itunes 10.5.1 "There is a problem with the Windows Installer package. A program run as part odf the setup did not finish as expected . Contact your support prersonel or package vender"

    I keep getting this message when trying to upgrade to Itunes 10.5.1
    Driving me nuts trying to upgrade. What can I do to correct this?
    "There is a problem with the Windows Installer package.
    A program run as part odf the setup did not finish as expected .
    Contact your support prersonel or package vender"

    Yes, I had found a similar solution also.  I'm running XP Pro, SP3.  I went Control Panels/ Add-Remove programmes/apple software update/ change/ repair.  Then run the 10.5 exe.
    While the programme updated from version 8 of iTunes, my new iTunes is now a mess.  Not all of my music was in the same folder previously but it all showed up on iTunes.  Now many albums have been left out, some have only a few tracks and some have two copies of some tracks as well as having other tracks missing.  I haven't begun to work on that.

Maybe you are looking for

  • Jdevloper11g Release 1: Error while running Bean in java

    Hello , I am getting error while running my HRFacadeClient.java [EclipseLink/JPA Client] Adding Java options: -javaagent:C:\Oracle\Middleware\jdeveloper\..\modules\org.eclipse.persistence_1.1.0.0_2-1.jar "C:\Program Files\Java\jdk1.6.0_29\bin\javaw.e

  • DVD movie help please

    Hi I hope someone can spare some time to help me resolve a problem I have. My wife has made a file in imove consisting of pictures, video and music. We then burned a DVD in toast 7 ( DVD video setting). It plays fine on PC but wont in front row ( the

  • Cups Job History shows Name 'Unknown' User 'Withheld'

    We have previously used the cups interface to review our print job history and indenify problems with jobs that went missing at the press. This worked great in previously versions of OS X, but in Lion every job we send, regardless of what printer we

  • Search data in a 2d array and generate a signal when found

    Hi, i am looking for an interactive way to search data from an array containing a 2d array found in a cluster. The data is in the 2d array. I have attached the vi containing the array. I want an interactive method to look up for the codes in the 2d a

  • Problems updating CS6 software: Premiere

    Hi, I have a problem that can best be described by a screenshot: I tried updating a second time and got the same error but only for Premiere since the other app was successfully updated.  What I am not showing you is another portion of the screenshot