Creating function without creating class

we can write stand-alone functions in c/c++ (without creating class) that is not possible in c++. but somebody told me there is a way to do this in Java. i could not believe. he did not tell me the way. is it really possible ?

It is not possible to create a function/method in Java without creating a class because ALL functions/methods have to be contained within a class.

Similar Messages

  • Cannot create class in system package

    Hello,
    I wrote a J2ME game for nokia S40 phones. It compiles without any errors, but when I'm trying to run in on the Nokia 7210 phone emulator I receive the following message:
    Cannot create class in system package.
    Howerver running on the Nokia 6230 phone emulator is ok.
    I have obfuscated my applet as I read in previous topics, but still it does not work.
    Can anyone help me?
    Thanks,
    Alexander.

    You get that error when you try to reference a class that is part of the MIDP framework but isn't installed on the phone.
    The 7210 doesn't support MMAPI or WMA or MIDP 2.0, while the 6230 does, so check that you don't have any references (even an import statement), to classes from those packages (like the javax.microedition.media.*, javax.microedition.lcdui.game.*,javax.wireless.messaging.*, etc. packages hierarchies).
    shmoove

  • Creating class files

    javac.exe is not creating class file.My os is win2000 and system 1s PIV

    Actually my pbroblem is javac is not at all creating class file
    iconfirmed it by searchig.
    even i am not getting the options of javac after typing 'javac'
    at the command prompt without giving any file name after the command
    'javac'

  • Error during BCC base data import:  Unable to create class DeploymentServer

    Unable to create class atg.deployment.server.DeploymentServer for configuration /atg/epub/DeploymentServer java.lang.NoClassDefFoundError
    Hello~~~. Can anyone point me into the right direction
    I had checked my class path it got atg.deployment.server.DeploymentServer.
    and the 'legacy' /atg/epub/DeploymentServe looks like (which is doing nothing...really)
    #/atg/epub/DeploymentServer/
    #/atg/epub/DeploymentServer property allowMissingNonEssentialAgents is set to true. By default, this property is set to false. If set to false, unessential agents are treated like essential agents and must be online and functional during deployment.
    #All agents that are flagged as essential are online and functional.
    #allowMissingNonEssentialAgents     false
    ----------stack trace error ---------------
    [exec] **** info     Wed Mar 07 10:20:01 EST 2012     1331076001656     /DPSLicense     atg.service.ServiceResources->dynamoPrintMaxSessions : Only 20 concurrent sessions can be managed with this license
    [exec] **** info     Wed Mar 07 10:20:01 EST 2012     1331076001656     /DPSLicense     atg.service.ServiceResources->dynamoPrintMaxDynamoServers : Only 3 Dynamo server(s) can be used concurrently with this license
    [exec] **** info     Wed Mar 07 10:20:01 EST 2012     1331076001656     /DPSLicense     DPS is licensed to Hutchison 3G Australia Pty Limited - Development
    [exec] **** info     Wed Mar 07 10:20:01 EST 2012     1331076001656     /DPSLicense     atg.service.ServiceResources->unlimitedLicenseMsg : This product is licensed for an unlimited number of CPUs.
    [exec] **** info     Wed Mar 07 10:20:03 EST 2012     1331076003062     /atg/epub/version/VersionManagerRepository     SQL Repository startup complete
    [exec] **** info     Wed Mar 07 10:20:03 EST 2012     1331076003203     /atg/dynamo/server/SQLRepositoryEventServer     Service /atg/dynamo/server/SQLRepositoryEventServer listening at http://cgi-hxc15q12:3040/
    [exec] **** info     Wed Mar 07 10:20:03 EST 2012     1331076003265     /atg/epub/process/ProcessData-ver     SQL Repository startup complete
    [exec] **** info     Wed Mar 07 10:20:03 EST 2012     1331076003281     /atg/epub/process/ProcessDataRepository     SQL Repository startup complete
    [exec] **** info     Wed Mar 07 10:20:03 EST 2012     1331076003390     /atg/epub/file/PublishingFiles-ver     SQL Repository startup complete
    [exec] **** info     Wed Mar 07 10:20:03 EST 2012     1331076003421     /atg/epub/file/PublishingFileRepository     SQL Repository startup complete
    [exec] **** info     Wed Mar 07 10:20:03 EST 2012     1331076003781     /atg/userprofiling/InternalProfileRepository     SQL Repository startup complete
    [exec] **** info     Wed Mar 07 10:20:03 EST 2012     1331076003890     /atg/dynamo/security/AdminSqlRepository     SQL Repository startup complete
    [exec] **** info     Wed Mar 07 10:20:03 EST 2012     1331076003890     /atg/dynamo/security/AdminAccountInitializer     Initializing account database /atg/dynamo/security/AdminAccountManager from /atg/dynamo/security/SimpleXmlUserAuthority
    [exec] Nucleus running
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004453     /     Unable to create class atg.deployment.server.DeploymentServer for configuration /atg/epub/DeploymentServer java.lang.NoClassDefFoundError: javax/ejb/FinderException
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /     Unable to resolve component /atg/epub/Configuration      java.lang.NoClassDefFoundError: javax/ejb/FinderException
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at java.lang.Class.forName0(Native Method)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at java.lang.Class.forName(Class.java:242)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.PropertyEditors.getPropertyEditor(PropertyEditors.java:254)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.BeanConfigurator.getProperty(BeanConfigurator.java:731)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.BeanConfigurator.configureStateProperty(BeanConfigurator.java:683)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.BeanConfigurator.configureStateProperty(BeanConfigurator.java:594)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.BeanConfigurator.configureState(BeanConfigurator.java:418)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.PropertyConfiguration.configureState(PropertyConfiguration.java:809)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.PropertyConfiguration.configureService(PropertyConfiguration.java:748)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.SingleNucleusConfigurator.configureService(SingleNucleusConfigurator.java:62)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.NucleusNameResolver.configureService(NucleusNameResolver.java:1319)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.NucleusNameResolver.configureAndStartService(NucleusNameResolver.java:1119)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:787)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:569)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:550)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.NucleusNameResolver.resolveName(NucleusNameResolver.java:394)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.NucleusNameResolver.resolveName(NucleusNameResolver.java:1051)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.ConfigurationRef.getValue(ConfigurationRef.java:81)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.ConfigurationRefProperty.getValue(ConfigurationRefProperty.java:82)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.SimpleComponentState.setBeanProperty(SimpleComponentState.java:357)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.SimpleConfigurationState.saveToBean(SimpleConfigurationState.java:218)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.SimpleConfigurationState.configureBean(SimpleConfigurationState.java:241)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.BeanConfigurator.configureBean(BeanConfigurator.java:275)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.PropertyConfiguration.configureService(PropertyConfiguration.java:752)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.SingleNucleusConfigurator.configureService(SingleNucleusConfigurator.java:62)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.NucleusNameResolver.configureService(NucleusNameResolver.java:1319)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.NucleusNameResolver.configureAndStartService(NucleusNameResolver.java:1119)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:787)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:569)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:550)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.NucleusNameResolver.resolveName(NucleusNameResolver.java:394)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.NucleusNameResolver.resolveName(NucleusNameResolver.java:1051)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.ConfigurationRefArray.getValue(ConfigurationRefArray.java:146)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.SimpleComponentState.setBeanProperty(SimpleComponentState.java:357)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.SimpleConfigurationState.saveToBean(SimpleConfigurationState.java:218)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.SimpleConfigurationState.configureBean(SimpleConfigurationState.java:241)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.BeanConfigurator.configureBean(BeanConfigurator.java:275)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.PropertyConfiguration.configureService(PropertyConfiguration.java:752)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.SingleNucleusConfigurator.configureService(SingleNucleusConfigurator.java:62)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.NucleusNameResolver.configureService(NucleusNameResolver.java:1319)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.NucleusNameResolver.configureAndStartService(NucleusNameResolver.java:1119)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:787)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:569)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:550)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.NucleusNameResolver.resolveName(NucleusNameResolver.java:394)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.Nucleus.resolveName(Nucleus.java:2648)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.GenericService.resolveName(GenericService.java:315)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.nucleus.GenericService.resolveName(GenericService.java:367)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.adapter.gsa.xml.TemplateParser.runParser(TemplateParser.java:5498)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /          at atg.adapter.gsa.xml.TemplateParser.main(TemplateParser.java:5072)
    [exec] **** Error     Wed Mar 07 10:20:04 EST 2012     1331076004484     /

    The class that is missing is javax/ejb/FinderException
    Download one of the jars from below site and add it to classpath. Then build the ear again and restart the server.
    http://www.jarfinder.com/index.php/java/info/javax.ejb.FinderException
    Peace
    Shaik

  • Error while creating class

    Error while creating class java/util/LinkedHashMap$EntryIterator
    ORA-29545: badly formed class: User has attempted to load a class (java.util
    .LinkedHashMap$EntryIterator) into a restricted package. Permission can be grant
    ed using dbms_java.grant_permission(<user>, LoadClassInPackage...
    -----Any Suggestion?
    regards,
    Anjan

    Anjan,
    Pardon me for stating the obvious, but did you do what the error message suggested? In other words, did you grant the required permission?
    Good Luck,
    Avi.

  • I dont understand creating classes they seem a waste of time and efficiency

    I dont understand why we would want to create classes with constructors and get and set statements... I know that VB and Java did not create these just to have us writing extra code so I am missing something in my thinking.
    I read about data hiding and that I understand I guess...but everytime my professors want me to create a class then create an object from that class to access it I dont really get it. I know how to do the basics of it but I can do all of it in my main or the primary class whats the benefit of creating a whole entire class such as the following?
    Everytime I get an assignment and they are like create a class and I try to rack my head for a good idea but the nearest analogy I can come up with is this... creating your own class seems like one of those old straws you drink out of with all the loops, yes you can make it go around in a big loop but why waste time? you want to get to point A to point B so create the most efficient way to get there if possible.
    I am sure the problem is I am not seeing something and there is some logic missing but I just am getting irritated as I am not seeing it and I am finding it, its like I add an extra obstacle course to my code for no other reason than to run through a bunch of extra tasks that I could perform in my main class or main.
    input is welcome to help me arrive at some type of enlightenment thanks
    Class may not be the correct wording for this as I know we have to have a class but what I mean is a non application class. The class I have below goes with another class that actually does a lot of stuff but I am forced to push data through this class that basically does nothing but run water through some different pipes if you will. To me thats a waste when I can do everything in my original class which was called menu that I am messing with and that creates an array for a user who wants to keep a list of his items and prices of those items in inventory.
    public class Item
    private String itemName;
    private double itemPrice;
              public Item()
    public Item (String item, double price)
    setName(item);
    setPrice(price);
    public String getName()
         return itemName;
    public void setName(String item)
         itemName = item;
    public double getPrice()
         return itemPrice;
    public void setPrice(double price)
         itemPrice= price;
    Edited by: Bricatw on Oct 30, 2009 10:33 PM

    What I was plugging into it and please forgive the code as its not finished... (I am still messing with it) its just for learning and I am required to have certain parts in the Item Class and Certain parts in the Menu class..... But you it pushes through the input to the java bean.... in a case like this I just dont see the need for doing it not that I can think of anyway.
    import java.util.Scanner;//my imports for scanner so can read from the screen
    import java.util.*;//imports for my array I used astrix to just import it all as the book said it does not have any negative affects.
    public class Menu //My application class Menu that contains my main
         public static void main(String[] args)//Main method
              final int NUMBER_Of_Elements = 30; //created a symbolic constant so that I only have to change the constant
              //to edit the size of the array if I should want to change it.
              Item[]inventory = new Item[NUMBER_Of_Elements];//I create a new array object with the constant as the number of elements.
              Scanner sc = new Scanner (System.in);//created object from the scanner class used to get input from the console screen.
              System.out.println("Please enter Item on first line and price on second line.");//outputted text to prompt user and give instructions.
              System.out.println("Enter STOP to exit");//instructions on how to exit the program. I would have rather used a different
              //word than stop here. If my choice I would have used "exit" as its more widely used and to promote uniformity.
              int count;//count variable used to count my loops very important as we use it to control our arrays and loops here.
              double price;//our variable that we plug in values from the user via the console.
              String item;//same as previously mentioned for the "price"
                        System.out.println("Wings Coffee Shop Menu");
              System.out.println("");
              System.out.println("Menu Item Price");
              for (count=0; count<inventory.length; ++count)//This is our for loop it uses the length method to control how many times
              //it runs. In this case inventory.length = 30 elements so would run 30 times unless it stopped early.
                   item = sc.nextLine();//reads the input from console into the item variable.
                   if(item.equalsIgnoreCase("STOP"))//if statement that states if = stop (ignores case sensitivity) then it will break out of the loop.
                   break;//the break command which is executed if the if statement is true.
                   price = Double.parseDouble(sc.nextLine());//
                   inventory[count]= new Item(item, price);
                   Item Call = new Item(item, price);
                   System.out.printf("%-13s %.2f\n", Call.getName(), Call.getPrice());
              System.out.println("Wings Coffee Shop Menu");
              System.out.println("");
              System.out.println("Menu Item Price");
    //           for(int x = 0; x < count; ++x)
    //           System.out.printf("%15s\n",inventory[x].toString());
    //                System.out.printf("%-13s %.2f\n", Call.getName(), Call.getPrice());
    //           String[] namesOfItems = {"Coffee", "Milk", "Soda", "Bagel", "Croissant", "Donut"};
    //           double[] prices = {3.99, 2.99, 2.49, 2.99, 2.49, 1.99};
    //           for(int x = 0; x < prices.length; ++x)
    //           System.out.printf("%-13s %.2f\n", namesOfItems[x], prices[x]);
    //           Item arrayPrice = new Item(); HOW COME I CANNOT CREATE THIS OBJECT?
    //           Item call = new Item ();
    //           Item Call = new Item("item", 4.9);
    Edited by: Bricatw on Oct 30, 2009 11:22 PM

  • How to create class interface

    Hi all,
    How shud i create class interface.
    Does this have an impact with the activation of program in sicf txn.
    basically my problem is i did not create a class interface or implement it.
    when i go into sicf txn i cant my program.
    please help me out.
    Regards,
    varun

    Vadnala,
    Go to SE24 to create your class interface and take a look at the tutorials we have spread in the SAP help and SDN. Take a quick look at BSP aplications SBSPEXT_*.
    Regards,
    Alexandre

  • Cannot create class in system package while Using Sprite class

    Hi i developed a game using Sprite class & imported
    javax.microedition.lcdui.game.*; package. But when i tried to build this project it gave me "Cannot create class in system package" error. Worst thing is that now again if i build, then it displays error "package javax.microedition.lcdui.game.*; does not exist" . Pls help me

    First exception means that you tried to create a class with the package name equaling one from the predefined libraries in midp/cldc.
    For your second error, add all the jars you are using into the project's classpath.
    Mihai

  • How can I create classes dynamically?

    Guys
    My requirment is I want to create classes and their instancess too dynamically. First is it possible in Java?
    If so, then my next question is how can I refer such dynamically created classes in my code to avoid compilation error.
    Thanks in advance
    Regards
    Sunil

    For other ways to generate classes on runtime you could also have a look at BCEL:
    http://jakarta.apache.org/bcel
    And dynamic proxies:
    http://java.sun.com/j2se/1.4.2/docs/guide/reflection/proxy.html
    If so, then my next question is how can I refer such
    dynamically created classes in my code to avoid compilation
    error.Generally the classes that you load should either implement some interface or extend some abstract class you know of at compile time so that the compiler knows what methods are available for use. If that's not possible you can only use reflection.

  • What are the steps to create classes?

    What are the steps to create classes?

    Hello.
    Here's one example applied to a BSP page.
    How to create your first OO Abap Class for a BSP
    Kind regards.
    Bruno

  • Cannot create class of type 'flex.samples.factories.SpringFactory'

    I have an application that is trying to use BlazeDS.  I am using Flash Builder 4 Plug-in on RSA 7.5.5.  Any help would be apprecialted!
    Here is the relevant lines in the services-config.xml:
    <factories>
    <factory id="spring" class="flex.samples.factories.SpringFactory"/>
    </factories> 
    I have the flex.samples.factories.SpringFactory in the web projects src folder and verified that it is getting compiled and the class exists in the WEB-INF/classes folder.
    Here is the full stack trace:
    [5/31/11 8:54:44:530 CDT] 00000018 SystemErr     R **** MessageBrokerServlet failed to initialize due to runtime exception: [1]flex.messaging.MessageException: Cannot create class of type 'flex.samples.factories.SpringFactory'. Type 'flex.samples.factories.SpringFactory' not found.
    at flex.messaging.util.ClassUtil.createClass(ClassUtil.java:65)
    at flex.messaging.util.ClassUtil.createClass(ClassUtil.java:47)
    at flex.messaging.config.FactorySettings.createFactory(FactorySettings.java:55)
    at flex.messaging.config.MessagingConfiguration.createFactories(MessagingConfiguration.java: 114)
    at flex.messaging.config.MessagingConfiguration.configureBroker(MessagingConfiguration.java: 93)
    at flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:125)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:220)
    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.init(ServletWrapper.java:328)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1252)
    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:161)
    at com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtens ionProcessor.java:99)
    at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:882)
    at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:804)
    at com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:522)
    at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:359)
    at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:337)
    at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:92)
    at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157)
    at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:666)
    at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:619)
    at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:395)
    at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:611)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1304)
    at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedAppl icationImpl.java:1165)
    at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:587)
    at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:8 32)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java: 950)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.jav a:2131)
    at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.ja va:342)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
    [0]flex.messaging.config.ConfigurationException: An error occurred trying to construct FlexFactory 'flex.samples.factories.SpringFactory'.   The underlying cause is: 'flex.messaging.MessageException: Cannot create class of type 'flex.samples.factories.SpringFactory'. Type 'flex.samples.factories.SpringFactory' not found.'.
    at flex.messaging.config.FactorySettings.createFactory(FactorySettings.java:72)
    at flex.messaging.config.MessagingConfiguration.createFactories(MessagingConfiguration.java: 114)
    at flex.messaging.config.MessagingConfiguration.configureBroker(MessagingConfiguration.java: 93)
    at flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:125)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:220)
    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.init(ServletWrapper.java:328)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1252)
    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:161)
    at com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtens ionProcessor.java:99)
    at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:882)
    at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:804)
    at com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:522)
    at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:359)
    at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:337)
    at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:92)
    at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157)
    at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:666)
    at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:619)
    at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:395)
    at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:611)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1304)
    at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedAppl icationImpl.java:1165)
    at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:587)
    at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:8 32)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java: 950)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.jav a:2131)
    at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.ja va:342)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
    Caused by: flex.messaging.MessageException: Cannot create class of type 'flex.samples.factories.SpringFactory'. Type 'flex.samples.factories.SpringFactory' not found.
    at flex.messaging.util.ClassUtil.createClass(ClassUtil.java:65)
    at flex.messaging.util.ClassUtil.createClass(ClassUtil.java:47)
    at flex.messaging.config.FactorySettings.createFactory(FactorySettings.java:55)
    ... 27 more

    You can download it here:
    http://code.google.com/p/rapid-framework/source/browse/trunk/rapid-framework/src/rapid_fra mework_common/cn/org/rapid_framework/flex/messaging/factories/SpringFactory.java
    Am 16.08.2010 um 21:42 schrieb ZéSóZé:
    Sorry http://forums.adobe.com/people/PHANTOMIASA,
    >
    but I need to write what?
    >
    Where is the attached file?
    >
    Thanks for quick answer...
    >
    Best regards..
    >
    José.
    >

  • Yet another ALERT: Cannot create class in system package

    I've searched on the forums and seen several postings and none that really explained a solution, just the initial poster replying they fixed the problem. I am new to J2ME and java in general, I'm going off a book and my first test worked fine but this one gives me the the ALERT: Cannot create class in system package, when I select the GO command. The error occurs in the commandAction method where command == go trying to create an alert message. I am using MIDP 2.0 and as I stated new to this whole thing so a detail response would be greatly appreciated and what I need to do to resolve this for now and the future.
    Source code for TextBoxTest.java :
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    public class TextBoxTest extends MIDlet implements CommandListener
       private TextBox textBox;
       private Alert alert;
       private Command quit;
       private Command go;
       public TextBoxTest()
          // Setup the UI
          textBox = new TextBox("Enter Name", "", 20, TextField.ANY);
          go = new Command("Go", Command.SCREEN, 1);
          quit = new Command("Quit", Command.EXIT, 2);
          textBox.addCommand(go);
          textBox.addCommand(quit);
          textBox.setCommandListener(this);
       protected void startApp() throws MIDletStateChangeException
          Display.getDisplay(this).setCurrent(textBox);
       protected void pauseApp()
       protected void destroyApp(boolean unconditional)
            throws MIDletStateChangeException
       public void commandAction(Command command, Displayable displayable)
          try
             if (command == quit)
                destroyApp(true);
                notifyDestroyed();
             if (command == go)
                alert = new Alert("", "Greetings " + textBox.getString(), null,
    AlertType.CONFIRMATION);
                Display.getDisplay(this).setCurrent(alert);
          catch (MIDletStateChangeException me)
             System.out.println(me + " caught.");
    }

    Ok so my problem isn't with the code it's with the build order. I guess I needed to state that I was following a book and trying to compile and preverify through command line and not using the toolkit or an IDE. So if I use NetBeans 5.0 or the Wireless Toolkit 2.5 I can compile fine.
    So my new question is, can someone show me the steps to build through command line? This is MIDP 2.0.

  • Load Created Classes into the database

    Dear all,
    I successfully uploaded my created classes to the database then published them by creating a pl/sql procedures . But the execution of the procedure is returning:
    java.lang.UnsatisfiedLinkError: no csdkjni in java.library.path
    I've searched this error in metalink and it turned out that this is due to the unavailability of csdkjni lib file in the linux version of csdk (OCS 9i) . But i'm using OCS 10g ,so this shouldn't be my case.
    Could you please check this problem or give me some pointers on how to resolve this issue.
    Cheers!!

    Dear all,
    Maybe the description of my problem was a bit vague.
    So here is a list of things i've done :
    1- create a java class that creates an event .
    2- compiled and tested the class .
    3- used loadjava to load it into my database
    4- created a pl/sql procedure that calls this loaded class.
    5- call the procedure
    now at this point ,i hit the error : no csdkjni in java.library.path
    could you please give this a try in your environments and let me know!!

  • Creating classes and coding style

    Friends I am little confused in how to go about creating classes.I have ideas but not sure which will be better.
    I have say 3 oracle tables and I am developing three classes for each table.All the classes will be doing is do the SELECT,DELETE,INSERT,UPDATE operation with the oracle tables.Say for example I have two tables.
    DEPT_TABLE
    dept_key
    dept_desc
    tot_emp
    EMPLOYEE_TABLE
    emp_key
    emp_name
    dept_key
    emp_sal
    So I will be developing 2 classes for the 2 table
    public class Dept {
    private int deptKey = -1;
    private int totEmp = -1;
    private String deptDesc = "";
    public void select(){
    //select dept records
    public void insert(){
    //insert dept records
    public void update(){
    //update records
    public void delete(){
    //delete records
    similarly a Employee class will be developed.
    Now my confusion is does it make sense.
    Also is it a nice idea to have dept object as one of field in the employee class instead of the depKey ,because dept key is one of the field in employee table.I mean
    public class Employee {
    private int empKey = -1;
    private int empSal = -1;
    private String empName = "";
    private Dept dept = null;
    public void select(){
    //select emp records
    public void insert(){
    //insert emp records
    public void update(){
    //update emp records
    public void delete(){
    //delete records

    well, I wouldn't bother if you're on a small project, but, if you find yourself needing to do some thing like this a lot, there are programs that can generate a java class where each property corresponds to a column on some DB table, e.g.:
    public class Employee {
      Integer id;
      String name;
    }corresponds to table 'Employee' with int column 'id' and varchar column 'name'. They can be handy because you don't have to do pure SQL any more and nearly all of the JDBC logic is handled by the framework (e.g. I would find an employee with a given ID by creating an instance of the Employee class and invoking setId(4)). But, I wouldn't bother with the over-head involved with setting it up for a small project. However, if you find yourself doing this often, it might be some thing worth considering... take care.

  • Struts ,can i create .class file

    i am created actionform java file can i create .class for that or directly can i place it anywhere .sir plese help me on struts .how can i deploy my application in tomcat .

    You are not very specific in your question. You are rquesting for help in Struts and you are also saying that you need help in Tomcat! What is it that you really want? When you load, run or use any application, its always the .class files that are picked up by the server.
    Please be more clear on what you want.
    Vijay

Maybe you are looking for

  • Hyperlink to a spot in a file folder?

    This is slightly OT, but not completely. I need to create a hyperlink to a spot in a file list on the server. For instance, we have our pdf directory which looks like this Y:/12345_-.pdf Y:/12346_-.pdf Y:/12346_A.pdf I want to create a hyperlink that

  • How to execute sql from table

    For a migration I have created a sql script that puts the full statement to be executed in a specific table column I'm now looking for a way how to execute those statements. Table structure like: oldName, newName, sqlStatement, id, otherField, otherF

  • PR and G/L & WBS problem

    Hi, I am doing me51n to create a PR against a project, i have put these fields in: item acct. assignment category material plant storage location quantity WBS element G/L account i am getting this error: G/L account 400005 cannot be used (please corr

  • Adobe tutorial videos full screen

    When I open an adobe app on my computer(right now, it's Photoshop CC 2014), the Welcome screen invites me to watch tutorials(right now, it's "Design and Package Optimized Assets"). The tutorial has no option to play full screen. Or is it just me? Tha

  • How can lightroom 5 accepts raw images from om-d camera

    I need help as I want to use lightroom 5 but when I download the images lightroom 5 will not import it.