🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #12833

Re: problem compiling java swing

#12833
From: Kevin Ruggiero
Date: Wed, 04 Nov 1998 00:00
54 lines
2469 bytes
The problem appears to be fixed now: what I ended up doing was
uninstalling and reinstalling JBuilder.  Now it seems to work fine. 
Also, I upgraded to Swing 1.0.3.  I must have messed something up
before, and re-installing it cured my problem.  

Anyway, how do I go about checking if swingall.jar is in my classpath? 
Is it just a matter of looking in "Project Properties", checking the
Libraries that are listed, and looking at the Class Path's that are
defined for all Libraries that are being included?  That appears to be
it, but I could have sworn that it was setup before the same as it is
now...

Kevin


Matt Krevs wrote:
> 
> JTable definitely exists in the com.sun.java.swing package.
> 
> Are you sure the swing package is in your classpath?
> 
> Are you able to access any other members in the swing package?
> 
> Check that swingall.jar is in your classpath.
> 
> Kevin Ruggiero wrote in message <363FB9C8.6AB898CE@Buffalo.EDU>...
> >I'm trying to compile an applet that is using the JTable class.
> >However, I'm having a rather annoying problem with the compiler.  My
> >file looks something like this:
> >
> >import java.awt.*;
> >import java.awt.event.*;
> >import java.applet.*;
> >import com.sun.java.swing.*;
> >
> >//import com.sun.java.swing.UIManager;
> >public class client extends Applet {
> > boolean isStandalone = false;
> > JTable jTable1 = new JTable();
> >.
> >.
> >.
> >
> >Anyway, the error I'm getting is this:
> >Error: (21) class JTable not found in class client.
> >
> >Why is this?  By looking at the docs, that file is in
> >com.sun.java.swing.  I'm using JBuilder 2.0, with Swing 1.0.1.  I've
> >also tried compiling using javax.swing.*, and com.sun.java.swing.table.*
> >(which I saw in a book), but all to no avail.  Can someone please help?
> >Thanks!
> >
> >Kevin Ruggiero
> >kdr@cse.Buffalo.EDU
Technical Details
Message-ID: <364116A7.DF32D3B1@Buffalo.EDU>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <363FB9C8.6AB898CE@Buffalo.EDU> <71qi9k$ci32@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,3974ac123b63bd02
X-Google-Attributes: gid111d45,public
From: Kevin Ruggiero <kdr@Buffalo.EDU>
Subject: Re: problem compiling java swing
Date: 1998/11/04
Message-ID: <364116A7.DF32D3B1@Buffalo.EDU>
X-Deja-AN: 408529656
Content-Transfer-Encoding: 7bit
References: <363FB9C8.6AB898CE@Buffalo.EDU> <71qi9k$ci32@forums.borland.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: University at Buffalo
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing