HELP needed: java plug-in fatal error

i keep getting this java error whenever certain websites try using my java. (using either IE6 and ff2.0) http://img.photobucket.com/albums/v226/boogleloo/error.jpg
i un-installed older version and got new version of java installed but that made no difference
i do not have a clue where to look how to make the request changes the error wants made... please is someone could assist me with a walk through fix i would be greatly appreciative!
Message was edited by:
boogleloo

Well I got it working on explorer browser but it still wont work on Avant browser which is my favorite any ideas why it will work on one but not the other??

Similar Messages

  • Java plug-in fatal error

    When I try to open an applet on a site I get the message "Java plug-in fatal error- several Java virtual machines running in the same process caused an error". Checking my add/remove program I see that I have J2SE runtime environment 5.0 updates 7,9,10 and 11. Java 2 runtime environment standard edition version 1.3.1_02, 1.4.1_01, and 1.4.2_03. Also Java runtime environment 6 update 1. I'm running Windows XP service pack 2. Hope someone has a solution to my problem.

    This is an existing bug request:
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6516270
    Providing this information could be handy:
    1) Does this occur on all browser(s) which includes Firefox, Mozilla other then Internet Explorer
    2) What is the outcome of running testvm applet:
    http://java.com/en/download/help/testvm.xml
    3) Does this error start appearing after updating to 6u01
    4) Have you attempted running the applet after deleting Java Plug-in and browser cache
    This could be an issue with memory management on the system.
    The possible workaround(s) are:
    1) Try setting virtual memory as System managed:
    Windows xp users start--->control panel--->System--->advanced---->Performance(setting)---->Advanced---->virtualmemory(change)--->Click system managed size--->set then Ok restart your computer
    2) Set JRE parameter less then 3/4 of actual physical memory present in the system.
    For example, 512 MB if RAM is 1024 MB.
    3) Disable any unwanted/new/confusing add-on in the browser (IE7).
    For example, Windows Live Sign-in add-on can restrict Java functioning due to unknown reasons. Disabling same, if installed could be helpful.

  • Modify Webi Report causes Java Plug-In Fatal Error

    Environment: BOXIR2 SP3   Windows XP  
    Java loaded:  Java 1.6.0_07  +  JRE 1.4.2_04  +  JInitiator 1.3.1.24
    Hi,
    I have been happily developing Webi reports on my PC for several years and to my knowledge, I have not upgraded my Java software even when I get prompted by Java that updates are available as I know how problematic upgrading can be if it is not supported by BO.
    I am suddenly getting a Java Plug-In Fatal Error every time I try to modify a Webi report with the message " The Java Runtime Environment cannot be loaded".
    We have uninstalled Java and re-installed the same Java versions but stil the same problem.
    Any help appreciated.
    Best Regards
    Ben Iannunzio
    Adelaide South Australia

    Hi Ben
    I remember having some issues running Java 1.6.0_xx on BOXI R2 and made sure we were on Java 1.4.2_xx.
    Another thing you might want to try before uninstalling is to clear the Java cache, it can be found under...
    local install drive\Application Data\Sun\Java\Deployment\cache
    If you also haven't already done so, I'd reload the current Java version (after your uninstall) directly from the server by trying to create or modify a new WEBI report.
    Hope this helps.
    Cheers
    Glen

  • Plug-in Fatal Error

    Hey, I'm trying to download Java so I can access chatrooms and everytime I try to enter one it says "Java(TM) Plug-in Fatal Error" then in the window it says "The Java Runtime Environment cannot be loaded"
    How do I fix this? I want to chat again :P Thanks!!!!

    I am getting the same error only mine comes up and says that I have too many virtual machines running, have to uninstall and reinstall to play one game, then the error comes up again, whats going on?

  • Java Plug in fatel Error The java Runtime Environment cannot be loaded from

    Java Plug in fatel Error The java Runtime Environment cannot be loaded from <\bin\server\jvm.dll>
    files are left behind when you uninstall Java from Windows XP.
    Directory of C:\Documents and Settings\user1\.java
    10/14/2004 06:02 PM <DIR> .
    10/14/2004 06:02 PM <DIR> ..
    03/07/2005 07:10 PM 32 jpicerts130_02
    09/19/2004 04:37 PM 32 jpicerts141_02
    09/19/2004 04:37 PM 32 jpihttpscerts141_02
    03/07/2005 07:10 PM 549 properties130_02
    09/19/2004 04:37 PM 383 properties141_02
    5 File(s) 1,028 bytes

    How do i fix it

  • Java.sql.SQLException: FATAL ERROR  for DB2

    Hi
    In my scenario IDOC-XI-DB2,
    When I am getting following error message in communication channel. I have checked all the field length, they are correctly displayed. Please let me know how to resolve the same.
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'BI5FILMM.BSOMSAPP' (structure 'StatementInsert'): java.sql.SQLException: FATAL ERROR document format in structure 'StatementInsert': expected 'access' tag(s) not found
    Payload is as follows
    <?xml version="1.0" encoding="UTF-8" ?>
    - <I805_Abstr_CustOutlet_MT>
    - <StatementInsert>
    - <STATUS action="INSERT">
      <table>BI5FILMM.BSOMSAPP</table>
      <key OUTLET_NO="0001231229" OUTLET_RF="0002122756" OMFUNC="CRT" />
    - <access>
      <STATUS>N</STATUS>
      <IFCEDATE>1080701</IFCEDATE>
      <IFCETIME>160849</IFCETIME>
      <OUTLETTYPE>Y</OUTLETTYPE>
      <NAME>DREW SMITH AGAINXXXXXXXXXXXXXXXXXXX</NAME>
      <STREET>E</STREET>
      <STATE>NSW</STATE>
      <POST_CODE>2000</POST_CODE>
      <PHONE_NO>567999</PHONE_NO>
      <ALTPHONE>11111</ALTPHONE>
      <FAX_NO>111</FAX_NO>
      <CNTCT_PERS>Constant</CNTCT_PERS>
      <ALTNAME>Constant</ALTNAME>
      <EMAIL1>Drew_downunder</EMAIL1>
      <EMAIL2>DREW_DOWNUNDER</EMAIL2>
      <SFE_CODE>G</SFE_CODE>
      <BILL_TO>0001231229</BILL_TO>
      <SUPP_DATE>080801</SUPP_DATE>
      </access>
      </STATUS>
      </StatementInsert>
    - <StatementProce>
    - <STATUS action="EXECUTE">
      <table>CC5PTF.BSOMPSAP</table>
      <Para1 isInput="true" type="CHAR">BI5FILMM</Para1>
      <Para2 isInput="true" type="CHAR">BMIJOBD</Para2>
      </STATUS>
      </StatementProce>
      </I805_Abstr_CustOutlet_MT>

    Hi Ria,
    In your input try to make the access tag in capitals(ACCESS) and try. I am not sure though. I think its case sensitive. Just try and let me know. Also your second action="EXECUTE" does not has any access parameters. Refer to this blog:
    JDBC Receiver Adapter -- Synchronous Select – Step by Step
    It might be useful.
    Regards,
    Sanjeev.

  • Com.sap.kw java.lang.NullPointerException: FATAL ERROR:

    We are getting a bunch of errors around cop.sap.kw in our J2EE defaultTrace log file.
    Here is an example:
    Apr 1, 2008 7:36:33 PM       com.sap.kw.framework.FrontController [SAPEngine_Application_Thread[impl:3]_56] Path: Caught java.lang.NullPointerException: FATAL ERROR: Could not load E:\usr\sap\QAA\DVEBMGS00\j2ee\cluster\server0\apps\sap.com\tc~kw_tc\servlet_jsp\SAPIKS2\root\WEB-INF\ApplConfig.xml
         at com.sap.kw.framework.XMLConfiguration.<init>(XMLConfiguration.java:53)
         at com.sap.kw.actions.ApplConfig.init(ApplConfig.java:83)
         at com.sap.kw.framework.FrontController.init(FrontController.java:222)
         at com.sap.engine.services.servlets_jsp.server.runtime.context.WebComponents.addServlet(WebComponents.java:139)
         at com.sap.engine.services.servlets_jsp.server.container.ApplicationThreadInitializer.loadServlets(ApplicationThreadInitializer.java:386)
         at com.sap.engine.services.servlets_jsp.server.container.ApplicationThreadInitializer.run(ApplicationThreadInitializer.java:110)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Has anyone ran into this before?

    Hi,
    that file you mentioned exists in file system?
    it seems somebody has changed incorrectly something in the file system.
    regards.
    roberti

  • JAVA 1.4 Fatal Error

    Any one know how to fix this annoying error???
    Why can't I upload a file to this forum? FORUM 101!
    Next,
    Here is the annoying error (that I have to type:)
    Java Plug-in 1.3.1_01 cannot be located because
    HKEY_LOCAL_MACHINE\Software\Javasoft\Javaplugin\1.3.1_01 is no longer valid...
    Is this a Mr Bill problem? Or is Sun the culpret?
    Please Help Thanks!

    Always Blame Bill,
    ask questions later

  • Java java.lang.Exception Fatal Error on php5 webpage

    Hi,
    we are trying to make a php webpage run on our machine
    but at one point it shows the below error.
    Also, Im absolute newbie to java
    As far i have details
    this page is run on php5 with java 6
    on Debian 4.0.
    Fatal error: Uncaught [[o:Exception]:"java.lang.Exception:
    CreateInstance failed: new com.opus.epg.sfa.java.BillToAddress.
    Cause: java.lang.ClassNotFoundException: com.opus.epg.sfa.java.BillToAddress
    VM: 1.6.0_04@http://java.sun.com/" at: #-15 java.net.URLClassLoader$1.run(URLClassLoader.java:200) #-14 java.security.AccessController.doPrivileged(Native Method)
    #-13 java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    #0 java.inc(259): java_ThrowExceptionProxyFactory->getProxy(1, NULL, false)
    #1 java.inc(411): java_Arg->getResult(false)
    #2 java.inc(414): java_Client->getWrappedResult(false)
    #3 java.inc(596): java_Client->getInternalResult()
    #4 java.inc(1952): java_Client->createObject('com.opus.epg.sf...', Array)
    #5 /var/www/newwhizz/icici/Sfa/PostLibPHP.php(187): Java->Java('com.opus.epg.sf...')
    #6 /var/www/newwhizz/icici/TestSsl.php(220): PostLibPHP->postSSL(Object(BillToAddress), Object(ShipToAddress), Object(Merchant), Object(MPIData)) #7 {main}] thrown in java.inc on line 222Any suggestions as what the error maybe??
    Edited by: raghaven.kumar on Apr 30, 2008 5:42 AM

    If i had posted in the wrong section. Kindly tell me the right one.
    BTW, Is the problem due to non-specification of including a class??

  • Java (TM) Plug-In fatal error

    When I try to access yahoo games i get this error and it also says The Java Runtime Environment cannot be loaded. I wanted to see if i could fix this problem.

    MSG
    Sorry, this page not found on java.net.
    Please recheck the url you entered or clicked on to get to
    this page. You can also go to the java.net project list to find
    the project by name.
    Hint: The first part of the url (before the .dev) is the project name.

  • First Spring Application .Help needed.java.lang.ClassNotFoundException

    Hi
    i am new to this site and java Springs, I couldn't find seprate spring forum so i am posting my question here.
    i hope its not a problem.
    I am very new to Springs and struggeling through my first Spring MVC application. can any one help me here.
    Here is what i have done uptill now.
    WEB.XML
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
        <servlet>
            <servlet-name>HelloSpring</servlet-name>
            <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
            <load-on-startup>1</load-on-startup>
            </servlet>
        <servlet-mapping>
            <servlet-name>HelloSpring</servlet-name>
            <url-pattern>*.htm</url-pattern>
        </servlet-mapping>
        <session-config>
            <session-timeout>      
                30
            </session-timeout>
        </session-config>
        <welcome-file-list>
         <welcome-file>
                index.jsp
            </welcome-file>
        </welcome-file-list>
    </web-app>
    HelloSpring-servlet.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN/EN" "http://www.springframework.org/dtd/spring-beans.dtd">
    <beans>
        <bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
            <property name="mappings">
                <props>
                    <prop key="/hello.htm">HelloSpringController</prop>
                </props>
            </property>
        </bean>
        <bean id = "HelloSpringController" class="HelloSpringController" />
    </beans>
    index.jsp
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>Hello Spring</title>
        </head>
        <body>
        <form action="hello.htm"  method="POST">
            What is your name?
            <input type="text" name="yourName" value="" />
        </form>
        </body>
    </html>
    welcome.jsp
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>Hello Spring</title>
        </head>
        <body>
        Hello <c:out value="${name}" />
        </body>
    </html>
    HelloSpringController.java (in default package)
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import org.springframework.web.servlet.ModelAndView;
    import org.springframework.web.servlet.mvc.Controller;
    public class HelloSpringController implements Controller {
        public HelloSpringController() {
        public ModelAndView handleRequest(HttpServletRequest httpServletRequest,
                                          HttpServletResponse httpServletResponse)
                                            throws Exception {
            String name = httpServletRequest.getParameter("yourName");
            return new ModelAndView("welcome.jsp", "name", name);
    }After Entering name in the text box of index.jsp, i am getting the following error.
    exception
    javax.servlet.ServletException: Servlet.init() for servlet HelloSpring threw exception
         org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
         org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
         org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
         org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
         org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
         java.lang.Thread.run(Unknown Source)
    root cause
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'urlMapping' defined in ServletContext resource [/WEB-INF/HelloSpring-servlet.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [HelloSpringController] for bean with name 'HelloSpringController' defined in ServletContext resource [/WEB-INF/HelloSpring-servlet.xml]; nested exception is java.lang.ClassNotFoundException: HelloSpringController
         org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:451)
         org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
         org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
         org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
         org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
         org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)
         org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
         org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:330)
         org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:266)
         org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:236)
         org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:126)
         javax.servlet.GenericServlet.init(GenericServlet.java:211)
         org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
         org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
         org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
         org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
         org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
         java.lang.Thread.run(Unknown Source)
    root cause
    java.lang.ClassNotFoundException: HelloSpringController
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1332)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
         org.springframework.util.ClassUtils.forName(ClassUtils.java:201)
         org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:327)
         org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1066)
         org.springframework.beans.factory.support.AbstractBeanFactory.isBeanClassMatch(AbstractBeanFactory.java:1094)
         org.springframework.beans.factory.support.AbstractBeanFactory.isSingleton(AbstractBeanFactory.java:354)
         org.springframework.context.support.AbstractApplicationContext.isSingleton(AbstractApplicationContext.java:745)
         org.springframework.web.servlet.handler.AbstractUrlHandlerMapping.registerHandler(AbstractUrlHandlerMapping.java:255)
         org.springframework.web.servlet.handler.SimpleUrlHandlerMapping.registerHandlers(SimpleUrlHandlerMapping.java:125)
         org.springframework.web.servlet.handler.SimpleUrlHandlerMapping.initApplicationContext(SimpleUrlHandlerMapping.java:103)
         org.springframework.context.support.ApplicationObjectSupport.setApplicationContext(ApplicationObjectSupport.java:73)
         org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:72)
         org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:304)
         org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1168)
         org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:428)
         org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
         org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
         org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
         org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
         org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)
         org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
         org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:330)
         org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:266)
         org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:236)
         org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:126)
         javax.servlet.GenericServlet.init(GenericServlet.java:211)
         org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
         org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
         org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
         org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
         org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
         java.lang.Thread.run(Unknown Source)Can anybody tell me what is am doing wrong .. it will be a greate help...
    thanks in advance

    vikash_sharma wrote:
    Thanks for another quick reply
    here is the folder structure of war.
    HelloSpring.war
    -----------Bin (empty)Wrong. No need for this. Remove it.
    ------------src/HelloSpringController.javaWrong. Source code doesn't go in WAR.
    ------------WEB-INF/classes(empty)there's your problem. the HelloSpringController.class has to be in there.
    /libWhere are the Spring JARs?
    /META-INF
    /tldDon't need /tld.
    ------------welcome.jsp
    ------------index.jspWhere's your web.xml? Where is the Spring configuration?
    You're still blank. Not even close to correct. You don't seem to know Java well enough to tackle this. You will NOT be able to accomplish this by asking questions here. Go back and learn more basics.
    %

  • Urgent  help needed(java frames)

    Hi,
    I need urgent help for correcting a piece of code.
    I have written a piece of code for building a gui with some buttons, drawing some geometric shapes.The code consists of two files called Graph and Frame.
    The problem I suppose in the last part of the Graph file, which Rectangle and Circle are called together, the only shape that the program draws is rectangle.Here is the code:
    //Graph
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import java.io.*;
    import java.util.*;
    public class Graph extends JPanel {
    LinkedList color;
    LinkedList figures;
    public Graph() {
    setBackground(Color.white);
    figures = new LinkedList();
    color = new LinkedList();
    int z;
    class Point {
    int x;
    int y;
    public Point(int x, int y) {
    this.x = x;
    this.y = y;
    public Point(Point p) {
    x = p.x;
    y = p.y;
    public String toString() {
    return "(" + x + ", " + y + ")";
    public void move(Point dist) {
    x += dist.x;
    y += dist.y;
    abstract class GeomFigur {
    public abstract void move(Point p);
    class Line extends GeomFigur {
    Point p1, p2;
    public Line(Point p1, Point p2) {
    this.p1 = new Point(p1);
    this.p2 = new Point(p2);
    public String toString() { return "Line from " + p1 + " to " + p2;  }
    public void move(Point dist) {
    p1.move(dist);
    p2.move(dist);
    class Rectangle extends Line {
    public Rectangle(Point p1, Point p2) {
    super(p1, p2);
    public String toString() { return "Rectangle from " + p1 + " to " + p2; }
    class Circle extends GeomFigur{
    Point centre;
    int radius;
    public Circle(Point centre, int radius) {
    this.centre = new Point(centre);
    this.radius = radius;
    public String toString() {
    return "Circle, centre " + centre + ", radius " + radius;
    public void move(Point dist) { centre.move(dist); }
    public void addRectangle(int x, int y, Color col) {
    Rectangle r =new Rectangle(new Point(x,y),new Point(x+20,y+20));
    figures.addLast(r);
    color.addLast(col);
    repaint();
    public void addCircle(int x, int y, Color col) {
    Circle c =new Circle(new Point(x,y), 1 );
    figures.addLast(c);
    color.addLast(col);
    repaint();
    public void paintComponent(Graphics g) {
    super.paintComponent(g);
    for (int i=0;i < figures.size();i++) {
    Rectangle rect = (Rectangle)figures.get(i);
    //Circle circ = (Circle)figures.get(i);
    g.setColor(Color.black);
    g.drawRect(rect.p1.x,rect.p1.y,20,20);
    g.setColor((Color)color.get(i));
    g.fillRect(rect.p1.x,rect.p1.y,20,20);
    //g.setColor(Color.black);
    // g.drawOval(circ.centre.x,circ.centre.y,20,20);
    // g.setColor((Color)color.get(i));
    // g.fillOval(circ.centre.x, circ.centre.y, 20, 20);
    //Frame
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    public class Frame extends JFrame implements ActionListener {
    JButton button1, button2, button3, button4, button5 ;
    Graph gr;
    JComboBox cbx;
    JComboBox cby;
    JComboBox col;
    JMenu filemenu;
    JMenuItem quit;
    JMenuBar menubar;
    int x=10;
    int y=10;
    Color color=Color.red;
    public Frame() {
    menubar = new JMenuBar();
    filemenu = new JMenu("File");
    filemenu.setMnemonic('F');
    quit = new JMenuItem("Quit");
    quit.addActionListener(this);
    quit.setMnemonic('Q');
    quit.setAccelerator(KeyStroke.getKeyStroke('Q',Event.CTRL_MASK,false));
    filemenu.add(quit);
    menubar.add(filemenu);
    setJMenuBar(menubar);
    button1 = new JButton("Rectangle");
    button1.addActionListener(this);
    button2 = new JButton("Circle");
    button2.addActionListener(this);
    button4 = new JButton("Ellipse");
    button4.addActionListener(this);
    button5 = new JButton("Triangle");
    button5.addActionListener(this);
    button3 = new JButton("Reset");
    button3.addActionListener(this);
    String[] elements_x= {"10","20","30","40","50","60","70"};
    cbx = new JComboBox(elements_x);
    cbx.addActionListener(this);
    cbx.setActionCommand("cbx");
    String[] elements_y= {"10","20","30","40","50","60","70"};
    cby = new JComboBox(elements_y);
    cby.addActionListener(this);
    cby.setActionCommand("cby");
    String[] elements_color = {"Red","Blue","Green","Orange","Yellow" };
    col = new JComboBox(elements_color);
    col.addActionListener(this);
    col.setActionCommand("col");
    gr = new Graph();
    JPanel top = new JPanel(new BorderLayout());
    JPanel inputs = new JPanel(new GridLayout(6,1));
    inputs.add(button1);
    inputs.add(button2);
    inputs.add(button3);
    inputs.add(button4);
    inputs.add(button5);
    inputs.add(cbx);
    inputs.add(cby);
    inputs.add(col);
    top.add(gr,BorderLayout.CENTER);
    top.add(inputs,BorderLayout.WEST);
    getContentPane().add(BorderLayout.CENTER, top);
    setSize(500,300);//set window size
    //take care of actions
    public void actionPerformed(ActionEvent e) {
    String command = e.getActionCommand();
    if (command.equals("Quit")){
    System.exit(0);//terminate program
    else if (command.equals("Rectangle")){
    //add Rectangle to graph at
    //position x,y and with certain color
    gr.addRectangle(x,y,color);
    else if (command.equals("Circle")){
    gr.addCircle(x,y,color);
    else if (command.equals("Reset")){
    else if (command.equals("Triangle")){
    else if (command.equals("Ellipse")){
    else if (command.equals("cbx")){
    x=Integer.valueOf((String)((JComboBox)e.getSource()).getSelectedItem()).intValue();
    else if (command.equals("cby")){
    y=Integer.valueOf((String)((JComboBox)e.getSource()).getSelectedItem()).intValue();
    else if (command.equals("col")){
    String temp=(String)((JComboBox)e.getSource()).getSelectedItem();
    if (temp=="Red") color=Color.red;
    else if (temp=="Blue") color=Color.blue;
    else if (temp=="Green") color=Color.green;
    else if (temp=="pink") color=Color.pink;
    else if (temp=="lightGray") color=Color.lightGray;
    //main program
    public static void main(String [] args) {
    Frame appl = new Frame();
    appl.setVisible(true);
    Thanks in advance
    Marina

    Hi,
    You are very lucky that I'm currently boored. You should never tag a question as urgent. It might be urgent to you, but not to us who answer. And you should also use code formatting when you post code (see the formatting tips, or use the code-button).
    I made some changes to your Graph class. The most important thing is the abstract draw method that I added to the GeomFigur class.
    import java.awt.*;
    import javax.swing.*;
    import java.util.*;
    public class Graph extends JPanel {
        LinkedList figures;
        public Graph() {
            setBackground(Color.white);
            figures = new LinkedList();
        int z;
        abstract class GeomFigur {
            protected Color color;
            public GeomFigur(Color color) {
                this.color = color;
            public abstract void move(Point p);
            public abstract void draw(Graphics g);
        abstract class Line extends GeomFigur {
            Point p1, p2;
            public Line(Color c, Point p1, Point p2) {
                super(c);
                this.p1 = new Point(p1);
                this.p2 = new Point(p2);
            public String toString() {
                return "Line from " + p1 + " to " + p2;
            public void move(Point dist) {
                p1.move(dist.x, dist.y);
                p2.move(dist.x, dist.y);
        class Rectangle extends Line {
            public Rectangle(Color c, Point p1, Point p2) {
                super(c, p1, p2);
            public String toString() {
                return "Rectangle from " + p1 + " to " + p2;
            public void draw(Graphics g) {
                System.out.println("Draw rectangle at " + p1 + " with color " + color);
                g.setColor(Color.black);
                g.drawRect(p1.x, p1.y, 20, 20);
                g.setColor(color);
                g.fillRect(p1.x, p1.y, 20, 20);
        class Circle extends GeomFigur {
            Point centre;
            int radius;
            public Circle(Color c, Point centre, int radius) {
                super(c);
                this.centre = new Point(centre);
                this.radius = radius;
            public String toString() {
                return "Circle, centre " + centre + ", radius " + radius;
            public void move(Point dist) {
                centre.move(dist.x, dist.y);
            public void draw(Graphics g) {
                System.out.println("Draw circle at " + centre + " with color " + color);
                g.setColor(Color.black);
                g.drawOval(centre.x, centre.y, 20, 20);
                g.setColor(color);
                g.fillOval(centre.x, centre.y, 20, 20);
        public void addRectangle(int x, int y, Color col) {
            System.out.println("x,y,col " + x + ":" + y + ":" + col);
            Rectangle r = new Rectangle(col, new Point(x, y), new Point(x + 20, y + 20));
            figures.addLast(r);
            repaint();
        public void addCircle(int x, int y, Color col) {
            System.out.println("x,y,col" + x + ":" + y + ":" + col);
            Circle c = new Circle(col, new Point(x, y), 1);
            figures.addLast(c);
            repaint();
        public void paintComponent(Graphics g) {
            super.paintComponent(g);
            for (int i = 0; i < figures.size(); i++) {
                GeomFigur drawable = (GeomFigur)figures.get(i);
                drawable.draw(g);
    }/Kaj

  • A novice in need of help --- Need JAVA GOD

    Hello everyone, i would appreciate any help anyone can give me. I am tyring to make a connection to Oracle via Java and make some tables. what am i doing wrong?
    package edu.uwec.cs.jorandbe.assignment5;
    import java.awt.HeadlessException;
    import java.sql.*;
    import javax.swing.*;
    public class OracleDBConnection {
    String username;
    String host;
    String password;
    Driver theOracleDriver;
    Connection myConn;
    String sqlQuery;
    ResultSet rs;
    Statement stmt;
    public OracleDBConnection() {
    public OracleDBConnection(String hostn, String usern, String passw) {
    this.host = hostn;
    this.username = usern;
    this.password = passw;
    public void Open() {
    try {
    theOracleDriver = (Driver) (Class
    .forName("oracle.jdbc.driver.OracleDriver")).newInstance();
    DriverManager.registerDriver(theOracleDriver);
    Connection myConn = DriverManager.getConnection(this.host,
    this.username, this.password);
    stmt = myConn.createStatement();
    } catch (InstantiationException e) {
    e.printStackTrace();
    } catch (IllegalAccessException e) {
    e.printStackTrace();
    } catch (ClassNotFoundException e) {
    e.printStackTrace();
    } catch (SQLException e) {
    e.printStackTrace();
    public void Close() {
    try {
    if (rs != null)
    rs.close();
    if (myConn != null)
    myConn.close();
    if (stmt != null)
    stmt.close();
    } catch (SQLException e) {
    e.printStackTrace();
    public void setQueryString(String Query) {
    sqlQuery = Query;
    public void getQueryString(String Query) {
    System.out.println("Current SqlQuery : " + sqlQuery);
    //public String [][] executeSELECT() {
    //rs = stmt.executeUpdate(sql);
    // return rs;
    public static void main(String[] args) {
    OracleDBConnection Oracle1 = new OracleDBConnection("jdbc:oracle:thin:@stef.cs.uwec.edu:1521:csdev","Jorandbe","j8114");
    //CLASS 2
    package edu.uwec.cs.jorandbe.assignment5;
    public class NFL_DDL {
         public static void main(String[] args) {
              OracleDBConnection Oracle1 = new OracleDBConnection("jdbc:oracle:thin:@stef.cs.uwec.edu:1521:csdev","Jorandbe","j8114");
    Oracle1.Open();
    Oracle1.Close();
    public void createTables(Object Oracle1){
    //Oracle1.Open();
    can anyone tell me why Oracle1.Oen(); works in my main method
    but in my create Table method as well??

    public class NFL_DDL {
         public static void main(String[] args) {
              OracleDBConnection Oracle1 = new OracleDBConnection("jdbc:oracle:thin:@stef.cs.uwec.edu:1521:csdev","Jorandbe","j8114");
    Oracle1.Open();
    Oracle1.Close();
    public void createTables(Object Oracle1){
    //Oracle1.Open();
    In the main up top, i can get the connection to open/ Oarcle1.Open works and it gives me no compile errors
    but when i try to do the same thing in the createTables it gives me the evil red line under open and says
    "The method Open() is undefined for the type Object"Where are you calling the createTables method ? How will the compiler know that it has to start off with the createTables ?
    Open() is not a static method either ...?!?!?!?
    what are you trying to do ?

  • Help needed please -Master data loading- error with text loading.

    Hi,
    Iam S.Sushma. Iam getting error while loading master data from flat file- attributes and texts.
    I have loaded attribute data successfully. But when iam monitoring the text data then iam getting following error.
    ""SET THE LANGUAGE FIELD IN THE SOURCE SYSTEM-LONG TEXT.""
    ""RECORD1: SRPID_1:DATA RECORD 1(EN S):DUPLICATE DATA RECORD.
    "ERROR 4 IN UPDATE"
    I took 2flat files for attributes and texts.
    SRPID is key field.(sales representative id)
    attributes:- SRPID, NAME1, AGE1, ADD1,PHONE1.
    text:-  SRPID,LANG,SHTXT,MDTXT,LGTXT.
    Iam just a begginer so need your guidence. Thank you in advance.
    Message was edited by: sushma sandepogu
    Message was edited by: sushma sandepogu

    Hi Eugene,
    Thank you for your guidence. I have changed the order in flat file and got the results successfully. But when iam viewing the Master data text the S10 in coming in 2nd position  in maintain master data-list screen i mean :-
    SRPID LANG NAME AGE ADD PHONE SHTXT MDTXT LGTXT
    S1         EN  ABC   34  GDS 1234  AS    ASD   ASDDF
    S10
    S2
    S3
    S9.
    Iam not understading why. Hope yu can help me. I have assigned full points to you for your previous solution.
    Thank you in advance.
    S.Sushma.

  • Help needed for an unusual iphoto error.

    When I try to open my IPHOTO it now gives me this message... "The photo library was created with an unreleased version of IPHOTO please quite and upgrade this photo library by opening it in IPhoto 2 or Iphoto4", and forces me to quit right when the program opens.... for the record I've never had IPhoto 2 or 4 on my computer. I just added some more photos from my camera like I always do and this started to happen.
    Also I tried upgrading to the newest version of IPhoto (I bought ILIFE 06 because I thought it would fix it, and then did the upgrade to no avail)... It makes no sense... and I need help to fix it.
    (link to a screenshot of what happens) http://img206.imageshack.us/img206/3473/picture15hj.png

    Hi Kevin,
    So far I have not seen any solution for that error message in these discussions. If you have a recent backup of your iPhoto Library folder then take the old library out of the Pictures folder and put your backup library in there (I suggest you backup the backup before you do this) Launch iPhoto and hopefully everything will be back to normal. If you don't have a backup then...
    The only thing I can tell you to do right now is to create a new library and import/add to the library to reimport your images.
    these are the steps:
    Close iPhoto
    Drag the iPhoto Library folder to the desktop
    Launch iPhoto
    In the next window that opens choose to create a new library.
    -double click the iPhoto Library folder on the desktop to open it
    -the two main folders you will need to import are the Original folder and the Modified folder (only if you want to import the edited images).
    -the Originals folder has all your originals photos unedited. the Modified folder has all images that you have edited, rotated, cropped, etc.
    -Drag these two folders to the desktop
    -If you want to save the edited image, find it in the roll in the Modified folder and drag it into the roll of the same name in the Originals folder. It will replace the originals and now will be the original.
    -If you don't care to save any edited images, then don't import the Modified folder into iPhoto or don't bother replacing the edited image with the original image like I just described.
    -If you import the Originals folder into iPhoto you will have all your originals in their named rolls.
    -If you import the Originals and Modified folders into iPhoto, you will have all of them being in the originals folder in the finder. The roll with the same name as the other will have a _1 appended to it's name (in the finder)
    -the roll from the originals will be next to the same roll from the Modified folder within iPhoto. You can then delete any of the images from there if you want.
    I know this might sound confusing but it really isn't.
    Get back if any of this sounds like something you might want to do.

Maybe you are looking for