How to distribute/sell Java database desktop application ?

Hi,
I have developed a java desktop application(it is a kind of knowledgebase program) which uses mysql as a database, everything runs fine but I would like to know that how shall I distribute or sell my program.
My questions in short:
How to create a "Setup.exe" for your java desktop application which also has a database?
How to publish/distribute my database with my java application?
My Questions in detail:
I mean I want to create a "setup.exe" which users can download and then install it by providing the destination path(like any other program).
I also want users to add/edit data to the database by using the program's GUI, so my question is how will users be able to do that because obviously not everyone has a mysql database and service running on their computer and how should I provide the database with my program, should I provide the database file, but in that case anyone can access my database directly(by copying my database file to his mysql database folder), right ?
I am a beginner programmer hence I need a lot of guidance and advice, please give me all links, examples, articles etc, I am willing to read it all !
Thanks everyone.

rjhm_86 wrote:
How to create a "Setup.exe" for your java desktop application which also has a database?
Use Java Webstart.
How to publish/distribute my database with my java application?
My Questions in detail:
I mean I want to create a "setup.exe" which users can download and then install it by providing the destination path(like any other program).
I also want users to add/edit data to the database by using the program's GUI, so my question is how will users be able to do that because obviously not everyone has a mysql database and service running on their computer and how should I provide the database with my program, should I provide the database file,.. Is the DB meant to be editable?
Use any of a number of installers to install the DB, invoked from a webstart ExtensionInstallerService. Store the installation path using the Webstart PersistenceService (PS). Your app. will query the PS to get the path to the DB, start it, and go from there..
I have demos of the ExtensionInstallerService and PersistenceService on my site.
....but in that case anyone can access my database directly(by copying my database file to his mysql database folder), right ?If you give a DB to me, it's mine, buddy. Don't start this foolishness how the user might steal your data. If the data is so valuable, hide it behind a web service at your site and never actually give it to the end user. But really, your best protection in the case the DB data is distributed, is an EULA.
I am a beginner programmer hence I need a lot of guidance and advice, please give me all links, examples, articles etc, I am willing to read it all !Please give me cash. Deployment is the 'last 1%' of a project that consumes 10% of the time. Getting a good deployment is not a beginner topic and you will need to do a lot of searching & research and go through many trials and errors before you are done.
Thanks everyone.No worries.

