What is  "Aggregate Initialization" in java..

Hi Techies...
can any one xplore me about "Aggregate Initialization" in java..
i goolged but not clarified..
Thanks & Regards
Nitin.V

well,
String sample[] = { "Fee", "Fi", "Fo", "Fum" };
is an example of aggregate initialization.

Similar Messages

  • Could not initialize the Java virtual machine. Program will exit

    Hi!
    I am trying to install jdk-1_5 using jdk-1_5_0_06-windows-i586-p.exe. The entire installation runs fine till the end when we get the following error message.
    *"could not initialize the Java virtual machine. Program will exit"*
    Any idea as to what I may be missing out on.
    Thanks a lot,
    Rohit

    is it creating any log file in the install directory ? do you have admin rights on the PC ? Not sure if it needs admin rights to install 1.5, but just a thought .. have u tried this on any other machine ?

  • Could not initialize the Java Virtual Machine

    While trying to configure the turnkey product I encounter an error in starting the JBoss for Adobe LiveCycle ES v8.0 service. The JBossService.exe ends up showing in the task list - but the service shows its status as "starting" and an enty stating: "Could not initialize the Java Virtual Machine" is placed in the event log. I've seen a posting on this form that traced at least some of these symptoms to the account under which the service is configured to run - but I don't believe that solution applies in this case - I'm starting the service under the System Account which has all the permissions it needs to start the service.

    Thanks very much for the suggestion. Indeed, the problem turned out to be memory related - I was able to correct the issue by updating the registry keys "JVM Option Number 4" and "JVM Option Number 5" so specify lower values. For some reason the system didn't like the 1024 meg size that was set by default (our server has 2 gig of memory).

  • What's the difference between Java SDK and the Enterprise Edition?

    What's the difference between Java SDK and the Enterprise Edition? Are they both free?

    both r free but they are used in diffrent applications. sdk are used for simple apps that run on your computer while j2e (enterprise edition) are ment for large distributed computer systems that include servers and such. if you don't know the diffrence you probably wont need the the j2e, only the sdk.

  • Do I need Java 8 or should i disable it? What happens if i disable it? And what is the difference between Java and Java Runtime?

    Do I need Java 8 or should I disable it? What happens if i disable it? And what is the difference between Java and Java Runtime?

    There's no difference. They're both runtime plug-ins (they run when an app calls for Java functions).
    You only need Java if you either have Java apps on your Mac that won't run without having it installed, or you use trusted web sites that require Java to function (getting fewer and far between). Otherwise, you have no need for it at all.

  • What   the   Enviroment  required  for java databases programs?

    Hi guys
    What the enviroment required for java databases programs?
    If I have oracle of version 9i and java 1.4.1 platform
    do I need Jdeveloper platform ?

    What the enviroment required for java databases programs?What do you mean by "environment"?
    f I have oracle of version 9i and java 1.4.1 platformYou just need to download Oracle's 9i JDBC driver (ojdbc14.jar) and put that in your CLASSPATH. Then write JDBC code to connect to Oracle and issue SQL commands.
    do I need Jdeveloper platform ?No, JDeveloper is an IDE. Not required.
    Why Java 1.4.1? We're up to Java 6 now. You're two major versions of the JDK behind.
    %

  • What is wrong in this java code?

    Can someone please tell me what is wrong in this java code?
    /* The program is intended to start animating text at the click of a button, pause it at another click and resume at the next click. It should continue like this */
    import javax.swing.*;
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    public class TextAnime implements Runnable
    JFrame frame;
    boolean flag;
    Thread animeThread;
    JLabel label;
    String[] textArray;
    public TextAnime()
    flag = false;
    animeThread = new Thread(this);
    frame = new JFrame("Animate Text");
    GridBagLayout gbl = new GridBagLayout();
    GridBagConstraints gbc = new GridBagConstraints();
    frame.setLayout(gbl);
    JButton button = new JButton("Start");
    label = new JLabel("Stopped");
    textArray = new String[5];
    String textArray1[] = {"Programmer", "SportsMan", "Genius", "Friend", "Knowledgable"};
    for(int ctr = 0; ctr<5 ; ctr++)
    textArray[ctr] = textArray1[ctr];
    gbc.weightx = 1;
    gbc.gridx = 0;
    gbl.setConstraints(button,gbc);
    frame.getContentPane().add(button);
    ButList bl = new ButList();
    button.addActionListener(bl);
    gbc.gridx = 1;
    gbl.setConstraints(label,gbc);
    frame.getContentPane().add(label);
    frame.setSize(200,150);
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOS E);
    frame.setVisible(true);
    public class ButList implements ActionListener
    public void actionPerformed(ActionEvent evt)
    if(flag == false)
    flag = true;
    animeStart();
    else
    flag = false;
    //animeStop();
    public synchronized void animeStart()
    animeThread.start();
    Thread newThread;
    newThread = Thread.currentThread();
    newThread.notify();
    public void animeStop()
    animeThread.interrupt();
    public void run()
    int i = 0;
    try
    while(i == i)
    if(i==5)
    i=0;
    label.setText(textArray);
    animeThread.sleep(1000);
    i++;
    if (flag == false)
    animeThread.wait();
    catch(InterruptedException ie)
    label.setText("Stopped");
    public static void main(String args[])
    TextAnime ta = new TextAnime();
    Please tell me if this can be written in a more simpler manner. Also please correct this code. I am tired after trying many times.

    When I fix your error, compile and run it, I get this exception:
    Exception in thread "AWT-EventQueue-0" java.lang.IllegalMonitorStateException
         at java.lang.Object.notify(Native Method)
         at cruft.TextAnime.animeStart(TextAnime.java:81)
         at cruft.TextAnime$ButList.actionPerformed(TextAnime.java:63)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
         at java.awt.Component.processMouseEvent(Component.java:6038)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
         at java.awt.Component.processEvent(Component.java:5803)
         at java.awt.Container.processEvent(Container.java:2058)
         at java.awt.Component.dispatchEventImpl(Component.java:4410)
         at java.awt.Container.dispatchEventImpl(Container.java:2116)
         at java.awt.Component.dispatchEvent(Component.java:4240)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
         at java.awt.Container.dispatchEventImpl(Container.java:2102)
         at java.awt.Window.dispatchEventImpl(Window.java:2429)
         at java.awt.Component.dispatchEvent(Component.java:4240)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
    %

  • What do you think of Java applets?

    What do you recommend for Java applets?

    georgemc wrote:
    DrLaszloJamf wrote:
    sabre150 wrote:
    What do you recommend for Java applets?A dustbin.
    http://forum.java.sun.com/thread.jspa?threadID=764962&start=0&tstart=0
    <drum-roll/>
    <cymbal-crash/>throws ThreadResurrectionExceptionWoops. It takes me a long time to set up my drum kit?
    Actually, I was looking at the OP's Recent Message list to see if his most recent post was related to an earlier one.

  • What exactly is in "BI java" ?

    Hello
    We are trying to understand what is included in "BI java" and what will not work without it. I must say that the technical guide or the official presentation are unclear.
    As of now, we understand that
    - we must run Java in order to use Adobe PDF
    - without Java, broadcast, old and new Bex, web reporting, IGS are working
    So if i don't need PDF, can i go forward without Java ? In that case, where will i be blocked further in the project ? Can i install it afterwards ?
    We would be greatly interested in all your advise on this.
    Regards
    Fabrice

    Hi Fabrice,
    Your first area to check questions like this should be the FAQs in the Service Marketplace:
    <a href="https://service.sap.com/bifaq">https://service.sap.com/bifaq</a>
    Please check also this thread
    <a href="https://forums.sdn.sap.com/thread.jspa?threadID=104198">https://forums.sdn.sap.com/thread.jspa?threadID=104198</a>
    and potentielly search the forum with Java, Portal, BEx Web Setup, etc.
    You find additional information also in the OSS note #917950 and in the Ramp-Up Knowledge Transfer (RKT) material (if you have problems accessing it, please contact your Ramp-Up Coach).
       Cheers
           SAP NetWeaver 2004s Ramp-Up BI Back Office Team

  • What is the role of java in the netweaver platform

    Hi All
    sapnetweaver platform is the integration of the java and abap.then what is the role of java in that netweaver platform
    regards
    Sunil

    Hi Sunil,
            Java makes Sap NetWeaver more powerfull than it was before.
           One of the new additions to the Java functionality of NetWeaver includes the Java Virtual Machine container technology. This will allow standard Java code to run on a framework around the Java Virtual Machine itself. It does this by reducing the number of parallel users per virtual machine. It also improves on the overall memory consumption, the application stability and the number of affected users in the event of a screen freeze, loss of data or the need for re-keying of information.
          The JVM technology also includes several added features designed to assist developers in managing error resolutions. This includes the ability for developers to switch a user process in the production system in or out of debugging mode on the fly allowing for minimum downtime. While also including tracing and monitoring tools for error analysis and hopefully a quick resolution.
             So now, not only does NetWeaver offer support for such standards as HTTP, XML, Web services and of course ABAP, but now it also offers support for Java. All of this adds to SAP’s future interoperability with such applications as Microsoft .NET and IBM WebSphere.
             Now that SAP NetWeaver supports Java we will start to see a real positive impact in the marketplace for those who are in search of a cost-effective means to deploy and manage Java applications in their enterprise and small businesses. For companies of all sizes looking for a way to adapt quickly to market changes, respond to unforeseen challenges and to seize new opportunities, SAP NetWeaver is a tool that is worth looking into.

  • What is web services in Java?

    i have searched Google with the word of "web services".I could only find out some general information about web services but not specific.
    Could you please explain me briefly?

    makpandian wrote:
    It describes about web services in common .I want to know what web service is in java platform..
    Thanking You.That is a slightly odd question.
    There's nothing special about web services in Java against web services in any other language...there are, after all, several web service frameworks in Java, so it's not as if there's even a single answer to it.
    Do you understand what a web service is and the associated standards around one? If you do then you should realise that your question doesn't make much sense...unless you're actually asking what ws packages there are around.

  • Static initialization of java code included in the Imported Archives jars?

    Hi
    Does SAP PI 7.0 support static initialization of java code included in the Imported Archives jars?
    Static block of a java class included in the Imported Archive jars throws a Runtime Exception called ExceptionInInitializationError while trying to run.
    Regards,
    RDS

    Have you tested the code outside PI?

  • What is the necessacity  of Java in SAP

    What is the necessacity of Java (J2ee engine) in SAP 4.7 ee and above if there is invocation of Http:// is there with help of  RFC to connect NON-SAP systems.

    Hey,
    In terms of XI usage of j2ee engine
    Java Stack:
    -Adapter Engine (AE)
    -Integration Builder, SLD, RWB
    -Standard Mapping
    -Java Mapping
    -XSLT Mapping
    -CPA cache .
    In terms of SAP 4.7 EE check this
    J2EE Technology in SAP Web Application Server
    http://help.sap.com/saphelp_47x200/helpdata/en/13/a3bb3eff62847ae10000000a114084/frameset.htm
    <b>Cheers,
    *RAJ*
    *REWARD POINTS IF FOUND USEFULL*</b>

  • Lookiing for example of a user define aggregate function in Java

    I want to write an aggregate function in Java. Every example I found is in PL/SQL.
    I have written my fair share of JSPs, but this is different in that it is methods off an object.
    The documentation says it can be done in Java, but it's not clear to me how to define the ODCIAggregateInitialize, ODCIAggregateIterate, ODCIAggregateTerminate, and ODCIAggregateMerge methods.
    If any one can point me to, or send me, an example, I would be very grateful.
    TIA

    Hii Greg:
    You can find the code to implement a Domain Index for Oracle which uses ODCI Api in Java at.
    http://dbprism.cvs.sourceforge.net/viewvc/dbprism/ojvm/src/java/org/apache/lucene/indexer/LuceneDomainIndex.java?revision=1.29&view=markup
    This is the code of the implementation of the Lucene Domain Index:
    http://docs.google.com/Doc?id=ddgw7sjp_54fgj9kg
    The strategy to implement an use aggregate function is similar to implement a Domain Index.
    The PLSQL wrapper for the above code is:
    http://dbprism.cvs.sourceforge.net/viewvc/dbprism/ojvm/db/LuceneDomainIndex.sql?revision=1.20&view=markup
    Take a look at the code and if you have another question just drop me an email or post again into this list.
    Best regards, Marcelo.

  • What is Markable Interface in JAVA

    What is Markable Interface in JAVA need explanation

    Markable interface in one which does not contain any
    method or member declaration.
    Eg: Serializable, Observable etc...terminology aside, I don't think "not containing any methods" is enough to call something a marker interface. is EventListener a marker interface? I don't think so, I think of it as a supertype for all other event listeners in the JDK

