g related classes.the
>compiler
> reports errors that the class is not found.For some reason, it cant find any of the
>swing
> classes only.Im using RedHat 7.2
>
> Are these perhaps old programs dating back to the early days of
> Swing? Swing's package names changed a few t
found.For some reason, it
>cant find any of the swing classes only.Im using RedHat 7.2
Are these perhaps old programs dating back to the early days of
Swing? Swing's package names changed a few times - if this is old
code, it may be looking for the wrong classes.
Nathan Meyers
hello.i downloaded j2sdk_1.3.1_02b_FCS_linux from the blackdown web site.All programs
are working just fine except for any program containing any swing related classes.the
compiler reports errors that the class is not found.For some reason, it cant find any
of the swing classes only.Im using
ng Linux 2.4.4-4 with JDK 1.3.1
>>
>>I want to call one method in a native, shared C++ library from
>>Java, using JNI.
>>
>>The C++ .so lib depends on other .so libs
>>which have many C++ classes which are
>>usually initialized automatically on startup before
>
> The C++ .so lib depends on other .so libs
> which have many C++ classes which are
> usually initialized automatically on startup before the
> main() method (if i invoke
> the old C++ application executable).
>
> Now it seems, that the java System.load()
> does not ca
Hi,
i am using Linux 2.4.4-4 with JDK 1.3.1
I want to call one method in a native, shared C++ library from
Java, using JNI.
The C++ .so lib depends on other .so libs
which have many C++ classes which are
usually initialized automatically on startup before the
main() method (if i invoke
the old
:16:46PM -0500, Jacob Nikom wrote:
> > Hi,
> >
> > I started to work with servlets and found that I need to download
> > Servlet API classes - servlet-2_2b.zip package. I have few questions
> > about this package.
>
> Servlets run fine on Linux. The question is
On Thu, Feb 08, 2001 at 12:16:46PM -0500, Jacob Nikom wrote:
> Hi,
>
> I started to work with servlets and found that I need to download
> Servlet API classes - servlet-2_2b.zip package. I have few questions
> about this package.
Servlets run fine on Linux. The question is what
Hi,
I started to work with servlets and found that I need to download
Servlet API classes - servlet-2_2b.zip package. I have few questions
about this package.
1. Does it run on Linux?
2. Where jdk directory structure I have to place it in:
a) /jdk/jre/lib/ext
b) should I create /jdk/jre
You need to do 'xhost +' on the X server machine, or xhost +machinename.
man xhost
Rob
--
From: Santosh Dawara
To: ingo rockel; [EMAIL PROTECTED]; KIRKBRIDE Rob
([EMAIL PROTECTED])
Subject: Re: Using AWT Classes on Linux
Date: 01 December 2000 12:07
It seems to have helped
It seems to have helped, but I am stuck again ...
Xlib: connection to "machine.india.co.in:0.0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
Exception in thread "main" java.lang.InternalError: Can't connect to X11
window server using 'machine.india.co.in:0.0' as the value of the
DISPLAY
Try:
export DISPLAY=:0.0
in the shell (if it is a bash) before starting the JavaApp.
Ingo
On -1 xxx -1, Santosh Dawara wrote:
> Hi,
>
> I am having a slight problem with my X Setup,
> I can't run any of the Java Graphics. Could
> some one please help !
>
> Regards,
> Santos
Hi,
I am having a slight problem with my X Setup,
I can't run any of the Java Graphics. Could
some one please help !
Regards,
Santosh Dawara.
The Error is reproduced here =>
Exception in thread "main" java.lang.InternalError: Can't connect to X11
window server using ':0.0' as the value of the
I want to thank everyone who sent me their help.
My problem was old java commands in the /usr/bin directory. The console
apps and non-swing apps ran
ok with these commands but they choked on the swing stuff. Removing them
and changing my PATH
solved the problem.
Thanks again
Jack Jensen
-
gt; > com.sun.java.swing.plaf.windows.WIndowsLookAndFeel
> > when I clicked the "Windows" radio button.
> > )
> >
>
> This is expected behaviour on non-MS systems. The decision was made to
> simply not allow the Windows look & feel to be loaded except on Wi
Could not load Look and Feel:
> com.sun.java.swing.plaf.windows.WIndowsLookAndFeel
> when I clicked the "Windows" radio button.
> )
>
This is expected behaviour on non-MS systems. The decision was made to
simply not allow the Windows look & feel to be loaded except on Windows
(although the classes *are* the
self-installing version from three
>different mirrors sites,
>and this morning I downloaded and installed the linux port(jdk1.2.2) tar
>ball from the Sun server.
>I've set the JAVA_HOME variable to /mypath/jdk1.2.2
>I haven't messed with the CLASSPATH because to tell the
CLASSPATH because to tell the truth I don't
know what directory
the swing classes are in.
I'm using RedHat 6.1 on an AMDk6 II system, from what I've read in the
files with the
self-installing version it should have been a load and go install.
I am using gnome with Enlightenment window
Either you have a wrong CLASSPATH (are you using JDK1.1 ?) or your normal
PATH isn`t correct.
Perhaps you should try something like this (if you have JDK1.2)
With C-Shells: setenv JAVA_HOME /my/jdk/path (e.g /usr/local/jdk1.2)
With Sh-Shells: export JAVA_HOME ...
If you have a
The problem exists with any app I try to compile or run.
When compiling the SwingApplication.java program from Sun's swing
tutorial on-line I get the following:
SwingApplication.java:12: class JLabel not found in class
SwingApplication
final JLabel label = new JLabel(labelPrefix + "0
I'm having a problem here with the swing classes.
All of the console apps and awt applets seem to be working alright,
but none of the applications or applets using swing are compiling.
I'm new at this so it could be a config error somewhere, I've downloaded
the self-install
I've not seen a way to call say.. libc printf from
java. printf is usually wrapped in a native function
that matches java's calling method. More recently
this is done through the java native interface.
You have probably seen the 'trail' for calling native
functions from java methods.
http://
Hi,
How can I get a reference to a native class in a shared library and use the functions
? An example would be very welcome !!
Thanks ...
E-Mail : [EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subjec
compiler, the debugger,
the profiler, etc.) and the runtime library (java.awt.*, java.lang.*,
etc.).
> Fairly enthusiastic that, but what was wrong with Applets
> conforming to my $CLASSPATH?
An applet is always run from a URL, which is conceptually NOT from your
local system. An applet may use cl
Folks,
Though I'm confessin' that I read a bit less than I should
maybe, why do applets in JDK 1.2 ignore my $CLASSPATH?
It worked with JDK 1.1.4 on my TurboLinux.
After installing, the applicable text to read says:
'No $CLASSPATh, no $JAVA_HOME, just run it!"
Fairly enthusiastic that, but what
As I've had several requests from the Java-Linux list, mainly from a reply
I made to a query on the list last week, I've placed an early release of
my mapping class library onto the web.
Now, this is an early version. It works, but I've yet to document it.
It's available at: http://www.retep.or
On x86 Linux (Debian 2.0) with Blackdown JDK1.1.7v1a and Swing 1.1,
$ javap javax.swing.JPanel | head
Compiled from JPanel.java
public synchronized class javax.swing.JPanel extends
javax.swing.JComponent implements javax.accessibility.Accessible
/* ACC_SUPER bit set */
{
static static {}
I'm learning java, and I cannot get a hsa.Console class to work on
linux? Where can I get this?
Thank alot
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
>>Just what does this have to do with Java on LINUX?
Simple I want to write Java Games on Linux, surely this is not unheard of.
Any body recommend Freely available Sprites, Bitmap, and Sound classes that
are available. Java ofcourse.
DME (release notes) not match reality, at least
>for the infomagic mirror? Where are the missing Thread and JavaP classes for
>1.1.7 and whatever version (how can I tell which version it is) comes with
>RH5.2? Do I not have the threads support that native threads requires (how
>can I know
blackdown
mirror on infomagic, and with that, at least javap works.
So, why does the 1.1.7 README (release notes) not match reality, at least
for the infomagic mirror? Where are the missing Thread and JavaP classes for
1.1.7 and whatever version (how can I tell which version it is) comes with
RH5.2
Does anyone know if there are any free XDR classes for Java avaible?
--jason
Steve,
> OK, the alphaworks site is now back up. I know people told me to
wait
> until Monday to get the latest but I wanted to try it now.
Well I've just been there as well and have collected 0.41 which is
the very latest.
> The first error came up because I didn't have the right version of
>
David Warnock wrote:
> > > The address is http://www.alphaworks.ibm.com/formula/Jikes/ (it's
> > > available as a link from the blackdown site).
>
> > Either this URL is wrong or their server is down. I cannot
> connect.
>
> Steve,
>
> I am pretty sure the url is correct but I also could not
> > The address is http://www.alphaworks.ibm.com/formula/Jikes/ (it's
> > available as a link from the blackdown site).
> Either this URL is wrong or their server is down. I cannot
connect.
Steve,
I am pretty sure the url is correct but I also could not connect just
now. As John has said a
[EMAIL PROTECTED] writes:
> On Fri, 4 Dec 1998, David Warnock wrote:
> > Can I suggest you download the JIKES compiler from IBM. It's free, it
> > runs an order of magnitude faster than JAVAC and so far as I can see
> > the -depend works. You may want to use the +E compiler switch to get
> > err
David Warnock wrote:
> Steve,
>
> > I find that I'm unable to get rid of the following errors when I do
> a
> > javac depend of my whole project:
>
> I have read soimewhere sometime that javac -depend is not reliable.
>
> Can I suggest you download the JIKES compiler from IBM. It's free, it
> run
On Fri, 4 Dec 1998, David Warnock wrote:
> Steve,
>
> > I find that I'm unable to get rid of the following errors when I do
> a
> > javac depend of my whole project:
>
> I have read soimewhere sometime that javac -depend is not reliable.
>
> Can I suggest you download the JIKES compiler from I
On Fri, 4 Dec 1998, Steve Cohen wrote:
> I find that I'm unable to get rid of the following errors when I do a
> javac depend of my whole project:
>
> error: File /usr/local/java/xyz/Scheduler.java does not contain nested
> class xyz.Scheduler. 1 as expected. Please adjust the class path so that
Steve,
> I find that I'm unable to get rid of the following errors when I do
a
> javac depend of my whole project:
I have read soimewhere sometime that javac -depend is not reliable.
Can I suggest you download the JIKES compiler from IBM. It's free, it
runs an order of magnitude faster than JAV
I find that I'm unable to get rid of the following errors when I do a
javac depend of my whole project:
error: File /usr/local/java/xyz/Scheduler.java does not contain nested
class xyz.Scheduler. 1 as expected. Please adjust the class path so that
the file does not appear in the package xyz.
Wh
[EMAIL PROTECTED] wrote:
>
> I was looking at the Kim Topley "Core JFC" book particularly a
> convenience class to swith the Swing/JFC PL&F (Chapter 13)
> the other day I found it was declared like ?
>
> protected static class SwitchPLAFClass {
>
__ Reply Separator
_
Subject: Re: Java language question: static classes ?
Author: mlorton ([EMAIL PROTECTED]) at lon-mime
Date:19/10/98 19:16
> Thanks that is the correct ans
> Thanks that is the correct answer for "static inner class".
>
> However a static inner class
> cannot have it self a static inner class.
Yes, it can. Why couldn't it? The innerness of a static inner class
is purely a naming thing.
> Static inner class
> 2
age question: static classes ?
Author: paul ([EMAIL PROTECTED]) at lon-mime
Date:16/10/98 16:14
> So public static SwitchPLAFAction { ... } is a just java object class
> that is really instantied just once, like some sort of singleton?
No, no. I did not mean that sta
> So public static SwitchPLAFAction { ... } is a just java object class
> that is really instantied just once, like some sort of singleton?
No, no. I did not mean that static classes are related to singletons.
They are not AFAIK.
> Actually I have used a modifie
I think I am fast asleep of course it is STATIC MEMBER.
__ Reply Separator _
Subject: Re: Java language question: static classes ?
Author: Peter Pilgrim at London
Date:16/10/98 13:11
Weirdo
So
Reply Separator _
Subject: Re: Java language question: static classes ?
Author: Ernst.deHaan ([EMAIL PROTECTED]) at lon-mime
Date:16/10/98 13:08
Correct me if I'm wrong, but I do not believe top-level classes can have
the 'static
Correct me if I'm wrong, but I do not believe top-level classes can have
the 'static' modifier applied, but if you want a shared entity, do
something like this:
public class DefaultFactory
extends AbstractFactory
{
protected DefaultFactory() { /* empty */ } // or priv
> What is a static class?
Making classes static has good sense if they are nested. Usually nested
class object has hidden member referencing high level class object and
hidden constructor parameters. But static nested class is just like a
high level class. By the way, static public cl
I was looking at the Kim Topley "Core JFC" book particularly a
convenience class to swith the Swing/JFC PL&F (Chapter 13)
the other day I found it was declared like ?
protected static class SwitchPLAFClass {
private Frame f;
OK. Can someone please explain this to me. I'm getting the compile
error:
> Class x not found in type declaration.
This occurs when I have one package that defines a public interface and
another package which implements this interface with a private class of
the same name.
For example:
file a
Thank you all for a response. However, the whole thing was a false
alarm. The interview had *nothing*, I mean N O T H I N G to do with
Java. Oh well. At least I know Java now. :) "Teach yourself Java in 17
hours".
Anyway, so I got the "Java Developers 1998 Almanach". A neat,
complet
ecause I'm not working with that stuff and the books
are expensive. This is not a tutorial -- the classes are listed in
alphabetical order.
Bruce Eckel's _Thinking in Java_ is probably better for getting
started. I started out with O'Reilly's _Java In A Nutshell_ which is
also pretty good.
ave quite solid understanding of OOP/OOD. I've gone through some
> > Java tutorials a few months back and fooled around with it somewhat. So I
> > know, say, the syntax of the Java language. What I don't know is how to
> > piece all the stuff together -- I.e. how to use
gt; know, say, the syntax of the Java language. What I don't know is how to
> piece all the stuff together -- I.e. how to use all the standard classes
> provided.
>
>I imagine that when I see a complete map of (inheritance) structure of
> all the classes and look at all thei
don't know is how to
piece all the stuff together -- I.e. how to use all the standard classes
provided.
I imagine that when I see a complete map of (inheritance) structure of
all the classes and look at all their data members and methods, and when I
look at examples from each separate inherit
Hi Tom,
Thanks for your reply. It is a bit annoying that the classes aren't
documented. Especially as several pieces of writing I have seen written by
Sun people allude that the libraries are included with the JDK.
Perhaps then I should extend my question does anyone know of any f
These classes aren't documented because they're not intended for use by
java developers; they're for the internal use of Sun's JDK implementation.
Sun reserves the right to make changes to these classes at any time.
That being said, Elliot "Rusty" Harold wrote a b
Hi All,
Can anyone point me in the direction of a location where I could download
a copy of the API documentation for the sun clases, such as the FTP
classes etc.
I have managed to find some online versions, but I don't fancy saving each
page individualy. What I am hoping to find is a ta
appropriate mailing list to ask about this,
> but does anyone know of some good classes for handling regular
> expressions?
>
> /Per Widerlund
Take a look at the Perl5Util classes at chewie.oroinc.com. They
are quite nice.
Jason
On Mon, 29 Jun 1998, Gassoway, Paul wrote:
> Per Widerlund writes:
>
> >but does anyone know of some good classes for handling regular
> >expressions?
>
I haven't tried these -- but here's a link to an existing package (that
uses perl5-style regexps):
http://www.win.net/~stevesoft/pat/
Per Widerlund writes:
>but does anyone know of some good classes for handling regular
>expressions?
I know of two at this site:
http://www.gnu.ai.mit.edu/software/java/java.html
Paul Gassoway
Hello List..
This may not be the appropriate mailing list to ask about this,
but does anyone know of some good classes for handling regular
expressions?
/Per Widerlund
f that class in that method. Is this
> possible?
Yes, very definitely possible. The package java.lang.reflect contains
all the information you will need. Many of the classes and methods of
the 'reflect' package are accessible from the class 'java.lang.Class'.
Here is simple
> Does anyone has experience in passing a class as a parameter in java?
You can pass the name of a class ("com.foo.package.Name") as a
parameter, and then so long as the class can be found either locally
on the client, or via the ARCHIVE=___.jar tag, you can create an
instance via something like:
> Does anyone has experience in passing a class as a parameter in java?
> I want to do something like call a method with as parameter a class name and
> then create instances of that class in that method. Is this possible?
try this:
public Object makeInstance(String sClassName)
{
Class rC
Yes. If your class has a no-arg constructor, just do like this:
void method(Class c)
{
...
Object o = c.newInstance();
... // use 'o'
}
Otherwise, look for a Constructor class documenation from
java.lang.reflect package to create and initialize your object
Hi
Does anyone has experience in passing a class as a parameter in java?
I want to do something like call a method with as parameter a class name and
then create instances of that class in that method. Is this possible?
Regards
Wim Ceulemans
Nice Software Solutions
Eglegemweg 3, 2811 Hombeek
Te
71 matches
Mail list logo