Similar Messages

  • How to send sms port from Desktop applications to the Midlet?

    how to send sms port from Desktop applications to the Midlet?

    Depends on the API your SMS gateway provides, and may not even be possible. Even if you can send the SMS with a port specified, be aware that some carriers deliver the SMS without the port number, which will result in it going to the device inbox and so won't activate your MIDlet registered with the PushRegistry.
    I understand that you're working on a JavaSE application, but members who frequent the mobility forums might have more knowledge about this. Would you like me to move this thread there?
    db

  • How to load a java class when application is at first time browsed.

    Hi
    How can i load a simple java class on application startup.
    For servlet it could be done using "load on startup" tag in web.xml
    but how could the same be achieved for a simple java class.
    Thanks

    Hi
    Code is given below....
    package com;
    import java.io.IOException;
    import javax.servlet.RequestDispatcher;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class Test {
    Test()
         HttpServletRequest request=null;
         HttpServletResponse response=null;
         RequestDispatcher requestDispatcher = request.getRequestDispatcher("a.jsp");
         try {
              requestDispatcher.forward(request,response);
         } catch (ServletException e) {
              System.out.println("success");
              e.printStackTrace();
         } catch (IOException e) {
              System.out.println("success 1");
              e.printStackTrace();
         finally
              System.out.println("success 2");
         System.out.println("success 3");
    }Web.xml :
    <servlet>
            <servlet-name>simple</servlet-name>
            <servlet-class>com.Test</servlet-class>
            <load-on-startup>1</load-on-startup>
        </servlet>
      <servlet-mapping>
          <servlet-name>simple</servlet-name>
          <url-pattern>/init.do</url-pattern>
        </servlet-mapping>Error Trace :
    org.apache.catalina.core.StandardContext loadOnStartup
    SEVERE: Servlet /DispatcherTest threw load() exception
    java.lang.IllegalAccessException: Class org.apache.catalina.core.StandardWrapper can not access a member of class com.Test with modifiers ""
         at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65)
         at java.lang.Class.newInstance0(Class.java:344)
         at java.lang.Class.newInstance(Class.java:303)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1048)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:925)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3857)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4118)
         at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1069)
         at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1162)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
         at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1304)
         at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1568)
         at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1577)
         at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1557)
         at java.lang.Thread.run(Thread.java:595)

  • Steps to setup for my  Java Swing Desktop Application on Macintosh

    hi guys,
    I need help from all of u to create the setup for my Desktop application (developed in swings) on Macintosh. pls give me the references at least. how to approach the tools.
    its urgent...please....
    thanks in advance.
    -siva

    hi guys,
    I need help from all of u to create the setup for my Desktop application (developed in swings) on Macintosh. pls give me the references at least. how to approach the tools.
    its urgent...please....
    thanks in advance.
    -siva

  • How to use Xcelsius tool in Desktop applications

    Hello
    This is shankar, from IMS CRM4 team in SAP. We have a requirement for interactive anlalytics in our product and found that Xcelisus is the correct approach.
    Can you please clarify the following
    1. How to use the Xcelsius tool in desktop applications.
    2. Is Xcelsius Viewer free version available which can used only to view the interactive analytics. Xcelsius designer is not required for all the users.
    Thank You
    Shankar

    Hello Victor
    Thank you for your inputs !!
    Point 2 is very clear to me that we do not need any additional software to run the SWF files.
    We have CRM Mobile offline product with Crystal reports integrated already. CRM Mobile Offline solution is a desktop application and there is no intutive analytics.
    So i would like to know more on how to link the data (Excel or XML) to Xcelisus tool and get the output SWF file. Can it be done through the command line (without using Xcelsius designer) ??. Do we need to have any licensed version of Xcelisus for this task??
    This will promote both our prodcut and BOBJ Xcelisus prodcut as well
    Regards
    Shankar

  • How can manage session in javafx desktop application

    i have created a javafx desktop application and  my application also consume  restWebService for login and logout puspose. now how i can maintain session of any particular user??
    please if u have any idea let me know??
    thanx in advance.

    With the setup you have described, you don't need to maintain much of a session like in a traditional browser or a web app server scenario. 
    WIth a traditional web application, when a login authentication passes, normally a cookie is set in the browser to indicate that a session has been established and is cleared on logout to indicate that the session is over.  When the browser client talks to the server it sends the cookie across to the server and the server (using something like the servlet api) decodes the cookie to determine the session and makes use of appropriate session state to access a store of session related data which it eventually just throws away on logout or on session timeout.  The cookie is normally a random piece of data which forms a unique id for the session and is normally generated on the server.
    If you are using rest apis then they should be coded to be stateless, so there is no session involved, every request to the server is self contained and contains all the information required to authenticate the user.  (e.g. the user/password hash is passed every time).  Sometimes a variant will be used where a token is passed, for example an oauth token, representing delegated authentication from another service.  But you likely don't need to do that and just passing the full auth information everytime is sufficient.  The server itself also maintains no state, it just does the auth based on the credentials passed with each request and then performs what ever action it needs to create and return the resource requested.
    So really, all you need to do is to:
    1. Prompt user for login credentials (user/pass).
    2. Hash the pass and make a rest call to the server for validation (http basic auth over https could be used for this).
    3. If the auth passes, then store the current user/pass hash as application data somewhere (e.g. members of your application class instance).
    4. When you need to make another rest call, query the application instance for the user / pass hash and include that in the call.
    5. When the user logs out, clear the user / pass hash from the application (set it to null).
    6. Show the login prompt again for the user.
    Note that using other communications systems (such as akka, hessian, spring remoting etc), may be a bit simpler for some kinds of JavaFX client/server applications than using REST.

  • How to run a Java EE client application ?

    Greetings,
    I have a Java EE Application Project created with Eclipse (OEPE) and I don't know how to run it ? I asked the question on the OEPE forum but didn't manage to have any pertinent answer. I have also looked at Developing Java EE Application Clients (Thin Clients) in the Programming Stand-alone Clients book and tried to use commands as weblogic.clientDeployer and weblogic.j2eeclient.Main but haven't been able to get them working. And anyway, they are not done to be used in Eclipse as I didn't find any ant tasks for them.
    Many thanks in advance for any help.
    Nicolas

    I have an ear with the following content:
    0 Thu Apr 23 12:20:52 CEST 2009 APP-INF/
    0 Thu Apr 23 12:20:52 CEST 2009 APP-INF/classes/
    0 Thu Apr 23 12:20:52 CEST 2009 APP-INF/lib/
    6843 Thu Apr 23 12:20:52 CEST 2009 APP-INF/lib/ww204-jpa.jar
    0 Thu Apr 23 12:20:52 CEST 2009 META-INF/
    542 Thu Apr 23 12:19:44 CEST 2009 META-INF/application.xml
    25 Thu Apr 23 12:20:52 CEST 2009 META-INF/MANIFEST.MF
    659 Mon Apr 20 18:37:56 CEST 2009 META-INF/weblogic-application.xml
    1220 Thu Apr 23 12:20:52 CEST 2009 ww204-client.jar
    4040 Thu Apr 23 12:20:52 CEST 2009 ww204-ejb.jar
    I'm running the following command:
    java -classpath C:\bea\wlserver_10.3\server\lib\weblogic.jar weblogic.ClientDeployer ww204.ear ww204-client
    This creates the jar with the following content:
    764 Thu Apr 23 12:04:42 CEST 2009 Main.class
    0 Thu Apr 23 12:20:52 CEST 2009 META-INF/
    351 Thu Apr 23 12:10:08 CEST 2009 META-INF/application-client.xml
    43 Thu Apr 23 12:02:26 CEST 2009 META-INF/MANIFEST.MF
    And of course, when I try to run the client using the command:
    C:\Users\nicolas>java -classpath C:\bea\wlserver_10.3\server\lib\weblogic.jar weblogic.j2eeclient.Main ww204-client t3://localhost:7001
    it raises the following exception:
    java.lang.Exception: Stack trace
         at java.lang.Thread.dumpStack(Thread.java:1206)
         at weblogic.j2eeclient.Main.run(Main.java:194)
         at weblogic.j2eeclient.Main.main(Main.java:926)
    java.lang.Exception: Stack trace
         at java.lang.Thread.dumpStack(Thread.java:1206)
         at weblogic.j2eeclient.Main.run(Main.java:196)
         at weblogic.j2eeclient.Main.main(Main.java:926)
    Exception in thread "Main Thread" java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at weblogic.j2eeclient.Main.run(Main.java:201)
         at weblogic.j2eeclient.Main.main(Main.java:926)
    Caused by: java.lang.NoClassDefFoundError: fr/simplex_software/slsb/FacadeRemote
         at Main.main(Main.java:10)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at weblogic.j2eeclient.Main.run(Main.java:201)
         at weblogic.j2eeclient.Main.main(Main.java:928)
    The ww204-client.jar was created as an OEPE J2EE Application Project and it was extracted with weblogic.ClientDeployer from the ear exported by OEPE. But it doesn't contain the required classes.

  • CCP 1.7 - How to omit the Creative Cloud Desktop application

    Hi there,
    After packaging up Dreamweaver v15 CC using CCP 1.7 I cannot find a way to deselect the CC Desktop App (the check-box is ghosted on).  I have deselected the Apps Panel but it is not the result I want.  In our environment we don't want the Creative Cloud desktop app on the desktop or Start Menu and we certainly don't want it running when the user first logs on.  Can anyone advise please?
    Thanks

    So no one from Adobe can comment on this no?

  • Netbeans Java Desktop Application Problem

    Hi
    I have build a java desktop application via netbeans and it creates a jnlp file to execute this applets however in my project when i press a button on an applet it opens another applet and send some parameter via html file how can i do that in desktop application because it doesnt have html file it only has jnlp file ?
    Thanks

    I guess I didnt make myself clear enough,I dont want to use another applet's public methods I want to execute it
    Lets make a scenario
    assume that I have an applet a and applet b
    on applet a there is a button called open applet b and when somebody press this button applet b will be opened
    Before I was doing that like this
                URL page = new URL("http://www.xxx.edu.tr/~team5/nps/build/giris.html");
                getAppletContext().showDocument(page,"_self");but now I made the project netbeans desktop application so I dont have any html file I only have jnlp and jar files
    so what should I do to maintain opening an applet from another applet?
    Thanks

  • How to export the report in HTML format for desktop application

    Hi,
    i have wrote the JRC desktop application to export the report and i am able to export it in PDF and other formats as mentioned in "ReportExportFormat" API.
    i would like to know is there any API there which can export the report in HTML format.
    i know it would be possible with web based application of JRC, but how can i do it in desktop application?

    There's no mechanism for static HTML pages that displays the report.
    You can use the CrystalReportViewer DHTML viewer, but that's 'interactive'.
    Sincerely,
    Ted Ueda

  • How to improve database and application performance

    Hi,
    Any body please help me out that how can we improve the database and Application performance.
    Regards,
    Bhatia

    bhatia wrote:
    Hi,
    Any body please help me out that how can we improve the database and Application performance.
    Regards,
    Bhatiathere is no simple answer. There is no DATABASE_FAST=TRUE initialization parameter. There are a myriad of reasons why an application is performing poorly. It could be that the application (code and data relationships) is poorly designed. It could be that individual SQL statements are poorly written. It could be that you don't have enough cpu/memory/disk bandwidth/network bandwidth.
    You need to determine the root cause of poor performance and address it. If you application is poorly designed, you can tune the database until the cows come home and it won't make any difference. If you are trying to run 100k updates per second against a database hosted on hardware that only meets minimal requirements to install Oracle ... well, hopefully you get the picture.
    First, go to tahiti.oracle.com. Drill down to your selected Oracle product and version. There you will find the complete doc library. Find the Performance Tuning Guide
    Second, go to amazon.com and browse titles by Tom Kyte and Cary Milsap. I particularly recommend "Effective Oracle by Design" and "Optimizing Oracle Performance", though I see a lot of new titles that look promising (I think I'll be doing some buying!)

  • Developing desktop applications for windows

    Hello
    I am currently doing a final year project which is an encryption software for the company that i did my placement with. i have done the core part of the program but i need to know how to make it look professional. i need to be able to have it as an installable desktop application (Only for Windows), with an icon provided by me which is used when files are encrypted using the application. i have no idea how to achieve this effect and i seek knowledge.
    thanks in advance for your help

    There are many levels of professional software in my opinion. There is software that works, meets the requirements and doesn't crash. That's professional in the sense that it does what it is supposed to and does it well. People pay for that even if its green-screen non-GUI based. TONS of stuff still working/written for non-GUI environments and plenty pay for it.
    When related to Java and desktop applications, I feel there is only truly one real way to brag you have written a professional software suite. That is when your application not only adheres to what it should do, but provides a means to extend it without having to wait for major releases, and the UI is VERY consistent, not cluttered, not tons of buttons/menus/dialogs/windows all over the place and the underlying coce of the app is truly written well to make good use of areas of Java such as resources (properly closing files when not using them, returning DB connections when done, using WeakReference of nulling out refs to objects no longer needed). It is very very easy to cause a memory leak in a java application if you do not watch at all times for object refs that are left hanging.
    By extensibility, I mean providing some means of plugging in new pieces of code to enhance the product or fix existing issues (bugs) and providing a simple update facility that can either auto-update, or allow an install to add the update.
    It is exactly these reasons that keep me plugging away on my plugin engine (www.sourceforge.net/projects/genpluginengine) and UI framework built around plugins. While the engine is almost done and is very similar to the Eclipse plugin engine, the UI framework will be ongoing for some time. Making a very professional read-to-run-out-of-the-box free/open-source framework built on high-quality well tested plugins is not easy to accomplish with a couple hours a week and only me and one other doing it. I would love to get more help shortly, adding tons of great features that all developers could benefit from, and soon I will start asking various java boards for help, see if anyone is interested in contributing. The goal is a professional looking, solid underlying code, well/highly tested UI framework that can be used by anyone to quickly build their specifics and not worry about the more common UI application stuff such as file i/o choosers, help, preferences, authentication, access levels/rights, views and editors, and more. With a 3rd project working to add tons of Swing UI components, the final UI framework will provide a number of high-quality components like rounded/shaded/gradient filled panels with shadowing, calendar/date pickers, wizards, and more, again all highly tested to ensure ultimate quality.
    If you are interested, feel free to post back to this response with email, or join up at the above mentioned sourceforge project and start contributing to the mail list.

  • How can I install Creative Cloud Desktop on a MacBook Pro running Parallels Desktop and Windows 8.1?

    Does anyone have any help for installing Creative Cloud on a MacBook Pro running Parallels Desktop and Windows 8.1? I downloaded the app, double-clicked it, said yes to allowing it to change my system, and received a notice of installation failure with Error code 1000. Any help much appreciated.

    RogueResearcher please see Error "Failed to Install" Creative Cloud Desktop application - http://helpx.adobe.com/creative-cloud/kb/failed-install-creative-cloud-desktop.html for information on how to install the Creative Cloud Desktop application.  If you continue to experience Error Code 1000 can you please post a screen shot of the error?  Please see FAQ: How do I capture and post a screen shot or video? for information on how to post an image.

  • Creative Cloud Desktop application question

    I have downloaded the Creative Cloud Desktop application but the cloud icon does not appear on my apple toolbar. Why is that? I can manually find the Adobe Application Manager application and ask it to update the apps I use, and it says they are updated, but my programs don't have all the latest features, like the curvature tool in Illustrator, or the Color Theme tool in InDesign. It looks like I don't have the latest versions, even though the app manager says I do. ???

    I have a similar problem;
    I downloaded the Creative Cloud Desktop application .dmg on my Mac. When trying to install, the program is downloading data, but the progress bar stops at the moment the installation process begins. No Creative Cloud Desktop application is installed. I tried alread to make a new account on my mac, did a start up without extensions and disabled the virus scan, but no success.
    Any ideas how to get the Creative Cloud Desktop application installed?

  • Binding Beans and Data in a Desktop Application

    Hi
    I have a problem when binding a date field(database) with swing component
    I have build a database desktop application by next and next and next
    and when I run a program I have a problem that class casting exception
    by using Persistence
    help me please ...

    Hi,
    Can you just try the below code:
    XDIM_MEMBERSET ENTITY=E1
    *DESTINATION_APP = BUDGET
    *WHEN CATEGORY
    *IS ACTUAL
    *REC(EXPRESSION=1)
    *ENDWHEN
    Does this send the value of 1 to the BUDGET application?
    I remember there was a problem in sending the data of 0. To rectify that problem, you might have to upgrade to BPC NW 7.5 SP08 Patch2 or BPC NW 7.5 SP10.
    Hope this helps.

Maybe you are looking for

  • Pages document opened as a PDF on the web shows old name; why?

    I created a pages document with a file name "Seifert Waldren" last year. Then this year I used that same document, either as a duplicate or version and saved it with a new name Seifert Thum. Then I've put this in my web page and when I use Firefox to

  • How do I transfer music from my iPod to my computer which was not purchased on iTunes?

    I just downloaded iTunes Match to my MacBook Air. Now, how do I transfer music from my iPod to my Mac which I did not purchase on iTunes? When I downloaded iTunes Match, it did its thing, but none of the music that I burned from CDs showed up on my M

  • Live Update - how to know if its on?

    Has anyone ever required to find out if current render call is during live update or not? I would have imagined that it should be available at AEGP_GetCompFlags(), but its not! In such case a smaller size image is usually passed to the render, but fo

  • Slowdown In Starcraft 2

    Hi guys, I really need some advice on this. I have a 15 inch Macbook Pro, 2.66 Ghz i7 with 512mb GT330M. I installed Starcraft 2 on my MBP and with the graphics settings set at its recommended settings, which is high, I started the game with such eas

  • IMac suddenly shuts down

    My iMac 27" i7 / 16GB RAM / 256GB SSD is shutting down many times in an hour. All parts are original. I tried to apply all solutions from this topic: http://discussions.apple.com/thread.jspa?messageID=12158210 , no changes, it keeps switching off. He