Maybe you are looking for

  • HTTP Sender - how to read URL Parameter USER id into Mapping

    Hi, My scenario is HTTP - XI - ABAP Proxy. I wanted to capture USER id of the person who posted(HTTP) into XI(Mapping). How to read/evaluate the value of sap-user from querystring of URL ? http://HOST:8008/sap/xi/adapter_plain?namespace=http%3A//abc.

  • Footage captured without audio

    I'm hoping someone might be able to enlighten me with possible causes of the following issue. I've been capturing Digi Beta via Kona LH onto an internal drive (not the system drive) as Apple Pro Res HQ PAL. Even thought 2 stereo tracks have been capt

  • Canon 1D MK2 - Every other photo is black? HELP

    I recently purchased a Canon 1D Mark II. I had it serviced, picking it up last Monday. Nothing was wrong with the camera. A coworker asked to take photos in the office. He stepped away, returning a few minutes later, asking me if the camera's taking

  • Bridge in CS3 starts then freezes.

    I have had trouble with Bridge ever since I installed CS3. On occasion I would have been using Bridge and randomly it would crash the whole computer necessitating a restart. As of a few days ago, it will start but then freeze. I click on a thumbnail,

  • Functional location and cost center link

    Hi All, I need to know the table that contains the details of functional location and the cost center mapped to that. I know a table IFLOT which gives details of the functional location, however i do not see field for cost center in that. Let me know