Swing 1.1 & Netscape Communicator?
On HP-UX I've been able to copy the Swing 1.1 JAR files into .../netscape/java/classes in order to run Swing 1.1 applets in Netscape Communicator 4.5. (Putting the JAR files in CLASSPATH works as well.) But on my Linux box (Red Hat 5.1; linux 2.1.119 kernel) this doesn't seem to work. Depending on which Swing 1.1 applet I run, I'm either prompted by the default plugin to download the Java Plugin (which AFAIK doesn't exist yet for JDK 1.2) or get the following error: Applet SwingingApplet error: java.lang.classFormatError: Bad magic number I successfully built and ran a small Swing 1.1 *application* using the 1.1 JAR files, so I suspect that the files are not corrupt. I've also tried the Swing 1.1.1 Beta 1 with no different results. Is there anything I can do to get Swing 1.1 to work with Communicator? TIA, Jim Caley E-mail: [EMAIL PROTECTED]
RE: Swing 1.1 & Netscape Communicator?
Thanks for the tip, I tried it but still have the same problem.
Regards,
Jim
--
[EMAIL PROTECTED] wrote:
>
>
> From:
>[EMAIL PROTECTED]
> To:
>[EMAIL PROTECTED]
> Cc:
>[EMAIL PROTECTED]
> Date:
>Thu, 11 Feb 1999 08:36:31 -0500
> Subject:
>Re: Swing 1.1 & Netscape Communicator?
>
>
> On my RedHat machine, I replaced the soft link in /usr/bin with
> a shell script which sets the classpath:
>
> #!/bin/bash
>
> export MOZILLA_HOME=/usr/lib/netscape
>
> for i in ${MOZILLA_HOME}/java/classes/*.jar
> do
> CP=${CP:-.}:$i
> done
>
> for i in /path/to/swing/*.jar
> do
> CP=${CP:-.}:$i
> done
>
> unset i
> export CLASSPATH=${CP}
> unset CP
>
> exec ${MOZILLA_HOME}/netscape
>
>
>
>
>
>> [EMAIL PROTECTED] on 02/10/99 08:45:44 PM
>>
>> To: [EMAIL PROTECTED]
>> cc:(bcc: Russell Pridemore/Lex/Lexmark)
>> Subject: Swing 1.1 & Netscape Communicator?
>>
>>
>>
>>
>> On HP-UX I've been able to copy the Swing 1.1 JAR files into
>> .../netscape/java/classes in order to run Swing 1.1 applets >>in Netscape
>> Communicator 4.5. (Putting the JAR files in CLASSPATH works >>as well.)
>>
>> But on my Linux box (Red Hat 5.1; linux 2.1.119 kernel) this >>doesn't
>> seem to work.
Re: NoClassDefFoundError... argh!
Are you sure the same JVM is being invoked for each run? You can get
the NoClassDefFoundError exception when using the wrong JVM.
Regards,
Jim Caley
--
Dustin Lang wrote:
>
> Hi,
>
> My app has recently started throwing NoClassDefFoundErrors. It started
> after I made some fairly large code changes, but the errors are coming
> from code that was unchanged...
>
> I've removed all the class files and recompiled (hooray for Makefiles!),
> with the same result. The only other things in my classpath are rt.jar
> and the gnu regular expression package's jar. This should mean that
> version skew isn't the cause.
>
> I tried putting try{}catch(Throwable t){t.printStackTrace();} around the
> constructors of the classes in question, so I know pretty exactly where
> it's happening, but not why.
>
> I just tried recompiling everything with javac (I was using jikes), no
> change.
>
> The freaky thing here is that these errors don't get thrown every time.
> This error gets thrown in the init phase of the app's life (reading its
> config files). Sometimes it dies, sometimes it lives, even given the
> exact some config file.
>
> By the way, the class file in question does exist and is in my classpath.
> javap finds it just fine. The class contains no static block and no
> static variables.
>
> I can (try to) provide any other relevant info.
>
> Am I going crazy?
>
> Thanks for your help,
> dstn.
>
>
> -- Dustin Lang, [EMAIL PROTECTED]--
> (java developer, linux guy, freak with rainbow hair)
>
> User, n.: a particularly slow and unreliable input/
> output device that is attached by default to the
> standard input and output streams.
> (stolen from a Gamelan article, author unknown)
>
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: about using JFC
You can download Sun's Java Tutorial at http://java.sun.com/docs/books/tutorial/information/download.html and then work through the "Creating a GUI with JFC/Swing" trail. Regards, Jim -- sn_java wrote: > > Hello java-linux, > > where can I download swing tutorial? > thanks > > Best regards, > sn_java mailto:[EMAIL PROTECTED] > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: sun announcement
It's right there on http://java.sun.com -- the first link under "Headlines & Features." Jim Caley -- Jacob Nikom wrote: > > It looks like they forgot to connect it to the rest of the site - > even search of their web site does not find it. > > Jacob > > Wolfgang HOSCHEK wrote: > > > > Any other Sun page linking to that page? Couldn't find one. > > > > Wolfgang. > > > > Jacob Nikom wrote: > > > > > > I was able to get in - it looks like it exists. > > > > > > Jacob Nikom > > > > > > Robbie Baldock wrote: > > > > > > > > Dimitrios Vyzovitis wrote: > > > > > > > > > Apparently, sun has made an apologetic announcement. Check out: > > > > > http://java.sun.com/features/1999/12/linux.html > > > > > > > > That URL doesn't appear to exist... > > > > > > > > Robbie > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Installing J2EE
According to the message below (I grabbed it from the Java-Linux archives), to get J2EE installed I should download the port for Solaris. However, when I try to install the downloaded file (j2sdkee1_2-solsparc.sh) I can not get it to install on to my RedHat 6.1 system. This script when executed drops off a binary file named "install.sfx.". On my Linux box this file fails the checksum, while on an HP-UX box it passes. However, on both machines it fails to execute. (And yes, permissions are set to 755.) Here's the error message on Linux: bash: ./install.sfx.18321: cannot execute binary file Running "file" on it shows this: ./install.sfx.18321: ELF 32-bit MSB executable, SPARC, version 1, dynamically linked (uses shared libs), stripped So I'm guessing that this really will only run on a Solaris system, right? Does that mean I should use the Windows version on Linux? TIA, Jim Caley -- >Re: j2ee on linux ... any hope? >From: Larry Sanderson >Subject: Re: j2ee on linux ... any hope? >Date: Wed, 19 Jan 2000 21:41:12 -0800 >Yup. >First, download and install the J2EE port for Solaris. It's almost all >Java - there is only ony native library, called libioser12.so The >attached version has been compiled for Linux, x86. If you would like to >compile it for another platform, downoad the source from >www.sun.com/communitysource >Place the new libioser12.so into the j2sdkee1.2/nativelib directory and >your off and running. >Good luck >> Has anyone got J2EE up and running on Linux? >> >> john -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Installing J2EE
That did it -- many thanks! Jim -- Juergen Kreileder wrote: > > >>>>> Jim Caley writes: > > Jim> According to the message below (I grabbed it from the > Jim> Java-Linux archives), to get J2EE installed I should download > Jim> the port for Solaris. However, when I try to install the > Jim> downloaded file (j2sdkee1_2-solsparc.sh) I can not get it to > Jim> install on to my RedHat 6.1 system. > > Jim> This script when executed drops off a binary file named > Jim> "install.sfx.". On my Linux box this file fails > Jim> the checksum, while on an HP-UX box it passes. > > See sum(1): Linux uses 1K blocks by default while Solaris and HP-UX > use 512 byte blocks. If you change 'sum' to 'sum -s' it will pass on > Linux. > > Jim> However, on both machines it fails to execute. (And yes, > Jim> permissions are set to 755.) Here's the error message on > Jim> Linux: > > Jim>bash: ./install.sfx.18321: cannot execute binary file > > Jim> Running "file" on it shows this: > > Jim>./install.sfx.18321: ELF 32-bit MSB executable, SPARC, > Jim>version 1, dynamically linked (uses shared libs), > Jim>stripped > > That's a self-extracting ZIP archive. The code to unzip the archive > is platform specific but you should be able to extract it with the > regular 'unzip', just ignore the warning about extra bytes at the > beginning of the file. > > Juergen > > -- > Juergen Kreileder, Blackdown Java-Linux Team > http://www.blackdown.org/java-linux.html -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: How to start using PostgreSQL?
Hi Janet, This question should really have something to do with Linux *and* Java to be in this mailing list. You may want to try one of the Postgresql mailing lists. See http://postgresql.org/lists/mailing-list.html. Or your question may already be answered in one of the online FAQ's or docs at http://postgresql.org. Hope this helps, Jim -- Janet wrote: > > Hello! > > I'm totally new to Linux. And I have troubles using the DBMS PostgreSQL. > > I installed Redhat 6.0 and find there is postgresql already installed on my > computer. > Running the following command I get: > > $rpm -ql postgresql > /etc/rc.d/init.d/postgresql > /usr/bin/cleardbdir > /usr/bin/createdb > /usr/bin/createuser > /usr/bin/destroydb > /usr/bin/destroyuser > /usr/bin/initdb > /usr/bin/initlocation > /usr/bin/pg_passwd > /usr/bin/pg_version > /usr/bin/postgres > /usr/bin/postmaster > /usr/doc/postgresql-6.4.2 > . > (All the /usr/doc entried are omitted here since they are too many) > .. > /var/lib/pgsql > /// > > I thought it's ok to start the postgresql server, so I run the following > command but it complains: > (the command was found in the "/etc/rc.d/init.d/postgresql" file) > // > $postmaster -i -D/var/lib/pgsql > /usr/bin/postmaster does not find the database system. Expected to find it > in the PGDATA directory "/var/lib/pgsql", but unable to open file with > pathname "/var/lib/pgsql/base/template1/pg_class". > > No data directory -- can't proceed. > > > I read the installation instruction of the PostgreSQL but it teaches you how > to install from the beginning and expect you to use the file > "postgresql-v6.4.tar.gz", which I haven't got on my computer. > > So do I need to download one to re-install the PostgreSQL? Or how can I > solve my problem? What's in the earth wrong? > > Any suggestion or hints are appreciated greatly! > > With my best regard: > Janet > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Java on Red Hat linux 6.2
Hello Amit, Two things: - Since you installed java at /user/java/jdk1.2.2 you should use: export JAVA_HOME=/user/java/jdk1.2.2 rather than: export JAVA_HOME=/java/jdk1.2.2 - This one: export PATH$JAVA_HOME/bin:$PATH should read: export PATH=$JAVA_HOME/bin:$PATH HTH, Jim -- AMIT VERMA wrote: > > Hello Sir, > >A brief about myself. I am a computer > programmer working on Vb from last 4 years. > > I recently installed Linux 6.2 from a monthly PC Quest > in India. > > I have also done java 1.2.2 on Win platform. > > On this months CD i got java 1.2.2 on Linux from PC > Quest. Since previuosly they put RHLinux 6.2, so the > java1.2.2 version will be for that only. > > About Linux > > I have three users > > root > user > user1 > > on user account i made a directory call java and under > that i installed jdk1.2.2. > > now i have /user/java/jdk1.2.2 > > i want to run java programs, so i have to compile them > with javac command. > > i tried the command and got an error > > bash : javac command not found. > > then i referred a book java on linux > and also searched thru ur website for help. i came to > know i have to set env variables(JAVA_HOME, PATH and > CLASSPATH) > > i used the following commands from my user account > prompt: > > export JAVA_HOME=/java/jdk1.2.2 > > export PATH$JAVA_HOME/bin:$PATH > (i also tried: export PATH=/java/jdk1.2.2/bin:$PATH) > > export CLASSPATH=JAVA_HOME/. > > but still when i want to compile a file with javac i > get the same error..please respond .. i am waiting for > a reply.. > > Amit Verma > [EMAIL PROTECTED] > > __ > Do You Yahoo!? > Get Yahoo! Mail Free email you can access from anywhere! > http://mail.yahoo.com/ > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: postgresql jdbc driver
I suppose this question has both Java and Linux elements to it (assuming your platform is Linux), but it would still be more appropriate -- and you'll get better results -- if you post it to the pgsql-interfaces list. :) See http://www.postgresql.org (then Info Central/Mailing Lists) for more info. Anyway, I think the first thing many over there may say is to go to v. 7.0.2 -- it's far superior to 6.x. I know in 7.x I've never had problems finding interfaces/jdbc. (Could that be the problem... are you looking for "interface" rather than "interfaces"?) Regards, Jim -- wangmq wrote: > > I have installed postgresql-6.4.2, but I can't find the directory interface/jdbc. So >I can't find the postgresql driver postgresql.jar. Why? > ôèPÔ >ÿzf¢Ú#jöÿ)îÇúު笷øÚ½¯Û§$v'þàÂ+ajËç-¡ÿî˱ÊâmïÿNº.nWÿ > íiËdj¹ÿnVÚ0ú+ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Stacktraces without line numbering?
Hi Lars, You need to run without the JIT compilation, i.e. java -Djava.compiler=NONE Regards, Jim -- Lars Degerstedt wrote: > > Hi all, > > I get stacktraces without line numbers (just "compiled code") for > Blackdown JDK 1.2, in spite of the fact that the source code is present. > > Any suggestions how to get the line numbers back? > --Lars > > - > > An example of a stacktrace: > > java.lang.NullPointerException > at scin.ndbs.control.NDBControl.getText(Compiled Code) > at scin.uim.control.CommandHandler.getDbText(Compiled Code) > at scin.uim.control.CommandHandler.processNewReadInfo(Compiled > Code) > at scin.uim.control.CommandHandler.processReadInfo(Compiled > Code) > at scin.uim.control.UIControl.processParsedCommand(Compiled > Code) > at scin.uim.control.UIControl.processSentence(Compiled Code) > at java.lang.reflect.Method.invoke(Native Method) > at tcl.lang.reflect.PkgInvoker.invokeMethod(Compiled Code) > at tcl.lang.JavaInvoke.call(Compiled Code) > at tcl.lang.JavaInvoke.callMethod(Compiled Code) > at tcl.lang.ReflectObject.cmdProc(Compiled Code) > at tcl.lang.Interp.callCommand(Compiled Code) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Faking out an app that requires a GUI
It seems like a year or two ago I saw some sort of utility mentioned on this mailing list that could be used to "fake out" a text-based app that still needed to have a GUI display available. (Was it that some of the Swing classes wanted the graphical display or something? I can't remember.) I'm not finding this in the archives. Does anyone know what I'm talking about? Thanks, Jim -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Faking out an app that requires a GUI
Ahhh... Thanks, guys. Yes, it was xvfb that I was thinking of.
I posted this on behalf of a guy from a CAD users' mailing list who was having a
problem, and from what I had heard of xvfb on this list, it sounded like that
might help him out. His app isn't actually Java, but it sounds like that's not
an issue with xvfb.
I'll pass this on to him. It's off-topic, but in case anyone's interested,
here's part of his original statement of his problem ("msplot" is a plotting
utility that works with this CAD software):
"The msplot command will not work because even though this is supposed to be
command line driven, once you submit the request, the print_cli command that
is called fails because it can't open the display, even though there is no
graphical display to output. I know that I can set the DISPLAY variable and
that then this would work, but this is not feasible for what I'm trying to
do."
Thanks again,
Jim
--
Nathan Meyers wrote:
>
> On Wed, Sep 12, 2001 at 06:25:00PM -0700, ed phillips wrote:
> > Are you referring, Jim, to an Expect like feature set for Java.
> >
> > Is there such a set of classes? Perl has an Expect module. Hmmm
>
> Joi's recommendation for xvfb is the right one. The Linux/Unix AWT always
> expects an X server even if you never create a window. Xvfb is a fully
> functional X server, but one whose "display" is in memory rather than
> a physical display device - exactly what you need to run AWT code on
> a server.
>
> Nathan
>
> > Ed
> >
> >
> > Joi Ellis wrote:
> > >
> > > On Wed, 12 Sep 2001, Jim Caley wrote:
> > >
> > > > It seems like a year or two ago I saw some sort of utility mentioned on this
> > > > mailing list that could be used to "fake out" a text-based app that still
>needed
> > > > to have a GUI display available. (Was it that some of the Swing classes wanted
> > > > the graphical display or something? I can't remember.)
> > > >
> > > > I'm not finding this in the archives. Does anyone know what I'm talking about?
> > >
> > > I'll guess that you're thinking of the xvfb (virtual frame buffer)
> > > X11 server which allows apps which manipulate fonts and/or images without
> > > using a physical display device. It comes up on headless web servers
> > > which want to generate dynamic gifs (hit counters) or whatever.
> > > The image/font manipulation stuff won't load without an X11 display, so
> > > xvfb is used to provide those resources without using an actual device.
> > >
> > > --
> > > Joi EllisSoftware Engineer
> > > Aravox Technologies [EMAIL PROTECTED], [EMAIL PROTECTED]
> > >
> > > No matter what we think of Linux versus FreeBSD, etc., the one thing I
> > > really like about Linux is that it has Microsoft worried. Anything
> > > that kicks a monopoly in the pants has got to be good for something.
> > >- Chris Johnson
> > >
> > > --
> > > To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> > > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> >
> >
> > --
> > To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> >
>
> --
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
OFF TOPIC: (WAS "Faking out an app that requires a GUI")
Just wanted to let you know that xvfb did fix this guy's problem.
Here's an extract from his reply to me:
"Thanks for the feedback. At least somebody is of help. [SNIP COMPLAINTS
ABOUT LACK OF HELP FROM THE VENDOR :)] Anyway, enough
whining. The Xvfb solution works great. I managed to snag a binary from
http://ferret.wrc.noaa.gov/Ferret/. Using Xvfb is real simple as well.
Again, thanks for the efforts.
Dave"
Jim
--
Jim Caley wrote:
>
> Ahhh... Thanks, guys. Yes, it was xvfb that I was thinking of.
>
> I posted this on behalf of a guy from a CAD users' mailing list who was having a
> problem, and from what I had heard of xvfb on this list, it sounded like that
> might help him out. His app isn't actually Java, but it sounds like that's not
> an issue with xvfb.
>
> I'll pass this on to him. It's off-topic, but in case anyone's interested,
> here's part of his original statement of his problem ("msplot" is a plotting
> utility that works with this CAD software):
>
> "The msplot command will not work because even though this is supposed to be
> command line driven, once you submit the request, the print_cli command that
> is called fails because it can't open the display, even though there is no
> graphical display to output. I know that I can set the DISPLAY variable and
> that then this would work, but this is not feasible for what I'm trying to
> do."
>
> Thanks again,
> Jim
> --
>
> Nathan Meyers wrote:
> >
> > On Wed, Sep 12, 2001 at 06:25:00PM -0700, ed phillips wrote:
> > > Are you referring, Jim, to an Expect like feature set for Java.
> > >
> > > Is there such a set of classes? Perl has an Expect module. Hmmm
> >
> > Joi's recommendation for xvfb is the right one. The Linux/Unix AWT always
> > expects an X server even if you never create a window. Xvfb is a fully
> > functional X server, but one whose "display" is in memory rather than
> > a physical display device - exactly what you need to run AWT code on
> > a server.
> >
> > Nathan
> >
> > > Ed
> > >
> > >
> > > Joi Ellis wrote:
> > > >
> > > > On Wed, 12 Sep 2001, Jim Caley wrote:
> > > >
> > > > > It seems like a year or two ago I saw some sort of utility mentioned on this
> > > > > mailing list that could be used to "fake out" a text-based app that still
>needed
> > > > > to have a GUI display available. (Was it that some of the Swing classes
>wanted
> > > > > the graphical display or something? I can't remember.)
> > > > >
> > > > > I'm not finding this in the archives. Does anyone know what I'm talking
>about?
> > > >
> > > > I'll guess that you're thinking of the xvfb (virtual frame buffer)
> > > > X11 server which allows apps which manipulate fonts and/or images without
> > > > using a physical display device. It comes up on headless web servers
> > > > which want to generate dynamic gifs (hit counters) or whatever.
> > > > The image/font manipulation stuff won't load without an X11 display, so
> > > > xvfb is used to provide those resources without using an actual device.
> > > >
> > > > --
> > > > Joi EllisSoftware Engineer
> > > > Aravox Technologies [EMAIL PROTECTED], [EMAIL PROTECTED]
> > > >
> > > > No matter what we think of Linux versus FreeBSD, etc., the one thing I
> > > > really like about Linux is that it has Microsoft worried. Anything
> > > > that kicks a monopoly in the pants has got to be good for something.
> > > >- Chris Johnson
> > > >
> > > > --
> > > > To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> > > > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> > >
> > >
> > > --
> > > To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> > > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> > >
> >
> > --
> >
> > --
> > To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
