Hi Help me in executing My Project

Hi all,
I'm a BTECH student. I'm currently doing my project and had some problem during execution...
My SYStem Configuration:
OS: Windows 2000 server..
For Project Purpose I Installed in my System:
JDK 1.5
Tomcat 5.0 and
Oracle 9i..
I can't run the project.I would like know from u all whether I can run my Project (JAVA PROJECT) on a single system with all jdk, tomacat , and Oracle 9i installed on a single system.....
Here are the problems I faced during my project execution:
1: I'm receving severe errors in the tomcat open console saying that the port 8080 is already in use...Then I changed the port no 8081.. After I chnged my port everthing is ok... But while executing the project i recieved the following error...
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException
     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:358)
     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
root cause
java.lang.NullPointerException
     org.apache.jsp.Validate_jsp._jspService(Validate_jsp.java:149)
     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
note The full stack trace of the root cause is available in the Tomcat logs
2.. Here is my JSP which allows databse connectivity
<%@ page import="java.sql.*" %>
<%!
                    Connection Con=null;
                    Statement St=null ;
%>
<%
String driver="oracle.jdbc.driver.OracleDriver";
String url="jdbc:oracle:thin:@nit15:1521:project";
String user="trading";
String pwd="trading";
try
Class.forName(driver);
Con=DriverManager.getConnection(url,user,pwd);
     St=Con.createStatement();
          System.out.println("Connection is established");
catch(Exception e)
          System.out.println(e);
          out.println("Connection is not Established ... ");
%>
I think i had problem with the following line...
String url="jdbc:oracle:thin:@nit15:1521:project";
since i'm running the whole project on a single system
I replaced nit15 with localhost---- is this right... I thhink i shuld write here my system name how can find my system name or machine name
I left 1521 as it is...
then finally i replaced project with ora which is DSN name i created...
Can any one help me out from this...Please give me ur mail id's so that i can have a chat with with u friends... plzzz help me.. plzz share ur knowledge with me.. plzzz.. my id is [email protected]..

Well for one thing you seem to have multiple Tomcat instances running. This may or may not be contributing to your problems and confusion.
Also I don't see where your code could be throwing a null pointer exception.
To be honest I think you should first investigate how many Tomcat instances you have running and clean that up first. Because you could well be deploying to the wrong instance for all we know.

