Creating a a deliverable Windows JClient Application

I'm interested in the "best practice" for packaging and delivering a JClient application as a product for a user who currently has no Java applications loaded. I understand that it can be deployed as an executable JAR file. However, what else is necessary? For instance, I assume I need to include the latest SDK and make sure my install program installs it too. Anything else?
Thanks!
Bob Russel

Bob,
Besides JRE, you would require the JDBC libraries and the BC4J runtime libraries for your
specific deployment configuration. The easiest way to find the dependent jar list is to
look at libraries used in your JClient project (Project settings dialog).
You may also want to consider using Java Web Start. JClient WebStart wizard can help you
get started. The advantage will be that your app can be made available on a web server
and your customer can download. Java WebStart 1.2 supports 'One Click' installation.
http://java.sun.com/products/javawebstart/1.2/docs/relnotes.html#autoinstall
However note that the app will run in Security sandbox like applets.
HTH,
Sathish.

Similar Messages

  • How to create a setup for window form application including the related sql database?

    i have created a simple window form application project that have only 2 form..
    1st one for login in which it'll check the userid n password from database.if both are correct then it will go to 2nd form.
    now i want this project to run in another computer.
    i created a setup file but its showing some error regarding the database instances connection..
    so if anyone can tell me in details how to create the setup file then it'll b a great help..
    thanx in advance..

    Hi,
    Consider the above scenario,I suggest you to use the SQL Server Compact+ ClickOnce Deployment, A Compact SQL database is a file that can be bundled with your application installation. Below is a link guiding you through the creation process of a SQL Compact
    database.
    http://technet.microsoft.com/en-us/library/ms173009.aspx
    The following link discusses setting up the necessary dependencies and prerequisites for SQL Server Compact. (Note, you will need to scroll to the section entitled Private File–Based Deployment.)
    http://msdn.microsoft.com/en-us/library/aa983326(v=VS.100).aspx
    A ClickOnce Deployment can help you publish your application attach compact SQL database into client machine.
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Why CreateNewFrame() returns as NULL after successful created 136 child frame window and trying to create 137th child frame window in MDI application

    I am working on MDI application which was developed in VC++ in VS 2012. When my application is launched, it will display a Tree. Under a tree there are 254 nodes. Basically
    these nodes data are read from Configuration xml file and loaded into the Tree. By double clicking on each node, first it will create object for document class ( By calling CreateNewDocument() method) after that member variables for that
    document class will be initialized and then it will create the new frame window (by calling
    CreateNewFrame(pDoc,NULL). New child frame window will show under Main window to the user.
    User able to see the data from child frame window.
    Similarly by double clicking on each node it will create another object for the same document class and new child frame window will be opened for that node. Each child frame window runs
    in different data and showed under the Main window.
    Existing requirement by double clicking on each node, node data shall show in separate child window and there is no requirement for all 254 child windows opened simultaneously.
    But current requirement is , all 254 child windows shall open simultaneously by double clicking on each node one by one.
    In debug mode I have tried double clicking on each node. I able to open up to 50 nodes. After 50th child windows are opened, I unable to access to the application
    (Unable to open further node data window since application is getting hanged).
    Each child window is having tree, multiple splitter window and some additional controls (static text, ...).
    Same I have tried in release mode, I able to open up to 136 child windows. After that the application fail to create the new frame window in VS 2012. i.e CreateNewFrame() return
    NULL after successful created 136 child frame window. Debug purpose I have added the code to retrieve last error code by calling GetLastError() method. I got the value as "0". By closing any existing child window then I able to open remaining nodes.
    At any point of time I can reach maximum of 136 child frame window that can be opened under Main window. Failing to open all 254 child frame window
    simultaneously,  currently I fail to meet the current requirement.
    current Requirement is all 254 child frame window are opened simultaneously. Please let me know what may be the reason fail to create new frame window after 136 frame window that are
    opened already. In Microsoft site, mentioned that there is no limitation for creating frame  window in MDI application. I have tried another sample MDI application having limited number of controls, in which I able to create "n"
    number of child frame windows. why not able to create more than 136 child frame window in my actual application?
    Is there any possibility by changing project settings allow me to create 254 child frame window??
    Code Snippet as below:
    CDiagBaseDoc * CDiagBaseMDocTemplate::OpenDiagView( ...)
         CDiagBaseDoc* pDoc = NULL;
        if (pDoc == NULL)
            pDoc = (CDiagBaseDoc*)CreateNewDocument();
        if ( pDoc )
           CFrameWnd* pFrame = NULL;
           if (bAlreadyOpen)
                  // If Child frame window already opened, then handling the code here.
         else
               pFrame = CreateNewFrame(pDoc, NULL);
               if (pFrame == NULL)
                  ASSERT(FALSE);
                  delete pDoc;       // explicit delete on error
                 pDoc = NULL;
              ASSERT_VALID(pFrame);
              if( pDoc != NULL ) //VS2012
                 if ( !pDoc->OnNewDocument() )
                    TRACE0("CDocument::OnNewDocument returned FALSE\n");
                    delete pDoc;       // explicit delete on error
                    pDoc = NULL;
                    pFrame->DestroyWindow();
                     pFrame = NULL;
           if (pFrame)
               InitialUpdateFrame(pFrame, pDoc);
               ShowWindow( pFrame->GetSafeHwnd(), SW_MAXIMIZE ); //when opening node for the 1st time, maximize it
    }<o:p></o:p>

    Hi MuruganK,
    Have you checked how much memory your application used? You could check it by Task Manager. Maybe your application reach Memory Limits for Windows.
    https://msdn.microsoft.com/en-us/library/windows/desktop/aa366778%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396
    Is it possible that there are some memory leaks in your application? It would better if you have made a simple sample to reproduce and narrow down this issue.
    Best regards,
    Shu
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Error While creating Domain offline in windows...

    I am trying to create a domain in windows using my scripts which i use in unix. But i am getting the following error. Here i am using Ant /build.xml/ and domain.properties( in this i pass the details) Please help....
    C:\scripts>setenv
    C:\scripts>set WEBLOGIC_HOME=C:\bea\wlserver_10.3
    C:\scripts>set BEA_HOME=C:\bea
    C:\scripts>set WORK_DIR=C:\wldomains
    C:\scripts>set DOMAIN_HOME=C:\wldomains
    C:\scripts>call "C:\bea\wlserver_10.3\server\bin\setWLSEnv.cmd"
    CLASSPATH=C:\bea\patch_wls1030\profiles\default\sys_manifest_classpath\weblogic_
    patch.jar;C:\bea\patch_cie660\profiles\default\sys_manifest_classpath\weblogic_p
    atch.jar;C:\bea\JROCKI~1\lib\tools.jar;C:\bea\WLSERV~1.3\server\lib\weblogic_sp.
    jar;C:\bea\WLSERV~1.3\server\lib\weblogic.jar;C:\bea\modules\features\weblogic.s
    erver.modules_10.3.0.0.jar;C:\bea\WLSERV~1.3\server\lib\webservices.jar;C:\bea\m
    odules\ORGAPA~1.5/lib/ant-all.jar;C:\bea\modules\NETSFA~1.0_1/lib/ant-contrib.ja
    r;.;C:\Program Files\QuickTime\QTSystem\QTJava.zip
    PATH=C:\bea\patch_wls1030\profiles\default\native;C:\bea\patch_cie660\profiles\d
    efault\native;C:\bea\WLSERV~1.3\server\native\win\32;C:\bea\WLSERV~1.3\server\bi
    n;C:\bea\modules\ORGAPA~1.5\bin;C:\bea\JROCKI~1\jre\bin;C:\bea\JROCKI~1\bin;C:\o
    racle\product\10.2.0\client_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\Syst
    em32\Wbem;C:\Program Files\Windows Imaging\;C:\Program Files\Perforce;C:\Program
    Files\QuickTime\QTSystem;c:\ant\bin;C:\bea\WLSERV~1.3\server\native\win\32\oci9
    20_8
    Your environment has been set.
    C:\scripts>ant clean
    Buildfile: build.xml
    identify-os:
    init:
    clean:
    [delete] Deleting directory C:\scripts\build
    BUILD SUCCESSFUL
    Total time: 1 second
    C:\scripts>ant setup-domain
    Buildfile: build.xml
    identify-os:
    init:
    [mkdir] Created dir: C:\scripts\build
    init-domain-env:
    setup-domain:
    identify-os:
    init:
    init-domain-env:
    config-domain:
    identify-os:
    init:
    init-domain-env:
    backup-domain:
    identify-os:
    init:
    init-domain-env:
    delete-domain:
    [echo] Deleting domain 'C:\wldomains\pdc2' ...
    [echo] Configuring WebLogic 10.3 domain (offline mode) ...
    identify-os:
    init:
    run-wlst-script:
    [echo] Running WLST script 'C:\scripts\wlst\offline\config-domain.py' ...
    [java] Initializing WebLogic Scripting Tool (WLST) ...
    [java] Welcome to WebLogic Server Administration Scripting Shell
    [java] Type help() for help on available commands
    [java] Loading configuration properties ...
    [java] [I] Reading the domain template ...
    [java] [I] Configuring the domain ...
    [java] [I] Configuring domain 'pdc2' ...
    [java] [I] Creating log mbean for 'Domain' : 'pdc2' ...
    [java] [I] Configuring the admin user ...
    [java] [I] Configuring admin user 'system' ...
    [java] [I] Configuring the admin server ...
    [java] [I] Configuring admin server 'myserver' ...
    [java] [I] Renaming server 'AdminServer' to 'myserver' ...
    [java] [I] Updating server 'myserver' ...
    [java] [I] Creating log mbean for 'Server' : 'myserver' ...
    [java] [I] Creating SSL for server 'myserver' ...
    [java] [I] Creating WebServer for server 'myserver' ...
    [java] [I] Creating WebServerLog mbean for 'WebServer' : 'myserver' ...
    [java] [I] Configuring machines ...
    [java] [I] Configuring clusters ...
    [java] [I] Configuring servers ...
    [java] [I] Configuring servers 'myserver' ...
    [java] [I] Configuring server 'myserver' ...
    [java] [I] Updating server 'myserver' ...
    [java] [I] Updating log mbean for 'Server' : 'myserver' ...
    [java] [I] Updating SSL for server 'myserver' ...
    [java] Error: setListenPort() failed. Do dumpStack() to see details.
    [java] [I] Updating WebServer for server 'myserver' ...
    [java] [I] Updating WebServerLog mbean for 'WebServer' : 'myserver' ...
    [java] [I] Configuring startup classes ...
    [java] [I] Configuring shutdown classes ...
    [java] [I] Configuring mail sessions ...
    [java] [I] Setting domain options ...
    [java] [I] Setting overwrite domain to 'true'
    [java] [I] Setting create start menu to 'false'
    [java] [I] Setting java home to 'C:/beajdk160_05'
    [java] [I] Setting server start mode to 'dev'
    [java] [I] Saving the domain configuration ...
    [java] Error: writeDomain() failed. Do dumpStack() to see details.
    [java] [I] Closing the domain template ...
    [java] [I] Reading the domain configuration ...
    [java] Error: readDomain() failed. Do dumpStack() to see details.
    [java] [I] Configuring JDBC ...
    [java] [I] Configuring JDBC system resources 'CPoolDS,EPoolDS,poswotDataSou
    rce,MainTxDataSource,AdditionalTxDataSource,PDC1PoolDS,urgentMessageDataStore,Us
    rFriendlyDescPoolDS' ...
    [java] [I] Configuring JDBC system resource 'CPoolDS' ...
    [java] Error: No domain or domain template has been read.
    [java] Problem invoking WLST - Traceback (innermost last):
    [java] File "C:\scripts\wlst\offline\config-domain.py", line 149, in ?
    [java] File "C:\scripts\Lib\script\offline\jdbc.py", line 35, in configJD
    BCSystemResources
    [java] File "C:\scripts\Lib\script\offline\jdbc.py", line 51, in configJD
    BCSystemResource
    [java] File "C:\scripts\Lib\script\offline\jdbc.py", line 97, in hasJDBCS
    ystemResource
    [java] File "C:\scripts\Lib\script\common\wlstutils.py", line 99, in chec
    kPath
    [java] TypeError: string member test needs char left operand
    BUILD FAILED
    C:\scripts\build.xml:20: The following error occurred while executing this line:
    C:\scripts\build.xml:431: The following error occurred while executing this line
    C:\scripts\build.xml:743: Java returned: 1
    Total time: 10 seconds

    Hai,
    After doing snapshot my application was created and even in fdm also i found error while creating application(hint:cache not found) but now everything is fine don't know what exactly the error may be but now i am facing 404 error while doing Assign Access control in shared services console what may be the reason did anyone experienced this error if so please provide me the solution.
    Edited by: 940022 on Jun 15, 2012 3:50 AM
    Edited by: 940022 on Jun 15, 2012 3:51 AM

  • HOw to create a Batch file for java application and whats the use of this ?

    HI,
    How to create a Batch file for java application ?
    And whats the use of creating batch file ?
    Thanks in advance

    First of all, you're OT.
    Second, you can find this everywhere in the net.
    If you got a manifest declaring main class (an classpath if needed), just create a file named whatever.bat, within same directory of jar file, containing:
    javaw -jar ./WhateverTheNameOfYourJarIs.jar %*By the way, assuming a Windows OS, you can just double click the jar file (no batch is needed).
    Otherwise use:
    javaw -cp listOfJarsAndDirectoriesSeparedBySemiColon country/company/application/package/className %*Where 'country/company/application/package/' just stands for a package path using '/' as separator instead of '.'
    Don't specify the .class extension.
    Javaw only works on Windows (you asked for batch, I assumed .BAT, no .sh), in Linux please use java.exe (path may be needed, Windows doesn't need it 'cause java's executables are copied to system32 folder in order to be always available, see PATH environment variable if you don't know what I'm talking about) and use ':' as classpath (cp) separator.
    The '%***' tail is there in order to pass all parameters, it only works on Windows, refer to your shell docs for other OSs (something like $* may work).
    This way you have a command you can call to launch your code (instead of opening NetBeans just to see your app working). You could schedule tasks on it or just call it in any command prompt (hope you know what it is 'cause there have been people in this very same forum with no clue about it, if not just hold the 'Windows button' and press 'R', then type 'cmd' and run it).
    Finally add dukes and give 'hem away.
    Bye.

  • I am not able to run a Windows Azure application

    I have a very strange issue.
    I am not able to run a windows azure application which has a WCF service and mschart in it. Following are the steps to reproduce the error:
    1) Create a new windowsazureapplication with a blank asp.net webrole
    2) Now add a new WCfService
    3) run to check it runs ok
    http://i.stack.imgur.com/1g6gW.png
    4) now in one of the pages include mschart, and open the design of the page to make sure the webconfig is changed to use the mschart.
    5) now try to run the project.
    I am getting error message like this one:
    enter image description here
    Is this a problem with windows azure or am I doing somthing wrong?
    FYI: This is not my first project on windows azure.
    RuchitRami

    As far as I know Toshiba doesnt support such Microsoft stuff so I think Microsoft is the right adres for such issues.
    Have you already checked what Microsoft say about that?

  • How to create recovery disk for windows 8.1 after update from windows 8.

    My laptop came with windows 8 and i have recovery discs for windows 8.
    Now i've updated to windows 8.1, so i want to creat recovery discs for windows 8.1.
     So in future when i use recovery discs i dont have to download windows 8.1 again.
    Please tell me if there is any way to do this.....

    As colakid posted, in Windows 8 the ability to create a recovery CD/DVD has gone. Your options are to:
    create a recovery USB; or
    create a recovery image.
    Recovery USB
    Colakid's post talks you through how to make a recovery USB: from control panel, choose Recovery, then Create a Recovery Drive, and follow the prompts.
    However, the 'recovery USB' can be a bit misleading. When the wizard starts, there is an option to 'copy the recovery partition from the PC to the recovery drive'. If you do not check this option, you will still need installation media to reset your PC.
    Since you have upgraded from Windows 8 to Windows 8.1, you will probably not be able to check this option, as it will be greyed out (like it is in the picture in Colakid's post).
    If you go ahead and create the USB anyway, you will be able to boot to it, but you won't be able to reinstall Windows unless you have the installation media (or possibly a system image, though I haven't tried that).
    Recovery image
    The recovery image is an image of your computer that Windows will use when you select the 'refresh my pc' option. You can create a recovery image using the recimg.exe tool.
    First, open an elevated command prompt (type cmd and press Ctrl + Shift + Enter).
    Next, create the recovery image by typing:
    recimg /createimage [path]
    Where [path] is the folder you want the image in, eg C:\Recovery. You cannot set the file name - it will always be called CustomRefresh.wim.
    Let it run its course. When it's done, you can check that it is the current recovery image by typing
    recimg /showcurrent
    It's important to keep in mind what a recovery image contains. It will have your Windows system files (in their current state), and the desktop apps you have installed (so it makes sense to do this after a fresh install of Windows). It will
    not backup any Metro apps or user files, because these are not deleted during a system refresh. If you want a complete backup of everything on your computer the way it is now, you should make take a complete system image (which
    can be done from the File History settings in control panel - at the bottom left there will be a 'System Backup Image' option - or you can do it using any other backup software like Ghost or Acronis).
    In my case, I created the recover image straight after upgrading to Windows and it was about 6 GB.
    Prepare/Create and register an recovery partition, so the option Copy the Recovery Partition becomes available in the recovery drive UI  application.
    In elevated command run> RECIMG -CREATEIMAGE C:\REFRESHIMAGE< 
    This will create a new custom.wim in a folder Refreshimage.
    Now lets get ready to register the path of the image, so our create recovery drive option(COPY THE RECOVERY PARTITION FROM THE PC TO THE RECOVERY DRIVE) becomes available.
    >  In the folder you created there will be a> custom.wim<
    change it to>INSTALL.wim<
    > Create a folder In Cd/directory using Elevated command> mkdir c:\Win8.1-Recovery,>
    Win81-Recovery<.
    > Copy the  INSTALL.WIM. Put in the Win81-recovery folder created.
    > Run in elevated commad>REAGENTC /SetOSImage /Path C:\Win81-Recovery\INSTALL.WIM /Index 1<
    Do not copy the arrows if using copy and paste, that is my way of pointing out lines of code
    Information provided by the link below, thanks Keith. I simplified the process for easy following and added my own tweak from trial and error for the install.
    blogs.technet.com/b/keithmayer/a···ive.aspx

  • How to create restore point in windows server 2008 service pack1

    hi i am bhaskar ... how to create restore point in windows server 2008 service pack1 and how to restore system from a restore point in windows server 2008 service pack1.. is this option available or not ? what is the difference between shadow copies and
    restore point ? instead of restore point we have this shadow copies option in windows server 2008 ?Bhaskar

    AFIK, Restore Points doesn’t exist in Windows 2008.
    Volume Shadow Copy option can be used to achieve:
    Creating consistent backups of open files and applications
    Creating shadow copies for shared folders
    Creating transportable shadow copies using a hardware provider — for backup, testing and data mining scenarios
    Quickly recovering and restoring files and data
    It is more like a file, data, application backup. 
    Santhosh Sivarajan | MCTS, MCSE (W2K3/W2K/NT4), MCSA (W2K3/W2K/MSG), CCNA, Network+ Houston, TX
    Blogs - http://blogs.sivarajan.com/
    Articles - http://www.sivarajan.com/publications.html
    Twitter: @santhosh_sivara - http://twitter.com/santhosh_sivara
    This posting is provided AS IS with no warranties, and confers no rights.

  • Best practice when writing multi window gtkmm application?

    Hello
    Anyone here who knows gtkmm? I'm in the progress of learning it, and now I'm stuck. I can't really find a good, clean and _working_ way to add more windows.
    For example I want to create a "New project" window where the user have to enter some information, and when the user hits "Create" a new main window opens.
    Right now I have done it like this:
    main.cpp
    int main(int argc, char** argv){
    //tk_init(&argc, &argv);
    Glib::RefPtr<Gtk::Application> app = Gtk::Application::create(argc, argv, "org.gtkmm.control");
    NewProject newProject;
    return app->run(newProject);
    class NewProject : public Gtk::Window{
    private:
    //Stuff for the "new_project" window
    Gtk::Label locationLabel;
    Gtk::Entry locationEntry;
    Gtk::Label descriptionLabel;
    Gtk::Entry descriptionEntry;
    Gtk::Button createButton;
    Gtk::Grid grid;
    void CreateProject();//Callback for createButton
    public:
    NewProject();
    virtual ~NewProject();
    NewProject::NewProject()
    locationLabel("Location"),
    descriptionLabel("Description and notes"),
    createButton("Create")
    set_title("New Project");
    add(grid);
    //gtk_grid_set_column_spacing(GTK_GRID(grid), 5);
    //gtk_grid_set_row_spacing(GTK_GRID(grid), 5);
    grid.add(locationLabel);
    grid.add(locationEntry);
    grid.attach_next_to(descriptionLabel, locationLabel, Gtk::POS_BOTTOM, 1, 1);
    grid.attach_next_to(descriptionEntry, locationEntry, Gtk::POS_BOTTOM, 1, 1);
    grid.attach_next_to(createButton, descriptionLabel, Gtk::POS_BOTTOM, 2, 1);
    //locationEntry.show();
    createButton.signal_clicked().connect(sigc::mem_fun(*this,
    &NewProject::CreateProject));
    show_all_children();
    show();
    NewProject::~NewProject(){
    void NewProject::CreateProject(){
    gProject.location = locationEntry.get_text();
    gProject.description = locationEntry.get_text();
    //printf(gProject.location.c_str());
    //printf(locationEntry.get_text().c_str());
    Glib::RefPtr<Gtk::Application> app = get_application();
    //std::vector<Window*> windows = app->get_windows();
    MainWindow mainWindow;
    app->add_window(mainWindow);
    //mainWindow.Create(); //Create just calls show() on the window, tried it as a simple double check, didn't work
    hide();
    And MainWindow is defined like this:
    class MainWindow : public Gtk::Window{
    private:
    Gtk::Button testLabel;
    public:
    void Create();
    MainWindow();
    virtual ~MainWindow();
    MainWindow::MainWindow(){
    printf(gProject.location.c_str());
    if(gProject.location.empty()){
    printf("EMPTY");
    }else{
    printf("Notempty");
    set_title("asd");
    Gtk::Button testButton("TEST");
    add(testButton);
    testButton.show();
    show();
    //this->project = project;
    //Show the new project window
    //Glib::RefPtr<Gtk::Application> app = get_application();
    //app->add_window(newProject);
    MainWindow::~MainWindow(){
    void MainWindow::Create(){
    show();
    So, why doesn't the window show up? I know the code is executed, because I can see the printf() output in the terminal. Instead of showing the new window, the application just exits "successfully". If I open MainWindow from main, the windows shows up, but opening NewProject from MainWindow doesn't work.
    As I said, I'm pretty new to GTK programming, so I am not completely sure about how I should organize the code, so what I've done here might for what I now, be completely wrong, so please guide me in the right direction I will take a look at other gtkmm applications to see how they have done it, but right now I have a very limited network connections, so I will have to wait until I get home in a few days.
    Thank you I can post more code if needed, but I don't think there is any more GTK relevant code in the project.
    Edit: I kind of solved this case, since I made the NewProject window as a dialoge, so it's fine for now. However, if somebody have a general solution, it would be nice
    Last edited by Hakon (2012-06-22 20:53:42)

    Hello
    Anyone here who knows gtkmm? I'm in the progress of learning it, and now I'm stuck. I can't really find a good, clean and _working_ way to add more windows.
    For example I want to create a "New project" window where the user have to enter some information, and when the user hits "Create" a new main window opens.
    Right now I have done it like this:
    main.cpp
    int main(int argc, char** argv){
    //tk_init(&argc, &argv);
    Glib::RefPtr<Gtk::Application> app = Gtk::Application::create(argc, argv, "org.gtkmm.control");
    NewProject newProject;
    return app->run(newProject);
    class NewProject : public Gtk::Window{
    private:
    //Stuff for the "new_project" window
    Gtk::Label locationLabel;
    Gtk::Entry locationEntry;
    Gtk::Label descriptionLabel;
    Gtk::Entry descriptionEntry;
    Gtk::Button createButton;
    Gtk::Grid grid;
    void CreateProject();//Callback for createButton
    public:
    NewProject();
    virtual ~NewProject();
    NewProject::NewProject()
    locationLabel("Location"),
    descriptionLabel("Description and notes"),
    createButton("Create")
    set_title("New Project");
    add(grid);
    //gtk_grid_set_column_spacing(GTK_GRID(grid), 5);
    //gtk_grid_set_row_spacing(GTK_GRID(grid), 5);
    grid.add(locationLabel);
    grid.add(locationEntry);
    grid.attach_next_to(descriptionLabel, locationLabel, Gtk::POS_BOTTOM, 1, 1);
    grid.attach_next_to(descriptionEntry, locationEntry, Gtk::POS_BOTTOM, 1, 1);
    grid.attach_next_to(createButton, descriptionLabel, Gtk::POS_BOTTOM, 2, 1);
    //locationEntry.show();
    createButton.signal_clicked().connect(sigc::mem_fun(*this,
    &NewProject::CreateProject));
    show_all_children();
    show();
    NewProject::~NewProject(){
    void NewProject::CreateProject(){
    gProject.location = locationEntry.get_text();
    gProject.description = locationEntry.get_text();
    //printf(gProject.location.c_str());
    //printf(locationEntry.get_text().c_str());
    Glib::RefPtr<Gtk::Application> app = get_application();
    //std::vector<Window*> windows = app->get_windows();
    MainWindow mainWindow;
    app->add_window(mainWindow);
    //mainWindow.Create(); //Create just calls show() on the window, tried it as a simple double check, didn't work
    hide();
    And MainWindow is defined like this:
    class MainWindow : public Gtk::Window{
    private:
    Gtk::Button testLabel;
    public:
    void Create();
    MainWindow();
    virtual ~MainWindow();
    MainWindow::MainWindow(){
    printf(gProject.location.c_str());
    if(gProject.location.empty()){
    printf("EMPTY");
    }else{
    printf("Notempty");
    set_title("asd");
    Gtk::Button testButton("TEST");
    add(testButton);
    testButton.show();
    show();
    //this->project = project;
    //Show the new project window
    //Glib::RefPtr<Gtk::Application> app = get_application();
    //app->add_window(newProject);
    MainWindow::~MainWindow(){
    void MainWindow::Create(){
    show();
    So, why doesn't the window show up? I know the code is executed, because I can see the printf() output in the terminal. Instead of showing the new window, the application just exits "successfully". If I open MainWindow from main, the windows shows up, but opening NewProject from MainWindow doesn't work.
    As I said, I'm pretty new to GTK programming, so I am not completely sure about how I should organize the code, so what I've done here might for what I now, be completely wrong, so please guide me in the right direction I will take a look at other gtkmm applications to see how they have done it, but right now I have a very limited network connections, so I will have to wait until I get home in a few days.
    Thank you I can post more code if needed, but I don't think there is any more GTK relevant code in the project.
    Edit: I kind of solved this case, since I made the NewProject window as a dialoge, so it's fine for now. However, if somebody have a general solution, it would be nice
    Last edited by Hakon (2012-06-22 20:53:42)

  • How to? switch between the following mission control preference "group windows by application" on the fly? OR have both readily available

    Is there any way to switch between the following mission control preference "group windows by application" on the fly?  I would like to turn this feature on and off quickly. OR have both readily available?
    If osx 10.9 does not support this, does any one know if automater can be used to creat a short cut to turn this preferance on and off?
    Current solution (not much of a solution)
    I currently added the preferance control icon for mission control on my dock.

    4u2nv247 wrote:
    Current solution (not much of a solution)
    I currently added the preferance control icon for mission control on my dock.
    Do you mean the general System Preferences icon? ...If so, it's possible to put the icon specifically for the Mission Control pane in the Dock:
    I'm on Mountain Lion and that Preference Pane is in: Macintosh HD > System (not Users) > Library > PreferencePanes > Expose.prefPane
    ...Drag that Expose.prefPane to the right-hand side of the Dock, say, next to the Trash. Then you can simply click on the resulting Expose Prefs icon in the Dock to open its Prefs panel.

  • Create Popup or external window

    Hi,
    I have some code in wdDoInit() of View. Before view completely loads, I require to popup a dialog box or external window with a message.
    Is this possible to create Popup or external window from the first view of the application, such that the popup appears first and then the rest of the view loads?
    Presenty I do not get any popup even though I have done coding for the same and straight away the view appears.
    Thanks
    Anagha
    Message was edited by:
            Anagha Jawalekar

    Hi Anagha,
    First go to the Method tab of view and create two Event handlers (“Ok” and “Cancel”).
    Then try this code inside wdDoInit() of view.
         String dialog = "Do You Want to Continue? ";
         IWDConfirmationDialog confDialog = wdComponentAPI.getWindowManager().createConfirmationWindow(dialog,wdThis.wdGetAPI().getViewInfo().getViewController().findInEventHandlers("Ok"),"OK");
         IWDEventHandlerInfo CancelEventInfo = wdThis.wdGetAPI().getViewInfo().getViewController().findInEventHandlers("Cancel");
         confDialog.addChoice(CancelEventInfo,"Cancel");
         confDialog.show();     
    Check this links.
    <a href="http://help.sap.com/saphelp_nw70/helpdata/en/0f/134540631d6f13e10000000a1550b0/frameset.htm">Creating an External Window</a>
    Generic Search
    Re: opening a new window on lead select in a table!!!
    Re: close a pop-up window
    Regards,
    Mithu

  • Can not create a file under \window\system32 folder

    How do I create a folder in \windows\system32 in x64 machine through java code?
    Creating a file/folder under \windows\system32 fails and java creates a folder in \windows\syswow64 folder.
    pls see the code attached for example.
    My client wants to create a folder using my application.
    I dont want to use any native code suggested by microsoft. You can see in the following link
    http://msdn2.microsoft.com/en-us/library/aa365743(VS.85).aspx
    import java.io.*;
    public class FileTest{
         FileTest(){
              boolean created = writeFile();
              if (created)
                   System.out.println("File Created Successfully");
              else
                   System.out.println("Could not able to create the file");
         public static void main (String args[]){
              FileTest ft = new FileTest();
         public boolean writeFile(){
              try{
              Writer output = null;
              String text = "Sample Test File";
              if(!(new File("c:\\windows\\system32\\customFIle").exists())){
                   new File("c:\\windows\\system32\\customFIle").mkdirs();
              File file = new File("c:\\windows\\system32\\customFIle\\write.txt");
              output = new BufferedWriter(new FileWriter(file));
              output.write(text);
              output.close();
              return true;
              }catch(IOException ioex){
                   System.out.println(ioex);
              return false;
    Thanks in advance

    java_mani wrote:
    How do I create a folder in \windows\system32 in x64 machine through java code?Can the user that executes this Java code create "manually" a folder in that directory?
    Creating a file/folder under \windows\system32 fails and java creates a folder in \windows\syswow64 folder.
    pls see the code attached for example.
    My client wants to create a folder using my application.
    I dont want to use any native code suggested by microsoft. You can see in the following link
    http://msdn2.microsoft.com/en-us/library/aa365743(VS.85).aspx
    Why not?

  • Create another partition in Windows

    Hi,
    I'm using Mac OS X Snow Leopard, and I installed Windows 7 using Boot Camp.
    I want to create another partition for Windows for personal files.
    How can I do that?
    I used some Windows applications such as Acronis but it was unable to identify partitions.

    NOT on the same drive!
    Buy a PC. People tend to do what you want (I don't but I only use 35GB for system under Windows and about same for a Mac OS X volume).
    Boot Camp and Windows on Mac is a one size fits all and only supports
    GPT 200MB
    EFI 128MB
    Mac OS HFS+
    NTFS
    4 total - MBR is a subset of GPT (all drives with GPT/GUID have at least a zero size MBR protective entry).

  • Locally deploying Jclient Application

    Can any body tell me the link to the documentation on how to locally deploy jclient application, java -jar app.jar
    which files to be included in the classpath etc.
    Actually I am building the Jclient Application using oracle lite. I was previously deploying it through webstart but was having the error that "no suitable driver"
    The application wroks fine when executed through the jdeveloper.
    So I was thinking that it would also work with local deployment.

    Have a look at the command line JDeveloper uses to run your project (it's in the log window) - there you'll see the list of Jar files that are needed to get your project running.
    Then you can replicate it in your deployment.

  • Windows slow application network save

    Hi all,
    We have a customer that is using a 3D application called FEM-design. When they use "save as" to a network drive it takes about 7 minutes to save a 100MB file. When opening the same file it´s about 15 secs.
    We have tried Windows 7, 8, 8.1 and XP. There is no difference between the OSs. One strange thing that occured is a test with WinXP. I created c:\temp and also shared the folder. When I saved the file towards c:\temp it took about 15 sec. The same save against
    the network drive took around 7 minutes. Anyone have an idea whats the problem here?
    I have created a support request with the application company but my answer was:
     "Opening = Reading is always fast, but Saving = Writing is much slower"
    In our environment  disk read nor write is a bottleneck.
    Anyone got any ideas what to try next?

    Hi,
    Firstly make sure "WebClient" service is starting.
    Saving toward c:\temp means saving the file to local drive. It doesn't waste the network traffic.
    However when you save the file into network drive, its speed  also relied on the network quality.
    Thus please ensure your network is stable and fluent.
    Meanwhile, try to save a very small file into that drive for test.
    Karen Hu
    TechNet Community Support

Maybe you are looking for