How to develop an standalone application ?

Hi everybody:
I am a beginner. I had developed a database based application some years ago.
Nowadays ALL is on web...
My question is How to develop an standalone application with Java Studio Creator (or any other tool)?
I DONT WANT ANY JSP, HTML, ETC...
JUST files on java using swing for GUI.
My problem is that I am not good at designing GUI's so I would like to use a visual tool for the arrangement of the swing components, generating just *.java files.

Hi:
The features you have attached dont answer my question. I have installed Java Studio Creator, but the only option is to create drag and drop the GUI components on a jsp file, not swing components on a java file....If I try to execute the java files generated on the Studio Creator with java from the command com they can not recognise the classes because they were ment to be under a web environment....

Similar Messages

  • How to develop JMS Java Application.

    Now,I develop Java Application(J2SE stand alone) to send JMS for JMS Adapter(sender) verification.
    But fatal exception is displayed when I execute Java application.
    Error is rellated to following code.
    InitialContext context = new InitialContext(properties); //←(SendJMS.java:41)
    Are there wrong points in this code or other necessary settings(for example on Visual administrator) ?
    I think that Java Appli can send Java Message to JMS provider in J2EE(XIserver) by using JNDI.
    Is my thougt wrong?
    Sorry poor English.
    Best regards.
    (Java code)
    Created on 2007/09/06
    To change the template for this generated file go to
    Window>Preferences>Java>Code Generation>Code and Comments
    package jmsPackageS;
    import java.util.Properties;
    import javax.naming.*;
    import javax.jms.*;
    @author sakurai.youkou
    To change the template for this generated type comment go to
    Window>Preferences>Java>Code Generation>Code and Comments
    public class SendJMS {
         public static void main(String[] args) {
              try {
                   //1.JNDI server connection
                   //JNDI server connection property settings
                   java.util.Properties properties = new Properties();
                   properties.put(
                        Context.INITIAL_CONTEXT_FACTORY,
                        "com.sap.engine.services.jndi.InitialContextFactoryImpl");
                   //JNDI server URL
                   properties.put(Context.PROVIDER_URL, "xidevelp:50004");
                   //JNDI login data
                   //properties.put(Context.SECURITY_PRINCIPAL, "J2EE_ADMIN");
                   //properties.put(Context.SECURITY_CREDENTIALS, "mypassword");
                   //start initial context with the properties specified
                   InitialContext context = new InitialContext(properties); //(SendJMS.java:41)
                   //2.Register the connection factory
                   QueueConnectionFactory queueConnectionFactory =
                        (QueueConnectionFactory) context.lookup(
                             "jmsfactory/default/QueueConnectionFactory");
                   //3.Specify the connection type                //JMS provider connection
                   QueueConnection queueConnection =
                        queueConnectionFactory.createQueueConnection();
                   //4.Start the connection
                   //start the connection of Queue type
                   queueConnection.start();
                   //5.Create session
                   //create session of Topic type
                   QueueSession queueSession =
                        queueConnection.createQueueSession(
                             false,
                             Session.AUTO_ACKNOWLEDGE);
                   //6.Create or look up a destination
                   //create destination of Queue type
                   //Queue queue = queueSession.createQueue("Example_destination_name");
                   //look up a destination of Queue type
                   Queue queue =
                        (Queue) context.lookup("jmsqueues/default/sapDemoQueue");
                   //7.sender
                   // create subscriber to a queue
                   QueueSender queueSender = queueSession.createSender(queue);
                   //8.Send message contents
                   TextMessage textMessage = queueSession.createTextMessage();
                   textMessage.setText("Test");
                   //send message
                   queueSender.send(textMessage);
                   //sending message
                   String messageText = textMessage.getText();
                   System.out.println("Send Message text: " + messageText);
                   //Final.close
                   //closes the jms queue session
                   queueSession.close();
                   //Close the queue connection
                   queueConnection.close();
              } catch (NamingException ne) {
                   System.out.println("NamingException: " + ne);
              } catch (JMSException jmse) {
                   System.out.println("JMSException: " + jmse);
              } catch (Exception e) {
                   System.out.println("Error");
    (error message)
    java.lang.NoClassDefFoundError: com/sap/exception/IBaseException
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
         at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:219)
         at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:42)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:649)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
         at javax.naming.InitialContext.init(InitialContext.java:219)
         at javax.naming.InitialContext.<init>(InitialContext.java:195)
         at jmsPackageS.SendJMS.main(SendJMS.java:41)

    Hi Yoko
    have look at  this troubleshooting Pdf's
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1706a7e3-0601-0010-b4b6-c5641cccc920
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3a83c242-0801-0010-dc95-d496cf6dba9d
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/bd5950ff-0701-0010-a5bc-86d45fd52283
    Thanks !!!

  • Looking for a standalone application/system menu

    Most (all?)  desktop environments features some kind of application menu in the panel. But for the people running more lightweight environments (like just a tiled wm) have no reason to have an extra panel around just for the menu.
    I know about application launchers, such as launchy and gmrun, but the thing I'm looking for is something that could give me a list of all "bigger" programs installed, grouped by category. Because, simply, I can never remember all stuff I've installed over the years.
    So I'm thinking: there must be someone out there that has developed a standalone application menu?
    Either the program could just scan the "/usr/share/applications" direcotry, or one could try to extract the menu part from a panel program, such as lxpanel?

    Hey, adeskmenu seem to be exactly what I'm looking for! Thanks a lot! :-)
    (now just need to find out why the aur version crashes... no problem, though. seems to be other versions around that works)

  • JMS Standalone Application

    I am Developing JMS Standalone Application And Using Sun App Server 8.1 The Following I Have Created
    1. META-INF/application-client.xml
    2. source/jms/SimpleQueueSender.java
    3.source/jms/SimpleQueueReceiver.java
    The Following Is The Code In application-client.xml
    <application-client>
            <display-name>Simple JMS Standalone Application </display-name>
            <resource-ref>
                    <description>Simple Queue SenderReceiver</description>
                    <res-ref-name>jms/MyQCF</res-ref-name>
                    <res-type>javax.jms.QueueConnectionFactory</res-type>
                    <res-auth>Container</res-auth>
            </resource-ref>
            <resource-env-ref>
                    <description>SQR</description>
                    <resource-env-ref-name>jms/MyQueue</resource-env-ref-name>
                    <resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
            </resource-env-ref>
    </application-client>The Following Is The Code Used In SimpleQueueXXX(Either Sender Or Receiver )
    queueConnectionFactory = (QueueConnectionFactory)
                    jndiContext.lookup("java:comp/env/jms/MyQCF");
                queue = (Queue) jndiContext.lookup("java:comp/env/jms/MyQueue");when i run the the packaged jar file using appclient
    the following error is generated
    WARNING: ACC003: Application threw an exception.
    javax.naming.InvalidNameException: Real JNDI name cannot be empty for jms/MyQCF
    at com.sun.enterprise.naming.NamingManagerImpl.bindObjects(NamingManagerImpl.java:475)
    at com.sun.enterprise.appclient.AppContainer.preInvoke(AppContainer.java:134)
    at com.sun.enterprise.appclient.Main.<init>(Main.java:383)
    at com.sun.enterprise.appclient.Main.main(Main.java:99)
    Mar 9, 2006 7:16:40 PM com.sun.enterprise.appclient.Main <init>
    WARNING: ACC010: Make sure the server port is not disabled and that you are looking up a valid name
    Thanks In Advance , Please Help Me At The Earliest

    Yaa , I Have Resolved It By Writing sun-application-client.xml but now i am getting some another error , can look into this why does this come
    Mar 10, 2006 12:53:26 PM com.sun.enterprise.appclient.Main <init>
    WARNING: ACC003: Application threw an exception.
    java.lang.ClassNotFoundException:
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at com.sun.enterprise.appclient.Main.<init>(Main.java:388)
    at com.sun.enterprise.appclient.Main.main(Main.java:99)
    Thanks In Advance , Please Reply At The Earliest

  • Standalone applications in UCM

    How to run the standalone applications like Batch Loader, System Properties etc. from client computers i.e. systems not having content server installed on them.
    Any help would be appreciated.
    Regards
    Pradeep

    Would you mind to do one more iteration and put reasons why you need to run each of these applications remotely?
    I will try to give few hints:
    - The Archiver and Batch Loader make perfect sense to be run remotely. The Archiver has an admin applet (in admin web GUI) and Batch Loader was covered in my fist answer. Note that these are more 'Data admin' than 'System admin' apps.
    - System Properties, on the other hand, is probably not something you want to run on regular basis (remotely). Windows Remote Connection should be OK for those admins that need to have access.
    - idcAnalyze is a troubleshooting application. I'd tend to believe that it belongs to the same category as System Properties.

  • Ejb in standalone application

    hello
    does anybody know how to make a standalone application, with ejb classes as domainobjects, run?
    currently i keep on getting the same error:
    Exception in thread "main" java.lang.IllegalArgumentException: Unknown entity bean class: class be.roularta.scenario.domain.Definition, please verify
    that this class has been marked with the @Entity annotation.
            at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerImpl.findInternal(EntityManagerImpl.java:266)java version is 1.5.0
    can anybody help me ?

    Hi Martin,
    I am trying to do something similar and got the same exception.
    java.lang.ClassCastException
         at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:293)
         at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:134)
         at com.sap.ip.bi.sdk.datasource.beans.TestJ2EE.getSystems(TestJ2EE.java:124)
         at com.sap.ip.bi.sdk.datasource.beans.TestJ2EE.<init>(TestJ2EE.java:67)
         at com.sap.ip.bi.sdk.datasource.beans.TestJ2EE.main(TestJ2EE.java:146)
    The code snippet:
    Properties props = new Properties();
              props.put(Context.INITIAL_CONTEXT_FACTORY,
                        "com.sap.engine.services.jndi.InitialContextFactoryImpl");
              props.put(Context.PROVIDER_URL, "localhost:50004");
              props.put(Context.SECURITY_PRINCIPAL, "Administrator");
              props.put(Context.SECURITY_CREDENTIALS, "");
              try {
                   Context ctx = new InitialContext(props);
                   Object obj = ctx.lookup("BI_SDK_CAF");
                   IBI_CAF_Home boxHome = (IBI_CAF_Home) PortableRemoteObject.narrow(obj,
                             IBI_CAF_Home.class);
                   BI_CAF_Bean bean = (BI_CAF_Bean) boxHome.create();
              } catch (Exception e1) {
                   // TODO Auto-generated catch block
                   e1.printStackTrace();
    I tried doing the "get client jar" and putting it in the classpath but that did not work.
    Am I missing something else?
    Regards,
    Anweas

  • How to use JDBC Connection Pools in a standalone application?

    Hi, there,
    I have a question about how to use JDBC Connection Pools in an application. I know well about connection pool itself, but I am not quite sure how to keep the pool management object alive all the time to avoid being destroyed by garbage collection.
    for example, at the website: http://www.developer.com/java/other/article.php/626291, there is a simple connection pool implementation. there are three classes:JDBCConnection, the application's gateway to the database; JDBCConnectionImpl, the real class/object to provide connection; and JDBCPool, the management class to manage connection pool composed by JDBCConnectionImpl. JDBCPool is designed by Singleton pattern to make sure only one instance. supposing there is only one client to use connection for many times, I guess it's ok because this client first needs instantiate JDBCPool and JDBCConnectionImpl and then will hold the reference to JDBCPool all the time. but how about many clients want to use this JDBCPool? supposing client1 finishes using JDBCPool and quits, then JDBCPool will be destroyed by garbage collection since there is no reference to it, also all the connections of JDBCConnectionImpl in this pool will be destroyed too. that means the next client needs recreate pool and connections! so my question is that if there is a way to keep pool management instance alive all the time to provide connection to any client at any time. I guess maybe I can set the pool management class as daemon thread to solve this problem, but I am not quite sure. besides, there is some other problems about daemon thread, for example, how to make sure there is only one daemon instance? how to quit it gracefully? because once the whole application quits, the daemon thread also quits by force. in that case, all the connections in the pool won't get chance to close.
    I know there is another solution by JNDI if we develop servlet application. Tomcat provides an easy way to setup JNDI database pooling source that is available to JSP and Servlet. but how about a standalone application? I mean there is no JNDI service provider. it seems a good solution to combine Commons DBCP with JNID or Apache's Naming (http://jakarta.apache.org/commons/dbcp/index.html). but still, I don't know how to keep pool management instance alive all the time. once we create a JNDI enviroment or naming, if it will save in the memory automatically all the time? or we must implement it as a daemon thread?
    any hint will be great apprieciated!
    Sam

    To my knoledge the pool management instance stays alive as long as the pool is alive. What you have to figure out is how to keep a reference to it if you need to later access it.

  • How to use quartz to integrate a standalone application in a webserver

    Can anyone help me in using quartz where i need to integrate a java standalone application into the webserver..I am developing an application using jsp and as part of a task i had created a standalone application in java and now i need to integrate this standalone application into the webserver because it needs to run as a webapplication.

    Hai sam,You gave us many valuable suggestions in the past.We tried all of those methods to make our application run as per scheduled but we failed.We have not yet tried the servlet method,which you suggested in your last reply. Actually we tried to use the os scheduler for this purpose and couldn't do it at the end.So can you suggest the way in which we have to write the servlet and invoke it. We dont need all the details.Just give us the idea of what this servet contains actually and how it works.We will try to do it.Thank you,

  • How can I turn off the WLS 6.1 security in order to develop my own application-based security module?

    Dear Colleagues,
    I am currently developing a J2EE application using WLS 6.1.
    My team and I have to implement a security requirement to suit our company's needs.
    The security requirements are that, users' password need to be aged (30 days maximum) and we need to provided a GUI front-end (JSP) to allow users to change their password when these expire after 30 days.
    Our internal contacts in the company, have already taken the lead to find out about whether we will be able to use the WLS 6.1 platform to do this and the answer we got back, was.
    Now we need to develop our own security module.
    I have 2 questions:
    1. How can we turn off the WLS security in order develop our own application-based security module?
    2. How can we develop a security module that allows us to age users' password and provide them with facilities to change their passwords when these expire?
    At the moment, we are using the default BEA WebLogic login.jsp page and there some configuration in the web.xml for this. I will be grateful if you could advise me on how to turn this default security off so that we can write our own security module.

    hi,
    1.You can write your own realm in 61 which can plugged for your security
    calls.
    2. once you write your ownrealm.. you can access it through weblogic
    api/ur api..
    thanks
    kiran
    "Richard Koudry" <[email protected]> wrote in message
    news:3dd0d081$[email protected]..
    Dear Colleagues,
    I am currently developing a J2EE application using WLS 6.1.
    My team and I have to implement a security requirement to suit ourcompany's needs.
    >
    The security requirements are that, users' password need to be aged (30days maximum) and we need to provided a GUI front-end (JSP) to allow users
    to change their password when these expire after 30 days.
    >
    Our internal contacts in the company, have already taken the lead to findout about whether we will be able to use the WLS 6.1 platform to do this and
    the answer we got back, was.
    >
    Now we need to develop our own security module.
    I have 2 questions:
    1. How can we turn off the WLS security in order develop our ownapplication-based security module?
    >
    2. How can we develop a security module that allows us to age users'password and provide them with facilities to change their passwords when
    these expire?
    >
    At the moment, we are using the default BEA WebLogic login.jsp page andthere some configuration in the web.xml for this. I will be grateful if you
    could advise me on how to turn this default security off so that we can
    write our own security module.

  • How do i develop a chat application using jms over web based

    I want to develop a chat application using jms with mailing,file transfer and audio facilities
    can anyone help me to how to go abt that

    There is a good article from Sun on a simple example of what you want - it could serve as a basis for you.
    http://developer.java.sun.com/developer/technicalArticles/peer/

  • How can I develop a web application using EJB design pattern?

    I have searched over the web and found quite a lot of tutorials on how to use the EJB design pattern.
    I know that there will be a home interface, EJB object interface and a SessionBean.
    But the tutorials often only cover a single class, this made me unable to get a complete picture of how EJB design pattern can be implemented into a whole system.
    I am now required to devleop an online shopping web application using EJB and JSP page.
    I think I will need to create a lot of classes: Member, ShoppingCart, Product...etc.
    What I want to ask is that, do I need to create a home interface, EJB object interface and a SessionBean for each of these classes?
    I really need some ideas on how to develop this system using EJB + JSP pages.
    Many thanks to you all.

    For every EJB that you want to create, you will need to code a home and remote interface and a bean class.
    You could start getting your ideas here
    http://www.theserverside.com/books/wiley/masteringEJB/
    http://www.coreservlets.com

  • How to create a standalone executable in LabVIEW 2009 Professional Development System?

    How to create a standalone executable in LabVIEW 2009 Professional Development System?
    Solved!
    Go to Solution.

    This should help you out http://zone.ni.com/devzone/cda/tut/p/id/3303
    Also remember that quick search with Google in many cases will be quicker than asking in this forum. I always use Google before I ask for help in any forum. It is much quicker
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • How to develop web application using ejb3.0 with eclipse

    Hi ,
    I am new to ejb3.0 with eclipse. If any one familar that please guide me...
    how to develop web application using ejb3.0 with eclipse.please help me... server jboss4.2.2. database mqsql5.0
    Thanks,

    jsf_VWP5.5.1 wrote:
    I am new to ejb3.0 with eclipse. If any one familar that please guide me...http://help.eclipse.org/help33/index.jsp

  • How to create datasource for standalone application using JPA

    In the persistence.xml configuration file, we have data source got it from web server configuration file, and created by server like Jboss or tomcat.
    I just wonder how to create this same data source via Java stand-alone application?
    I have Java standalone application embedded Jetty server running with JPA module. Question is how to setup or create data source from my Java application just like web server; which called by persistence.xml?
    Thanks,

    Hello,
    Sharepoint deployment is completely different. I don't think you can deploy any solution as wizard in prod so you have to first identify what you want to deploy.
    If you just want to deploy only web application then backup/restore process is available in sharepoint. you can use STSADM or powershell to deploy your web app.
    http://technet.microsoft.com/en-us/library/ee748618%28v=office.14%29.aspx
    If there is any custom code or .NET code then create a WSP package and deploy it on prod. If you have multiple WSP's then create a batch file (as exe package) then run this package on prod.
    http://www.ironspeed.com/Designer/9.1.1/WebHelp/Part_VI/SharePoint_Solution_Package_WSP_Deployment.htm
    Let us know in case any doubt
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • How to pack a standalone Java application

    Hi, all. I have a stand alone Java application which includs some classes and some properties files. Meanwhile, I'm using some libraries(in jar files) from 3rd party as library extension.
    When I developed my application in the IDE, I can run it from the IDE and it works fine.
    Now I want to run it out of the IDE, it always complains that is can't find the 3rd party classes. I have tried to modify the classpath to include the extension libraries but it goes no avail. What might be the problem?
    And normally, how will you pack the application to submit it to the end-users? How do you include the libraries from 3rd party without end-users' awareness?
    Thanks a lot!

    Put it in a jar, and use the classpath-setting in the jar manifest file.
    Or extract the 3rdparty libraries, and put everything in a big jar.
    Or provide a .bat-file and a shellscript that sets classpath temporarily.

Maybe you are looking for

  • 3rd gen iPod not recognized when using Firewire

    The 3rd gen iPod only charges via FireWire. Given the lousy battery life provided by the device, I need to be able to sync using the Firewire port of my Macbook (Home) or my Macbook Pro (work). The device is not recognized by iTunes (or in general, n

  • Difference between Webservice and Enterprise Service

    Hi all, In SAP, web service is known as Enterprise Service. What makes Enterprise Service different from a normal web service?

  • ResultSet next and previous

    I have to Loop through a ResultSet.I have to use previous method inside the loop in certain condition. Is previous and next method efficient to use.I want to know wether the ResultSet uses indexes or each time it gets the data from the Database. I wa

  • Linux 5 64 bit ODBC connectivity with MS SQL Server

    Dear All, Env. Oracle EBS R12 – DB 10gR2 64bit on Redhat linux 5.4 64bit We want to connect OracleDB10gR2 64bit to MS sql Server 2000 on Windows 2003. Is there any ODBC driver is available for Linux 64 bit Regards

  • New service 30 day policy question

    Long story short, i was told by a verizon rep over the phone before i even became a customer, if i order a droid2, can i swap it for the droid x within my 30 days.  Due to at the time the droidx wasnt and still isnt available, and it has yet to be in