Similar Messages

  • Please help how to execute jfree......

    please help how to execute[b] jfree  programs
    step by step procedure.....
    package org.jfree.chart.demo;
    import org.jfree.chart.ChartFactory;
    import org.jfree.chart.ChartPanel;
    import org.jfree.chart.JFreeChart;
    import org.jfree.chart.axis.CategoryAxis;
    import org.jfree.chart.axis.CategoryLabelPosition;
    import org.jfree.chart.axis.CategoryLabelPositions;
    import org.jfree.chart.axis.CategoryLabelWidthType;
    import org.jfree.chart.plot.CategoryPlot;
    import org.jfree.chart.plot.PlotOrientation;
    import org.jfree.data.category.CategoryDataset;
    import org.jfree.data.category.DefaultCategoryDataset;
    import org.jfree.text.TextBlockAnchor;
    import org.jfree.ui.ApplicationFrame;
    import org.jfree.ui.RectangleAnchor;
    import org.jfree.ui.RefineryUtilities;
    import org.jfree.ui.TextAnchor;
    import org.jfree.util.Log;
    import org.jfree.util.PrintStreamLogTarget;
    * A simple demonstration application showing how to create a horizontal 3D bar chart using data
    * from a {@link CategoryDataset}.
    public class BarChart3DDemo2 extends ApplicationFrame {
        // * JFREECHART DEVELOPER GUIDE                                               *
        // * The JFreeChart Developer Guide, written by David Gilbert, is available   *
        // * to purchase from Object Refinery Limited:                                *
        // * http://www.object-refinery.com/jfreechart/guide.html                     *
        // * Sales are used to provide funding for the JFreeChart project - please    *
        // * support us so that we can continue developing free software.             *
         * Creates a new demo.
         * @param title  the frame title.
        public BarChart3DDemo2(final String title) {
            super(title);
            // create the chart...
            final DefaultCategoryDataset dataset = new DefaultCategoryDataset();
            dataset.addValue(23.0, "Series 1", "London");
            dataset.addValue(14.0, "Series 1", "New York");
            dataset.addValue(14.0, "Series 1", "Istanbul");
            dataset.addValue(14.0, "Series 1", "Cairo");
            dataset.addValue(13.0, "Series 2", "London");
            dataset.addValue(19.0, "Series 2", "New York");
            dataset.addValue(19.0, "Series 2", "Istanbul");
            dataset.addValue(19.0, "Series 2", "Cairo");
            dataset.addValue(7.0, "Series 3", "London");
            dataset.addValue(9.0, "Series 3", "New York");
            dataset.addValue(9.0, "Series 3", "Istanbul");
            dataset.addValue(9.0, "Series 3", "Cairo");
            final JFreeChart chart = createChart(dataset);
            // add the chart to a panel...
            final ChartPanel chartPanel = new ChartPanel(chart);
            chartPanel.setPreferredSize(new java.awt.Dimension(500, 270));
            setContentPane(chartPanel);
         * Creates a chart.
         * @param dataset  the dataset.
         * @return The chart.
        private JFreeChart createChart(final CategoryDataset dataset) {
            final JFreeChart chart = ChartFactory.createBarChart3D(
                "3D Bar Chart Demo 2",       // chart title
                "Category",                  // domain axis label
                "Value",                     // range axis label
                dataset,                     // data
                PlotOrientation.HORIZONTAL,  // orientation
                true,                        // include legend
                true,                        // tooltips
                false                        // urls
            final CategoryPlot plot = chart.getCategoryPlot();
            plot.setForegroundAlpha(1.0f);
            // left align the category labels...
            final CategoryAxis axis = plot.getDomainAxis();
            final CategoryLabelPositions p = axis.getCategoryLabelPositions();
            final CategoryLabelPosition left = new CategoryLabelPosition(
                RectangleAnchor.LEFT, TextBlockAnchor.CENTER_LEFT,
                TextAnchor.CENTER_LEFT, 0.0,
                CategoryLabelWidthType.RANGE, 0.30f
            axis.setCategoryLabelPositions(CategoryLabelPositions.replaceLeftPosition(p, left));
            return chart;       
         * Starting point for the demonstration application.
         * @param args  ignored.
        public static void main(final String[] args) {
            Log.getInstance().addTarget(new PrintStreamLogTarget());
            final BarChart3DDemo2 demo = new BarChart3DDemo2("3D Bar Chart Demo 2");
            demo.pack();
            RefineryUtilities.centerFrameOnScreen(demo);
            demo.setVisible(true);
    }this is the first time i'm trying to execute jfree programs...
    regards,
    R.Raghavan

    here's error message
    E:\raghav>javac BarChart3DDemo2.java
    BarChart3DDemo2.java:3: cannot find symbol
    symbol : class ChartFactory
    location: package org.jfree.chart
    import org.jfree.chart.ChartFactory;
    ^
    BarChart3DDemo2.java:4: cannot find symbol
    symbol : class ChartPanel
    location: package org.jfree.chart
    import org.jfree.chart.ChartPanel;
    ^
    BarChart3DDemo2.java:5: cannot find symbol
    symbol : class JFreeChart
    location: package org.jfree.chart
    import org.jfree.chart.JFreeChart;
    ^
    BarChart3DDemo2.java:6: package org.jfree.chart.axis does not exist
    import org.jfree.chart.axis.CategoryAxis;
    ^
    BarChart3DDemo2.java:7: package org.jfree.chart.axis does not exist
    import org.jfree.chart.axis.CategoryLabelPosition;
    ^
    BarChart3DDemo2.java:8: package org.jfree.chart.axis does not exist
    import org.jfree.chart.axis.CategoryLabelPositions;
    ^
    BarChart3DDemo2.java:9: package org.jfree.chart.axis does not exist
    import org.jfree.chart.axis.CategoryLabelWidthType;
    ^
    BarChart3DDemo2.java:10: package org.jfree.chart.plot does not exist
    import org.jfree.chart.plot.CategoryPlot;
    ^
    BarChart3DDemo2.java:11: package org.jfree.chart.plot does not exist
    import org.jfree.chart.plot.PlotOrientation;
    ^
    BarChart3DDemo2.java:12: package org.jfree.data.category does not exist
    import org.jfree.data.category.CategoryDataset;
    ^
    BarChart3DDemo2.java:13: package org.jfree.data.category does not exist
    import org.jfree.data.category.DefaultCategoryDataset;
    ^
    BarChart3DDemo2.java:14: package org.jfree.text does not exist
    import org.jfree.text.TextBlockAnchor;
    ^
    BarChart3DDemo2.java:15: package org.jfree.ui does not exist
    import org.jfree.ui.ApplicationFrame;
    ^
    BarChart3DDemo2.java:16: package org.jfree.ui does not exist
    import org.jfree.ui.RectangleAnchor;
    ^
    BarChart3DDemo2.java:17: package org.jfree.ui does not exist
    import org.jfree.ui.RefineryUtilities;
    ^
    BarChart3DDemo2.java:18: package org.jfree.ui does not exist
    import org.jfree.ui.TextAnchor;
    ^
    BarChart3DDemo2.java:19: package org.jfree.util does not exist
    import org.jfree.util.Log;
    ^
    BarChart3DDemo2.java:20: package org.jfree.util does not exist
    import org.jfree.util.PrintStreamLogTarget;
    ^
    BarChart3DDemo2.java:27: cannot find symbol
    symbol: class ApplicationFrame
    public class BarChart3DDemo2 extends ApplicationFrame {
    ^
    BarChart3DDemo2.java:80: cannot find symbol
    symbol : class CategoryDataset
    location: class org.jfree.chart.demo.BarChart3DDemo2
    private JFreeChart createChart(final CategoryDataset dataset) {
    ^
    BarChart3DDemo2.java:80: cannot find symbol
    symbol : class JFreeChart
    location: class org.jfree.chart.demo.BarChart3DDemo2
    private JFreeChart createChart(final CategoryDataset dataset) {
    ^
    BarChart3DDemo2.java:50: cannot find symbol
    symbol : class DefaultCategoryDataset
    location: class org.jfree.chart.demo.BarChart3DDemo2
    final DefaultCategoryDataset dataset = new DefaultCategoryDataset();
    ^
    BarChart3DDemo2.java:50: cannot find symbol
    symbol : class DefaultCategoryDataset
    location: class org.jfree.chart.demo.BarChart3DDemo2
    final DefaultCategoryDataset dataset = new DefaultCategoryDataset();
    ^
    BarChart3DDemo2.java:64: cannot find symbol
    symbol : class JFreeChart
    location: class org.jfree.chart.demo.BarChart3DDemo2
    final JFreeChart chart = createChart(dataset);
    ^
    BarChart3DDemo2.java:67: cannot find symbol
    symbol : class ChartPanel
    location: class org.jfree.chart.demo.BarChart3DDemo2
    final ChartPanel chartPanel = new ChartPanel(chart);
    ^
    BarChart3DDemo2.java:67: cannot find symbol
    symbol : class ChartPanel
    location: class org.jfree.chart.demo.BarChart3DDemo2
    final ChartPanel chartPanel = new ChartPanel(chart);
    ^
    BarChart3DDemo2.java:82: cannot find symbol
    symbol : class JFreeChart
    location: class org.jfree.chart.demo.BarChart3DDemo2
    final JFreeChart chart = ChartFactory.createBarChart3D(
    ^
    BarChart3DDemo2.java:87: cannot find symbol
    symbol : variable PlotOrientation
    location: class org.jfree.chart.demo.BarChart3DDemo2
    PlotOrientation.HORIZONTAL, // orientation
    ^
    BarChart3DDemo2.java:82: cannot find symbol
    symbol : variable ChartFactory
    location: class org.jfree.chart.demo.BarChart3DDemo2
    final JFreeChart chart = ChartFactory.createBarChart3D(
    ^
    BarChart3DDemo2.java:93: cannot find symbol
    symbol : class CategoryPlot
    location: class org.jfree.chart.demo.BarChart3DDemo2
    final CategoryPlot plot = chart.getCategoryPlot();
    ^
    BarChart3DDemo2.java:97: cannot find symbol
    symbol : class CategoryAxis
    location: class org.jfree.chart.demo.BarChart3DDemo2
    final CategoryAxis axis = plot.getDomainAxis();
    ^
    BarChart3DDemo2.java:98: cannot find symbol
    symbol : class CategoryLabelPositions
    location: class org.jfree.chart.demo.BarChart3DDemo2
    final CategoryLabelPositions p = axis.getCategoryLabelPositions();
    ^
    BarChart3DDemo2.java:100: cannot find symbol
    symbol : class CategoryLabelPosition
    location: class org.jfree.chart.demo.BarChart3DDemo2
    final CategoryLabelPosition left = new CategoryLabelPosition(
    ^
    BarChart3DDemo2.java:100: cannot find symbol
    symbol : class CategoryLabelPosition
    location: class org.jfree.chart.demo.BarChart3DDemo2
    final CategoryLabelPosition left = new CategoryLabelPosition(
    ^
    BarChart3DDemo2.java:101: cannot find symbol
    symbol : variable RectangleAnchor
    location: class org.jfree.chart.demo.BarChart3DDemo2
    RectangleAnchor.LEFT, TextBlockAnchor.CENTER_LEFT,
    ^
    BarChart3DDemo2.java:101: cannot find symbol
    symbol : variable TextBlockAnchor
    location: class org.jfree.chart.demo.BarChart3DDemo2
    RectangleAnchor.LEFT, TextBlockAnchor.CENTER_LEFT,
    ^
    BarChart3DDemo2.java:102: cannot find symbol
    symbol : variable TextAnchor
    location: class org.jfree.chart.demo.BarChart3DDemo2
    TextAnchor.CENTER_LEFT, 0.0,
    ^
    BarChart3DDemo2.java:103: cannot find symbol
    symbol : variable CategoryLabelWidthType
    location: class org.jfree.chart.demo.BarChart3DDemo2
    CategoryLabelWidthType.RANGE, 0.30f
    ^
    BarChart3DDemo2.java:105: cannot find symbol
    symbol : variable CategoryLabelPositions
    location: class org.jfree.chart.demo.BarChart3DDemo2
    axis.setCategoryLabelPositions(CategoryLabelPositions.replaceLeftPosition(p, left));
    ^
    BarChart3DDemo2.java:118: cannot find symbol
    symbol : class PrintStreamLogTarget
    location: class org.jfree.chart.demo.BarChart3DDemo2
    Log.getInstance().addTarget(new PrintStreamLogTarget());
    ^
    BarChart3DDemo2.java:118: cannot find symbol
    symbol : variable Log
    location: class org.jfree.chart.demo.BarChart3DDemo2
    Log.getInstance().addTarget(new PrintStreamLogTarget());
    ^
    BarChart3DDemo2.java:120: cannot find symbol
    symbol : method pack()
    location: class org.jfree.chart.demo.BarChart3DDemo2
    demo.pack();
    ^
    BarChart3DDemo2.java:121: cannot find symbol
    symbol : variable RefineryUtilities
    location: class org.jfree.chart.demo.BarChart3DDemo2
    RefineryUtilities.centerFrameOnScreen(demo);
    ^
    BarChart3DDemo2.java:122: cannot find symbol
    symbol : method setVisible(boolean)
    location: class org.jfree.chart.demo.BarChart3DDemo2
    demo.setVisible(true);
    ^
    44 errors

  • Problem executing  J2ME project (Netbeans 5.0)

    After being away from Netbeans for a couple of months I returned back only to find that it now is impossible to execute J2ME projects :-(
    I get error message "Execution failed with error code 1" shen the IDE tries to start the emulator.
    I tried to remove and reinstall Netbeans 5.0 and NetbEans Mobility Pack to no avail.
    This is true on two of my computers. But on a third host with newly installed Windows XP and Netbeans etc it works flawlessly.
    Can someone out there give me a hint?
    /j

    Problem solved. I got a hint from http://www.netbeans.org/kb/articles/fix-toolkit-installation.html which directed me towards emulator.bat. Search found it in .ntebeans directory under my user in Documents and Settings. By removing the whole .netbeans directory, I got a clean fresh IDE where everything works as it should.
    /j

  • How execute java project in DOS6.22 ?

    How execute java project in Dos6.22 ?
    if it possible
    thanks,
    Betzalel

    You might have problems with file name like *.java and *.class.
    As if I had heard about some JVM for 16-bit Windows (the next best thing to DOS ;-) written by IBM.

  • Could you help me creating a multilingual project in RH10 (using Trados for translations).

    Hi,
    I used to create a multilingual project in RH8 few years ago but can't read the files anymore. Could you give me advice so that I could rebuilt a multilingual project quickly. The procedure in the online help is too short and I fail when following it.
    Thanks in advance.
    BR
    Sandrine

    Hi Thank you for your reply.
    In fact I wanted to use my former project just to see how I managed it. But it is "damaged" when I want ti open it after the RH update. Now I have RH10 and not RH8 anymore.
    I need help on creating a multilingual project with RH10.
    In the RH Help document, the procedure is :
    Apply French language project settings by selecting French Language.
    2 Open an English topic, create a topic for the French language, and translate the content, including the topic title from
    English to French. (Do not translate topic filenames.)
    3 Create French tables of contents, indexes, and glossaries.
    4 Create a conditional build tag, such as FrenchContent.
    5 Apply the FrenchContent conditional build tag to French content and topics.
    6 Generate output for the French language.
    When I create topics with same names, I have a Error message "The file already exists". May be it will work in different folders.
    I'll try and let you know.
    Thanks for helping.

  • HELP! Warning! Damaged project! (Ginst)

    Today when I launch Garageband on my iPad I get the message:
    "Warning! Damaged project! (Ginst)". I press OK and Garageband then tries to load the last song I was working on and then crashes.
    Any help would be greatly appreciated.
    David

    And I can't even get into GarageBand now to do anything else, since it auto-loads the last project you worked on.  Massively frustrating.
    In that case it should help to reset GarageBand. You can do that from the "Settings" app. Scroll down to GarageBand and switch the "Reset GarageBand" switch to "On".
    This will reset it to factory settings and you can pick a different project, when you open GarageBand again. Sometimes this even helps to open a broken project, but I would not not rely on that, that the corrupted project can be opened after resetting GarageBand.

  • Help needed converting 2 Captivate projects...

    Hi,
    I have troubles with Captivate (another post on this forum) and was wondering whether someone would be willing to help in converting 2 captivate projects to .swf?
    I can provide a link to the files.
    Help wpuld be appreciated.

    Hi there
    I'll try to help.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Why does RoboHelp 8 crash when compiling merged HTML help after deleting a child project in TOC

    Why does RoboHelp 8 crash when compiling merged HTML help after deleting a child project in TOC? I would be grateful for any assistance.
    Here's the situation:
    -- I recently upgraded from RoboHelp X5 to RoboHelp 8. I upgraded my projects to RoboHelp 8 projects.
    -- One large help system I manage is built such that there is one master project and about 25 child projects. Each of these is its own item in the master project TOC.
    -- In RoboHelp X5 I never had any trouble deleting these.
    -- However now in RoboHelp 8, whenever I delete one (by opening TOC pod, right-clicking on item in question, and clicking Delete), and proceed to "Generate Primary Layout" (MS HTML Help), the generation/compilation process proceeds as far as "Generating full-text search data" and then the whole program crashes!
    Am I doing something wrong? Is there a bug in the software? I have installed patches 8.0.1 and 8.0.2.
    Once again, I thank you in advance for any pointers.
    Matthew Keranen
    Jamsa, Finland

    That does help - thanks a lot.
    Wayne Kroger
    State Street Corporation
    SQA-Princeton
    (609) 580-6264
    mail to: [email protected]
    The information contained in this email and any attachments have been classified as limited access and/or privileged State Street information/communication and is intended solely for the use of the named addressee(s). If you are not an intended recipient or a person responsible for delivery to an intended recipient, please notify the author and destroy this email. Any unauthorized copying, disclosure, retention or distribution of the material in this email is strictly forbidden.

  • Help need in Web Browser Project

    Hai,
    I am doing a java Web browser project which was fully java code. I want some information ragarding to that project. First I used JEditorPane for displaying HTML Content. But it was not executing JavaScript. My friend told that JEditorPAne was rendering HTML pages of HTML3.2 version. It wont render Javascript. So try for other things.
    I used IECanvas but it just embedding the component of Internet Explorer or Mozilla. I don't want to embed those things. I need java components only. After that I have to do Charecter Encoding on that one. Pls anybody help me regarding to this matter. Its Urgent

    Dear hiwa,
    I saw the JDIC API. They told that it embeds some predefined browsers called INTERNET EXPLORER. But I don't want to embed these things. Is there any solution other than this? U saw ICE Browser. it was implemented in fully java having many functionalities.It is third party API. I tried to use that API but they gave 30 days trail period. So I am afried of that. I just want to display the HTML page that supports JavaScript. I saw rhino which is an Interpreter for javascript.
    Is there any possibility to embed this interpreter to JEditorPane or any java component. Pls give me details if Possible.
    thanks for your kind information.

  • Help needed for OSM - EBS Projects Integaration

    Hi All,
    Can anyone help me with where to start from and how to proceed regarding the integration of OSM and EBS Projects??
    We have a requirement of Creating Projects in EBS through an Order created in Siebel and passed on to OSM.. Can anyone guide me how to proceed in this regard?
    We are planning to create a process with an Automation Task and an Automation Plugin (Query Sender) that will trigger the EBS Projects. Is that right?
    Any help in this regard will be valued. Thanks in advance.
    Regards,
    Hariharan

    Hi Hariharan:
    The proper wayt to extend O2A at COM level falls into the "Add a New Fulfillment Function" extensibility use case.
    This is if you want to levarge COM Order Management including orchestration, lifecycle management and fallout management.
    -Do you need to interact with EBS for various order types? new / revision, cancelation? (add, update, delete )?
    -Do you need to centrally manage EBS order fallouts?
    -Do you need to include EBS order items status in the overall SalesOrder status update to CRM?
    Adding a New COM Fulfillment Function to the O2A Solution will translate into these high level steps:
    -Determine integration approach (AIA vrs Custom System Integration ) // Assuming AIA based integration
    -Define/create inbound/outbound queues (local OSM ) and AIA integration (SAF or Bridges)
    -Configure new order components specifications
    -new system component //EBS System
    -new function component //EBSOrderFunction
    - Define the new process flow to execute new function
         automation plug-in to createEBM, and receive ResponseEBM (correlate by JMSCorrelationID/XML Body)
         Here is where Brian's comment applies. As long as the automate task sets the proper correlationID in the sender plug-in
              the correspondng external receiver plg-in will process the response from EBS
    - Update ProductSpecifications (to include new fulfillment funtion in orchestration plans)
    - Update Decomposition Rules to decompose relevant items for new EBM system
    - Small XML and XQuery Configuration updates.
    Again, this is just a high level list of steps.
    Offcourse this list will grow into a more detailed design specification when these requirements are fully analyzed.
    If you are interested you could check getting in touch with Oracle Univeristy regarding a 5-day OSM Foundation III Course, to learn about O2A and extensiblity use cases.
    Course: OSM Foundations III: AIA Order to Activate Solution
    http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getCourseDesc?dc=D73768GC10
    [This topic is covered in "Add New Fulfillment System/Function" lesson ]
    In the mean time, check this similar discussion:
    Re: OSM: Modify Order To Activate Cartridge: Manage product specifications
    Carlos

  • Can some one help me to execute this program

    Curve is not displayed when this program is executed
    Write an applet to draw a red curve on a blue back ground which follows your mouse pointer. 
    Use anonymous inner classes.
    import java.applet.*;
    import java.awt.event.*;
    import java.awt.*;
    <applet code="Curve" width=200 height=100>
    </applet>
    public class Curve extends Applet {
         int x, y;
         String msg = " ";
         public void init() {
              setBackground(Color.blue);
              setForeground(Color.red);
              addMouseMotionListener(new MouseMotionAdapter(){
                   public void mouseMoved(MouseEvent me) {
                        msg = "*";
                        x = me.getX();
                        y = me.getY();
                        showStatus("x="+x+" "+"y="+y);
                        repaint(x, y, 1, 1);
         public void paint(Graphics g) {
              g.drawString(msg,x, y);
    }     

    I buffered it then it started working but problem is buffer size is
    limited. When the buffer is full then we have to start fresh again.You have made a buffer with two arrays of ints - and that allows you to
    paint the last 300 mouse positions. This is OK if you want the curve to
    have a fixed length: a bit like a snake following the pointer around.
    To avoid losing the whole curve you can initialise the x[] and y[] arrays
    to something "offscreen". For example fill both arrays with -100. Then
    in your paint() method you should draw all 300 positions.
    If you want the complete curve from the start with nothing lost then you
    are going to have to use a different sort of buffer. What you do is to
    create a BufferedImage the same size as your applet. When you create
    it you fill the buffered image with the background colour of your applet.
    In the mouseMoved() method you draw the * at the appropriate place into
    the buffered image. (There are other drawing strategies at this point:
    you could draw a line connecting this point to the previous one.)
    Finally in paint() you simply draw the whole buffered image into the
    applet's window.
    There is a discussion and example of using images as buffers this way
    in Sun's Tutorial here: http://java.sun.com/docs/books/tutorial/2d/images/doublebuffering.html
    repaint (int x, int y, int width, int height) - How this method works.This method says that a part of the applet's window should be
    repainted as soon as possible. repaint() without any arguments is
    used to signal that all of the window should be repainted.
    I would not worry about the 4 argument form at this stage - get
    something working first. Later you might find the 4 argument form is
    more effecient.
    Is there any reason why you're using Applet and not JApplet? If not,
    I would use the newer classes. In that case you'll get the best help in
    the Swing forum.

  • Need help to set up multilingual project

    Hi guys,
    i'm relatively new to RH and i have a help system to create in 3 languages (English, French, German) and in many flavors. This is for an online application with multiple user roles. The trick is that the help system is supposed to follow the hirearchy of privileges, that is, a low-level user should not see the pages covering the system settings or the admin dashboard. When a user signs in, the app will load a help file based on the respective user roles and locale settings.
    My dev guy is going to provide me with an xml file that contains the existing user roles and privileges, and the outputs should be generated accordingly. The SSL of our choice is responsive HTML5. I'm guessing this is possible to do in RH11, tho frankly i have no idea where to start. What would be the proper approach to set up this project? I've created less convoluted user guides earlier and i was happy with the results but am stuck with this one.
    Any help is much appreciated.

    Is it important that some users do not see the additional information? In most apps seeing the information would not enable them to carry out the procedures as permissions should have been set up to prevent that.
    You could generate one output with books in the TOC for each user type or even create Content Categories. The latter would open the help with the default category and users could then choose their category. The content would then be limited to their topics. That does not and cannot stop them viewing the other categories.
    Your way requires different outputs and the developers then have to figure out who is accessing the help and call the appropriate version.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Help needed with layers and project files....

    Hello
    I am new to after effects so this might be a simple issue for most. I am having an issue with my layers not matching the files in my project window. I accidently deleted a comp file the other day so I had to remake a few layers but they are not showing up in the project window/solids folder. I have 5 layers on my timeline and only 4 files in the project/solids folder. Some of the files names do not match the ones in the timeline. Is there a way to create a new comp with the files that I have open in my timeline or to replace the ones in the project window?  I started a project a few days ago, Im trying to make a few partical orbs dancing on there own path then they will come together and then creates a few smaller ones. Im at the point where I want to copy one comp to another or copy the layers over but the particals follow one light instead of the original light from its own comp. I think the file names in the project window might be the issue but I really don't know. Any help or comments would greatly be appreciated
                                                     Thanks a million
                                                                   Adam                                                                                                                                                              
    Using trapcode particular and AE CS6
    Windows system

    Layers on the timeline are just instances of the source footage. If you rename them on the timeline, that won't affect the number or naming of the sources in the project window. Toggle the column header in the TL to see which laywer uses which source.
    Mylenium

  • Help needed in executing SQL query...

    Hi,
    I am very new to JDeveloper. Curently i am tryin to execute an SQL query from the BPEL process, the output of the query is to be mapped to a variable field from a target xsd file. the query is fairly simple, like
    SELECT emp
    FROM emp_table
    WHERE emp_id=123
    The target field, namely "employee", is an element from the xsd file. I tried using Java embedding activity to connect to the db and execute the query through a piece of Java code, but couldn't find a way to assign the output of the query to the field. however lately i also discovered the Database Adapter services which helps me create a database connection, but still i am not sure as of how to handle and map the output of the query to the variable field.
    Can somebody please help me in resolving the issue either through Java Embed activity or Database Adapter services??
    Thanks in advance
    Anjan

    Anjan,
    I suggest you try the [url http://forums.oracle.com/forums/forum.jspa?forumID=212]BPEL Forum
    John

  • Help needed in executing the java/jsp program from UCM .

    Hi ,
    I have a .jsp program running in my Jdeveloper which when executed pops a window to browse and select files and with few custom options .
    But i want to execute that Program from within UCM (create a new jsp page in UCM OR provide link ? i am not sure .... ) , could anyone help on how i can execute/run the program from UCM ?
    thanks in Advance
    Plaxman

    If your jsp makes use of jars you may want to look into using a WAR instead. You can check the WAR into content server and there is even a link on the administration page for JSP Web App Admin. Treating the JSP(s) and jar(s) as an entity may be a more successful path for you.
    You can find some jsp examples and ever a war example in this directory: <install root>\samples\JspServer
    And the briefest of help about that stuff here: [http://localhost/idc/help/wwhelp/wwhimpl/js/html/wwhelp.htm|http://localhost/idc/help/wwhelp/wwhimpl/js/html/wwhelp.htm]

Maybe you are looking for

  • Security update broke Citrix

    I use Citrix to access my office network, and have been using the latest version (10.00.6) since it was launched a week or so ago. Today I installed the new Leopard security updates on my MacBook, and now Citrix won't work - I get an error message "E

  • *Please Help* iTunes wont stay open

    When I open my iTunes, and the itunes store begins to load, the store and my library automatically close. It stays on for about a second, then closes by itsself. I cant even get to my library for more than two seconds without it closing. Please help,

  • Connect t42 to external plasma by the VGA connector

    Hello I have T42 type 2373 - when I connect the VGA cable that connected to a plasma TV I can not see clearly on the screen,only dots and lines. There is the display card - ATI MOBILITY RADEON 7500 I try to upgrade the driver but nothing change. Can

  • Saving A Track with the Chain of Plugins

    How do is save a track from one project that has the eq, compressions, and effects that on want, and open it in another project? I want to unify drum and guitar sounds. Thanks in advance! Sean

  • VPN disconnects

    We have a wireless network in our house. I connect to the internet and then connect to my company's VPN.    However I get disconnected from the VPN constantly and it says the connection was terminated locally.   I have to disconnect my linksys connec