Unable to set classpath javax/swing/japplet in Linux

Hi,
I have a problem in running an Applet program in Linux. If I run I get the following message.
"Javax/swing/JApplet error Java.lang.NoClassDefFound Error".
I have set my .bash_profile as follows:
CLASSPATH=/usr/java/jdk1.3_0_01/jre/lib
CLASSPATH=/usr/java/jdk1.3_0_01/lib
CLASSPATH=/usr/java/jdk1.3_0_01/
EXPORT
Please tell me whether I have created the .bash_profile correctly. or anything to be changed. It will be great help if anybody hep in this regard. I am held up in my project.
Thnaks.
Mari
11/09/02

You don't need to set the CLASSPATH to get javax.swing.JApplet - the JVM "automagically" knows where the rt.jar file is. The only items you need in your CLASSPATH environment are third-party .jar files.
I'm taking a wild guess based on your subject line, but I'll bet you mis-typed the ClassName - "JApplet," not "japplet." Your code should have
import javax.swing.JApplet;in it.

Similar Messages

  • Clone dbtier error-- ERROR : Unable to set CLASSPATH

    i am setting a new clone of PROD server.i restored the backup from prod and now i ran
    perl adpreclone.pl dbTier
    Here is the error message-->
    perl adcfgclone.pl dbTier
    Enter the APPS password [APPS]:
    xxxx
    ERROR : Unable to set CLASSPATH
    /u02/lifedb/9.2.0/appsutil/clone/bin/../jlib/classes111.zip: is missing
    First Creating a new context file for the cloned system.
    The program is going to ask you for information about the new system:
    Error: can't find libjava.so.
    ERROR: context creation not completed successfully.
    Please check /tmp/adcfgclone_1376.err file for errors
    The err file does not have anything.
    I added /u02/lifedb/9.2.0/jdbc/lib to path and classpath. classpath is empty. I made cc,ar,ld,make,perl come in the path as well.
    Now how do i resolve the above err?
    Thanks

    If you want to migrate from Solaris to Linux, refer to:
    For the application tier:
    Note: 238276.1 - Migrating to Linux with Oracle Applications Release 11i
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=238276.1
    For the database tier:
    Note: 362205.1 - 10g Release 2 Export/Import Process for Oracle Applications Release 11i
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=362205.1
    Note: 331221.1 - 10g Export/Import Process for Oracle Applications Release 11i
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=331221.1
    Note: 230627.1 - Export/Import Process for Oracle Applications Release 11i Database Instances Using Oracle9i Enterprise Edition
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=230627.1

  • NoClassDefFoundError:javax/swing/JApplet  while running japplet in browser

    hai to all,
    i am trying to run a Japplet in broser,
    it's getting NoClassDefFoundError:javax/swing/JApplet
    on statusbar.
    any plugin's are requitred to run swing applets in browser.?please give me details.
    my JApplet is working in Applet viewer.
    i am using Jdk1.3.1, and Applets are also running in my browser(both IE and NetScape).
    thank you in advance
    please mail me to [email protected]
    by
    sambareddy

    I had the same problem when I was developing a swing applet to run on the web. What you have to do is convert your HTML file. It takes out the APPLET tags and replaces them with OBJECT and EMBED tags. This worked for me. I downloaded the converter from the Java site but I cannot recall exactly where. I think if you search for converter you should be able to find it. The newly converted HTML file will also prompt the user to download the correct plug-in if it is not already installed on their machine.
    In the mean time, try using the HTML code below. You will have to change some of the lines but it should work for you. The OBJECT tag is used for IE and the EMBED tag is used for Netscape so don't forget to change both. One wierd thing you will see is that is if you run appletviewer on the converted HTML file, two windows will pop up and one of them will have errors and not load but one will. Don't worry about that, when you run it through the web server, everything works fine.
    Good luck.
    <HTML>
    <HEAD>
    <TITLE>Your title</TITLE>
    </HEAD>
    <BODY>
    <CENTER>
    <!--"CONVERTED_APPLET"-->
    <!-- HTML CONVERTER -->
    <OBJECT classid="clsid:E19F9330-3110-11d4-991C-005004D3B3DB"
    WIDTH = 550 HEIGHT = 300 codebase="http://java.sun.com/products/plugin/1.3.0_01/jinstall-130_01-win32.cab#Version=1,3,0,1">
    <PARAM NAME = CODE VALUE = "the name of your class file" >
    <PARAM NAME = CODEBASE VALUE = "location of the class or jar file">
    <PARAM NAME = ARCHIVE VALUE = "name of your jar file, omit this entire line if you do not have a jar file" >
    <PARAM NAME="type" VALUE="application/x-java-applet;jpi-version=1.3.0_01">
    <PARAM NAME="scriptable" VALUE="false">
    <COMMENT>
    <EMBED WIDTH = 550 HEIGHT = 300 type="application/x-java-applet;jpi-version=1.3.0_01" CODE = "name of your class file" CODEBASE = "location of the class or jar file" ARCHIVE = "name of your jar file, omit this entire arg if you do not have a jar file" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3.0_01/plugin-install.html">
    </EMBED>
    </CENTER>
    </COMMENT>
    </OBJECT>
    <!--
    <APPLET CODE = "name of your class file" ARCHIVE = "name of jar file if you have one" WIDTH = 700 HEIGHT = 400>
    </CENTER>
    </APPLET>
    -->
    <!--"END_CONVERTED_APPLET"-->

  • Unable to set classpath in Ant Script to compile AIA related api

    Hi everyone,
    I am trying to build customized ant scripts to compile,build & deploy (oracle 11g)AIA application using ANT tool.To compile composite application,"scac" target name is used.This scac will refer the classpath which was set at ant-sca-compile.xml.scac is compiling all integartion artifacts except AIA related api.I added aia.jar to classpath in ant-sca-compile.xml.still,scac is not recognizing aia.jar
    I am getting below compilation problem
    scac:
    [scac] Validating composite : 'F:\AIA_Dev\BBProcessSupplierAppln\SyncSupplierPartyBBProvABCSImpl\bin/..//composite.xml'
    [scac] F:\AIA_Dev\BBProcessSupplierAppln\SyncSupplierPartyBBProvABCSImpl\bin\..\SCA-INF\bpel\SyncSupplierPartyBBProvABCSImplProcess\src\orabpel\syncsupplierpartybbprovabcsimplprocess\ExecLetBxExe9.java:408: package oracle.apps.aia.core.eh.logging does not exist
    [scac] Note: F:\AIA_Dev\BBProcessSupplierAppln\SyncSupplierPartyBBProvABCSImpl\bin\..\SCA-INF\bpel\SyncSupplierPartyBBProvABCSImplProcess\src\orabpel\syncsupplierpartybbprovabcsimplprocess\BPEL_BIN.java uses unchecked or unsafe operations.
    [scac] Note: Recompile with -Xlint:unchecked for details.
    [scac] FATAL_ERROR: location {ns:composite/ns:component[@name='SyncSupplierPartyBBProvABCSImplProcess']}(42,62): Failed to compile bpel generated classes.
    [scac] failure to compile the generated BPEL classes for BPEL process "SyncSupplierPartyBBProvABCSImplProcess" of composite "default/SyncSupplierPartyBBProvABCSImpl!1.0"
    [scac] The class path setting is incorrect.
    [scac] Ensure that the class path is set correctly. If this happens on the server side, verify that the custom classes or jars which this BPEL process is depending on are deployed correctly. Also verify that the run time is using the same release/version.
    [scac]
    Please let me know any body have faced above problem & resolved it.It is consuming more time.It would be appreciable,if any body provides solution for this.
    Thanks in advance.
    Thanks,
    Hanu

    Hi,
    How are you referring to the class path. I have created my custom build file and I refer like this.
    <path id="classpath">
      <pathelement location="${oracle.home}/lib/aia.jar"/>
      <pathelement location="${oracle.common.home}/modules/org.apache.commons.logging_1.0.4.jar"/>
    </path> oracle.home is the location where my aia.jar resides.
    In the compile-classes target I have
    <!--Target for Class path details -->
    <target name="compile-classes">
      <mkdir dir="${sca-inf.classes.dir}"/>
      <javac destdir="${sca-inf.classes.dir}"   classpathref="classpath"
             debug="on"                         nowarn="${javac.nowarn}"
             deprecation="${javac.deprecation}" encoding="Cp1252"
             source="1.6"                       target="1.6">
        <src path="${src.dir}"/>
      </javac> 
    </target> Regards,
    Neeraj Sehgal

  • Applets-NoClassDefFound:javax/swing/JApplet

    Does the jar,class,HTML files have to be on a server to run on the Web? They now reside
    on my C: drive and I get this message when I launch my HTML. Do I load the JAVA plug-in
    HTML converter here also? If it is possible to have the Web access the applets on my C: drive
    how do I point it to this location?

    Hi,
    Yes, your jar, class and HTML files need to reside on a server if you want them to be available for the web.
    Yes, you'll need to load the Java plug-in HTML converter here also. Normally, it will install only once but the code is required to let the browser know it needs to use another java plugin than the browser's default.
    I don't think you can point the applets from the server to your local drive. You can perhaps try to assign a drive letter on the server to your local drive and create a virtual directory pointing to this drive. If this works, the rest should also work (although this is not recommended).
    Kurt.

  • [Solved] CLASSPATH for javax.swing libraries?

    Hello,
    I wanted to use the swing packages provided by java for developing cross platform GUIs. But, when I tried compiling it, I ended up with the following error:
    HelloWorldSwing.java:1: package javax does not exist
    import javax.swing;
    After searching a bit online, I found out that the CLASSPATH variable needed to be set to use external java libraries. (I installed the jdk and jre packages). I tried setting CLASSPATH to /opt/java/jre/lib in my ~/.bashrc but that didn't help. What should I do to remedy this situation?
    (This is the first time that I am trying to use external libraries like swing on Arch. So I am a Noob at this)
    Thanks for your time!
    Last edited by mgangav (2009-11-24 15:45:59)

    urist wrote:
    The
    import javax.swing.event.*;
    is unnecessary as it is covered by the previous import.
    No, each package must be imported separately, even if one is "inside" the other.  I wrote a little test program to make sure   Try compiling it with line 4 commented/uncommented.
    package foo;
    import javax.swing.*;
    //import javax.swing.event.*;
    public class Thingy
    public Thingy() {
    JMenu menu = new JMenu("File");
    menu.addMenuListener(new MenuListener() {
    public void menuCanceled(MenuEvent e) {
    System.out.println("canceled");
    public void menuSelected(MenuEvent e) {
    System.out.println("selected");
    public void menuDeselected(MenuEvent e) {
    System.out.println("deselected");

  • Problem Loading an Image with javax Swing from a JApplet

    First of all, i use JCreator as java creater and have the newest version of java sdk version.
    Now i need to load an image from the harddrive on which the JApplet is located. I need to do this from inside the JApplet. I have put my pictures in a map 'images' which is located in the same directory as the classes + htm file. It works from inside JCreator, but as soon as i open the normal htm it just WON'T load that image (grmbl).
    Here is my code for loading the image:
    public BufferedImage loadImage (String filename, int transparency)
         Image image;
         if (app)
              image = Toolkit.getDefaultToolkit().getImage(("./images/"+filename));
         else
              String location = "";
              location = "./images/"+filename;
              image = Toolkit.getDefaultToolkit().getImage(location);
         MediaTracker mediaTracker = new MediaTracker(new Container());
         mediaTracker.addImage(image, 0);
         try
              mediaTracker.waitForID(0);
         catch (Exception e)
    Could anybody help me out here??
    I tried a url already using getCodeBase() or getDocumentBase() but that gives an error because it cannot find those if using a JApplet.

    Why don't you use javax.swing.ImageIcon? If you already have a flag telling if it's an application or applet, use the getDocumentBase() to base the URL in the applet part only.

  • Import javax.swing problems

    hey
    I am new to java and have recently downloaded j2sdk1.4.2_04. I am trying to create a simple graphical application. However, It doesnt seem to import the javax.swing.* libraries. I understand that there is the src.zip in the directory, so I unzipped it but it still doesn't read the package. I read elsewhere on this forum that you should set the path to src.zip. I have tried that and it also doesnt work. My current path is:
    PATH=C:\j2sdk1.4.2_04\lib\src.zip;C:\j2sdk1.4.2_04\bin
    Is there an error in this, or what else should I try? All suggestions greatly appreciated.

    There's no need to set your classpath when importing any of the standard packages that are provided by the JDK. Perhaps you could post a (small) code sample and the compiler error you are getting.

  • Missing classes from the javax.swing package?

    Can anyone throw any light on what appears to be a missing class from the javax.swing package?
    When CelsiusConverter.java from The Swing Tutorial (code fragment shown below) is compiled the JFrame class can't be found.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class CelsiusConverter implements ActionListener {
        JFrame converterFrame;Despite the package javax.swing being imported, the compiler does not seem to be be able to find the JFrame class.
    CelsiusConverter.java:14: Class JFrame not found in type declaration.
        JFrame converterFrame;To attempt to solve this issue all the files in jdk1.5.0_02\lib were added to CLASSPATH.
    CLASSPATH was set to C:\Program Files\Java\jdk1.5.0_02\lib\dt.jar;C:\Program Files\Java\jdk1.5.0_02\lib\htmlconverter.jar;C:\Program Files\Java\jdk1.5.0_02\lib\jconsole.jar;C:\Program Files\Java\jdk1.5.0_02\lib\tools.jar;C:\Program Files\Java\jdk1.5.0_02\lib;C:\Program Files\Java\jdk1.5.0_02\lib\ir.idl;C:\Program Files\Java\jdk1.5.0_02\lib\jawt.lib;C:\Program Files\Java\jdk1.5.0_02\lib\jvm.lib;C:\Program Files\Java\jdk1.5.0_02\lib\orb.idl;C:\Program Files\Java\jdk1.5.0_02\demo\jfc\SwingApplet\SwingApplet.jar;.;c:\CoreJavaBook

    This is extremely strange... If you're sure it's not a problem in your code or with your classpath, the only other thing I can think to suggest is re-downloading / installing java

  • Unable to set panel  using set method.

    Dear friends,
    I declared a class called EntryPanel in which I declared and initialized the emty panel which I later want to override with new Panel in Child classes. Now I declared an internal frame where I initialized this Panel and later I extended it by Material internal frame in this class I want to override the panel I created in EntryPanel using set but I am unable to do that I am posting the code below. I hope someone would have faced similar problem
    I have created classes as below.
    import java.awt.GridBagLayout;
    import java.awt.Insets;
    import java.awt.GridBagConstraints;
    import javax.swing.JPanel;
    import javax.swing.border.BevelBorder;
    import javax.swing.border.EtchedBorder;
    import noptics.client.lens.gui.AddCancelBtnPanel;
    public class EntryPanel extends javax.swing.JPanel {
         private AddCancelBtnPanel btnPanel;
         private JPanel fieldPanel;
         public EntryPanel() {
              initGUI();
         * Initializes the GUI.
         public void initGUI(){
              try {
                   fieldPanel = new JPanel();
                   btnPanel = new AddCancelBtnPanel();
                   GridBagLayout thisLayout = new GridBagLayout();
                   this.setLayout(thisLayout);
                   fieldPanel.setBorder(new EtchedBorder(BevelBorder.LOWERED, null, null));
                   GridBagConstraints c = new GridBagConstraints();
                   c.gridx = 0;
                   c.gridy = 0;
                   c.gridwidth = 1;
                   c.gridheight = 1;
                   c.weightx = 1.0;
                   c.weighty = 1.0;
                   c.anchor = GridBagConstraints.NORTH;
                   c.fill = GridBagConstraints.BOTH;
                   c.insets = new Insets(5, 5, 5, 5);
                   c.ipadx = 0;
                   c.ipady = 0;
                   this.add(fieldPanel, c);
                   c.gridy = 1;
                   c.weightx = 0.0;
                   c.weighty = 0.0;
                   c.anchor = GridBagConstraints.NORTH;
                   c.fill = GridBagConstraints.HORIZONTAL;
                   c.insets = new Insets(0, 0, 5, 0);
                   this.add(btnPanel, c);
              } catch (Exception e) {
                   e.printStackTrace();
          * @return <code>AddCancelBtnPanel</code> -
          * This can be used to get reference to button panel. 
         public AddCancelBtnPanel getBtnPanel() {
              return btnPanel;
          * @return <code>JPanel</code> - Reference to fieldPanel;
         public JPanel getFieldPanel() {
              return fieldPanel;
          * @param <code>JPanel</code> - panel Replace with orignal Panel
          * with fields.
         public void setFieldPanel(JPanel panel) {
              fieldPanel = panel;
    import javax.swing.JSplitPane;
    import noptics.client.lens.gui.EntryPanel;
    import noptics.client.lens.gui.ListPanel;
    public class ListEntryInternalFrame extends javax.swing.JInternalFrame {
         private EntryPanel entryPanel;
         private ListPanel listPanel;
         private JSplitPane listEntrySplitPane;
          * @param string
         public ListEntryInternalFrame(String string) {
              super(string);
              initGUI();
         public ListEntryInternalFrame() {
              this("");
         * Initializes the GUI.
         public void initGUI(){
              try {
                   listEntrySplitPane = new JSplitPane();
                   listPanel = new ListPanel();
                   entryPanel = new EntryPanel();
                   this.setResizable(true);
                   this.setClosable(true);
                   this.setMaximizable(true);
                   this.setToolTipText("Default List Entry Screen");
                   this.setPreferredSize(new java.awt.Dimension(400,200));
                   this.setAutoscrolls(true);
                   listEntrySplitPane.setOrientation(JSplitPane.VERTICAL_SPLIT);
                   listEntrySplitPane.setOneTouchExpandable(true);
                   this.getContentPane().add(listEntrySplitPane);
                   listEntrySplitPane.add(listPanel, JSplitPane.RIGHT);     
                   listEntrySplitPane.add(entryPanel, JSplitPane.LEFT);
              } catch (Exception e) {
                   e.printStackTrace();
          * @return
         public EntryPanel getEntryPanel() {
              return entryPanel;
          * @return
         public JSplitPane getListEntrySplitPane() {
              return listEntrySplitPane;
          * @return
         public ListPanel getListPanel() {
              return listPanel;
    public class MaterialInternalFrame extends ListEntryInternalFrame {
         MaterialPanel material;
          * Default Constructor
         public MaterialInternalFrame() {
              this("Material Entry Screen");          
          * @param <code>String</code> - string
         public MaterialInternalFrame(String string) {
              super(string);
         public void postInitGUI() {
              material = new MaterialPanel();
              super.getEntryPanel().getFieldPanel().add(material);          
    import java.awt.GridBagLayout;
    import java.awt.Insets;
    import java.awt.GridBagConstraints;
    import javax.swing.JLabel;
    import javax.swing.JTextField;
    * This panel contains entry field for Material.
    public class MaterialPanel extends javax.swing.JPanel {
         private JTextField nameTxt;
         private JLabel fieldLbl;
         private JLabel titleLbl;
         public MaterialPanel() {
              initGUI();
         * Initializes the GUI.
         public void initGUI(){
              try {
                   titleLbl = new JLabel();
                   fieldLbl = new JLabel();
                   nameTxt = new JTextField();
                   GridBagLayout thisLayout = new GridBagLayout();
                   this.setLayout(thisLayout);
                   thisLayout.columnWidths = new int[] {1,1};
                   thisLayout.rowHeights = new int[] {1,1};
                   thisLayout.columnWeights = new double[] {0.1,0.1};
                   thisLayout.rowWeights = new double[] {0.1,0.1};
                   // this.setPreferredSize(new java.awt.Dimension(200,100));
                   titleLbl.setText("Material");
                   GridBagConstraints c = new GridBagConstraints();
                   c.gridx = 0;
                   c.gridy = 0;
                   c.gridwidth = 2;
                   c.gridheight = 1;
                   c.weightx = 0.0;
                   c.weighty = 0.0;
                   c.anchor = GridBagConstraints.NORTH;
                   c.fill = GridBagConstraints.NONE;
                   c.insets = new Insets(5, 0, 5, 0);
                   c.ipadx = 0;
                   c.ipady = 0;
                   this.add(titleLbl, c);
                   fieldLbl.setText("Name:");
                   c.gridy = 1;
                   c.gridwidth = 1;
                   c.anchor = GridBagConstraints.NORTHEAST;
                   c.insets = new Insets(0, 0, 0, Constants.RIGHTGAP);
                   this.add(fieldLbl, c);
                   nameTxt.setColumns(20);
                   nameTxt.setText("Material Name");
                   nameTxt.setText("Material Name");               
                   nameTxt.setMaximumSize(new java.awt.Dimension(100,40));
                   nameTxt.setMinimumSize(Constants.txtDimension);
                   nameTxt.setPreferredSize(Constants.txtDimension);
                   c.gridx = 1;
                   c.gridheight = 1;
                   c.weightx = 1.0;
                   c.weighty = 1.0;
                   c.anchor = GridBagConstraints.NORTHWEST;
                   c.insets = new Insets(0, 0, 0, 0);
                   this.add(nameTxt, c);
              } catch (Exception e) {
                   e.printStackTrace();
    }

    Sorry, this is just a quick response...i haven't
    really read your code too thoroughly.
    You could try calling
    super.getEntryPanel().validate(); after setting the
    field panel
    or super.getEntryPanel().updateUI();I have tried both but it doesn't work
    when I change my postInitGUI function code as given below I am able to see the Label but the new panel I want to set is not getting set. I can add material panel in old panel but I am unable to reset that panel with new Panel.
    // Function postInitGUI in MaterialInternalFrame class
    public void postInitGUI() {
         super.getEntryPanel().getFieldPanel().add(new JLabel("Hello World"));
         material = new MaterialPanel();
         super.getEntryPanel().setFieldPanel(material);
    }

  • Javax.swing.JPanel Help

    my application is sort of a game, i planned on having a JPanel subclass called EventPanel have an instance variable _curPanel.
    curPanel is of type JPanel. In the constructor  I can set curPanel to Other JPanel subclasses. I have another subclass of JPanel called MainScreen, which has the main screen for the game.
    I can set curPanel = new MainScreen(); in the constructor for eventPanel. And it works.
    But if I try to change _curPanel after i've made it, it wont show up. I have a method which signature 
    void setPanel(javax.swing.JPanel panel)
        _curPanel = panel;
        repaint();
    }to change the EventPanel, but nothing changes.
    In the MainScreen class there is a method call
    _eventPanel.setPanel(new NewPlayerPanel());and nothing changes in the code. I have a JTextArea logging info, and in the constructor for NewPlayerPanel at the end it prints a message in my JTextArea. The Panel is being created but not showing up.
    I have also tried creating the panel in an instance variable, setting it to setVisbile(true) and trying again and it doesnt work.

    In other words...
    char c=evt.getKeyChar();c is some character based on this event.
    if(c=='1'){Ok, let's say it is '1'...
    ...> char c2=evt.getKeyChar();Then c2 is also '1'.evt.getKeyChar() isn't going to magically change to be something different than it returned when you called it a few lines up before, so...>if(c2=='a')...this can never be true, given the above.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Help with setting classpath

    Hi All,
    I am new to servlets and JSP. I have a question regarding setting Classpath. My development directory structure is like this c:\..\desktop\java\project1\src\com\eg\web\e1.java. Servlet.jar file is in C:\Program Files\Apache Group\Tomcat 4.1\common\lib. I tried setting Classpath in windows 2000 using control panel=>System utility by this command
    SET CLASSPATH=.;c:\Program Files\Apache Group\Tomcat 4.1\common\lib\servlet.jar . I try to compile my program by going into the whole development directory structure C:\..\src\com\eg\web using javac e1.java. But I get the error "package javax.servlet does not exist". Can somebody help me resolve this?
    Thank You in advance
    Jaya

    Question 1: Are you using an IDE?
    [IDEs ignore the system classpath]
    Question 2: Did you try setting the classpath using the -cp option for javac, if you are not using an IDE?
    [you could also try to print the classpath on command line to check if it has taken effect]

  • Package javax.swing.event not found in import.

    I'm receiving the above error message when compiling a Java application which begins with the following import statements:
    * 1.1+Swing version.
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    My Classpath System variables are as follows:
    C:\IBMCON~1\CICS\Classes\CTGCLI~1.JAR;.;C:\PROGRA~1\MQSeries\java\lib\COMIBM~2.JAR;C:\PROGRA~1\MQSeries\java\lib\COMIBM~1.JAR;C:\PROGRA~1\MQSeries\java\lib\COMIBM~3.JAR;C:\PROGRA~1\MQSeries\tools\javaclnt\samples\en_us;C:\Program Files\SQLLIB\java\db2java.zip;C:\Program Files\SQLLIB\java\runtime.zip;C:\Program Files\SQLLIB\bin;C:\Program Files\SQLLIB\java\SQLj.zip
    I have Java(TM) 2 SDK, Standard Edition, Version 1.4.0 installed and am running Windows 2000.
    I'd appreciate any ideas as to why this compiler error occurs. Thanks very much.

    What error message?
    As stated, looks like something's not where it's supposed to be.
    Here's the search order of your classpath:
    C:\IBMCON~1\CICS\Classes\CTGCLI~1.JAR
    C:\PROGRA~1\MQSeries\java\lib\COMIBM~2.JAR
    C:\PROGRA~1\MQSeries\java\lib\COMIBM~1.JAR
    C:\PROGRA~1\MQSeries\java\lib\COMIBM~3.JAR
    C:\PROGRA~1\MQSeries\tools\javaclnt\samples\en_us
    C:\Program Files\SQLLIB\java\db2java.zip
    C:\Program Files\SQLLIB\java\runtime.zip
    C:\Program Files\SQLLIB\bin
    C:\Program Files\SQLLIB\java\SQLj.zip

  • 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

  • Changing javax.swing class

    Hello,
         I am an experienced programmer new to java. I found a solution to a problem I am having with BoxLayout in the bug database. The solution makes a change to the SizeRequirements class in javax.swing. I found the source for the class and have recompiled it. But the recompiled class is not being picked up. What do I do next? The classes all seem to be in a jar file although I can't find one with SizeRequirements. Is there the concept of linking in Java or do I just need to put the class in the right path location?
    Thanks,
    Lori

    ...file although I can't find one with SizeRequirements. If you can't find it then you might want to go back to the drawing board since you probably have a different java version.
    I don't believe standard class files are loaded via the classpath.
    This command line option is taken from the javadocs
    -Xbootclasspath/p:path
    Specify a semicolon-separated path of directires, JAR archives, and ZIP archives to prepend in front of the default bootstrap class path. Note: Applications that use this option for the purpose of overriding a class in rt.jar should not be deployed as doing so would contravene the Java 2 Runtime Environment binary code license.
    The last sentence is important.

Maybe you are looking for

  • Quick Q: multiple users sharing one library - which pref's to check ...

    I recently picked up a new Mac ... it had been a long time since I set up the accounts to all users could share the same itunes library. Now, I have the library in a central location, all users have THEIR OWN playlists, and all are accessing the musi

  • New Apple user and I can not print to my new printer

    I purchased a new HP 309a printer. I am not able to print to it via Airport or USB. I can check the ink levels but not print. I am able to print from my Windows computer.

  • Date Parameter is not working .. in Crystal .

    hi. i am executing this query in sql it is having so many records. but i want to filter it by using from date ='' and to date ='' in command prompt i past the query and then i run the query... it is showing all records by i need filter based on from

  • BPC Standard Naming Convention

    Hi Gurus, Could you please share BPC naming conventions standards? I am looking for prefix for objects such as: Environment Model Dimension Team Task Profile Data Access Profile Member Formulas Logic Script Business Rule Controls Input Screen Report

  • Demodulati​on of a filtered signal

    Hi I have an interferometer and am measuring the output of the device on a photodiode detector and then doing analysis in Labview. Put plainly, Im looking at the power spectrum of the signal, and am modulating using an EOM in the reference arm of the