Runtime compile question

Hi,
Is it possible for me to generate, compile, and execute Java code at runtime? In other words can program A, when invoked, generate B, compile B, and run the resulting class? A will need to call methods on B, pass parameters, and the like.
I have to do something along these lines and am curious as to how this might be approached. The "Loader" type classes seem to work on existing class files - not .java files that need to be compiled.
Thank you

Check out java.lang.reflect. There's ways around these problems. Relefection is admittedly difficult, but it seems to be the only solution to your problem. You can use relfection to obtain the methods of the new class once the class is loaded and then invoke them. Constructors and fields, too.

Similar Messages

  • Runtime compilation

    Hi Forte-users,
    I have a question about runtime compilation . Under what conditions does Forte
    compile a method at runtime. My logical conclusion would be Forte complies
    stuff that has been changed or has a direct impact due to the change, but this
    is not true as I found out the hardway that it even compiles methods or objects
    that are residing in some other Projects which are not even supplier to the
    Project that one had made changes to.
    Please let me know what the criteria that Forte uses to decide whether a
    methods needs to be complied runtime or not. Is there any way to stop run-time
    compilation?
    Thanks
    Mihir Chitre

    Example?
    var myFunc:Function;
    myFunc = function()
    var i:int = 5;
    trace(i);
    //works fine
    myFunc = "function(){ var i:int = 5; trace(i);}";
    //TypeError: Error #1034: Type Coercion failed: cannot
    convert "function(){ var i:int = 5; trace(i);}" to Function.
    // at Sandbox_fla::MainTimeline/Sandbox_fla::frame1()
    myFunc = (Function)("function(){ var i:int = 5; trace(i);}");
    //EvalError: Error #1066: The form function('function body')
    is not supported.
    // at Sandbox_fla::MainTimeline/Sandbox_fla::frame1()
    myFunc();

  • Runtime Compilation to Increase Performance

    Hi everyone,
    I've been struggling with this problem for a few days now and would be glad if you could help. I'm working on a neural networks project. I've written a GUI to edit and train neural networks for a certain task. In order to be able to play with the network architecture in a flexible manner I've exploited the OOP concepts generously. But once the network architecture is set I don't need this flexibility anymore and I want to compile a specific class that has the same functionality as that network where all the computation is carried out over local variables (I even made them static) instead of array elements and object references. I've successfully written this code that generates a string where loops are unrolled and all the if, switch statements are resolved and the variables that are not supposed to vary at this point are inserted as constants at the (runtime) compile time.This should speed up right? Especially considering all the array bounds checking and stuff java is doing.
    When I try to compile this string, everything is fine and the mathematical functionality is perfectly imitated. But the problem is, for small networks, the code works twice as fast, as I would expect but for large networks the speed drops to something like 4 times slower! For a typical large network the resulting binary is 80k, so I wouldnt expect it to fill the cache (or should I?) anyway, even if it did fill the cache that shouldnt slow it down by a factor of 8. The slowdown sounds more like the difference between JITted and interpreted code. I suspect that as that single method is 80k long it might not be JITted (sorry if I annoy you with that crappy term). If you think this is the case, is there any way to bypass that? Or what do you think the reason could be. I already tried to decrease the number of method calls before compilation to 1 (with the command line argument -XX:CompileThreshold:1) just to try, but it didnt help.
    I converted the resulting string also to C++ and it runs 4 times faster than the unrolled original method(Even for large networks). (It serves also as a nice test showing that java is half as fast as such an arithmetic and trigonometric intensive task)
    I would be so glad if you could help me attain the x2 performance I obtain with the small networks in the general case. And I would be super duper glad if you could suggest a way I could runtime compile it in C++ and attach it to my program through JNI. Runtime compiling C++ code sounds messy but I keep some hope since the operations are purely mathematical and they don't need any platform specific thing.
    Thanks a lot
    Edited by: enobayram on Mar 5, 2009 5:51 AM

    Thanks for your answer, I was thinking about the same thing, but I am not exactly trying to out-smart it. During that runtime compilation I know much more than the VM does. I know that the neuron axon function family is constant, so I bypass a switch statement. I know that function flatness will not change after that point so I insert it as a constant. I also avoid using arrays since I know how many elements there should be, and I can use individual local variables instead. This also explains the speed increase in small networks and also in the C++ experiment.
    I've checked those options, and the only relevant one I could find is that XX:CompileThreshold. By the way, why do you think runtime compiling C++ is less messy? With java everything needed is included in the standard library. JavaCompiler class and the ClassLoader class are sufficient. With C++ I guess I would have to excite some C++ compiler through a system call so that it generates a .dll (or .so) then I would have to have it loaded to memory and interface it to my program. It could even get messier if I tried to recompile it when the network changes as then I would have to unload the dll and rebuild it. If you had an easier way in mind I would be so glad to hear.

  • FORTE M2 - NT partition compilation question

    Microsoft (R) 32-Bit Incremental Linker Version 5.00.7022
    Copyright (C) Microsoft Corp 1992-1997. All rights reserved.
    c:\forte/install/lib/qqDB.lib : fatal error LNK1106: invalid file or disk
    cannot seek to 0x38dff853
    make[2]: *** [all] Error 1
    Any suggestion ? (knowing I got 300 Mo left on drive)
    1) Can that offset be translated in bytes ?
    2) Does this rely on Oracle Client installation (DB) ?
    Thanks,
    j-paul gabrielli
    sema DTS

    Thanks for the info - installed.
    Btw, another point:
    can I tell Microsoft that I really like their
    installation paths ?
    rem
    rem Root of Visual Developer Studio Common files.
    set VSCommonDir=C:\PROGRA~1\MI017E~1\Common
    rem
    rem Root of Visual Developer Studio installed files.
    rem
    set MSDevDir=C:\PROGRA~1\MI017E~1\Common\msdev98
    I fear that I cannot consider this as something portable :-/
    j-paul
    -----Message d'origine-----
    De: Adamek, Zenon [mailto:ZAdamekpurolator.com]
    Date: mardi 30 mai 2000 15:39
    À: 'Jean-Paul.Gabriellisema.fr'
    Cc: kamranaminyahoo.com
    Objet: RE: (forte-users) FORTE M2 - NT partition compilation question
    Hi
    You are using the wrong version (5.0) of MSVC++. Forte version M requires
    the MSVC++ 6.0 compiler (Linker Version 6.00). See technote 12083.
    Zenon Adamek
    Purolator
    -----Original Message-----
    From: Jean-Paul Gabrielli [SMTP:Jean-Paul.Gabriellisema.fr]
    Sent: Tuesday, May 30, 2000 9:34 AM
    To: Forte User Group
    Subject: (forte-users) FORTE M2 - NT partition compilation question
    Microsoft (R) 32-Bit Incremental Linker Version 5.00.7022
    Copyright (C) Microsoft Corp 1992-1997. All rights reserved.
    c:\forte/install/lib/qqDB.lib : fatal error LNK1106: invalidfile or disk
    cannot seek to 0x38dff853
    make[2]: *** [all] Error 1
    Any suggestion ? (knowing I got 300 Mo left on drive)
    1) Can that offset be translated in bytes ?
    2) Does this rely on Oracle Client installation (DB) ?
    Thanks,
    j-paul gabrielli
    sema DTS
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe,send in a new
    email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com--
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com

  • Sigh. This is wearing me out. compiler question

    I am not really a newbie to java technology but I seem to have a compiler question. My old compiler use to compile my codes. But a compiler I downloaded from your site dosent seem to work. Now there is a possibility that I downloaded a older version but I need someone to check this.
    Problem? My compiler will not comply with the websites. It seems that when I go to test my applet on a website it says not found. Now bear in mind I am testing on my hard drive but they are both in the same folder (Applet .class, .html file) Heres something that may be the deciding factor. My compiler version is 1.1.8
    See any problem that I can fix in this?

    public class Anotherapplet extends Applet {
    public void paint(Graphics g) {
    g.drawString("Hello world!", 50, 25);
    More problems. It says that "Anotherapplet" should not be defined in "filename.java"
    What am I doing wrong now?

  • Twu compile questions

    Hi,
    There is two questions:
    1)when I tried to compile the java client, I got this error message:
    UnivBApplet.java:11: package org.omg does not exist
    import org.omg.*;
    ^
    1 error
    NMAKE : fatal error U1077: 'javac' : return code '0x1'
    Stop.
    I know that I must set the classpath variable and I have set this:
    C:\bea\tuxedo8.0\udataobj\jolt;C:\bea\tuxedo8.0\udataobj\java\jdk
    Anything I ignored?
    2)In tuxedo8.0/samples/corba/university/basic, do this command: nmake -f makefileb.nt
    here is the error message:
    ..samplesdbsql.obj : error LNK2001: unresolved external symbol _sqlcxt
    univb_server.exe : fatal error LNK1120: 1 unresolved externals
    CMDTUX_CAT:4180: ERROR: can't execute cl /MD -Id:\Oracle\ora81\precomp\public
    -I
    C:\bea\tuxedo8.0\include -IC:\bea\tuxedo8.0\samples\corba\university\basic\..\ut
    ils -DWIN32 -DORACLE8I -I"%TUXDIR%"\include -Feunivb_server.exe BS-870.cpp C:\be
    a\tuxedo8.0\samples\corba\university\basic\..\utils\log.cpp C:\bea\tux
    edo8.0\samples\corba\university\basic\..\utils\log_server.cpp C:\bea\tuxedo8.
    0\samples\corba\university\basic\..\utils\unique_id.cpp C:\bea\tuxedo8.0\sam
    ples\corba\university\basic\..\utils\samplesdb.cpp C:\bea\tuxedo8.0\samples\
    corba\university\basic\..\utils\samplesdbsql.cpp C:\bea\tuxedo8.0\samples\corba
    \university\basic\..\utils\oradbconn.cpp univb_c.cpp univb_s.
    cpp univb_utils.cpp univb_i.cpp univbs.
    cpp -GX -GR "%TUXDIR%"\lib\tpfwinit.obj "%TUXDIR%"\lib\libenv.lib "%TUXDIR%"\
    lib\libomg.lib "%TUXDIR%"\lib\libnative.lib "%TUXDIR%"\lib\liborb.lib "%TUXDI
    R%"\lib\liborbpoa.lib "%TUXDIR%"\lib\libtmib.lib "%TUXDIR%"\lib\libicbgp.lib
    "%TUXDIR%"\lib\libtux.lib "%TUXDIR%"\lib\libbuft.lib %ORACLE_HOME%\RDBMS\XA\or
    axa8.lib "%TUXDIR%"\lib\libfml.lib "%TUXDIR%"\lib\libfml32.lib "%TUXDIR%"\lib\li
    bengine.lib wsock32.lib kernel32.lib advapi32.lib user32.lib gdi32.lib comdlg32
    .lib winspool.lib -link -implib:BS-870.lib
    NMAKE : fatal error U1077: 'buildobjserver' : return code '0x2'
    Stop.
    What happened?
    Thanks,
    George

    George Lin wrote:
    Hi,
    There is two questions:
    1)when I tried to compile the java client, I got this error message:
    UnivBApplet.java:11: package org.omg does not exist
    import org.omg.*;
    ^
    1 error
    NMAKE : fatal error U1077: 'javac' : return code '0x1'
    Stop.
    I know that I must set the classpath variable and I have set this:
    C:\bea\tuxedo8.0\udataobj\jolt;C:\bea\tuxedo8.0\udataobj\java\jdk
    Anything I ignored?Yes, the directories specified above do not contain classfiles, they contain jar files so
    you need to specify the jar files explicitly in the classpath...
    2)In tuxedo8.0/samples/corba/university/basic, do this command: nmake -f makefileb.nt
    here is the error message:
    ..samplesdbsql.obj : error LNK2001: unresolved external symbol _sqlcxt
    univb_server.exe : fatal error LNK1120: 1 unresolved externals
    CMDTUX_CAT:4180: ERROR: can't execute cl /MD -Id:\Oracle\ora81\precomp\public
    -I
    C:\bea\tuxedo8.0\include -IC:\bea\tuxedo8.0\samples\corba\university\basic\..\ut
    ils -DWIN32 -DORACLE8I -I"%TUXDIR%"\include -Feunivb_server.exe BS-870.cpp C:\be
    a\tuxedo8.0\samples\corba\university\basic\..\utils\log.cpp C:\bea\tux
    edo8.0\samples\corba\university\basic\..\utils\log_server.cpp C:\bea\tuxedo8.
    0\samples\corba\university\basic\..\utils\unique_id.cpp C:\bea\tuxedo8.0\sam
    ples\corba\university\basic\..\utils\samplesdb.cpp C:\bea\tuxedo8.0\samples\
    corba\university\basic\..\utils\samplesdbsql.cpp C:\bea\tuxedo8.0\samples\corba
    \university\basic\..\utils\oradbconn.cpp univb_c.cpp univb_s.
    cpp univb_utils.cpp univb_i.cpp univbs.
    cpp -GX -GR "%TUXDIR%"\lib\tpfwinit.obj "%TUXDIR%"\lib\libenv.lib "%TUXDIR%"\
    lib\libomg.lib "%TUXDIR%"\lib\libnative.lib "%TUXDIR%"\lib\liborb.lib "%TUXDI
    R%"\lib\liborbpoa.lib "%TUXDIR%"\lib\libtmib.lib "%TUXDIR%"\lib\libicbgp.lib
    "%TUXDIR%"\lib\libtux.lib "%TUXDIR%"\lib\libbuft.lib %ORACLE_HOME%\RDBMS\XA\or
    axa8.lib "%TUXDIR%"\lib\libfml.lib "%TUXDIR%"\lib\libfml32.lib "%TUXDIR%"\lib\li
    bengine.lib wsock32.lib kernel32.lib advapi32.lib user32.lib gdi32.lib comdlg32
    lib winspool.lib -link -implib:BS-870.lib
    NMAKE : fatal error U1077: 'buildobjserver' : return code '0x2'
    Stop.
    What happened?This looks suspiciously like a common problem that has been plaguing Tuxedo users for
    years. The problem is that Tuxedo supplies an undocumented database with the product
    that has some include files (and libraries) that conflict with other RDBMS products. The
    best thing to do is to rename the following files so that they do not get involved in
    your compiles and cause you problems:
    $TUXDIR/include/sqlca.h
    $TUXDIR/include/sqlcode.h
    $TUXDIR/include/sqlda.h
    The following files may or may not cause problems on Windows platforms depending on the
    RDBMS being used:
    $TUXDIR/lib/libsql.lib (on non-windows platforms, the extension is different)
    $TUXDIR/bin/libsql.dll (does not exist on non-windows platforms)
    Hope this helps,
    Robert

  • Runtime Licensing Question

    I apologize if this is not the right forum to ask this kind of question. I have searched the forum about licensing but the only hit I got was related EDW.
    For a government agency, we are thinking about using OWB to design our mappings on a 9i development instance and deploying the runtime environment (along with the pl/sql packages generated for these mappings) on multiple schemas on different databases (currently 8.1.7) on different servers.
    We would like to know what licenses are needed to allow this model? Is having a 9iDS license good enough, or do we need to buy OWB license separately? What about the runtime scenario?
    best regards,

    Thanks a bunch Shauna. Since we already have iDS and enterprise licenses, it sounds like we can deploy these runtimes without any additional cost.
    I have also placed calls to other people in our organization to talk with our account manager(s) to avoid any surprises down the road.
    Thanks again for your time.
    PS: I think it is great that you folks are constantly monitoring these forums. That's a great service to us. Appreciated!

  • Sorting/Compilation question

    I've looked through previous posts on this topic and don't see one addressed to this specific question: Why does iTunes (I've got 7.0.2) assign music to the Compliations folder that really isn't a compilation?
    I've been trying to build separate libraries of music -- one of aac files, for the iPod, and one of aiff files, for playing music through the computer -- and iTunes seems to make this a difficult task. Case in point: Pink Floyd's Ummagumma, a 2-disc release -- iTunes assigns disc 1 to iTunes Music > Pink Floyd > Ummagumma, but sticks disc 2 into iTunes Music > Compilations > Ummagumma.
    It's a rip of a CD I own, and imported as aiff and then converted to aac. I used the latter to load on to the iPod, but kept the larger files because I can hear the difference between compressed and non-compressed music in my home stereo. But come to look at how these are filed, I've got nearly three dozen albums under "Compilations," two-thirds of which are by a single artist or group. I can understand albums that would feature multiple artists, but why does iTunes separate out the others?
    Tom
    PowerMac G5 dual 2.5GHz, 1.5GB; iBook G4 1.33GHz, 1GB   Mac OS X (10.4.8)   200GB&500GB LaCie FW HD, 16x LaCie LightScribe

    Zang! Exactly the solution for which I was searching. Thanks.
    Tom
    PowerMac G5 dual 2.5GHz, 1.5GB; iBook G4 1.33GHz, 1GB   Mac OS X (10.4.8)   200GB&500GB LaCie FW HD, 16x LaCie LightScribe

  • AutoVue for Agile PQM - Java Runtime Environment Question

    Greetings,
    An end user is attempting to view/open attachments within Agile Product Quality Management (PQM); we use Agile PQM 9.3.1.
    When clicking on an attachment file, a pop-up screen opens with a javascript alert, prompting the user with, "Please Install Java Runtime Environment." After clicking "OK", user is redirected to java download website. User downloads and installs the update.
    After rebooting the machine, we attempt to access the attachment file again within PQM and receive the same error message, "Please Install Java..."
    After installing the first java update, the user is now on the following java version:
    Java Plug-in 10.55.2.14
    Using JRE version 1.7.0_55-b14 Java HotSpot(TM) Client VM
    Do we need to install the second update to be able to view attachments within Agile PQM via AutoVue?
    I can't test the java updates myself because there are some legacy Oracle apps that I won't be able to support if I update my java.
    Thanks in advance,
    William

    You might want to post the question to the Agile forum
    The popup you see seems to be tied to Agile code itself and not AutoVue
    AutoVue will work on Java 7u55
    But you are running Agile, so you will need to make sure the rest of the apps are confirmed with 7u55
    You also need to review Java update guidelines, by default you will be always prompted to install the latest java update

  • Java compiling question

    Hi . I have one class file for an IRC client , the compilation works fine...
    javac -O <filename>.java
    jar cvf <filename>.jar <filename>.class
    jarsigner -keystore suresh.store <filename>.jar sureshcert
    But now I want to compile it so it would work with Microsoft VM too on my web browser . What tools should I use or what are the correct commands on compilation (I'm using Java 2 SDK 1.4.2_05)?

    Hi,
    This forum is exclusively for the Sun Java Studio Creator related discussions. Could you please post your question in the appropriate forum.
    http://forum.java.sun.com/forum.jspa?forumID=31
    Thanks,
    RK.

  • Compile question

    I got a few questions regarding compiling with Sun Studio.
    1) If I compile a application for a specific CPU architecture, how specific can I be, specify exact CPU or just CPU family or perhaps both?
    2) If I choose to compile for a specific CPU, could the application still be used on other CPU models but not get the same performance boost OR is the application totally locked for the specific CPU I compiled for?
    3) If it isn't possible to run a specific compilation on all CPUs of the same family, is there a way to boost the performance generic for all CPU types in the same family?
    Thanks,
    Nergal

    Because of the range of CPU architectures, there is no simple answer to your question. The detailed answers are in the C User's Guide chapter on compiler options:
    http://docs.sun.com/source/819-3688/cc_ops.app.html
    Refer especially to the -xarch, -xtarget, and -xchip options, as well as related options like -xcache.
    You can download a pdf version of the C Users Guide here:
    http://docs.sun.com/app/docs/coll/771.7
    By default, the compilers generate code for a 32-bit generic architecture that will run on all non-obsolete systems in that family (sparc or x86). If you add -xarch, -xtarget, or -xchip options, you narrow the range of systems that will be able to run the code.
    For example, if you select -xarch=v8plusa, the resulting code wil run on sparc v8plusa, b, and c archtiectures, but not on v8 or v8plus. Similarly, if you specify SSE or SSE2 instruction sets for x86, the code will run only on systems that support those instructions. In addition, the SSE family of extensions is supported only on Solaris 9 update 6 and later.
    Except forf sparc T1 ("Niagara"), the sparc architectures are ordered linearly. Code compiled for an earlier ("lower") architecture will run on all later architectures, but not as fast as code compiled for the later achitecture. (T1 is an exception, being more like UltraSparc II, although it was introduced after UltraSparc III.)
    The x86 family has no simple inter-relationships, unfortunately. Later x86 architectures sometime drop support for instructions that were present in earlier architectures. The generic instruction set will run on all x86 systems, but you have to pay closer attention when you tell the compiler to generate more specialized code.
    Finally, 32-bit code runs only on a 32-bit architecture (for example, a 64-bit chip in 32-bit mode), and 64-bit code runs only on a 64-bit architecture and OS. For both sparc and x86/x64, the instructions sets and other architectural details are different between 32-bit and 64-bit mode. You can't mix 32-bit and 64-bit code in the same program.

  • Crystal XI Runtime Installer Question

    Post Author: kgmiller
    CA Forum: .NET
    Question:
    Has anyone just created a VS2005 Setup Project that only includes the Crystal XI R2 2005 Merge Module and nothing else and had it install the Crystal Runtime?  Are there any issues I am not aware of with this approach?  Any information, experiences, suggestions would be appreciated.
    Background:
    I have a situation where I will need to install the Crystal XI R2 runtime on many PCs that will be accessing a centrally managed Windows application.  The application software and Crystal Report files are only installed on the server and the PCs access them via a shortcut to the server.  The runtime needs to be on the PCs as well as the server.  I would like to avoid using the Windows Installer .msi file that comes with the product, for installing the runtime on the PCs, as it requires that the CD Key be entered during the install.  I would rather use the Merge Module where I can embed the CD Key creating a VS2005 Setup Project process.

    Hello,
    please also see this link as we have documentation how the different deployment techniques actually work:
    https://boc.sdn.sap.com/dotnet/documents

  • Compiling question responses in a survey question

    I am creating diagnostic tests for a psychiatric firm for
    presentation on their website. The tests use the Likert
    Scale-question slide as their template and allow the user to select
    from a scale usually with five options. I want to tabulate each of
    the individual responses and report them to the user. For instance
    the user is presented with this scale 1) Disagree, 2)Somewhat
    Disagree, 3)Neutral, 4)Somewhat Agree, 5)Agree. The test is
    completed and at the end they have selected Disagree-10 times,
    Somewhat Disagree-5 times, Neutral- 11 times and Agree- 15 times. I
    want to present each response group and the total number of
    responses for each group and be able to apply the response total to
    a score (i.e. 10 "Disagrees" selected means that the user is
    clinically depressed). Is this possible using Javascripting?

    Hi and welcome to the forums!
    Assuming you're wanting to do all this in Captivate, what
    you're asking would be very difficult to accomplish using the
    current version of the product.
    You can easily present the questions using Captivate, but
    compiling the answer into custom output is the really, really hard
    part.
    Some folks have been able to directly access the internal
    Flash variables Captivate uses to store user results, but the
    examples I've seen were in Flash and assume a moderate to high
    level of Flash knowledge. Also, those variables are undocumented so
    I can only guess at how folks are determining what they are.
    If you can figure out which variable(s) Captivate uses to
    store the user interaction data, you might be able to pull them out
    into the browser using the Flash GetVariable method in Javascript.
    Since you cannot access or modify Captivate objects using
    Javascript, you'd pretty much have to build the results output
    entirely in HTML or pass the information back in to a custom Flash
    animation inside the Captivate movie. Either way, you're facing a
    fairly difficult task.
    Sorry it's not better news, but Captivate is very much an
    "out of the box" product.
    A suggestion would be to submit a Feature Request to Adobe to
    offer some sort of documented API for accessing and controlling
    internal Captivate variables and objects, which would more easily
    allow you to create custom solutions like the one you're looking
    for.
    The Feature Request/Bug Submission form can be found here:
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform&product=5

  • Runtime.availableProcessors() question...

    So, i have a class that will take in Runnable objects, and send them to be processed when a processor opens.
    So far, i have been dealing with a single-processor model. However, now i want to upgrade my code to be able
    to handle multiple processors. These jobs will not step on each others toes, so they can run concurrently with
    no problems. My question is: when i run the Runtime.availableProcessors() method, what does that number it
    returns mean to me? Is it the number of processors available on the System in general, or the number of
    processors available at the time of the call, to accept jobs? So, if i have 5 processes in the queue, and i have a 2
    processor machine, i farm out the first 2 processes, and that method will return 0 until one of these processes
    finishes? something tells me its not that easy.
    any info given is very much appreciated. thanks

    BigDaddyLoveHandles wrote:
    But then it goes on:
    This value may change during a particular invocation of the virtual machine. How could that be? Hot slotting more processors?Could be. I regularly work on machines (IBM System i) where it's possible to reassign processors from one system to another. And these machines run Java. I would expect the method to always return 2 on the Windows box I'm typing this on, but I would expect it could return different numbers at different times on the i's. If I cared about the question I might be interested in what it returns when a non-integral number of processors is assigned to the machine, but anyway I don't have a system where I can mess about with those assignments.

  • Runtime Licence Question

    Hello,
    I have a question relates to runtime licence.
    I make a installer that includes "Labview runtime engine" and "NI-VISA runtime" with my application.
    If I want to sell this installer to my customer, do I need to get any license else?

    The same question was asked earlier today.
    http://forums.ni.com/t5/LabVIEW/Executable-License-Documentation/td-p/2812164

Maybe you are looking for