Deploying a javadb desktop app (Creating by netbeans 6)

Hello,
How can I create a javadb embedded database inside the project's folder? By default the javadb created in netbeans it locates itself on .netbeans folder in documents and settings. The purpose of this is to have the database inside the project so that it can be deployed in multiple platforms. So that it would be the same as C:\Program Files\application\javadb\ or /home/ditikos/application/javadb/
The project is going to be a database desktop project using jpa.

Yes.
Just change the location of your project when you choose new project, instead of using the default project location.

Similar Messages

  • Desktop app - creating and destroying forms/frames dynamically.

    Hi all,
    I'm creating a small crypto app for the desktop using java.
    I'm using JFrames (import javax.swing.JFrame) with Oracle JDeveloper 11g under Linux.
    I want to have a "welcome" form/frame where users can choose their encryption method,
    and then on choosing the method, I want to dynamically create the appropriate form for
    the chosen encryption method and also destroy/free/dispose() of the welcome form.
    When the user has finished their encrypting, they should close the frame/form (either by
    clicking on the x at the top right - or using the Exit button or by any method) and the
    welcome frame should be dynamically recreated and appear.
    I've tried various things - btnEncode_actionPerformed(ActionEvent e) then
    this.dispose() - and I've fiddled with this_windowClosed(WindowEvent e) and
    dispose(), but nothing seems to work.
    Even a workaround using setVisibl(true/false) would be acceptable at
    this stage - this has been wrecking my head all day. It's very easy to do in Delphi!
    TIA and rgs,
    Paul...

    What do you mean that "nothing seems to work"? What does it do instead?
    Post a small piece of runnable code that demonstrates the problem, and we'll go from there.

  • Deploying Java Desktop App using executable JAR files

    Hi there.
    Today I am very optimistic about java. I am a beginner, and I had tried (in my few free time) to understand how to deploy java desktop apps.
    I am using the lattest NetBeans IDE to do the programming and it is very very fast and optimized.
    Going to the point, I tried some time ago to deploy an application (made with this IDE) using JAR files, but even though the application run well on my IDE, when I packed it, it rised an error saying that
    java.lang.NoClassDefFoundError: org/netbeans/lib/awtextra/AbsoluteLayout
    I was using an absolute layout on my JFrame forms and this AbsoluteLayout is provided by netbeans and not by the normal SDK.
    I then looked for the absolute layout class and found a jar file in the following path:
    C:\netbeans\modules\ext\AbsoluteLayout.jar
    So I mounted the Jar file in my File Systems and then added the contents of the file to myApp.Jar file.
    I used the automated Jar Recipe Packaging feature of netbeans, that is why I needed to mount the AbsoluteLayout.jar file into my file systems.
    Now it runs fine by just right clicking the MyApp.jar file from Windows Explorer.
    In a next reply to this topic I will include some sample code so that anybody requiring to do such implementation can take this for help.
    Regards!
    JN

    Well,
    I will take some time here to show the basic source code and procedure to create a desktop application, pack it up in a Jar file for deployment, add other classes or jars to the deployment jar file and finally open the jar file as an executable. This applies for either windows and linux environments.
    Take in count i am using Netbeans IDE 3.x (3.5)
    First I open the IDE and create a new project called MyDesktopApp. This is done by going to the menu Project / Project Manager. Then click on the New button and specify the project name and click on OK.
    At this point, the Filesystems tab in the project explorer is empty. So I mount a directory to store myDesktopApp in it. I selected c:\MyDesktopApp but you can select any name you want.
    To mount the directory you follow these steps:
    1. Right-click on File Systems
    2. From the contextual menu select Mount > Local Directory
    3. In the filechooser window, you just browse it and SELECT the directory to mount. Be aware that you can even create the directory on this window. Do not enter (double-click) into the directory you want to mount, just select it and click on finish...
    4.Then the directory entry appears under the filesystems node of the project explorer.
    Now you have to create your application. You can either create a package (special configured and tracked directory) or you can create the clases directly inside the directory. For tidy project, I will create the package.
    To create the package follow these instructions:
    1. Right-click on the mounted directory and from the contextual menu select New > Java Package
    2. In the New Wizard - Java Package window, type the package name and click on finish. I use the "MyDesktopApp" as package name.
    OK. Now the package is created under the mounted directory. Now we have to create the Main Class. In this case I will use a JFRAME as the main class but you can create any class you want.
    To create the JFRAME as main class follow these steps:
    1. Right click on the java package you just created and select New>JFRAME from the contextual menu. If you do not see the JFRAME option on the NEW sub menu you will have to select the All Templates option. I explain the All Templates option now on, it will be easier to use the JFRAME if available. Once you use JFRAME with the all templates then the JFRAME will show up in further NEW usage.
    2. So finally we used the All Templates, and you select the Java GUI Forms > JFRAME form option and click on NEXT.
    3. Give it a name. (I used MyDesktopAppFrm) and click on finish. Be aware you can set advanced options by clicking on next. But for the purposes of this topic we will use default options so click on FINISH
    4. A new JFRAME form appears inside your package. Right click on the form and select Set layout > Absolute Layout.
    5. Add some controls and code. I added a label and a button. And coded the ActionPerformed event of the button to say hello! on the label. this is up to you. The code just looks as follows:
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
    // Add your handling code here:
    jLabel1.setText("Hello folks!");
    6. Compile and execute the form.
    Let's say this is our Desktop Application. Now We will pack it in a Jar in two steps...
    A. Create a JAR file (Recipe)
    1. Right-click on your package and select New > All Tempaltes (Long Route) You can also select New > JAR Recipe if available.
    2. On the New Wizard Window, choose the JAR ARchives > JAR Recipe template and click on NEXT
    3. I used MyDesktopApp as the file name and Defaults and then click on Next.
    4. Specify the JAR Contents. Select the Package (not the mounted folder) from the mounted file system and click on add and then click on NEXT twice...
    5. On the JAR Manifest window, click on GENERATE
    6. Edit the manifest in the window to add the following code:
    Main-Class: MyDesktopApp.MyDesktopAppFrm
    7. Ensure the Main-Class definition is the same as your java package and JFRAME name. Click on FINISH
    8. At this point we have a jar file in your project directory but this file wont run because it is missing some Netbeans clases that we will add in the next set of steps... Just to check, compile the file (right click on the JAR file and compile) and try to execute. It must compile but must not execute.(well if it executes you are done. It may execute if you did not set the lay out of the form as AbsoluteLayout)
    B. Add the AbsoluteLayOut to the JAR
    1. Right click on File Systems and select Mount > Archive Files
    2. Look for your netbeans installation folder and select the following file:
    .../netbeans/modules/ext/AbsoluteLayout.jar
    3. Click on finish
    4. Now the JAR File is mounted in the file systems.
    5. Right-click on your MyDesktopApp.JAR file and select properties.
    6. Look for the contents property click once on it and then on its elipsis button [...]
    7. From the FileSystems box in the Contents window, select the AbsoluteLayOut file and click on Add
    8. Then the system asks you if you are sure. Of course you are so click OK. (If not sure, just read the message text and click OK...:-))
    9. Click on OK
    10. Compile your JAR Recipe (right click on it and Compile)
    11. Now you must be able to run the file by right clicking it and EXECUTE.
    12. Also you must be able to run the file by double clicking the file from a Windows Explorer. You may receive a message asking to select the program to run the file with. You must browse and select the Javaw.exe file in the bin directory of your Java RUn Time installation. This is typically located at C:\j2sdk1.4.0_01\jre\bin or something like that. Use the File-Search feature of window to locate the JAVAW.exe file if needed.
    I hope this long explanation helps somebody to deploy Java Desktop applications. Please reply the message if it helps you just to know it was useful.
    Thanks for your time....
    JN

  • Semi-black screen of death: desktop app screen mostly black on deployment

    Hi I've got a problem running an executable .jar on a friend's machine. Here is what happens:
    Open the jar, and the main frame opens. All of the combo boxes on the desktop application appear fine, but the background, text boxes, jtree navigation, and labels appear black. The menu bar is fine, and also the a checkbox and the first selected jtree node. Two of the 6 buttons are fine but the rest show as black. When my friend clicks one of the buttons that brings up another window, everything on the panel is white except for the comboboxes.
    I've installed this software on three Windows XP machines, and one Windows Home Premium 64 bit machine with no problems, everything appears fine. I'm about to try it out on a Vista Home Premium 32 bit. The offending machine is a Windows home Premium 64 bit machine. I'll be able to remote desktop into my friend's machine soon, but they don't know a lot about computers or programming. I'm not sure where the proper forum for this question is, because many of the swing elements appear correctly, I don't think it is a swing problem, but a problem with the deployment somehow. If anyone has any ideas on how to begin troubleshooting this, let me know.

    Thank you so much for responding to my post.
    My app requires the following classes:
    -- acrobat.jar
    – appframework-1.0.3.jar
    – beansbinding-1.2.1.jar
    – javax.persistence.jar
    – mysql-connector-java-5.1.10-bin.jar
    – org.eclipse.persistence.antlr.jar
    – org.eclipse.persistence.asm.jar
    – org.eclipse.persistence.core.jar
    – org.eclipse.persistence.jpa.jar
    – org.eclipse.persistence
    --jcalendar-1.3.3.jar
    --looks-2.0.jar
    --swing-worker1.1.jar
    I used Netbeans to develop the code.
    1) I'll work up a SSCCE later tonight after I can take a look at my friend's machine.
    2) The program is a simple database desktop app that allows my friend to look through a document repository (mysql database). It keeps track of correspondence: Titles of letters, date of letter reception, Authors of letters, Categories of letters, Storage locations of letters. It lets my friend save them to a tree-like explorer interface, as well as search them. It also displays a PDF help file. The problem my friend is having when the program starts up blacks out the JTree letter explorer, and blacks out the search text box and a few of the search buttons.
    3)I will see if I get a stack trace on startup. That is a good place to begin. I've installed it on two more Vista machines today, and was unable to replicate the problem.
    Thanks again!

  • Error deploying webapp created in Netbeans

    Hi,
    I've created a fairly simple webapp in Netbeans which I have successfully deployed to Tomcat and the Sun Java Application Server.
    However when I tried to deploy it to Sun Java System Web Server, I'm getting an error. The error log shows the following:
    [15/Jun/2007:16:35:21] warning ( 5936): WEB9200: sun-web.xml DTD Version with public ID = [-//Sun Microsystems, Inc.//DTD Application Server 9.0 Servlet 2.5//EN] and system ID = [http://www.sun.com/software/appserver/dtds/sun-web-app_2_5-0.dtd] not found in the local respository. Using DTD version with system ID = [http://www.sun.com/software/dtd/appserver/sun-web-app_2_4-1.dtd] instead.
    [15/Jun/2007:16:35:21] failure ( 5936): PWC3014: Parse error in application web.xml
    org.xml.sax.SAXException: Unable to find local schema for web-app_2_5.xsd
         at org.apache.catalina.util.SchemaResolver.resolveEntity(SchemaResolver.java:159)
         at com.sun.org.apache.xerces.internal.util.EntityResolverWrapper.resolveEntity(EntityResolverWrapper.java:148)
         at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.resolveEntity(XMLEntityManager.java:701)
         at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.resolveDocument(XMLSchemaLoader.java:599)
         at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.findSchemaGrammar(XMLSchemaValidator.java:2454)
         at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1807)
         at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:705)
    ...The start of my web.xml looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">I'm not really sure what's going on - any suggestions?
    Many thanks,
    Andrew.

    To answer my own question - probably helps when you read the sticky thread first - http://forum.java.sun.com/ann.jspa?annID=11
    It looks like my problem was caused by two issues.
    Firstly I had initially created the Netbeans project to use Sun Java System Application Server, which meant that the sun-web.xml file had this doctype which was not recognised by SJSWS:
    <!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems,
    Inc.//DTD Application Server 9.0 Servlet
    2.5//EN" "http://www.sun.com/software/appserver/dtds/sun-web-
    app_2_5-0.dtd">Correspondingly the web.xml also had an invalid reference to version 2.5:
    <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
    http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">Creating a new project from scratch fixed the problems.
    Regards,
    Andrew.

  • Publishing air desktop app error creating files

    Hello I am using flash cc pro to try and publish my flash document  as a windows desktop app. I keep running into an error
    Error creating files. The AIR version set in Publish Settings of the initial content SWF exceeds that allowed for the descriptor namespace.
    I am trying to publish using Air 14.0.0.178. here is my descriptor file.
    <application xmlns="http://ns.adobe.com/air/application/3.1">
      <id>project18</id>
      <versionNumber>1.0</versionNumber>
      <filename>project18</filename>
      <description/>
      <name>project18</name>
      <copyright/>
      <initialWindow>
        <content>project18.swf</content>
        <systemChrome>standard</systemChrome>
        <transparent>false</transparent>
        <visible>true</visible>
        <fullScreen>false</fullScreen>
        <aspectRatio>portrait</aspectRatio>
        <renderMode>auto</renderMode>
      </initialWindow>
      <icon/>
      <customUpdateUI>false</customUpdateUI>
      <allowBrowserInvocation>false</allowBrowserInvocation>
    </application>
    thanks.

    Hi,
    Can you please share your file for us to investigate this issue?
    Thanks!
    Mohan

  • Desktop apps: Report Builder 3.0 (x86) that does not let me allow query result which I created Customers Report. Here is the error message returns.:

    Desktop apps: Report Builder 3.0 (x86) that does not let me allow query result which I created Customers Report. Here is the error message returns as following.
    Database query from: AdventureWorks2014
    System.Web.Services.Protocols.SoapException: The permissions granted to user 'SQLServer2014\Mubs' are insufficient for performing this operation. ---> Microsoft.ReportingServices.Diagnostics.Utilities.AccessDeniedException: The permissions granted to
    user 'mujb-HP\mujb' are insufficient for performing this operation.
       at Microsoft.ReportingServices.Library.ReportingService2010Impl.CreateReportEditSession(String Report, String Parent, Byte[] Definition, String& EditSessionID, Warning[]& Warnings)
       at Microsoft.ReportingServices.WebServer.ReportingService2010.CreateReportEditSession(String Report, String Parent, Byte[] Definition, String& EditSessionID, Warning[]& Warnings)
    The permissions granted to user 'mujb-HP\mujb' are insufficient for performing this operation.
    Is there anybody help me out, pl
    My MSSQL Server express 2014 edition x64  and My desktop "Report Builder (RB) 3.0' is 32bit (x86).
    Does Report Builder x64 exist? I didn't see anywhere so I downloaded x86 RB

    Hi mujb,
    Per my understanding you are using the report builder 3.0 to design the report and when you click the query designer button to execute the query you got the error message above, right?
    I have tested on my local envornment and your issue can be caused by the user "SQLServer2014\Mubs"  and "mujb-HP\mujb"  haven't grant permission to the report server or the shared dataeource/dataset if you have used this.
    I would like to confirm if you have assigned both the Item-Level and System-Level role of the user above to sucessfully access the report server, If you haven't grant any access to the above user and when you connect to the report server in the report builder,
    you may got the error message:
    More details information below for your reference:
    Please execute the query in the microsoft SQL Server Management Studio to see if you have permission to execute the query.
    If the query works fine in step1, please run the report builder as Administrator and if you are using the shared datasource/dataset the issue can be cause by the you haven't grant access the share datasource, Double click to open the Datasource
    and click the "Test Connection" as below to test if it can connect successfully:
    If the "Test Connection" failed, please click the shared datasource/dataset on Report Server to check if you have grant correct permission.
    Related information about the grant permission to report server for your reference:
    https://msdn.microsoft.com/en-us/library/ms156034.aspx
    http://www.allenkinsel.com/archive/2013/01/adventures-in-ssrs/
    If your issue still exists, please try to provide more details information.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Webstart-deployed desktop app, command line and Windows ShellExecute.

    Hi all,
    I want to be able to associate Windows Shell registry actions (shellExecute from right click menu, double click, and protocols) with a Webstart Java Swing desktop app. This is pretty key to our deployment strategy.
    I have two options that I'm pursuing right now.
    OPTION A
    Unfortunately I'm encountering a few problems:
    1) javaws.exe does not accept parameters, therefore I can't pass parameters directly from a Windows command line
    2) The only way to get arguments in is through the jnlp file. Sounds like this is possible using a jnlp written by a servlet. But can I just pass GET parameters to my servlet like so?
    http://webstart.com/go/?param=value&param2=value2Would that work?
    2a) subissue: I want to use JNLP's SingleInstance to make sure that only one of my app is running at any time. It sounds like that JNLP interface also allows for new parameters to be passed in as arguments... but if I pass in parameters to my webstart address, will SingleInstance properly recognize that http://webstart/go and http://webstart/go?param=value are the same program?
    OPTION B
    So the alternative deployment strategy that I'm contemplating is using webstart, but then deploying a separate .jar to the machine and registering that to be the argument acceptor from Windows. So windows would run something like so:
    java -jar cmdLauncher.jar argshereFrom there I will do two things:
    a) If the program is already running, then I pass the argument in using network sockets and deal with it like so.
    b) If the program isn't already running, then I execute javaws http://myurl and then maybe write to the socket when it's ready. This might really suck since i'll have to poll until the socket is ready.
    Anyway, was hoping someone with more webstart internals had some idea as to
    a) would a option A (dynamic servlet) work in the way I expect?
    b) Is option B the only way to really do it? It certainly seems feasible at this point.
    Ideally I just wish javaws.exe allowed passing arguments, and thus this entire problem would not exist. It's a pretty powerful and important feature for WebStart to be able to be a fully featured deployment solution.

    OPTION A
    Unfortunately I'm encountering a few problems:
    1) javaws.exe does not accept parameters, therefore I
    can't pass parameters directly from a Windows command
    line
    2) The only way to get arguments in is through the
    jnlp file. Or the SingleInstanceService.
    ....Sounds like this is possible using a jnlp
    written by a servlet. But can I just pass GET
    parameters to my servlet like so?
    http://webstart.com/go/?param=value�m2=value
    2Would that work?Huh? Assuming the servlet that produces the
    launch file fir this application is called 'go', and that
    servlet returns the correct content-type, and writes
    the two params in the URL into the JNLP as
    arguments, then.. yes - this should work.
    http://webstart.com/go?param=value�m2=value2Note the lack of one '/'.
    ( I have not had much direct experience with
    JNLP combined with servlets, but am familiar
    with both. )
    2a) subissue: I want to use JNLP's SingleInstance to
    make sure that only one of my app is running at any
    time. It sounds like that JNLP interface also allows
    for new parameters to be passed in as arguments...
    but if I pass in parameters to my webstart address,
    will SingleInstance properly recognize that
    http://webstart/go and http://webstart/go?param=value
    are the same program?As I understand from my experience, the URL
    becomes redundant, any params that were in
    the JNLP are ignored in preference to the single
    -open argument. Here is my buildable example..
    http://www.physci.org/jws/#sis
    a) would a option A (dynamic servlet) work in the way
    I expect?Sounds like it.

  • Can I create a JAR that is an Applet and Desktop app at the same time?

    Hi mates.
    Can I create a JAR that is an Applet and Desktop app at the same time?
    Thanks.

    Ricardo_Ruiz_Lopez wrote:
    ..I have one problem, I want a JMenuBar but I can't add it inside a jPanel.
    Any idea?
    SSCCE
    It can be compiled/run as an applet or application something like this (e.g. for a Win command prompt).
    C:\Users\Andrew\Hybrid> javac Hybrid.java
    C:\Users\Andrew\Hybrid> java Hybrid
    C:\Users\Andrew\Hybrid> appletviewer Hybrid.java
    C:\Users\Andrew\Hybrid> // YES the previous line requires a '.java'  suffix - trust me.  ;-)Code
    // <applet code='Hybrid' width='600' height='400'></applet>
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.border.*;
    public class Hybrid extends JApplet {
        public void init() {
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    GUI gui = new GUI();
                    getContentPane().add( gui.getMainPanel() );
                    setJMenuBar( gui.getMenuBar(false) );
                    validate();
        public static void main(String[] args) {
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    JFrame f = new JFrame("Test Hybrid");
                    f.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
                    GUI gui = new GUI();
                    f.setContentPane(gui.getMainPanel());
                    f.setJMenuBar(gui.getMenuBar(true));
                    f.pack();
                    f.setLocationRelativeTo(null);
                    f.setVisible(true);
    class GUI {
        private JPanel mainGui = null;
        private JMenuBar menuBar = null;
        public JPanel getMainPanel(){
            if (mainGui==null) {
                mainGui = new JPanel( new BorderLayout(3,3) );
                mainGui.setBorder( new EmptyBorder(5,5,5,5) );
                JToolBar tb = new JToolBar();
                for (int ii=1; ii<6; ii++) {
                    tb.add( new JButton( "Btn " + ii) );
                    if (ii%2==0) {
                        tb.addSeparator();
                mainGui.add(tb, BorderLayout.NORTH);
                mainGui.add( new JSplitPane(
                    JSplitPane.HORIZONTAL_SPLIT,
                    new JScrollPane(new JTree()),
                    new JTextArea(20,20)
                    ), BorderLayout.CENTER );
                mainGui.add(new JLabel("Main user interface.."), BorderLayout.SOUTH);
            return mainGui;
        public JMenuBar getMenuBar(boolean isFloating) {
            if (menuBar == null) {
                menuBar = new JMenuBar();
                if (isFloating) {
                    JMenu fileMenu = new JMenu("File");
                    fileMenu.add( new JMenuItem("Exit") );
                    menuBar.add( fileMenu );
                JMenu helpMenu = new JMenu("Help");
                helpMenu.add( new JMenuItem("About") );
                helpMenu.add( new JMenuItem("Help") );
                menuBar.add( helpMenu );
            return menuBar;
    The code is not intended to be well designed. It is just written to be brief and demonstrate a few points.
    Edit 1:
    Added some access keywords in a passing gesture that the sample aimed at encapsulation.
    Edited by: AndrewThompson64 on Sep 2, 2010 1:34 PM

  • I am unable to download the Create Cloud desktop app

    Please help,   I am unable to download the Adobe Creative Cloud Desktop app.  When downloading the exe file, it gets stuck trying to connect to the server.
    T have exhausted all troubleshooting steps:
    1.  I have tested to make sure I am connected to the internet
    2.  I can access secure sites
    3.  I have checked my host files.  there are no entries that referece activate.adobe.com
    4. I have checked the GlobalSign Root CA certificate
    I have turned off all firewalls and antivirus and still get stuck trying to connect to the server

    Nobody can tell you anything without proper system info or other technical details.
    Mylenium

  • Desktop App generator general question

    So I'm trying out the Desktop Application generator NetBeans feature and having an issue. For the automatically generated File menu, I use the Netbeans "Set Action" feature for a menu item. It generates an empty method in the main class (as well as the (locked) listener code in the GUI class). How can I get my GUI instance from the main class when the GUI is set up to be instantiated as follows: show(new DesktopApplication2View(this));

    I want the changes to affect the present GUI (auto generated with the netBeans desktop application feature) in which a SingleFrameApplication class is inherited by the main class. I'm just following netBeans's desktop app framework here. So I've tried working with the getMainFrame() method of the SingleFrameApplication class which returns a JFrame, type casting it to my DesktopApplication2View (GUI class (or boundary class, right?)), but DesktopApplication2View isn't a JFrame, it's a FrameView. So, my question basically is:
    if my gui is instantiated using this netbeans desktopapp framework, which generated everything except the code inside loadFileChooser(), how do I access the already visible instance of my GUI class?
    * DesktopApplication2.java
    package desktopapplication2;
    import java.io.File;
    import javax.swing.JFileChooser;
    import org.jdesktop.application.Action;
    import org.jdesktop.application.Application;
    import org.jdesktop.application.SingleFrameApplication;
    * The main class of the application.
    public class DesktopApplication2 extends SingleFrameApplication {
         * At startup create and show the main frame of the application.
        @Override protected void startup() {
            show(new DesktopApplication2View(this));
         * This method is to initialize the specified window by injecting resources.
         * Windows shown in our application come fully initialized from the GUI
         * builder, so this additional configuration is not needed.
        @Override protected void configureWindow(java.awt.Window root) {
         * A convenient static getter for the application instance.
         * @return the instance of DesktopApplication2
        public static DesktopApplication2 getApplication() {
            return Application.getInstance(DesktopApplication2.class);
         * Main method launching the application.
        public static void main(String[] args) {
            launch(DesktopApplication2.class, args);
        @Action //the method skeleton was auto-generated in this class instead of the GUI class
        public void loadFileChooser() {
            final JFileChooser jfc = new JFileChooser();
            int a = jfc.showOpenDialog(null);
                File file;
                if (a == JFileChooser.APPROVE_OPTION) {
                       file = jfc.getSelectedFile();
                       String s = file.getName();
                       if(s.charAt(s.length()-1)!= 'f' && s.charAt(s.length()-2)!= 'i' && s.charAt(s.length()-3)!= 'g')
                           System.out.println("Not a gif");
                       else{
                                          //I want to update my GUI here
    }Edited by: halofan on Jun 5, 2008 3:10 PM

  • Error 201; CC desktop app constantly logged out, won't redownload

    Running CC on Windows 7, 64bit. Have run into the "Please log in/You are now logged out" loop before, so uninstalled the CC desktop app, renamed the OOBE file to OOBE_OLD, and attempted to re-download and re-install the CC app. This worked last time, but today every time I attempt to download, it gives me error code 201 and tells me to seek help.
    There does not appear to be anything pertinent to this issue on the forums already. Any help would be appreciated.

    Hi LawnSnark ,
    Welcome to Adobe Forums.
    Error 201 indicates that the download of the installation files was unable to be resumed successfully or it can be lack of sufficient permissions as well.
    Please create a new Administrator user account , Download Creative Cloud desktop app in new account and sign in.
    Please reply for any assistance.
    Thanks

  • Error Code 201 and 213 when trying to install any Adobe application / Update my Creative Cloud Desktop App. Have tried troubleshooting with Online Chat Agents, no luck.

    I have been trying for 2 days now to get this resolved.
    Computer hashard wired internet connection, running Windows 7 Home Premium. No other issues with downloading or uploading from any other sites or programs. No other network issues reported on other computers.
    It started when I went to install Lightroom through my Creative Cloud. It prompted me to update my Creative Cloud Desktop App, which I went to do and then promptly got Error Code 201. I restarted my Creative Cloud and then skipped the update, hoping it was just an issue with that specific download. I clicked to install Lightroom and the same thing happened, Error code 201.
    I restarted my machine, and tried again. Same issue.
    I contacted Support. They had me go in and change a bunch of folder names to and add "old" to the end of them and then had me try using the Adobe Cleaner tool, which did not work. He had me go in and change some internet settings, still nothing. Same issues as before, only now with all the renaming of things I cannot even open programs I had previously been able to open like Photoshop.
    He instructed me to reinstall the CC Desktop App because the Cleaner tool was not recognizing that it existed anymore (probably something to do with renaming files.. just saying) and now I get the 201 Error when I try to reinstall the CC Desktop App.
    I ran out of time and had to stop after being on with them for over an hour.
    Today I contact back and was instructed to create a new user account on my computer and try downloading and installing the application in the new user. Same errors. 213 at first, restarted my computer and then got Error Code 201 again.
    I am getting really frustrated and really behind on my work. Any information someone could give me would be greatly appreciated. Currently waiting for a chat person to be available again.
    Thank you for your time and assistance.

    Meowia for Error 201 please see Error downloading Creative Cloud applications - http://helpx.adobe.com/creative-cloud/kb/error-downloading-cc-apps.html.  Error 213 indicates there was problem locating the update or an incorrect URL.  The troubleshooting steps are still the same as both errors are related to failure of the current network connection.

  • Creative Cloud desktop app totally empty - not even Preferences...?

    I have from before Production Premium CS6 and Lightroom 4 installed on my computer (Windows 7 64-bit, 16GB RAM).
    I joined then CC Photography Package and after login to my account I went to the DL section to download one of the programs and install it. The Creative cloud desktop app is installed, but it is empty. Not only is there neither a Photoshop CC nor a Lightroom 5 there, there's no menu and if I try to determine the app version as in http://helpx.adobe.com/creative-cloud/kb/creative-cloud-desktop-missing-text.html - there's not even a Preferences to select...
    I get no error message, and going to the Download center and trying to download Photosgop or Lightroom just gets me a blink of "waiting for creative.adobe.com..." and then focus is changed to the empty Creative Cloud desktop app.
    Checking my account I can see that both my product licences for CS6/LR4 are there, as is my CC Photography package.
    I can add that I have restarted the system, reinstalled the Creative Cloud app and tried other things I can think of. But I still only get an empty Creative Cloud app, without a possibility to login to my Adobe account.

    Here's from the PDApp.log:
    12/29/13 19:03:21:510 | [INFO] |  | ASU | OPM | OPM |  |  | 19248 | Successfully opened opm session, db location:C:\Users\Tommy\AppData\Local\Adobe\OOBE\opm.db in opm_createLibRef
    12/29/13 19:03:21:510 | [INFO] |  | ASU | OPM | IMSLibHelper |  |  | 19248 | OPMWrapper allocation succeeded
    12/29/13 19:03:21:510 | [INFO] |  | ASU | OPM | IMSLib |  |  | 19248 | This product version is for GM
    12/29/13 19:03:21:514 | [INFO] |  | ASU | OPM | IMSLib |  |  | 19248 | URL retreived from dispatchlib https://ims-prod06.adobelogin.com
    12/29/13 19:03:21:514 | [INFO] |  | ASU | OPM | IMSLib |  |  | 19248 | Created IMSLib instance with LEID:GM and endpoint:https://ims-prod06.adobelogin.com
    12/29/13 19:03:21:514 | [INFO] |  | ASU | OPM | OPM |  |  | 19248 | No Record found for the input fields in opm_getValueForKey
    12/29/13 19:03:21:514 | [INFO] |  | ASU | OPM | IMSLib_OPMWrapper |  |  | 19248 | Failed in getting value for key in OPMGetValueForKey domain:OOBE subDomain:ProxyCredentials key:ProxyUsername
    12/29/13 19:03:21:514 | [INFO] |  | ASU | OPM | IMSLibHelper |  |  | 19248 | Failed to get proxy user name from local db in getProxyCredentialsFromLocalStore
    12/29/13 19:03:21:514 | [INFO] |  | ASU | OPM | IMSLib |  |  | 19248 | Failed get proxy credentials from local store while creating IMSLib Ex instance ...
    12/29/13 19:03:21:515 | [INFO] |  | ASU | OPM | P7Native |  |  | 19248 | Performing registeration of client to group
    12/29/13 19:03:21:515 | [INFO] |  | ASU | OPM | IMSLib |  |  | 19248 | Performing IMS_registerClientToGroup..
    12/29/13 19:03:21:515 | [INFO] |  | ASU | OPM | OPM |  |  | 19248 | Performing opm_getRecords...
    12/29/13 19:03:21:515 | [INFO] |  | ASU | OPM | OPM |  |  | 19248 | returning size of value as:12 in opm_getValueForKey
    12/29/13 19:03:21:515 | [INFO] |  | ASU | OPM | OPM |  |  | 19248 | Successfully retreived value from opm domain:IMSLib subdomain:BuddyGroup key:0 in opm_getValueForKey
    12/29/13 19:03:21:515 | [INFO] |  | ASU | OPM | P7Native |  |  | 19248 | Registered Client to group successfully!
    12/29/13 19:03:21:516 | [INFO] |  | ASU | OPM | P7Native |  |  | 19248 | Performing fetch default user for clientID...
    12/29/13 19:03:21:516 | [INFO] |  | ASU | OPM | IMSLib |  |  | 19248 | Performing fetchDefaultUserInfoForClientId...
    12/29/13 19:03:21:516 | [INFO] |  | ASU | OPM | OPM |  |  | 19248 | No Record found for the input fields in opm_getValueForKey
    12/29/13 19:03:21:516 | [INFO] |  | ASU | OPM | IMSLib_OPMWrapper |  |  | 19248 | Failed in getting value for key in OPMGetValueForKey domain:IMSLib subDomain:CSServiceMap key:ACCC_CS7
    12/29/13 19:03:21:516 | [WARN] |  | ASU | OPM | IMSLibHelper |  |  | 19248 | Failed in fetching default user id for the service, while processing fetchDefaultUserGUIDForClientID
    12/29/13 19:03:21:516 | [INFO] |  | ASU | OPM | IMSLib |  |  | 19248 | Failed to get default user for clientId in fetchDefaultUserInfoForClientId...
    12/29/13 19:03:21:516 | [WARN] |  | ASU | OPM | P7Native |  |  | 19248 | failed in IMSLib's fetchDefaultUserInfoForClientId function, in getDefaultUserForClientId
    12/29/13 19:03:21:516 | [INFO] |  | ASU | OPM | IMSLib |  |  | 19248 | Performing releaseData...
    12/29/13 19:03:21:516 | [INFO] |  | ASU | OPM | P7Native |  |  | 19248 | Unable to find default user for client_id: ACCC_CS7

  • CC desktop app stops launching @ boot-up & Adobe Tech Support can't fix it permanently. Now what?

    Problem: Adobe Creative Cloud desktop app stops launching upon boot-up and the CC icon does not appear up on my iMac's desktop menu bar at top. And whenever I loose that, I can't open my CC apps.  Our friends in India seem eager to help and always manage to stumble onto a solution, (each time through a different process, it seems), but that lasts for only 2 or 3 boot-ups before it quits working again.
    When I try to manually launch the "Adobe Creative Cloud" desktop app (by double-clicking it in my Applications folder), its red icon appears on my Dock and bounces up and down but does nothing more. My Force-Quit utility shows it as "not responding" so I have to force quit it.
    My case has been elevated to Tier-2 Support but they call outside of the agreed-upon hours so I'm not here. My only recourse is to call them back, but that only gets me yet another Tier-1 technician and their limited troubleshooting playbook. I did get to talk with a Tier-2 technician once, but the results were still the same:  Manages to restore it, but after just a few boot-ups the Adobe Creative Cloud app stops launching again and I can't use my Creative Cloud tools: Ps, Ai, Id, Pr. (And leaving my workstation on all the time isn't an option.)  What DOES keep working without fail is Adobe's monthly hit on my credit card.
    Has anyone else experienced this and managed to permanently solve it?  How?  I'm running a slightly older OS-X 10.7.5 and wondering if that could be a factor. Thanks for reading this and for any help you can offer.

    Hi TWalkerArt,
    Could you please create a test account and see whether the apps are working there: http://support.apple.com/kb/ph4600
    Regards,
    Romit Sinha

Maybe you are looking for