Invoking JVM + GUI components from C/C++

My C/C++ program does the following:
1. Create JVM using : JNI_CreateJavaVM(...);
2. Find the class using : jclass cls = env->FindClass(loadClass);
3. find the method using : jmethodID mid = env->GetStaticMethodID(...);
4. Invoke a method using : result = env->CallStaticIntMethod(...);
Now all of this works and does mostly what I expect. The problem is that it never returns. The invoked java method creates a GUI containing various buttons. If the cancel button on the GUI does a System.exit(0), then the whole process, including my C/C++ program terminates. NOT what I want!. I assume that although the static method has terminated (create the GUI and make it visible), the GUI threads are still active. If I change the cancel button to call setVisible(false) and dispose(), the dialog disapperars, but the java method never return to the native code.
So, what is the process I could use? Essentially, this code is attemptng to use Java as the device independent GUI for some exsting code.
Thanks

If the GUI is "disposed", then what is it you want the C code to do?
If it is just cleanup, then an alternative would be to create a callback routine in C, and call it from java.

Similar Messages

  • GUI components not clearing from JDialog closing

    Greetings,
    I have developed an application which works on several different computers with several different JVMs, but which does not operate as anticipated on my (new) tablet PC. It leaves GUI components on the main JFrame from various Jdialog boxes (after closing them) that I throw at the user when the program starts.
    I also have a username/password prompt at the beginning which is another JFrame that doesn't appear correctly. The input areas do not appear with a white background and the Username and Password JLabels have echoed themselves into that area.
    I'm guessing this is Windows XP, Tablet Edition issue. I'd like to know if anyone else has experienced anything similar?
    FYI, this programs works quite well on Windows 98, Windows XP Home and Professtional, Windows 2000, and Windows ME.
    Any help would be most appreciated.
    Regards

    Hi all,
    I am trying to develop a Java application on the Tablet PC. I am new to this platform and could not find much information about Java related Tablet PC development .So I am posting this question here
    Details
    I have developed a Swing Application in Java (J2SDK 1.4.2) for a Client, which currently runs on Windows XP on the Standard Laptop. The application uses the following
    1) Menus
    2) Panels
    3) Dialogs
    It consists of an entry form, which is saved as an XML file on the user's computer. Also it uses an Access Database.
    The other thing that the application uses is a Signature Capture Device to capture a user's signature
    I would like to move this application to the Tablet PC.
    I have the following questions
    1) What SDK do I use for the Tablet PC? Also what version of Java web start and Run time?
    2) What kind of changes do I need to make in my application?
    3) Can I make use of the "Ink" feature, which is provided with a Tablet PC in Java?
    4) Where can I find user samples if any for Java Tablet PC development?
    BTW I am using Toshiba Prot�g� 3500 for my project.
    Thanks,
    Raja

  • Accessing EJB components from a Remote Client

    Hi,
    When an web component (Servlet/JSP/Java appl.) need to invoke an business method from an EJB, it first lookup for the registered name from the Application server and obtain the remote reference i.e. the EJB Remote interface. To do this, the client must have got the client-jar file containing the stub. Now, if in a distributed environment, my client is in a different machine and need to access the J2EE server across network, what would be the scenereo.
    Is it so, for every EJB the client need to call, it must have got the client-jar file in it's local classpath ? this seems to be not at all feasible.
    Is it so, the client loads the Stub acroos the network while obtaining the remote reference ?
    Please inform me, what actually happens when a client invokes a EJB call deployed in any application server, across the network !!!
    Regards,
    Kaustuv Bhattacharya

    Greetings,
    Hi,
    When an web component (Servlet/JSP/Java appl.) need to
    invoke an business method from an EJB, it first lookup
    for the registered name from the Application server
    and obtain the remote reference i.e. the EJB Remote
    interface. To do this, the client must have got the
    client-jar file containing the stub. Now, if in aFor web components running in the same application context, the client-jar is not required - the server-jar also contains the necessary stubs. However, for application clients, the client-jar is required...
    distributed environment, my client is in a different
    machine and need to access the J2EE server across
    network, what would be the scenereo.The client-jar must be distributed with your application, or accessible from a shared network resource, either way...
    Is it so, for every EJB the client need to call, it
    must have got the client-jar file in it's local
    classpath? this seems to be not at all feasible.Yes, the client-jar must be included in the client's classpath... Why isn't it feasible? The client-jar(s) can easily be distributed with your application. The necessity to include them in the application's CLASSPATH does not necessitate their inclusion into the client-machine's CLASSPATH. Simply include the jar(s) as part of the JVM's -cp option.
    Is it so, the client loads the Stub acroos the network
    while obtaining the remote reference?A copy of the remote interface's stub file is included for casting purposes. However, a copy of the stub containing the correct communication parameters (such as TCP/IP port number, reference ID, etc. per vendor implementation...), for the remote reference does get downloaded.
    Please inform me, what actually happens when a client
    invokes a EJB call deployed in any application server,
    across the network !!!The exact details are vendor specific and depends on the actual protocol in use by the stub-layer. However, the general behaviour is in-line with RMI(-IIOP) communication.
    Regards,
    Kaustuv BhattacharyaRegards,
    Tony "Vee Schade" Cook

  • Event handling in custom Non-GUI components

    I have a class which needs to fire events to outside. These events maybe captured by several objects in outside world. How can I achieve this? In so many places I read, they always refer to AWT and Swing whereas my objects don't have any dependency to GUI.
    I simply need to fire an event from an object, and capture that event from other objects by registering event handlers.
    I have experience in .Net programming with Events and Delegates (function pointers), but cannot find something like that in Java. All it offers is various kinds of GUI related Listeners where I can't find a proper help resource using them in Non-GUI components.

    ravinsp wrote:
    I have a class which needs to fire events to outside. These events maybe captured by several objects in outside world. How can I achieve this? In so many places I read, they always refer to AWT and Swing whereas my objects don't have any dependency to GUI.
    I simply need to fire an event from an object, and capture that event from other objects by registering event handlers.
    I have experience in .Net programming with Events and Delegates (function pointers), but cannot find something like that in Java. All it offers is various kinds of GUI related Listeners where I can't find a proper help resource using them in Non-GUI components.If you want to make your own Listener make your Listener. Create an event class that encapsulates the event as you want, create a listener interface that has a method like handleMyEvent(MyEvent me) and then add addMyEventListener, removeMyEventListener methods to your original class. Add a List<MyEvent> to your original class and add the listeners to it and then when events happen
    MyEvent someEvent = new MyEvent();
    for(MyEventListener mel : eventlisteners)
       mel.handleMyEvent(someEvent);

  • SAPgui.exe is running even after closing the GUI components

    Hello All,
    Even after closing the SAP GUI components like Bex, WAD or RSA1 etc... i am able to see these processes are running under the Task Manager--> Processes....
    even if i try to restart the system, error messages are occuring...saying that SAP is still opend...
    Why it is happening, any ideas?
    Thanks,
    Ravi

    Hi Dirk,
    Thanks for your infomation. Infact, apart from this problem, i have the problem with saving the webtemplate. As it is taking much time to save a template after modifications, i had to terminate the wad process. It seems above 2 problems are related....any ideas?
    Thanks
    ravi
    Message was edited by: Ravi Pasumarty

  • Customer gui components needed?

    I require to build a program with which allows the user to add representations of objects onto the main GUI by adding a seperate square for each object. each square should be capable of being moved, resized, deleted as well as have text displayed in it, and another object associated with it (but I'm currently just dealing with the GUI side of things). Each square will also need to be connected to others by means of an arrow from one square to another. Any suggestions as to where to start as there does not seem to be any appropriate widgets provided by java for this and I am having trouble finding stuff on the net about it. Will creating my own custom GUI components be the best option? If so any tips on how to do this?
    Regards

    Hello Ravi,
    Create a Variable for 0CALMONTH, and use this code,
    ' Declare this in the top
    data : v_startmon(6) type n,
    v_endmon(6) type n,
    ' Include this in the case statement
    when 'VarName'.
    ' Step 2 will execute after the user Input
    if i_step = 2.
    v_year = sy-datum(4).
    v_mon = sy-datum+4(2) - 1.
    ' If the month is Jan
    IF v_mon = '00'.
    CONCATENATE v_year '01' INTO v_startmon.
    CONCATENATE v_year '01' INTO v_endmon.
    ELSE.
    CONCATENATE v_year '01' INTO v_startmon.
    CONCATENATE v_year v_mon INTO v_endmon.
    EndIF.
    clear l_s_range.
    l_s_range-low = v_startmon.
    l_s_range-high = v_endmon.
    l_s_range-sign = 'I'.
    l_s_range-opt = 'BT'.
    append l_s_range to e_t_range.
    Endif.
    Please see this for
    [User Exits in SAP BW|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/23f2f094-0501-0010-b29b-c5605dbdaa45]
    [User Exit Examples|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6378ef94-0501-0010-19a5-972687ddc9ef]
    Also see this
    [Dependencies for Variables of Type Customer Exit |http://help.sap.com/saphelp_nw04/helpdata/en/1d/ca10d858c2e949ba4a152c44f8128a/content.htm]
    Thanks
    Chandran
    Edited by: Chandran Ganesan on Mar 17, 2008 1:57 PM

  • Flyweight Pattern use with multiple GUI components

    Hi,
    I am creating a simple application and I would like your advice on wether I should use the flyweight pattern or not.
    My application is essentially a GUI front to a repository of small images. The GUI (in its simplest form) is a single window that will display all the images with their names in a clickable thumbnail format. The user will be able to select an thumbnail icon, drag it and move it around pretty much like the icons on your computer desktop.
    The easiest way to do that is probably to load each image and its name into a JLabel, add it in a JFrame and write just few lines of code (say by extending the JLabel class) to handle mouse pressed/dragged events in order to move the label around. The rest will be taken care of by the swing functinality (e.g. painting etc).
    However, I am considering using the flyweight pattern for efficiency but I am not sure if it is appropriate. So far I have seen simplistic examples of its use (apart from JTree) where the pattern is used to paint dozens of lines on the screen or the borders of components. But what happens if instead of lines or borders the objects in question are interactive GUI components such as my thumbnails? how does the flyweight pattern work in this case?
    For example if I create just a single JLabel and use it to paint all my icons that's great! but what happens with mouse events? what happens when I want to drag a thumbnail over another one and how the partial repainting of the thumbnail below should be handled?
    Am I missing something here, or in order to implement the flyiweight pattern in this case I will have to write endless lines of code to replicate the functionality that swing arleady provides in each JComponent? (e.g. targetting of mouse events, repainting etc)
    Cheers,
    Kyri

    I don't think Flyweight applies, because you really don't want to share any UI component that generates events unless the response is the same for all of them.
    If you read Flyweight, I think it was intended for things like caching the first 128 Integers, etc. - think finite, countable, immutable things. I don't think UI elements apply.
    %

  • Save GUI components in a XML format

    I am looking for a technoology that can help to create a my own file format using java. That mean currently im working with implementing a mind mapping tool (like mindjet) which will help to do basic mind mapping actions like add, edit, delete topics.
    But I have faced for a ig problem when im saving a created map. because it should save as a new file format and should be able to re-open for editing.
    What I planned is to retrive the GUI component's(elements of the map) properties from the map and write those values to the XML file(using XML DOM or SAX). Then read those saved values and create the GUI components under retrieved data.
    what I want to know is that. Is my approach is correct? or is there any better solution for this matter?
    please clarify me and I would really appreciate your help?
    Regards
    Lakshitha Ranasinghe

    You presumably have some state, in memory, that you want to persist. From your post, though I must confess that the terms you use are not really clear in terms of what type of data you actually want to say, my guess is that you have some graph of objects in memory that you have parsed that you want to serialize and persist and then later deserialize and restore for reuse in a subsequent execution of your program.
    If yes, then your goal is really simple: how do I save the state of my application and then restore it?
    Go to the filesystem: store as a properties file (key-value pairs), Java's default serialization, XML or a totally custom format
    Go do the database: map your object to a proper database table and column (via JDBC or an O/R mapper ala Hibernate), or store what you would have stored in the filesystem in a databaseXML is a valid option. So is a simple properties file. It depends on your requirements. If you are reading from and writing to a Java application, and frequent versioning is not an issue, then Java's default serialization could be a possibility. Going to the database would be the 'enterprise' solution, but requires testing and the successful functioning and communication between two technologies and machines. It depends on your requirements.
    - Saish

  • [SOLVED] Slow Desktop GUI components

    Arch Linux 64
    i5 -2500k  / 8GB Ram /  Nvidia with the closed source drivers
    OpenBox
    LXPanel
    compton-git (from AUR)
    I am running into a strange recurring problem for some time now.
    Even though running and launching applications is fast, various GUI components of individual apps are lagging.
    For example moving through the preferences tabs of Pidgin, or preferences tabs of firefox, or changing between open tabs in Firefox( does not happen in Chrome) or generally using the GUI dialogs of certain applications might take 2-3 seconds from the time I clicked to the gui component to the time the change occurs (for example changing from one preference tab to another).
    I do not have any performance issues generally in the system, except those gui components that are painfully slow.
    Things i have tried so far:
    -Initially i thought it was only manifesting in firefox so I reseted the profile but that did not improve the situation.
    -I thought it might have to do with GTK so I deleted the .gtk-bookmarks from home dir (in order to be recreated) but that did not improve the situation. I still believe it might have something to do with GTK.
    any suggestions are greatly appreciated.
    Last edited by mastorak (2014-05-19 19:56:16)

    After more experimentation I am now fairly certain that the issue is caused by compton.
    I looked into the bugs reported for compton and apparently there are some issues caused by it when used with the nvidia driver having set the backend option to "glx".
    With the following compton config it seems to be working correctly with no slowness.
    backend = "xr_glx_hybrid"
    vsync = "opengl-swc"
    glx-no-rebind-pixmap = true
    glx-no-stencil = true
    paint-on-overlay = true
    unredir-if-possible = true
    Note that the backend "xr_glx_hybrid" config option is only available(for now) from the "compton-git" package and not "compton" package.
    I do not mark it yet as "Solved" as I want to use it for sometime to be certain.
    edit:for syntax errors
    Last edited by mastorak (2014-05-19 08:38:28)

  • Calling GUI Scripting from ABAP program

    Is it possible to call GUI Scripting from ABAP and thus to use GUI Scripting as an alternative to CALL TRANSACTION?
    Is the class CL_JAVA_SCRIPT suitable to access GUI Scripting engine? Accessing ABAP data object would work as well in this case as i think. What SAP Logon and WAS releases are required? Is the 6.20 release sufficient for this case?
    I would appreciate if somebody could post an example.

    Hi,
    CL_JAVA_SCRIPT has nothing to do with SAPGUI Scripting.
    Calling SAPGUI Scripting API from ABAP could be possible for programmes experienced with OLE automation calls from ABAP coding.
    The hardest thing will be, to access the scripting engine handle as an entry point. Once you have a handle in your abap session, any api function can be invoked.
    Best regards
    Jens
    BTW: SAP testtool eCATT does call SAPGUI-Scripting from ABAP.

  • Initializing JDialogs or Other GUI Components within SwingWorker

    Hello Every one,
    I have been using SwingWorker class heavily in my application and recently I noticed that If I click on a button twice or thrice the third or 4th it takes more time to perform the action in which SwingWorker is being used. So I started reading more about SwingWorker and after reading number of articles and posts on this forum I believe I am not using SwingWorker correctly. But, I am not still sure ( or may be I am afriad or I am not ready to change my code in so many files and so many locations :(
    So I thought to ask some gurus following questions, in this forum before I proceeed with the code refactoring.
    Question 1:* I am performing GUI operations in doInBackground() is it ok to perform swing operations or create swing components in this method of SwingWorker?
    Example Code :
    jbtnModifyUser Action Event
    private void jbtnModifyUserActionPerformed(java.awt.event.ActionEvent evt) {
    setButtonsState(false);
    final SwingWorker worker = new SwingWorker() {
    protected Object doInBackground() {
    try {
    openUserModifierDialog(SELECTED_PROFILE);
    } catch (Exception ex) {
    ex.printStackTrace();
    } finally {
    return null;
    public void done()
    setButtonsState(true);
    worker.execute();
    }Open Dialog Method wich I call from several other Swing Components Action performed event
    private void openUserModifierDialog(UserProfile profile) throws ServerException {
    UserModifierDialog modifier = new UserModifierDialog(_frame, true, profile);
    modifier.pack();
    modifier.setVisible(true);
    if (modifier.isModified()) {
    resetFields();
    populateUserTable();
    } If I click 3 to 4 times same button the 4th or 5th time the dialog opens after soem delay like 10 seconds. But in first two three click it opens quickly like in 2 to 3 seconds. Is it due to the fact that I am perfoming Swing GUI operations in doInBackgroundMethod()?
    Question 2: Should I use EventQueue.invokeLater() but as far as I have learned from the articles, the actionPerformed events already run on EDT.
    Question 3:_ Each dialog has multiple swing components like combo boxes, tables, tress which it populates after fetching data from the Database in its constructor. It takes like 1 to 2 seconds to bring data and initialize all swing components. Once the Dialog is initialized in the constructor I call my own function to set the existing user details ( As shown below ).
    I need to set all the details before I show the Dialog to the user. To achieve this what is the best practice? Where should I use SwingWorker in current scenario? in Dialog's PostInitialize()? In Dialog's Constructor()? or in the Frame's openModifierDialog()?
    public UserModifierDialog(java.awt.Frame parent, boolean modal, UserProfile userprofile)
    throws ServerException {
    super(parent, modal);
    if (userprofile != null) {
    SELECTED_USER_PROFILE = userprofile;
    }else{
    //throw new Exception("Invalid user record. User profile cannot be null. ");
    initComponents();
    postInitialize(); // my function called to set the user details on the screen
    private void postInitialize() throws ServerException {
    _userManager = new UserManager();
    initializeAllPermissions();
    initializeUserGroups();
    setFields(SELECTED_USER_PROFILE);
    private void initializeUserGroups() throws ServerException {
    _jcbUserGroup.removeAllItems();
    _jcbUserGroup.setModel(new ArrayListModel(_userManager.getAllUserGroups ()));
    _jcbUserGroup.setSelectedIndex(0);
    private void setFields(Userprofile profile) throws ServerException{
    _jlblUserID.setText(profile.getUserid().toString());
    _jtfUserName.setText(profile.getUsername());
    _jtfFirstName.setText(profile.getFirstname());
    _jtfLastName.setText(profile.getLastname());
    _jtfPassword.setText(profile.getPassword());
    _jtfConfirmPassword.setText(profile.getPassword());
    _jtaDescription.setText(profile.getDescription());
    _jcbUserGroup.setSelectedItem(_userManager.getUserGroup(profile.getUserGroupID()));
    } Question 4: I noticed that if I use following code in my openModifierDialog function to execute the worker rather then its own execute method the dialog opens quickly each time.
    Is it good idea to use the following to execute a SwingWorker or I shouldn't as I may fall in some threading issues later on which I am not aware of?
    Thread t = new Thread(worker);
    t.start();Hope to hear some useful comments / answers to my queries.
    Thanks in advance.
    Regards

    Thanks for your prompt reply and answers to my queries.
    Well, I know there are enormous faults in this code. Thats why I am seeking guru's advice to clean the mess. Let me give you breif background of the code. The current code was written by some one else using old version of SwingWorker and I am just trying to clean the mess.
    All the JDialog or Swing Components intialization code was in construct() method of previous SwingWorker. Later on when the SwingWorker became the part of Java SE 6 all application code was refactored and the GUI components initialization was moved to the new function doInBackground().
    The sample code represents the current condition of the code. All I needed was a shortcut to clean the mess or to avoid changes at so many places. But it seems that there is no easy workout for the current situation and I have to change the entire application code. I have gone through the SwingWorker API and tutorial @ [http://java.sun.com/developer/technicalArticles/javase/swingworker] and I am doing following to clean this mess.
    Well the following code is proposed refactoring of the previous code. Hope to hear your comments on it.
    private void jbtnModifyUserActionPerformed(java.awt.event.ActionEvent evt) {
    try{
    openUserModifierDialog(SELECTED_PROFILE);
    } catch (Exception ex) {
    logger.error(ex);
    //show some message here
    } finally {
    private void openUserModifierDialog(UserProfile profile) throws ServerException {
    UserModifierDialog modifier = new UserModifierDialog(_frame, true, profile);
    modifier.pack();
    modifier.setVisible(true);
    if (modifier.isModified()) {
    resetFields();
    //UserModifierDialog Constructor
    public UserModifierDialog(java.awt.Frame parent, boolean modal, UserProfile userprofile)
    throws ServerException {
    super(parent, modal);
    if (userprofile != null) {
    SELECTED_USER_PROFILE = userprofile;
    } else {
    //throw new Exception("Invalid user record. User profile cannot be null. ");
    initComponents();
    postInitialize(); // My function called to set the user details on the screen
    private void postInitialize() {
    _userManager = new UserManager();
    setCursor(java.awt.Cursor.getPredefinedCursor(java.awt.Cursor.WAIT_CURSOR));
    final SwingWorker worker = new SwingWorker() {
    protected Object doInBackground() {
    try {
    return _userManager.getAllUserGroups(); //returns ArrayList of all user groups from database
    } catch (ServerException ex) {
    //Show Message here
    return null;
    protected void done() {
    try {
    if (get() != null) {
    _jcbUserGroup.setModel(new ArrayListModel((ArrayList) get()));
    _jcbUserGroup.setEditable(false);
    setFields(SELECTED_USER_PROFILE);
    else
    //show some error to user that data is empty
    } catch (InterruptedException ex) {
    //show message here
    } catch (ExecutionException ex) {
    //show message here
    } finally {
    setCursor(java.awt.Cursor.getPredefinedCursor(java.awt.Cursor.DEFAULT_CURSOR));
    worker.execute();
    private void setFields(Userprofile profile) throws ServerException {
    _jlblUserID.setText(profile.getUserid().toString());
    _jtfUserName.setText(profile.getUsername());
    _jtfFirstName.setText(profile.getFirstname());
    _jtfLastName.setText(profile.getLastname());
    _jtfPassword.setText(profile.getPassword());
    _jtfConfirmPassword.setText(profile.getPassword());
    _jtaDescription.setText(profile.getDescription());
    _jcbUserGroup.setSelectedItem(_userManager.getUserGroup(profile.getUserGroupID()));
    }In some places where data is way too huge I am going to use process and publish methods of SwingWorker.
    Now I have another question, how I can notify/throw any exceptions occured inside SwingWorker doInBackground method or done method to the function who executed SwingWorker. Currenlty I am catching the excpetions in the done method and showing a dialog box. But I want to throw it to the postInitialize method the method who created and executed the Worker. What is the best practice of handling exceptions in SwingWorker methods.
    Do you see any problems in proposed refactoring?
    Hope to hear your comments.
    Regards

  • Updating Swing components from a different class

    I would like to use the JTextArea component in a JFrame to display fast updating text from my application. My application is very simple. When the app launches the GUI is created then my application engine would start processing and displaying text data into the GUI. After reading about Thread safety when using Swing components I concluded it would not be a good idea for my app engine class to update the JTextArea class directly using methods such as .append(String).
    I would be grateful for any suggestions on how I should approach updating Swing components from different classes.
    Many Thanks in advance Sean

    Hi
    Why don't you just implement a basic callback method?
    To do this the right way you should probably define a simple Interface that has a public method like updateProcessText(String s). Your swing class then implements this interface, basically forcing it to provide the public method you defined (this is no different than implementing ActionListener, which forces you to define actionPerformed). Secondly modify your processing class, so that it take's a class that implements the interface you just created, as one of the arguments in it's constructor. Lastly assign the argument from your construnctor to a private var - this will enable your processing class to have a handle to your swing class and update it as it pleases.
    This might sound very complex, but it's really simple once you've done it once.

  • QST: Business Components from AIA Enterprise Business Service

    Hi,
    I'm new in ADF context. Ordinary I work with Oracle SOA Suite and AIA. We have a use case for customer with system integration over AIA. Now we will build a ADF Web Application and I found the "Business Components from AIA EBS".
    - Will this wizard work with AIA 3.0 aka 11g?
    - How to use this wizard? I save WSDL of EBS to local directory, but can't continue the wizard.
    - Is it more compliant to use "normal" was of ADF and invoke Requester ABCS?
    Bye
    Marcel

    Hello Robert,
    I know this thread is quite old but I'd like to know whether anything has changed since then regarding the AIA Composite Application Framework extension? I've installed the extension (v 2.4) from a local zip archive (as installing through the update center failed - said it was installed but there was no new options under the Business tier) in Jdeveloper 11.1.1.1.5, had to change extension's paths to modules but still a wizard doesn't want to go to the next step, no error popup, no error in logs, nothing. Does it mean it's still not ready? According to the below site my environment fulfill all the requirements:
    http://www.oracle.com/ocom/groups/public/@otn/documents/webcontent/131167.xml
    What is the preferred approach for an UI integration then? A requester ABCS seems to be an overhead and misconception to me but maybe I'm wrong :)
    Thanks,
    Piotr

  • Find user classpath while invoking JVM

    Hello,
    I am invoking JVM in my C+ dll that will query Oracle using java classes. VC++ 6, JDK1.4.
    I set the "-Djava.class.path=.;" and it finds the my class. But the problem is, it doesnt find the Oracle classes that I have put in classpath environment variable. (from command line the program runs fine)When I copy the whole classpath from the system variable in to my program, it works fine too.
    But we need to make an install and can not hard code the class path in my program. How do I get user classpath that is in a system env. variable while invoking JVM?
    I am sure this question has been asked before but I couldnt find answer after a couple of hours of seraching.
    Thanks a lot .
    Pranav.

    As you have found, the JVM library itself doesn't use the CLASSPATH environment variable. Your C++ code needs to read the CLASSPATH environment variable and include its contents in the "-Djava.class.path=" option that you pass to the JVM. See JDK source file java.c for an example.
    However, users would probably prefer not setting CLASSPATH at all. It would be better if you could locate the Oracle classes at runtime based on something else like a registry value set by the Oracle installer, or by just being installed in a well-known location. If you bundle the Oracle classes with your app, then you have full control over where they get installed relative to your app.
    -slj-

  • JClass components from KLGroup

    Does it make sense to integrate these classes framerwork in a JDevelopper 3.1 project ?
    Is it a complementary or a concurrent framework ?
    KL propose JClass SwingSuite and JClass Field. Is it possible to easily integrate (link with) these classes with business components generate by JDeveloper 3.1 ?
    Do you know project with both JDeveloper 3.1 and KL Classes ?
    KL offer integration for JBuilder but not for JDevelopper 3.1. The installation wizard doesn't recognize JDeveloper 3.1 as a valid JBuilder platform. Do you know it is possible to integrate the KL classes into JDeveloper 3.1 ?
    Thanks

    Does it make sense to integrate these >>classes framerwork in a JDevelopper 3.1 >>project ?JDeveloper supports all types of JavaBeans.
    If you need any particular component / set of components from any vendor, you can install it onto JDeveloper's component palette (Tools | Configure Palette...).
    Is it a complementary or a concurrent >>framework ?The JClass components provide GUI controls -
    Not what we call a framework.
    Oracle Business Components for Java is an
    integrated XML & Java based framework for
    creating business applications. Business Components are meant for middle tier deployment and as such do not have any UI.
    The UI comes from the Business Components clients.
    As for is it "complementary or a concurrent",
    I would say possibly complimentary to the
    InfoSwing components, but definitely not
    at all related to Business Components.
    KL propose JClass SwingSuite and JClass Field. Is it possible to easily integrate (link with) these classes with business components generate by JDeveloper 3.1 ?Read Above.
    Business Components have NO UI.
    Clients of Business Components have the UI.
    JDeveloper provides wizards to create
    Thin client JSP based UIs and InfoSwing based UI's. You can code / design any UI you need using any GUI components you need.
    Do you know project with both JDeveloper >>3.1 and KL Classes ?I know some people use components from the KL Group, but no details.
    KL offer integration for JBuilder but not for JDevelopper 3.1. The installation wizard doesn't recognize JDeveloper 3.1 as a valid JBuilder platform. JDeveloper is NOT a JBuilder platform.
    Do you know it is possible to integrate the KL classes into JDeveloper 3.1 ?Yes, you can integrate any set of JavaBeans into JDeveloper by selecting the menu:
    Tools | Configure Palette...
    I am not sure what JClass install does, so there may be more steps required. Please request JDeveloper integration from the KL Group.
    I hope this helps,
    John - JDeveloper Team
    null

Maybe you are looking for

  • Acrobat 7 Pro run processor 100% on WinXP Pro SP3

    Recently, this Dell Inspiron notebook (WinXP Pro SP3, 1GB Ram, Pentium M processor) runs the processor 100% within 10 seconds of when Acrobat starts.  This is a relatively recent change in behavior of Acrobat. So I Unintalled Acrobat (which took an h

  • Message comming as alert  !!

    Hi I have a program unit in my form, I am using a cursor for inserting records in a table and displaying a message after each insert with " message (...)" inside the loop. the problem is that the message is comming as an alert for all the records ins

  • Import CVD

    Hi All, In case of import PO pricing procedure i defined the counterveiling duty,Basic Custom Duty & Additional custom duty. I want to take counterveiling duty & additional custom duty into separate account. How can i do this. I maintained separate t

  • 2nd time posting: Flashing JTabbed Pane?

    I'm trying to use a JTabbed Pane wherein tabs are created dynamically from the server. In order to alert the the user of the client software that a new tab has been created, I would like the top of the tab to flash or blink with a different color. an

  • [OSB] SOAP Message Body Deleted in Routing Process

    Hello Folks, I'm using Oracle Services Bus 11g and I have the following scenario: A Business Services that is a client of a WebService. This WebService has an operation that return in its Soap Message a field with special characters (an encripted pas