FirstGUI.java:7: Package java.swing not found in import.

Hi,
I am currently taking JAVA at UGA and am trying to learn the GUI part on my own, since our professor is not going to cover this. This is the first error I get when I compile the program. Any help is greatly appreciated...
Thanks,
Joe
Below is the program...
/* A first GUI. This class creates a label and a button. The count in the label is incremented each
time that the button is pressed.
import java.awt.*;
import java.awt.event.*;
import java.swing.*;
public class FirstGUI extends JPanel {
     // Instance variables
     private int count = 0;          // Number of pushes
     private JButton pushButton;     // Push button
     private JLabel label;          // Label
     // Initialization method
     public void init() {
          // Set the layout manager
          setLayout( new BorderLayout() );
          // Create a label to hold the push count
          label = new JLabel("Push Count: 0");
          add( label, BorderLayout.NORTH );
          label.setHorizontalAlignment( label.CENTER );
          // Create a button
          pushButton = new JButton("Test Button");
          pushButton.addActionListener( new ButtonHandler (this) );
          add( pushButton, BorderLayout.SOUTH );
          // Method to update push count
          public void updateLabel() {
               label.setText( "Push Count: " + (++count) );
     // Main method to create frame
     public static void main(String a[]) {
          // Create a frame to hold the application
          JFrame fr = new JFrame("FirstGUI ...");
          fr.setSize(200,100);
          // Create a Window Listener to handle "close" events
          WindowHandler 1 = new WindowHandler();
          fr.addWindowListener(1);
          // Create and initialize a FirstGUI object
          FirstGUI fg = new FirstGUI();
          fg.init();
          // Add the object to the center of the frame
          fr.getContentPane().add(fg, BorderLayout.CENTER);
          // Display the frame
          fr,setVisible( true );
class ButtonHandler implements ActionListener {
     private FirstGUI fg;
     // Constructor
     public ButtonHandler ( FirstGUI fg1 ) {
          fg = fg1;
     // Execute when an event occurs
     public void actionPerformed( ActionEvent e ) {
          fg.updateLabel();
}

The error is below...
A:\ENGR1140>javac FirstGUI.java
FirstGUI.java:39: Identifier expected.
public static void main(String s[]) {
^
FirstGUI.java:39: 'class' or 'interface' keyword expected.
public static void main(String s[]) {
^
I don't think the actual error is on line 39, I looked in the book that has the code and line 39 is typed just as it is shown in the book.
Below is the program...
/* A first GUI. This class creates a label and a button. The count in the label is incremented each
time that the button is pressed.
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class FirstGUI extends JPanel {
     // Instance variables
     private int count = 0;          // Number of pushes
     private JButton pushButton;     // Push button
     private JLabel label;          // Label
     // Initialization method
     public void init() {
          // Set the layout manager
          setLayout( new BorderLayout() );
          // Create a label to hold the push count
          label = new JLabel("Push Count: 0");
          add( label, BorderLayout.NORTH );
          label.setHorizontalAlignment( label.CENTER );
          // Create a button
          pushButton = new JButton("Test Button");
          pushButton.addActionListener( new ButtonHandler (this) );
          add( pushButton, BorderLayout.SOUTH );
          // Method to update push count
          public void updateLabel() {
               label.setText( "Push Count: " + (++count) );
     // Main method to create frame
     public static void main(String s[]) {
          // Create a frame to hold the application
          JFrame fr = new JFrame("FirstGUI ...");
          fr.setSize(200,100);
          // Create a Window Listener to handle "close" events
          WindowHandler 1 = new WindowHandler();
          fr.addWindowListener(1);
          // Create and initialize a FirstGUI object
          FirstGUI fg = new FirstGUI();
          fg.init();
          // Add the object to the center of the frame
          fr.getContentPane().add(fg, BorderLayout.CENTER);
          // Display the frame
          fr,setVisible( true );
class ButtonHandler implements ActionListener {
     private FirstGUI fg;
     // Constructor
     public ButtonHandler ( FirstGUI fg1 ) {
          fg = fg1;
     // Execute when an event occurs
     public void actionPerformed( ActionEvent e ) {
          fg.updateLabel();

Similar Messages

  • 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

  • Package com.sun.java.swing not found in import

    I'm trying to show graphic information but the swing package does not load up don't know what is going on Any help is welcome
    THIS IS THE LINE I GET WHEN I TRY TO IMPORT SWING
    Package com.sun.java.swing not found in import

    I'm trying to show graphic information but the swing
    package does not load up don't know what is going on
    Any help is welcome
    THIS IS THE LINE I GET WHEN I TRY TO IMPORT SWING
    Package com.sun.java.swing not found in importThat's an old package reference. Try javax.swing

  • Package javax.mail not found in import.

    hi,
    i am trying to develop a mail application using jsp, i have jaf1.0.1 and javamail API and the application was working fine on weblogic but when i tried to do the same thing on Apache server the Package javax.mail not found in import. is occuring,
    What could be the problem can any one explain...
    Thanks

    I think you have not placed mail.jar and activation.jar files in the /jre/lib/ext directory. Just place the mail.jar and activation.jar files in the jdk's /jre/lib/ext directory and check out. This will work for you.
    Rkanthj

  • 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...

  • Error not found in import

    mudclient.java:1: Package jagex.client not found in import.
    import jagex.client.*;
    ^
    mudclient.java:2: Class jagex.f not found in import.
    import jagex.f;
    ^
    mudclient.java:3: Class jagex.o not found in import.
    import jagex.o;
    ^
    mudclient.java:12: Superclass e of class mudclient not found.
    public class mudclient extends e
    ^
    4 errors

    hmmm... looks like your classpath is not set correctly. What do you enter when compiling your program?

  • Package not found in import --please help me

    Hi,
    when I try to import jack.samples.*(<%@ page import="jack.samples.*" %>)
    into the jsp ,it throws me error stating
    "Package jack.samples not found in import".
    1)After this,added path to this jar file in classpath i.e D:\jack\samples\samples.jar
    2)still,error appears.
    3)Now,added this jar file to jdk lib classes. still,error appears.
    can somebody throw me light on how to trouble shoot this.
    Thanks
    Jack

    Hi,
    I was able to solve the above problem ,the moment I declared the constructor
    has public.Now,I am trying to retreive the Item class partno value and it
    throws me "
    d:\ibm\WAServer\temp\default_host\WCSServlets\_jameco_2F_softproduct_2E_jsp_jsp_1.java:784: No method matching getPartNo&#40&#59;&#41&#59; found in class jack.samples.Item. temp= i.getPartNo&#40&#59;&#41&#59;&#59&#59;
    I wonder what could be the cause.The code of Item class is here:
    package jack.samples;
    import java.util.*;
    public class Item {
    int partno;
    String mfgno;
    String description;
    double cost;
    public Item(int p,String m,String d,double c) {
    partno = p;
    mfgno=m;
    description=d;
    cost = c;
    public int getPartNo() {
         return partno;
    public double getCost() {
         return cost;
    The JSP code :
    <%
    Iterator thisLot=linkTab.iterator(); // Iterate to get all items
         while(thisLot.hasNext()) { // output all the elements
         Item i = (Item) thisLot.next();
    here it fails ******     temp= i.getPartNo();
    %>
    Thanks
    Jack

  • Java.rmi.UnmarshalException: skeleton class not found but required for clie

    Hello everyone,
    I am new to RMI and getting a strange exception. I am using Java 1.5.0_07 both on client and server. They are running on the same machine, the rmi registry is started inside the server application.
    I am wondering why java complains about skeletons, I thought they are automatically created when using java 5.0?
    Please have a look at the stacktrace below.
    Thank you for your help.
    Best Regards
    Patric
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
         java.rmi.UnmarshalException: error unmarshalling call header; nested exception is:
         java.rmi.UnmarshalException: skeleton class not found but required for client version
         sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:325)
         sun.rmi.transport.Transport$1.run(Transport.java:153)
         java.security.AccessController.doPrivileged(Native Method)
         sun.rmi.transport.Transport.serviceCall(Transport.java:149)
         sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
         sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
         java.lang.Thread.run(Thread.java:595)
         sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
         sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
         sun.rmi.server.UnicastRef.invoke(UnicastRef.java:343)
         sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
         java.rmi.Naming.lookup(Naming.java:84)
         org.apache.jsp.index_jsp._jspService(index_jsp.java:58)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

    The full class path information that I can gather is as follows (some of the library path locations could be suspect...):
    Class path: /edge/node3/hotfix::/edge/node3/current/lib/JMdsApi.jar:/edge/node3/current/lib/MemoryProfilingAgent.jar:/edge/node3/current/lib/T2common-2.6.0-SNAPSHOT.3200.jar:/edge/node3/current/lib/T2scripting-jython.jar:/edge/node3/current/lib/activation.jar:/edge/node3/current/lib/alib.jar:/edge/node3/current/lib/alibom.jar:/edge/node3/current/lib/ant.jar:/edge/node3/current/lib/authapi.jar:/edge/node3/current/lib/bbdlapi.jar:/edge/node3/current/lib/bcpg-jdk15-136.jar:/edge/node3/current/lib/bcprov-jdk15-136.jar:/edge/node3/current/lib/c3p0-0.9.1.2.jar:/edge/node3/current/lib/castor-1.1-codegen-anttask.jar:/edge/node3/current/lib/castor-1.1-codegen.jar:/edge/node3/current/lib/castor-1.1-xml.jar:/edge/node3/current/lib/castor-1.1.jar:/edge/node3/current/lib/colt-1.2.0.jar:/edge/node3/current/lib/common-annotations.jar:/edge/node3/current/lib/commons-beanutils.jar:/edge/node3/current/lib/commons-codec-1.3.jar:/edge/node3/current/lib/commons-collections-3.2.1.jar:/edge/node3/current/lib/commons-jexl-1.1.jar:/edge/node3/current/lib/commons-lang-2.3.jar:/edge/node3/current/lib/commons-logging-1.1.1.jar:/edge/node3/current/lib/commons-net-1.4.1.jar:/edge/node3/current/lib/dsn.jar:/edge/node3/current/lib/eagleapi.jar:/edge/node3/current/lib/ezmorph-1.0.3.jar:/edge/node3/current/lib/f2-loader-1.8.jar:/edge/node3/current/lib/fasttrade-boviewer-1.0.1.jar:/edge/node3/current/lib/hsqldb.jar:/edge/node3/current/lib/icu4j-3.4.4.jar:/edge/node3/current/lib/ivy.jar:/edge/node3/current/lib/janino.jar:/edge/node3/current/lib/janus-sdk-1.7.0.0.jar:/edge/node3/current/lib/jasypt-1.4.1.jar:/edge/node3/current/lib/javolution.jar:/edge/node3/current/lib/jcalendar-1.3.2.jar:/edge/node3/current/lib/jcl-over-slf4j-1.5.6.jar:/edge/node3/current/lib/jcommon-1.0.9.jar:/edge/node3/current/lib/jconn2.jar:/edge/node3/current/lib/jconn3-6.05-b26214.jar:/edge/node3/current/lib/jdom.jar:/edge/node3/current/lib/jfreechart-1.0.5.jar:/edge/node3/current/lib/jgroups-all.jar:/edge/node3/current/lib/jline.jar:/edge/node3/current/lib/jmkv123p1.jar:/edge/node3/current/lib/jna.jar:/edge/node3/current/lib/joda-time-1.5.2.jar:/edge/node3/current/lib/jscience.jar:/edge/node3/current/lib/json-lib-2.2.1-jdk15.jar:/edge/node3/current/lib/jul-to-slf4j-1.5.6.jar:/edge/node3/current/lib/junit.jar:/edge/node3/current/lib/jython.jar:/edge/node3/current/lib/log4j-1.2.15.jar:/edge/node3/current/lib/log4j-over-slf4j-1.5.6.jar:/edge/node3/current/lib/loggablePreparedStatement-1.6.jar:/edge/node3/current/lib/looks-2.1.4.jar:/edge/node3/current/lib/mailapi.jar:/edge/node3/current/lib/model-12021.jar:/edge/node3/current/lib/mysql-connector-java-5.1.7-bin.jar:/edge/node3/current/lib/opencsv-1.8.jar:/edge/node3/current/lib/rfa.jar:/edge/node3/current/lib/rspcore.jar:/edge/node3/current/lib/slf4j-api-1.5.6.jar:/edge/node3/current/lib/slf4j-log4j12-1.5.6.jar:/edge/node3/current/lib/smtp.jar:/edge/node3/current/lib/smtphandler-0.6.jar:/edge/node3/current/lib/spring-2.5.2.jar:/edge/node3/current/lib/statsvn.jar:/edge/node3/current/lib/swingx-0.9.3.jar:/edge/node3/current/lib/t2-12021.jar:/edge/node3/current/lib/testng-5.9-jdk15.jar:/edge/node3/current/lib/tibmsg.jar:/edge/node3/current/lib/tibrvj.jar:/edge/node3/current/lib/trove.jar:/edge/node3/current/lib/velocity-tools.jar:/edge/node3/current/lib/velocity.jar:/edge/node3/current/lib/xalan.jar:/edge/node3/current/lib/xerces.jar:/edge/node3/current/lib/patng/activeio-core-3.0.0-incubator.jar:/edge/node3/current/lib/patng/activemq-core-4.1.1.jar:/edge/node3/current/lib/patng/avalon-framework-4.1.3.jar:/edge/node3/current/lib/patng/backport-util-concurrent-2.2.jar:/edge/node3/current/lib/patng/binding-1.4.0.jar:/edge/node3/current/lib/patng/cglib-nodep-2.1_3.jar:/edge/node3/current/lib/patng/common-1.30.jar:/edge/node3/current/lib/patng/commons-cli-1.0.jar:/edge/node3/current/lib/patng/commons-configuration-1.2.jar:/edge/node3/current/lib/patng/commons-discovery-0.2.jar:/edge/node3/current/lib/patng/commons-math-1.1.jar:/edge/node3/current/lib/patng/concurrent-1.3.4.jar:/edge/node3/current/lib/patng/geronimo-j2ee-management_1.0_spec-1.0.jar:/edge/node3/current/lib/patng/geronimo-jms_1.1_spec-1.0.jar:/edge/node3/current/lib/patng/logkit-1.0.1.jar:/edge/node3/current/lib/patng/mina-core-1.0.1.jar:/edge/node3/current/lib/patng/mina-filter-ssl-1.0.1.jar:/edge/node3/current/lib/patng/mina-java5-1.0.1.jar:/edge/node3/current/lib/patng/mx4j-remote-3.0.1.jar:/edge/node3/current/lib/patng/mx4j-tools-3.0.1.jar:/edge/node3/current/lib/patng/org.apache.felix.framework-1.0.0.jar:/edge/node3/current/lib/patng/org.osgi.core-1.0.0.jar:/edge/node3/current/lib/patng/pat-dt-common-1.18.jar:/edge/node3/current/lib/patng/pat-sdt-1.18.jar:/edge/node3/current/lib/patng/patNg-api-1.27.1.jar:/edge/node3/current/lib/patng/patNg-server-aoc-1.21.jar:/edge/node3/current/lib/patng/patNg-server-common-1.21.jar:/edge/node3/current/lib/patng/patNg-server-session-manager-1.21.jar:/edge/node3/current/lib/patng/patNg-utils-1.27.1.jar:/edge/node3/current/lib/patng/qpid-broker-2.2.2.0.jar:/edge/node3/current/lib/patng/qpid-client-2.2.2.0.jar:/edge/node3/current/lib/patng/qpid-common-2.2.2.0.jar:/edge/node3/current/lib/patng/qpid-mina-core-2.2.2.0.jar:/edge/node3/current/lib/patng/rsee-2.11.jar:/edge/node3/current/lib/patng/servlet-api-2.3.jar:/edge/node3/current/lib/patng/silk-1.3.jar:/edge/node3/current/lib/patng/slf4j-api-1.4.0.jar:/edge/node3/current/lib/patng/slf4j-log4j12-1.4.0.jar:/edge/node3/current/lib/patng/validation-1.2.0.jar
    Boot class path: /apps/jdk/1.6.0_13/linux/jre/lib/resources.jar:/apps/jdk/1.6.0_13/linux/jre/lib/rt.jar:/apps/jdk/1.6.0_13/linux/jre/lib/sunrsasign.jar:/apps/jdk/1.6.0_13/linux/jre/lib/jsse.jar:/apps/jdk/1.6.0_13/linux/jre/lib/jce.jar:/apps/jdk/1.6.0_13/linux/jre/lib/charsets.jar:/apps/jdk/1.6.0_13/linux/jre/classes:/tmp/yjp200811122006.jar
    Library path: /apps/jdk/1.6.0_13/linux/jre/lib/i386/server:/apps/jdk/1.6.0_13/linux/jre/lib/i386:/apps/jdk/1.6.0_13/linux/jre/../lib/i386::/edge/node3/current/lib:/home/eqdev/eqedgeuat/yourkit_7_5_11/yjp-7.5.11/bin/linux-x86-32:/edge/node3/current/lib:/home/eqdev/eqedgeuat/yourkit_7_5_11/yjp-7.5.11/bin/linux-x86-32:/usr/java/packages/lib/i386:/lib:/usr/lib

  • MyApplet.java:2: Class netscape.javascript.JSObject not found in import.

    Hi,
    Im getting: MyApplet.java:2: Class netscape.javascript.JSObject not found in import.
    import netscape.javascript.JSObject;
    Where can i get this package. Someone said jaws.jar, but its not to be found. Im new on this project and I dont know how the old people compiled this applet.
    JDK version is:
    Solaris VM (build Solaris_JDK_1.2.2_10, native threads, sunwjit)
    Thanks

    Thanks man!
    I installed the jdk1.4 on my workstation. I then compiled the program via JDeveloper and pumped the class over to my server.
    Thanks again.

  • When compiling I get msg: Class java.io.* not found in import.

    import java.io.InputStreamReader;
    import java.io.BufferedReader;
    import java.io.IOException;
    public class CheckNumber {
    //program that checks the input buffer has valid integer value
         public static void main(String[] args) {
              String inLine = null;
              int checkInteger = 0;
              try {
              BufferedReader inStream = new BufferedReader (new InputStreamReader(System.in) );
              System.out.print("Enter a valid Integer and hit <ENTER>: ");
              inLine = inStream.readLine();
              checkInteger = Integer.parseInt(inLine);
              } catch (NumberFormatException nfe) {
              System.out.println("You did not enter a valid Integer: " + nfe);
              return;
              } catch (IOException e) {
              System.out.println("IOException: " + e);
              return;
              System.out.println("You entered a valid Integer: " + checkInteger);
    Compiling produced the following output:
    C:\jdk\work1>javac CheckNumber.java
    CheckNumber.java:1: Class java.io.InputStreamReader not found in import.
    import java.io.InputStreamReader;
    ^
    CheckNumber.java:2: Class java.io.BufferedReader not found in import.
    import java.io.BufferedReader;
    ^
    CheckNumber.java:12: Class java.io.BufferedReader not found in type declaration.
    BufferedReader inStream = new BufferedReader (new InputStreamReader(System.in) );
    ^
    CheckNumber.java:12: Class java.io.InputStreamReader not found in new.
    BufferedReader inStream = new BufferedReader (new InputStreamReader(System.in) );
    ^
    CheckNumber.java:15: Class java.io.BufferedReader not found in void main(java.lang.String[]).
    inLine = inStream.readLine();
    ^
    CheckNumber.java:21: Exception java.io.IOException is never thrown in the body of the corresponding try statement.
    } catch (IOException e) {
    ^
    6 errors

    I recently did a standard installation of jdk 1.5.
    This is the first time I am trying import.
    I set the path:
    set path=c:\jdk\bin
    Hmm...
    C:\jdk\bin>java -version
    java version "1.5.0_15"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_15-b04)
    Java HotSpot(TM) Client VM (build 1.5.0_15-b04, mixed mode, sharing)
    C:\jdk\bin>javac -J-version
    'javac' is not recognized as an internal or external command,
    operable program or batch file.
    There's no javac.exe file.
    I have javaw.exe and java.exe.

  • Java.io.FileNotFoundException: Response: '404: Not Found' for url:

    Hello,
    I am in the processing porting a J2EE based application deployed originally in OC4J to WLS. I am not changing anything as far as J2EE/Web configuration files such as web.xml. Whenever I hit the URL of the application, I am getting the below exception.
    What does usually "java.io.FileNotFoundException: Response: '404: Not Found' for url...." indicate?
    If you could please give me some pointers to narrow down the places to look, I would appreciate it.
    Thanks,
    Mustafa
    java.io.FileNotFoundException: Response: '404: Not Found' for url: 'http://cayc
    001geo1:7001/IUS_Editor/mapservlet'
    at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnectionjava:487)
    at weblogic.net.http.SOAPHttpURLConnection.getInputStream(SOAPHttpURLConection.java:37)
    at oracle.lbs.mapclient.MapViewer.getXMLResponse(MapViewer.java:6013)
    at oracle.lbs.mapclient.MapViewer.getDataSources(MapViewer.java:629)
    at gov.census.geo.maftiger.interactiveupdate.navigation.mapservlet.ISGegraphyController.getMapviewerDS(ISGeographyController.java:730)
    at gov.census.geo.maftiger.interactiveupdate.navigation.mapservlet.ISGegraphyController.doPost(ISGeographyController.java:161)
    at gov.census.geo.maftiger.interactiveupdate.navigation.mapservlet.ISGegraphyController.doGet(ISGeographyController.java:73)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:821)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.ru(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurtyHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.ja
    a:300)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.ja
    a:184)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActi

    Hello,
    I was able to sort out this issue. I was comparing the web.xml and found out that the servlet-mapping was missing.
    Thanks,
    Mustafa

  • Package not found in import

    Hello, I�m trying to run a webapplication but I get an Error 500-message in the browser(IE 5): Package not found in import. It is an webapplication with JSPs and an controlling servlet. Does anyone know how to fix that problem?
    Using: Windows 2000, Tomcat 3.2.1 as NT-service, JavaTM 2 SDK, Enterprise Edition, JavaTM 2 SDK, Standard Edition
    Tomcat/webapps/projektverwaltung.war
    Error: 500
    Location: /projektverwaltung/projektverwaltung/JSP/Menue.jsp
    Internal Servlet Error:
    org.apache.jasper.JasperException: Unable to compile class for JSPC:\Tomcat\work\localhost_8080%2Fprojektverwaltung\_0002fprojektverwaltung_0002fJSP_0002fMenue_0002ejspMenue_jsp_0.java:15: Package de.zebulon.projektverwaltung.projekttool not found in import.
    import de.zebulon.projektverwaltung.projekttool.*;
    ^
    1 error
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:254)
         at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
         at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
         at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:152)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:164)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
         at org.apache.tomcat.core.Handler.service(Handler.java:286)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
         at java.lang.Thread.run(Thread.java:484)
    CLASSPATH: .;C:\;C:\jesdkee1.3\lib\j2ee.jar;C:\jdk1.3.0_01\lib\tools.jar;C:\Tomcat\lib\servlet.jar;C:\de\zebulon\projektverwaltung\projekttool;
    J2EE_CLASSPATH:
    C:\mysql\JDBC_MySQL_mm\mm.mysql-2.0.4-bin.jar;C:\mysql\JDBC_MySQL_Resin\caucho-jdbc-mysql-0.2.2.jar;C:\mysql\JDBC_MySQL_twz\twz1\jdbc\mysql\htdocs\twz1jdbcForMysql.jar;
    J2EE_HOME:
    C:\j2sdkee1.3;
    JAVA_HOME:
    C:\jdk1.3.0_01;
    TOMCAT_HOME:
    C:\tomcat;
    Path:
    C:\PROGRA~1\Borland\Delphi5\Projects\Bpl;C:\PROGRA~1\Borland\Delphi5\Bin;C:\PROGRA~1\BORLAND\CBUILD~1\BIN;C:\PERL\BIN;"%PATH%";%SYSTEMROOT%;%SYSTEMROOT%\system32;%SYSTEMROOT%\system32\WBEM;C:\jdk1.3.0_01\bin;C:\j2sdkee1.3\bin;C:\j2sdkee1.3\lib\j2ee.jar;C:\mysql\bin;
    Server.xml entry:
    <Context path="/projektverwaltung"
    docBase="webapps/projektverwaltung"
    defaultSessionTimeOut="30"
    debug="9">
    </Context>
    Web.xml:
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE web-app PUBLIC
    "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    <web-app>
    <display-name>Projektverwaltung Zebulon</display-name>
    <description>Interne Projektverwaltung Fa. Zebulon</description>
    <welcome-file-list>
    <welcome-file>menue.jsp</welcome-file>
    </welcome-file-list>
    <servlet>
    <servlet-name>ProjektServlet</servlet-name>
    <display-name>ProjektServlet</display-name>
    <description>Servlet das die Applikation kontrolliert</description>
    <servlet-class>de.zebulon.projektverwaltung.projekttool.ProjektServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <url-pattern>/Projekttool</url-pattern>
    <servlet-name>ProjektServlet</servlet-name>
    </servlet-mapping>
    <session-config>
    <session-timeout>30</session-timeout>
    </session-config>
    </web-app>

    Hello, I try copy C:\de\zebulon\projektverwaltung\projekttool\*.class in
    location that contain file _002fprojektverwaltung_0002fJSP_0002fMenue_0002ejspMenue_sp_0.java.

  • 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 ;)

  • Jakarta Tomcat error - 'Package MyUtils not found in import.'

    Jakarta Tomcat - 'Package MyUtils not found in import.'
    Can anyone help with this error please?
    My JSP code P6.jsp contains :-
    <%@page import="MyUtils.* ,java.util.*"%>
    But, the package MyUtils with class file NameStore.class is not found.
    The actual error at JSP translation time is:-
    org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
    C:\jdk1.4\jakarta-tomcat-4.0.1\work\Standalone\localhost\lab06\P6$jsp.java:3: Package MyUtils not found in import.
    import MyUtils.* ;
    ^
    My directory structure is listed below:-
    %CATALINA_HOME/webapps/lab06( contains P6.jsp)/web-inf/classes/MyUtils/NameStore.class
    Can anyone help please?
    Thanks,John Withington

    put your package in your WEB-INF directory!

  • Package zzz not found in import (server side classes)

              Hi,
              I'm trying to use the "Web Application" feature in WL 5.10
              (with no service pack). My application contains a couple of
              servlets, a couple of server side classes, and a couple of
              jsp pages.
              I created the WEB-INF\classes directory structure both in
              public_html and in my application's root directory. I
              modified setEnv.bat to contain the two directories in
              ClassPath and compilation of my servlets from the command
              line completes OK (the servlets import a package that sits in
              public_html\WEB-INF\classes).
              However, when I try to import the same package from a jsp
              file, I get the "package zzz not found in import" error
              message. The trace shows that the java compiler invoked
              after the servlet has been generated does not contain
              public_html\WEB-INF\classes in the ClassPath, but contains
              public_html\my_app\WEB-INF\classes.
              How can I specify that the java compiler should look under
              public_html\WEB-INF\classes for server side classes? Is there
              another solution and am I even using the right approach?
              Thanks,
              Vladimir
              

              Vladimir wrote:
              >
              > Hi,
              >
              > I'm trying to use the "Web Application" feature in WL 5.10
              > (with no service pack). My application contains a couple of
              You should install the service packs, your problem will probably
              disappear then.
              Web Apps are better supported with service packs.
              > servlets, a couple of server side classes, and a couple of
              > jsp pages.
              >
              > I created the WEB-INF\classes directory structure both in
              > public_html and in my application's root directory. I
              > modified setEnv.bat to contain the two directories in
              > ClassPath and compilation of my servlets from the command
              > line completes OK (the servlets import a package that sits in
              > public_html\WEB-INF\classes).
              >
              > However, when I try to import the same package from a jsp
              > file, I get the "package zzz not found in import" error
              > message. The trace shows that the java compiler invoked
              > after the servlet has been generated does not contain
              > public_html\WEB-INF\classes in the ClassPath, but contains
              > public_html\my_app\WEB-INF\classes.
              >
              > How can I specify that the java compiler should look under
              > public_html\WEB-INF\classes for server side classes? Is there
              > another solution and am I even using the right approach?
              >
              Setting the WEBLOGIC_CLASSPATH should do the trick. Look in weblogic
              start file (On NT startWeblogic.cmd)
              > Thanks,
              > Vladimir
              

Maybe you are looking for

  • HT1338 how to use a webcam in a mac pro?

    How to use a webcam on a mac pro?

  • High Def Podcasts and the Classic

    I recently downloaded 2 High Def Podcasts and then converted them to "iPod viewing". The last message I recieve when syncing my Classic is that it cannot moved these HD Podcasts over. Anyone else have a similar issue or know how to tell if the podcas

  • Using JCo : IDoc to XML and XML to IDoc

    Hey guys, I need some guidance on Creating an xml file out of an IDoc using JCo and vice versa. Can anybody please provide with the code samples or any kind of documentation on this topic. Points will be rewarded +| Eleana West

  • How do I delete auto-fill logons?

    Sometimes an erroneous logon gets typed in for a site and that logon is saved somewhere. I want to go to that place and delete the incorrect logons I have accumulated from that list. If I have to, I would delete all logons and start over just to get

  • Item Detail in Sales Order

    Hello all In an order with 6 itens some itens materiais don't show the field VALUATION TYPE in ITEM DETAIL  (VBAP-BWTAR). I checked the table and ALL itens have this field filled. What is resposable for show or not show this field in the screen? Rega