Package corejava.Math not found error !??

hi, I tried to compile this code but got the
following error message ----
what does it mean ????
==================================================
TextSummary.java:17: Package corejava.Math not found in import.
import corejava.Math.*;
^
TextSummary.java:18: Package corejava not found in import.
import corejava.*;
^
2 errors
==================================================
/** * @(#)TextSummary.java * * Copyright (c) 2000 by Sundar Dorai-Raj
* * @author Sundar Dorai-Raj
* * Email: [email protected]
* * This program is free software; you can redistribute it and/or
* * modify it under the terms of the GNU General Public License
* * as published by the Free Software Foundation; either version 2
* * of the License, or (at your option) any later version,
* * provided that any use properly credits the author.
* * This program is distributed in the hope that it will be useful,
* * but WITHOUT ANY WARRANTY; without even the implied warranty of
* * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* * GNU General Public License for more details at http://www.gnu.org * * */
package corejava.Graphics;
import java.awt.*;
import corejava.Math.*;
import corejava.*;
public class TextSummary extends Canvas {
private Univariate x=null;
private int width,height;
private Dimension size;
private Font font;
private boolean box;
private int[] margins;
private Color textColor;
private Image offScrImage;
private Graphics offScrGraphics;
/* define constants */
public final static Font DEFAULT_FONT=new Font("Courier",Font.PLAIN,10);
public final static Color DEFAULT_COLOR=Color.black;
public final static Format f=new Format("%1.4f");
public TextSummary() { super(); }
public void addNotify() {
super.addNotify();
offScrImage=createImage(width,height);
offScrGraphics=offScrImage.getGraphics();
public void update(Graphics g) {
paint(offScrGraphics);
g.drawImage(offScrImage,0,0,this);
public TextSummary(int width,int height) {
this.width=width;
this.height=height;
size=new Dimension(width,height);
margins=new int[4];
margins[0]=10;
margins[1]=10;
margins[2]=10;
margins[3]=10;
super.setBackground(Color.white);
box=false;
font=DEFAULT_FONT;
textColor=DEFAULT_COLOR;
public TextSummary(int width,int height,Font font,Color textColor) {
this.width=width;
this.height=height;
size=new Dimension(width,height);
margins=new int[4];
margins[0]=10;
margins[1]=10;
margins[2]=10;
margins[3]=10;
super.setBackground(Color.white);
box=false;
this.font=font;
this.textColor=textColor;
public TextSummary(int width,int height,boolean box) {
this.width=width;
this.height=height;
size=new Dimension(width,height);
this.box=box;
margins=new int[4];
margins[0]=10;
margins[1]=10;
margins[2]=10;
margins[3]=10;
super.setBackground(Color.white);
font=DEFAULT_FONT;
textColor=DEFAULT_COLOR;
public TextSummary(int width,int height,Font font,Color textColor,boolean box) {
this.width=width;
this.height=height;
size=new Dimension(width,height);
this.box=box;
margins=new int[4];
margins[0]=10;
margins[1]=10;
margins[2]=10;
margins[3]=10;
super.setBackground(Color.white);
this.font=font;
this.textColor=textColor;
public void newData(double[] data,boolean plot) {
x=new Univariate(data);
if(plot) repaint();
public void newData(Univariate data,boolean plot) {
x=data;
if(plot) repaint();
public void setMargins(int[] margins) {
this.margins=(int[])margins.clone();
public void setGraphicsParams(Font font,Color textColor,boolean box) {
this.font=font;
this.textColor=textColor;
this.box=box;
public void paint(Graphics g) {
if(x==null) return;
g.setColor(Color.white);
g.fillRect(0,0,width-1,height-1);
g.setFont(font);
g.setColor(textColor);
FontMetrics fm=getFontMetrics(font);
int yOrigin=height,
xOrigin=0,
bottom=-margins[0],
left=margins[1],
top=margins[2],
right=margins[3],
center=(int)((width-left-right)*.5),
quarter=(int)((width-left-right)*0.25),
textWidth,
textHeight=fm.getHeight();
textWidth=fm.stringWidth("Summary");
g.drawString("Summary",left+center-(int)(textWidth*.5),top+textHeight);
g.drawLine(left,top+textHeight+2,width-right,top+textHeight+2);
g.drawLine(left,top+textHeight+3,width-right,top+textHeight+3);
textWidth=fm.stringWidth("N");
g.drawString("N",quarter-textWidth,top+2*textHeight);
textWidth=fm.stringWidth(""+x.size());
g.drawString(""+x.size(),center-textWidth,top+2*textHeight);
textWidth=fm.stringWidth("Mean");
g.drawString("Mean",quarter-textWidth,top+3*textHeight);
textWidth=fm.stringWidth(f.form(x.mean()));
g.drawString(f.form(x.mean()),center-textWidth,top+3*textHeight);
textWidth=fm.stringWidth("Var");
g.drawString("Var",quarter-textWidth,top+4*textHeight);
textWidth=fm.stringWidth(f.form(x.variance()));
g.drawString(f.form(x.variance()),center-textWidth,top+4*textHeight);
textWidth=fm.stringWidth("Stdev");
g.drawString("Stdev",quarter-textWidth,top+5*textHeight);
textWidth=fm.stringWidth(f.form(x.stdev()));
g.drawString(f.form(x.stdev()),center-textWidth,top+5*textHeight);
textWidth=fm.stringWidth("SE");
g.drawString("SE",quarter-textWidth,top+6*textHeight);
textWidth=fm.stringWidth(f.form(x.SE()));
g.drawString(f.form(x.SE()),center-textWidth,top+6*textHeight);
textWidth=fm.stringWidth("Min");
g.drawString("Min",3*quarter-textWidth,top+2*textHeight);
textWidth=fm.stringWidth(f.form(x.min()));
g.drawString(f.form(x.min()),width-right-textWidth,top+2*textHeight);
textWidth=fm.stringWidth("Q1");
g.drawString("Q1",3*quarter-textWidth,top+3*textHeight);
textWidth=fm.stringWidth(f.form(x.quant(0.25)));
g.drawString(f.form(x.quant(0.25)),width-right-textWidth,top+3*textHeight);
textWidth=fm.stringWidth("Median");
g.drawString("Median",3*quarter-textWidth,top+4*textHeight);
textWidth=fm.stringWidth(f.form(x.median()));
g.drawString(f.form(x.median()),width-right-textWidth,top+4*textHeight);
textWidth=fm.stringWidth("Q3");
g.drawString("Q3",3*quarter-textWidth,top+5*textHeight);
textWidth=fm.stringWidth(f.form(x.quant(0.75)));
g.drawString(f.form(x.quant(0.75)),width-right-textWidth,top+5*textHeight);
textWidth=fm.stringWidth("Max");
g.drawString("Max",3*quarter-textWidth,top+6*textHeight);
textWidth=fm.stringWidth(f.form(x.max()));
g.drawString(f.form(x.max()),width-right-textWidth,top+6*textHeight);
g.drawLine(left,top+6*textHeight+2,width-right,top+6*textHeight+2);
g.drawLine(left,top+6*textHeight+3,width-right,top+6*textHeight+3);
/* Canvas Functions */
public Dimension getPreferredSize() {
return(size);
public Dimension getMinimumSize() {
return(size);

I'd guess there's a package corejava.Math, which is needed for this code to compile, but you don't have it...

Similar Messages

  • Package javax.servlet not found error

    package javax.servlet not found error. how it can be solved.
    plz help this is my first servlet program.
    vipin

    You need a jar file that has in it the javax.servlet.* classes
    It should be distributed with your servlet/jsp server.
    It can normally be found in a /lib directory under the installation.
    Some examples:
    Tomcat4: install_dir\common\lib\servlet.jar
    Tomcat5: install_dir\common\lib\servlet-api.jar; install_dir\common\lib\jsp-api.jar
    J2sdkee: install_dir/lib/j2ee.jar
    You need to include this jar file in your classpath when you compile any servlet.

  • Package javax.ejb not found error

    Hi there,
    I've downloaded j2se 1.4 and j2ee 1.3.1 and installed it on Windows XP. I set the environment variables as described. When I compile a .java file that imports the javax.ejb.* package, then I get an error "package javax.ejb not found". I feel like an idiot and I know it's something to do with the environment variables. (or just XP, most likely)
    Thanks in advance
    Hoenner

    How are you compiling your source? If you're using an IDE then you should edit your project classpath to include the j2ee.jar file (it'll probably be in the lib directory of your J2EE installation).
    If you're doing it from the command line then type in SET CLASSPATH, look at the classpath it returns and check that it includes the j2ee.jar file.
    Hope this helps.

  • "javadoc not found" error for javax package in netbeans.

    I am using jmf api on windows under netbeans. But problem is that netbeans do not display documentation for jmf methods . Instead it shows "javadoc not found"
    error. Can someone plz help me how to configure the javadoc for jmf.

    I am using jmf api on windows under netbeans. But problem is that netbeans do not display documentation for jmf methods . Instead it shows "javadoc not found"
    error. Can someone plz help me how to configure the javadoc for jmf.Download api docs from [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/specdownload.html] ....
    Then in NetBeans:
    Tools > Java Platforms > "JDK 1.x (Default)" > "Javadoc" tab > "Add zip/folder" button.....
    Add the path of the jmf javadoc zip (or you may have to extract the zip)
    You may not see the changes immediately, try restarting NetBeans....
    Thanks!

  • Trying to track a package on FedEx website and get "Framework Not Found" error message

    Either by clicking on the email from FedEx and launching Firefox or by opening the FedEx website and entering the tracking number, I get "Framework not found" error and the search stops. It worked with previous Firefox versions but not with the new 4.0.1 version. Any suggestions?

    I tried it with firefox and chrome and have the problem in both browsers, so it is not browser specific.

  • Private Key Not Found Error in Ldaps

    Hi,
    I am facing "Private Key Not Found" Error in ldaps. The key and the SSL certificate is stored under the same location. The certificate is self signed certificate and in .pem format. When I am trying to install the certifcate through SUN ONE Console it throws the following error
    "Either this certificate is for another server, or this certificate was not requested using this server".
    can any one help me in this regard.
    Regards
    Senthil
    Edited by: senlog80 on Dec 30, 2008 3:18 AM

    Or even better, check the note <a href="https://websmp110.sap-ag.de/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=924320&_NLANG=E">924320</a>.
    <b>Symptom</b>:
    When you execute a query with virtual characteristics or key figures, the system issues the following error message:
    Object FIELD I_S_DATA-<key figure> not found
    <b>Other terms</b>
    RSR00002, RSR_OLAP_BADI
    <b>Reason and Prerequisites</b>
    This problem is caused by a program error.
    <b>Solution</b>
    If the virtual characteristics or key figures are implemented using the enhancement RSR00002 (CMOD), implement the corrections.
    If the virtual characteristics or key figures were created directly as implementations of the RSR_OLAP_BADI BAdI, compare the source code of the INITIALIZE method with the corresponding source code example. During the call of GET_FIELD_POSITIION_D, <L_S_SK>-VALUE_RETURNNM must be transferred instead of <L_S_SFK>-KYFNM.
    Import Support Package 08 for SAP NetWeaver 2004s BI (BI Patch 08 or SAPKW70008) into your BI system. The Support Package is available when Note 0872280"SAPBINews BI 7.0 Support Package 08", which describes this Support Package in more detail, is released for customers.
    In urgent cases, you can use the correction instructions.
    To provide advance information, the note mentioned above may be available before the Support Package is released. In this case, the short text of the note still contains the words "Preliminary version".
    Assign pts if helpful.

  • Package Properties file not Found SCC

    Hello everybody,
    i need some help i m having this issues : i can't access to my packages files deployed on the default domain it's shows me this error : "Failed to get the package List"
    i checked the domain log i found this error;
    Subsystem=Error  Application ID=, Application Connection ID=, User=, Correlation ID=, Package=, MBO=, Operation=, Thread ID=80, Node ID=WIN-1CMM6LM48GD, Error=com.sybase.djc.SystemException was thrown by transaction com.sybase.sup.server.sis.SISNotificationProducerTask.run()\ncom.sybase.djc.SystemException: Package properties file not found: d1_bapi_fl.1_0
              at com.sybase.sup.server.sis.SISNotificationProducerTask.run(SISNotificationProducerTask.java:233)
              at com.sybase.sup.server.sis.SISNotificationProducerTask_DJC.access$001(SISNotificationProducerTask_DJC.java:4)
              at com.sybase.sup.server.sis.SISNotificationProducerTask_DJC$1.invoke(SISNotificationProducerTask_DJC.java:25)
    thank's .

    treat .properties files just like a class file :)
    if /classes/ is in your classpath and in that directory you have an x.properties file then:
    ResouceBundle.getBundle("x");
    will return it...
    if the x.properties file is in the /classes/com/company/props/ directory then this will act like a package name and
    ResouceBundle.getBundle("com.company.props.x");
    will return it ;)

  • Package javax.swing not found in import!

    I recently installed JDK 1.3.1_02 on WinNT4.0 and I cannot compile javax
    packages without getting the following error:
    Package javax.swing not found in import
    I've tried every combination of modifying the CLASSPATH system variable
    I can think of. I have no problem compiling java packages but not
    javax packages. I followed the installation instructions to the letter.
    What am I missing? Surely someone is running the same version of
    the JDK I am on WinNT 4.0.

    Thanks again!!! I had an older version of javac running on my system any time I ran
    outside of the bin where the latest javac was installed. I removed the older version
    of the jdk and now I can compile from any directory. I really appreciate the help,
    I was wracking my brain.
    By the way, -version is not a valid flag for javac.exe, although it is for java.exe.
    signed,
    grateful in cyberspace

  • R installation R not Found error

    Hi Gurus,
    I am trying to install R enterprise Server on Windows XP. I have checked the perquisites and set R_HOME before starting the install.
    However when I run the install.bat it gives R not found error.
    R_HOME environment variable is correctly set as set R_HOME from command line returns the correct path.
    Please advice.
    Thanks

    Henry,
    <tt>OREbase</tt> is just one of the packages that ORE needs. To complete the installation you will need to install the same way the following packages: <tt>OREeda_1.1.zip, OREgraphics_1.1.zip, OREstats_1.1.zip, ORExml_1.1.zip, ORE_1.1.zip</tt>. Additionally, you will need to install supporting packages from *"Oracle R Enterprise Client Supporting Packages for Windows Platform"*. It contains the following three packages: <tt>DBI_0.2-5.zip, png_0.1-4.zip, ROracle_1.1-2.zip</tt> under <tt>bin</tt> sub-directory.
    Then you can run ORE. Before issuing <tt>ore.connect()</tt> you should load ORE by doing <tt>library(ORE)</tt>. For the database that is running locally you can do something like this:
    library(ORE)
    ore.connect("scott", password = "tiger", conn_string = "")
    ore.sync()
    ore.attach()
    ore.ls()If you have any tables or views in your schema <tt>ore.ls()</tt> will show them.
    Denis

  • Servlet class not found error deploying a WAR on Web Logic Server 8.1

    I'm re-deploying an updated web application to a web logic server, but when I navigate to the login page of the web application to test it, I get a class not found error for my login servlet. I have both the web.xml and the weblogic.xml descriptors in my WEB-INF directory, and all of my compiled classes are in the WEB-INF/classes directory, is there something else I'm missing? Any help would be much appreciated.

    Thanks for the response. Here's the web.xml file:
    <?xml version="1.0" ?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
         <display-name>Web Forms</display-name>
    <servlet>
    <servlet-name>LoginServlet</servlet-name>
    <display-name>LoginServlet</display-name>
    <servlet-class>LoginServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>ChangePasswordServlet</servlet-name>
    <display-name>ChangePasswordServlet</display-name>
    <servlet-class>ChangePasswordServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>LogoutServlet</servlet-name>
    <display-name>LogoutServlet</display-name>
    <servlet-class>LogoutServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>PageServlet</servlet-name>
    <display-name>PageServlet</display-name>
    <servlet-class>PageServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>UploadServlet</servlet-name>
    <display-name>UploadServlet</display-name>
    <servlet-class>UploadServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>LoginServlet</servlet-name>
    <url-pattern>/LoginServlet</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>ChangePasswordServlet</servlet-name>
    <url-pattern>/ChangePasswordServlet</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>LogoutServlet</servlet-name>
    <url-pattern>/LogoutServlet</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>UploadServlet</servlet-name>
    <url-pattern>/UploadServlet</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>PageServlet</servlet-name>
    <url-pattern>/PageServlet</url-pattern>
    </servlet-mapping>
    <welcome-file-list>
    <welcome-file>Login.jsp</welcome-file>
    </welcome-file-list>
    </web-app>
    None of the classes are in a package (I know it's not the best idea, but I didn't write these, I'm just doing some updates). So the file structure is pretty much just WEB-INF/classes/
    At the moment I've got a fix by just putting the entire project (not in any sort of archive) on the server itself instead of deploying it as a WAR, any thoughts on why the WAR isn't working would be much appreciated though.

  • Bean class not found error...

    I am using Tomcat 4.0 on windows 98, when I try to use my bean class from jsp program, I get class not found error. I read/followed all the similar problems in the forum but still have not been able to solve the problem.
    The error I get is as follows:
    ==============================
    type Exception report
    message Internal Server Error
    description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
    An error occurred at line: 1 in the jsp file: /handoff1.jsp
    Generated servlet error:
    D:\Apps\Apache\Tomcat4.0\work\Standalone\localhost\cartapp\handoff1$jsp.java:56: Class com.cartapp.user.User not found.
    com.cartapp.user.User handoff = null;
    ^
    An error occurred at line: 1 in the jsp file: /handoff1.jsp
    Generated servlet error:
    D:\Apps\Apache\Tomcat4.0\work\Standalone\localhost\cartapp\handoff1$jsp.java:59: Class com.cartapp.user.User not found.
    handoff= (com.cartapp.user.User)
    ^
    An error occurred at line: 1 in the jsp file: /handoff1.jsp
    Generated servlet error:
    D:\Apps\Apache\Tomcat4.0\work\Standalone\localhost\cartapp\handoff1$jsp.java:64: Class com.cartapp.user.User not found.
    handoff = (com.cartapp.user.User) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "com.cartapp.user.User");
    ^
    3 errors, 1 warning
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:285)
    at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
    =============================================
    Location of files
    ==================
    My jsp file is located at:
    D:\Apps\Apache\Tomcat4.0\webapps\ROOT\cartapp
    my bean class - User - is at:
    D:\Apps\Apache\Tomcat4.0\webapps\ROOT\WEB-INF\classes\com\cartapp\user
    Contents of the jsp file
    =======================
    <jsp:useBean id="handoff" scope="session" class="com.cartapp.user.User" />
    <HTML>
    <BODY>
    This is the setting page!
    <%
    handoff.setFirstName("George");
    %>
    </BODY>
    </HTML>
    The first 2 lines of the class are:
    ==================================
    package com.cartapp.user;
    public class User {
    Environment settings
    ====================
    JAVA_HOME=D:\Apps\java\jdk
    CATALINA_HOME=D:\Apps\Apache\Tomcat4.0
    CLASSPATH=;.;F:\ola\progmn\JAVA\pkgs;D:\Apps\Apache\Tomcat4.0\common\lib\servlet.jar
    Can anyone please help. Thanks.
    Thanks.
    Ola Oke (SCJP 1.4)

    Not certain but try putting the classes folder in your classpath:
    D:\Apps\Apache\Tomcat4.0\webapps\ROOT\WEB-INF\classes\

  • Numerous "page not found" errors

    I've been using a WRT160N router for several weeks which I bought as a replacement for a failed Belkin router. Home network config is my Vista PC connected via Ethernet cable to the router and my wife's Vista PC with wireless access to the router. The router is connected to a Cox ISP Motorola SB5120 Surfboard cable modem. Both computers (wired and wireless) experience frequent "page not found" errors. In many cases, an immediate attempt to access the same page is successful.
    I'm quite sure that the network connection and the Internet connection are not being dropped. At the same time that the "page not found" errors are occurring, I am able to check my email (via Windows Mail) with no problem. Also, both computers are running Network Magic, and it is quite good at popping up messages when a connection is lost. These messages never pop up when the "page not found" errors are occurring.
    I've done a fair amount of Googling about this problem and saw some references to Domain Name System failures. Is it possible that when I'm requesting a web page, my DNS server is not returning the page's IP address? If so, is there a way to correct this problem?
    One additional piece of info that might be relevant: If my wife shuts down her computer in the evening before I shut mine down, then I immediately start getting many more "page not found" errors - sometimes on almost every attempt to access a page. I have been able to get around this problem by power cycling the router, leaving the power off for 20-30 seconds. After that, access to web pages is much better.
    The last time I checked, I had the latest firmware installed in the router. This problem never occurred with the old Belkin router for almost two years before it began failing.
    Any advice would be much appreciated. This problem is quite a nuisance.
    --Jim--

    Paul, thanks much for the link to the other thread. I just finished reading all 11 pages. Unbelievable that there hasn't been a single encouraging post by a Linksys person! I'm probably going to keep the router, since I've had it for almost a month and have discarded the box and packaging by now. Looks like I have a choice of (1) putting up with the DNS problems that are truly a nuisance, (2) downgrading to firmware version 8 if I can get it, or (3) hoping for a future firmware upgrade from Linksys that will fix the problem.
    There seem to be a couple of people on the thread who are willing to provide firmware version 8 and save me the trouble of extracting the firmware file from the tar file. They say something like, "PM me your email address and I'll send you the firmware." I'm enough of a newbie on this board and a complete newbie on the other board that I'm not sure what PM means. Do you? Are both boards sponsored by Linksys? This one is part of forums.linksys.com while the other one is part of forums.linksysbycisco.com. There's so much to learn ...

  • External Catalog gives HTTP 404 not found error on return

    Hi,
    I have an SRM 4.0 that I am running with an external ITS.  I have two systems that are almost exactly the same.  When I shop with a particular external catalog in one system, it works fine.  When I shop in the other system, I can get to the catalog and shop OK, but when I try to return the items to my cart, I get a 404 not found error.  I have reviewed the HTML source being sent back to both systems and can identify no differences.  I have scoured the config and it is exactly the same.  There are no other error messages anywhere in the broken system.  There are other external catalogs in that system that work fine.  I know I am overlooking something but can't seem to figure out what.  Any suggestions to alleviate this most frustrating problem are greatly appreciated.
    Many thanks,
    Kris

    Hi
    <u>What are the steps you doing to reproduce this error in the system? Please give complete details.</u>
    <b>Meanwhile, please look for following SAP OSS Notes as well -></b>
    Note 576530 - Page cannot be displayed
    Note 763955 - Error when resubmitting or forwarding
    Note 851106 - Search in catalog from SRM leads to "Service not reachable"
    Note 869716 - Package and SICF node missing for AP SICF services
    Note 961775 - Missing 1x1.gif - HTTP 404 Error - File Not Found
    Note 991863 EBPMSG service not available in transaction SICF
    Do let me know.
    Regards
    - Atul

  • Export file framework.exp of package javacard.framework not found

    Hi,
    trying to convert the HelloWord example of the Sun Javacard Kit (2.2.2), i get the "error: export file framework.exp of package javacard.framework not found". I have compiled the file according to the documentation and i am still following the documentation for converting it.
    this is the command i use:
    %JC_HOME%/bin/converter.bat -config C:\java_card_kit-2_2_2\samples\src\com\sun\javacard\samples\HelloWorld\HelloWorld.opt
    Ideas?
    Thanks
    Edited by: uig on Oct 23, 2007 7:54 AM

    how did you compile ur helloworld.opt file coz when i tried it i got this err msg
    call %JC_HOME%\bin\converter -config ..\src\com\sun\javacard\samples\HelloWorld\HelloWorld.opt
    and got this err
    Exception in thread "main" java.lang.NoClassDefFoundError: Files\Java\jre1/6/0_03\lib\ext\QTJava/zip;

  • Getting 104 resource not found error, when deploying my first servlet

    Hi,
    I am new to servlets, and after doing little home work i have created a small servlet but i am i getting http 104 resource not found error.
    steps i followed:
    1) installed pre-configured version of tomcat from http://www.coreservlets.com/Apache-Tomcat-Tutorial/.
    2)created new directory called ch1 under webapps, created WEB-INF under ch1
    3)included web.xml, classes in WEB-INF directly
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <web-app 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_5.xsd"
    version="2.5">
    <servlet>
    <servlet-name>Ch1servlet</servlet-name>
    <servlet-class>Ch1servlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Ch1servlet</servlet-name>
    <url-pattern>/servlet</url-pattern>
    </servlet-mapping>
    </web-app>
    4) included .class file under classes folder from following Ch1servlet.java file, I have set class path to point to servlet-api.jar file and jsp-api.jar and compliled following java file to get .class file which is included in classes folder
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    public class Ch1servlet extends HttpServlet
    public void doGet(HttpServletRequest request,HttpServletResponse response)throws IOException
    response.setContentType("text/html");
    PrintWriter out=response.getWriter();
    java.util.Date today=new java.util.Date();
    out.println("<html>"+
    "<body>"+
    "<h1 align=center>HF\'s Chapter1 Servlet</h1>"
    +"<br>" + today + "</body>" + "</html>");
    5) I am started tomcat server and when typed http://localhost( changed port from 8080 to 80), its giving tomcat page and not showing any error
    6) When i typed http://localhost/ch1/servlet/Ch1servlet, its giving http 404 error
    type Status report
    message: /servlet/Ch1servlet
    description: The requested resource (/servlet/Ch1servlet) is not available.
    7) i have uncommented(it comes preconfigured) the invoker part in web.xml.
    I have tried including servlet in an package and without package
    I am not sure if its problem with server configuration orelse problem with my file placing.
    Please let me know if you have any idea what went wrong.

    I found this, unable to copy it, so i am typing it:
    Feb11,2008 11:55:57 AM org.apache.catalina.core.AprLifecycleLIstener init
    INFO: The Apache Tomcat Native Library which allows optimal performance in production environemnt was not found on the java.library.path:c:\program Files\Java\jdk1.6.0\bin;....
    last line says
    org.apache.cataline.startup.catalina start
    INfo: Server startup in 657ms

Maybe you are looking for

  • How to restrict number of column exposed by xsoData service at runtime

    Hi All, I have created one xsoData service over calculation view (imported one BW cube). I want to expose few characteristics of cube and a key figure. I want to decide this key figure at run time,means if i have say three key figures say quantity, c

  • __ Is there a way to adjust the key commands for switching channels in curves?

    __ Is there a way to adjust the key commands for switching channels in curves? By that I mean <command> + 1 for cyan, <command> + 2 for magenta etc. like Photoshop CS3 rather than <option> + 3 for cyan etc. There's gotta be a way under Edit --> Keybo

  • Do you think JOptionPane dialogs force garbage collection afterwards?

    I ask because I've made a nested static class to implement my own file selection tool; the problem is that each time I call it the old JPanel is being recalled and so the components get re-added to it each time it's called, resulting in n versions of

  • White screen after submitting "verified by visa"

    I have a client using a verfied by visa card, which seems to work on the shop checkout without issue. The problem is that we have a web payment form (used to take installments on tours) and instead of working as the shop does, it goes to a white page

  • Organization Model Enhancement

    Hi All,    We need to assign multiple CRM sale office to same ERP Sale office.We have to enhance the organisation model for the same.   We have already created organisation model.   Please let me know what will be the impact if we enhance the org mod