Re: Java Plugin doesn't work
-- | From: Michael.Sinz / mime, , , [EMAIL PROTECTED] | To: lamb / mime, , , [EMAIL PROTECTED]; fst.robert / | mime, , , [EMAIL PROTECTED] | Cc: java-linux / mime, , , [EMAIL PROTECTED] | Subject: Re: Java Plugin doesn't work | Date: Tuesday, October 20, 1998 2:42PM | | On Tue, 20 Oct 1998 13:10:43 +0800 (HKT), Robert P. Biuk-Aghai wrote: | | >On Fri, 16 Oct 1998, Patrick Lamb wrote: | > | >> I got it to work by setting the NPX_PLUGIN_PATH environment variable. | >> (It's in one of the FMs...) IIRC, it isn't supposed to be needed for a | >> default installation, but the plugin suddenly started working when I set | >> it anyhow. In my case I set | >> NPX_PLUGIN_PATH=/home/pdlamb/.netscape/plugins | >> export NPX_PLUGIN_PATH | >> in my .bashrc. | >> | >>Pat | > | >I have in the meantime downloaded the activator.i18n-linux-glibc | >plugin (previously I used the activator-linux-glibc plugin), installed | >it, and set the NPX_PLUGIN_PATH variable to the ~/.netscape/plugins | >directory. Upon starting Netscape 4.06, I get following message: | | Just a simple question - is there a reason why you are trying the | plug-in in 4.06? I have seen things about problems starting in 4.05 | with the plug-in due to some changes in the browser. Also, starting in | 4.06, Netscape has finally main-lined the JDK 1.1.x Java into their | browsers and thus there generally is no need for the plugin. I can think of two reasons... 1. If you don't make use of the Plug-in signed applets and security related code in an applet have to comply either to the Netscape specific API or MS IE specific API. 2. if you want to start using JDK1.2bx dependent stuff in a browser... Of course , this isn't an option for Linux yet. Cheers, Addy.
Trouble Report: September 20, 1998 11:02PM
IT'T OUR BIRTHDAY. Six years agao, the first computer show was held here in Kansas City. 100,000 Customers and 6 years have proven one thing! There is no way to beat the deals at the 1st Sunday Computer Show. No way! In celebration, we are going all out! === WIN WIN WIN - PENTIUM II 400 COMPLETE SYSTEM - BRING THIS EMAIL TO ENTER THE DRAWING. A $3500 PACKAGE JAM PACKED WITH ALL THE GOODIES. YOU MUST BRING THIS EMAIL TO ENTER. === SUNDAY NOVEMBER 1ST, 1998 10am to 2pm (FOUR HOURS ONLY) LENEXA COMMUNITY CENTER 94TH & PFLUMM - LENEXA KANSAS JUST 5 MINUTES FROM OAK PARK MALL AND LESS THAN MILE FROM I435/I35 INTERCHANGE IN OVERLAND PARK. PLAN TO ATTEND! New! Complete Systems From $199 New! Notebooks from $199 New! Harddrives at or below wholesale cost New! 92 Vendors from all over the midwest New! 10,000+ Software Titles New! Computer Cases from $19 New! DVD ROM Drives from $99 New! 56K Modems from $49 New! 10,000+ (NEW) Books from $1 New! CD Media $1 New! UPS Backup Systems New! Windows 95/98/NT Half Price New! 100% satisfaction guarantee The PC Show respects your online time. If you have received this email in error or wish to discontinue these reminders, please return this email with remove in the subject line.
tya-1.1v3 rpm
hi, I'm just upload tya 1.1v3 to incoming.redhat.com tya-1.1-3.i386.rpm tya-1.1-3.src.rpm AFAIK it can work together with jdk-1.1.6-5.glibc.i386.rpm jdk-sn-1.1.6-1.2glibc.i386.rpm Name: tya Distribution: (none) Version : 1.1 Vendor: (none) Release : 3 Build Date: Wed Oct 28 12:37:33 1998 Install date: Wed Oct 28 12:38:18 1998 Build Host: anna.inf.u-szeged.hu Group : Libraries Source RPM: tya-1.1-3.src.rpm Size: 210467 Summary : TYA is a 100% inofficial JIT-compiler for Java. Description : TYA is a ``100% inofficial'' Just-In-Time-compiler for Java. When Java is invoked with the option "-Djava.compiler=tya" it will automatically detect TYA and compile any method bodies in Java byte code to Pentium instructions just before they are being executed for the first time. This means that Java programs will run faster than before, especially after some time of execution, when most methods have already been called before. -- Levente -- E-Mail: Levente Farkas <[EMAIL PROTECTED]> Homepage: http://www.inf.u-szeged.hu/~lfarkas/ PGP public key & Geek Code: [EMAIL PROTECTED] --
ANNOUNCE: WIDD 1.1.0 java DB admin tool
WIDD 1.1.0 -- A new version of the WIDD database admin tool is now available from http://maxibus.info.unicaen.fr/~joe/ This tool is a pure java and requires Java 1.1 It is released under the GPL license. This list is the first to receive this announcement, so we can get some feedback before a full freshmeat announce. The tool was written under linux and comes bundled with the postgresql JDBC drivers for convenience. Features - Access any database with a JDBC driver (tested with Postgresql and Sybase) - Point and click interface to most common SQL commands. - Table creation / edit / delete / drop. - Catalog create / destroy. - SQL script edit / save / execute - SQL results to text / html / edittable form. - Macros - Filters - On line help - Internationalisation (English / French) We'd welcome comments / constructive abuse / helpers. There's plenty of work outstanding, so please check the TODO. Enjoy! Joe Carter <[EMAIL PROTECTED]> (or see sig) Nicolas Prochazka <[EMAIL PROTECTED]> WIDD Home page http://maxibus.info.unicaen.fr/~widd/ (1.1.0 will move to this page when "officially" released) -- Joe Carter Software Engineer Brite Voice Systems Ltd, Gatley, Cheshire. UK. mailto:[EMAIL PROTECTED] http://freespace.virgin.net/joe.carter
StrongARM port
Hello, Was wondering if you folks had any plans to port the JDK to the StrongARM processor (such as CCC's NetWinder). Thanks, Warren Little[EMAIL PROTECTED]
Re: StrongARM port
On Wed, 28 Oct 1998 09:14:53 -0700, Warren Little wrote: >Hello, > Was wondering if you folks had any plans to port the JDK to the > StrongARM processor (such as CCC's NetWinder). If someone in the porting group has such a machine, it would most likely happen. However, at the moment, no one has such a machine making it a bit hard to do the port :-) Michael Sinz -- Director of Research & Development, NextBus Inc. mailto:[EMAIL PROTECTED] - http://www.nextbus.com My place on the web ---> http://www.users.fast.net/~michael_sinz
Re: Applets, AWT and Netscape (2 questions)
My AlertDialog hasn't main method because it's included in an applet. The applet's code creates an instance of AlertDialog and then, appears the AlertDialog which is a modal and no-resizable dialog. On LINUX, the modal-dialog mode works fine but no-resizable-dialog mode fails. On Win32, the modal-dialog mode fails but noresizable-dialog mode works fine, Why? In my linux box this program compiles but I read in your reply this program can't compile, why? My browser's Netscape 4.07. Carlos Alberto Roman Zamitiz Departamento de Ingenieria en Computacion, Facultad de Ingenieria UNAM [EMAIL PROTECTED] On 26 Oct 1998, Juergen Kreileder wrote: > > Carlos Alberto Roman Zamitiz writes: > > Carlos> Hi, > Carlos> Here's the code: > [...] > > Nice code, but it doesn't compile and it has no main method ;-) > > Carlos> On Sun, 25 Oct 1998, Dimitris Vyzovitis wrote: > > >> Could you elaborate a bit? > >> > >> Dimitris > >> > >> > I have other problem: I done an AlertDialog, a child of Dialog, which is a > >> > modal Dialog. I'm using Netscape 4.07 and my Linux box has > >> > "Linux_JDK_1.1.5_v7" but users can resize my AlertDialog. > >> > > >> > Any suggestions? Thanks! > >> > > This is a known bug in Sun's JDK 1.1.5/6. It's fixed in our forthcoming > 1.1.7v1. (Of course this will not fix the bug for netscape). > > > Juergen >
Re: Applets, AWT and Netscape (Code included)
Sorry, I copied the code and I forgot the next line: import java.awt.event.ActionEvent; but program constains this line and it fails. greetings Carlos Alberto Roman Zamitiz Departamento de Ingenieria en Computacion, Facultad de Ingenieria UNAM [EMAIL PROTECTED] On 27 Oct 1998, Juergen Kreileder wrote: > > Dimitris Vyzovitis writes: > > Dimitris> Juergen Kreileder wrote: > >> > Carlos Alberto Roman Zamitiz writes: > >> > Carlos> Hi, > Carlos> Here's the code: > >> [...] > >> > >> Nice code, but it doesn't compile and it has no main method ;-) > > Dimitris> Well, it will compile if you change ActionEvent into > Dimitris> java.awt.event,ActionEvent ;-} > > Yep, it was easy to fix. > > Dimitris> Why do you need a main method? You can use a simple stub > Dimitris> html file and a wrapper applet class to test it in an > Dimitris> applet (that's what I did). > > In some cases it takes more time to get the code from bug reports > working than it takes to track down and fix the actual problem. > So it really simplifies things if you post examples that work out of > the box. > > > Juergen > >
Another windows question
I am developing a Java application under Linux. I want it to be runnable under
Windows, but I know nothing of Windows or Windows programming. So I am asking
for some advice on how to get around a Unix dependency in my code.
Right now, the application includes the following Unix dependent code:
String[] strings= new String[]
{
"/bin/sh",
"-c",
"exec java SocketFilter - /dev/tty 2>/dev/tty"
};
proc = Runtime.getRuntime().exec(strings);
Going through /bin/sh achieved the following for me:
The Unix shell takes care of the PATH env variable for me. (Java Runtime's
exec method does not.)
The redirection to and from /dev/tty. (I am told that the various varieties of
Windows include some kind of a console tty simulation.).
The exec on the third lines of strings, keeps an extra process from being
spawned so that Java Runtime's Process destroy method will kill the extra
auxiliary Java program I launched.
I had to launch a separate Java application because an attempt to read from
System.in, hangs ALL threads.
So, my question is how can I do this so that it will work under Windows?
Steve Bankes
Java gets the award
Hi All! Java received the "Samovar award" ( http://www.ecsl.cs.sunysb.edu/~andrew/awards/ ). This is humor page, don't take all this 100% serious, just take fun :) -- Andrew
Hi !!
Hi, I saw the call for developers on the blackdown.org page and thought about helping out the jdk porting effort. Would appreciate someone telling me how to go about it. Thanks Pramod.
Re: Applets, AWT and Netscape (2 questions)
> Carlos Alberto Roman Zamitiz writes: Carlos> My AlertDialog hasn't main method because it's included in Carlos> an applet. The applet's code creates an instance of Carlos> AlertDialog and then, appears the AlertDialog which is a Carlos> modal and no-resizable dialog. On LINUX, the modal-dialog Carlos> mode works fine but no-resizable-dialog mode fails. On Carlos> Win32, the modal-dialog mode fails but noresizable-dialog Carlos> mode works fine, Why? It fails on Solaris too (the Linux port is based on the Solaris JDK): The native implementation for Dialog.setResizable only worked for some window managers. It's a know bug and it's fixed in JDK 1.1.7v1 which will be released soon. Juergen
Question about JIT, JDBC, & NetBeans
Hello! I have been out of Java for the past year and a half. At that time, JDBC in Applets was just too immature to be used (my opinion of course). Now, I'm trying to see what is out there now. I am starting to play with NetBeans and I am curious about the best way to use JDBC. Is it yet possible to access databases in Java as easily as it is in Visual Basic? In VB, you just place fields on the screen and set a property for the name of the database field and you're done (more or less). Thanks! Mark Lehrer p.s. NetBeans seems nice, though slow and obviously a .0 release. Is there another environment that I should consider? Also, how is JIT for Linux coming along? Sorry for throwing so many topics at once; but the archives are silent on these issues.
HP wrong, Linux right... right?
Hello,
Below is a some source code for a simple test. You invoke it with a
hostname that has a telnet port (for historical reasons):
java STest localhost
Anyway, it spawns two threads.
SThread opens a socket, unblocks a lock and then pends on a socket
read().
XThread waits on the lock, sleeps for a while and then closes the
socket.
What I expect to happen (and what happens on Linux JDK), is that when
the socket is closed, the read() will throw an exception. What happens
on HP is that the whole thing hangs. The close() hangs, the read()
stays where it is.
I think they have a bug involving blocking I/O (which was a problem with
Linux JDK at one point). Is this really a bug, or is this acceptable
behaviour. Someone please tell me it's a bug. They want to charge me
$250/hr if they investigate it and it's not a bug.
Here's the code:
import java.net.*;
import java.util.Date;
public class STest {
public static void main(String[] param) {
if (param.length != 1) {
System.out.println("Usage: java STest ");
System.exit(1);
}
SThread t = new SThread(param[0]);
XThread x = new XThread(t);
try {
t.start();
x.start();
x.join();
System.out.println("XThread completed. Socket should be closed");
} catch(Exception e) {
e.printStackTrace();
}
}
}
class XThread extends Thread {
private SThread st;
public XThread(SThread st) { this.st = st; }
public void run() {
try {
st.pause();
System.out.println("XThread sleeping for a little bit.\t" +
new Date());
sleep(5000);
System.out.println("XThread awake.\t\t\t" + new Date());
st.s.close();
} catch(Exception e) {
e.printStackTrace();
}
}
}
class SThread extends Thread {
private String host;
public Socket s;
public SThread(String host) { this.host = host; }
public void run() {
try {
// Open a telnet socket to the host passed on the command line
s = new Socket(host, 23);
System.out.println("Unblocking pause()");
synchronized(this) { notifyAll(); }
while(true) {
s.getInputStream().read();
}
} catch(Exception e) {
e.printStackTrace();
}
}
public synchronized void pause() {
try { wait(); } catch(Exception e) { e.printStackTrace(); }
}
}
Ok...
so I downloaded my non-com sources from Sun and wanted to build, but I can't find any info or diffs. They sent me version 1.1.7, but I can't find any info about 1.1.7. Did they send me the wrong version? I'd like to help out, but getting in to the swing of things is a bit hard. Corwin
Re: HP wrong, Linux right... right?
On Wed, 28 Oct 1998 20:28:52 +, Charles Forsythe wrote: >Hello, > >Below is a some source code for a simple test. You invoke it with a >hostname that has a telnet port (for historical reasons): > > java STest localhost > >Anyway, it spawns two threads. > >SThread opens a socket, unblocks a lock and then pends on a socket >read(). > >XThread waits on the lock, sleeps for a while and then closes the >socket. > >What I expect to happen (and what happens on Linux JDK), is that when >the socket is closed, the read() will throw an exception. What happens >on HP is that the whole thing hangs. The close() hangs, the read() >stays where it is. > >I think they have a bug involving blocking I/O (which was a problem with >Linux JDK at one point). Is this really a bug, or is this acceptable >behaviour. Someone please tell me it's a bug. They want to charge me >$250/hr if they investigate it and it's not a bug. Hmmm... This is a tough one. You are closing a socket from another thread while the first thread has already started to read from that socket. From an implementation stand point, it could do almost anything. It should throw an exception but that may depend on the soLinger setting. (Linger may prevent it from pulling the socket closed on some IP stacks... I do not know the HP stack and can not comment on it.) The code to me looks rather nasty since it does depend on being able to close a resource from another thread without there being some Monitor (mutex in Java) on that resource to keep only one thread doing things with it at once. I would personally feel that such code, while it may work in some cases/systems, is not code I would assume would work everywhere. Michael Sinz -- Director of Research & Development, NextBus Inc. mailto:[EMAIL PROTECTED] - http://www.nextbus.com My place on the web ---> http://www.users.fast.net/~michael_sinz
JMEDIAFRAMEWORK
Dear, is there any plan to port java media framework to linux? Many thanks, Cheers Patrick -- Patrick Lenders School of Mathematical and Computer Sciences University of New England Armidale, NSW 2351, Australia [EMAIL PROTECTED]
media framework
> "Dimitris" == Dimitris Vyzovitis <[EMAIL PROTECTED]> writes: Dimitris> Hi, Since it seems that we are going to have jdk1.2 in Dimitris> sync with everybody else, are there any plans for also Dimitris> porting the media framework (especially java3D) on Dimitris> linux? I'm certainly interested. Has Javasoft released reference implementation source code? If not then the project is more like implementing the Java 3D spec on linux. Which would seem to point towards implementing the Java 3D API on top of a pre-existing 3D graphics library. Isn't there a 3D project for gtk+ ? Then again with the AWT being Motif bound, gtk+ might not be the optimal path. EJB
Re: HP wrong, Linux right... right?
Hi Charles
The problem with your code is not a bug, it's just how thread are scheduled
by the underliying VM.
Your code running on Linux is unblocking (notifyAll) before, there is any
thing waiting (wait) on the lock. The run method in SThread run to the
while loop, before the XThread run starts. Maybe adding a Thread.yeild()
just after the new Socket() would work.
Below is the output with the changes I made to your code, which I ran on
Linux JDK 1.1.6v5.
Unblocking pause()
Before notifyAll
After notifyAll
Before wait
Hope this helps.
Robert Fitzsimons
> import java.net.*;
> import java.util.Date;
>
> public class STest {
> public static void main(String[] param) {
> if (param.length != 1) {
> System.out.println("Usage: java STest ");
> System.exit(1);
> }
>
> SThread t = new SThread(param[0]);
> XThread x = new XThread(t);
> try {
> t.start();
> x.start();
> x.join();
> System.out.println("XThread completed. Socket should be closed");
> } catch(Exception e) {
> e.printStackTrace();
> }
> }
> }
>
> class XThread extends Thread {
> private SThread st;
>
> public XThread(SThread st) { this.st = st; }
>
> public void run() {
> try {
> st.pause();
> System.out.println("XThread sleeping for a little bit.\t" +
> new Date());
> sleep(5000);
> System.out.println("XThread awake.\t\t\t" + new Date());
> st.s.close();
> } catch(Exception e) {
> e.printStackTrace();
> }
> }
> }
>
> class SThread extends Thread {
> private String host;
> public Socket s;
> public SThread(String host) { this.host = host; }
>
> public void run() {
> try {
> // Open a telnet socket to the host passed on the command line
> s = new Socket(host, 23);
>
> System.out.println("Unblocking pause()");
System.out.println("Before notifyAll");
> synchronized(this) { notifyAll(); }
System.out.println("After notifyAll");
>
> while(true) {
> s.getInputStream().read();
> }
> } catch(Exception e) {
> e.printStackTrace();
> }
> }
>
> public synchronized void pause() {
System.out.println("Before wait");
> try { wait(); } catch(Exception e) { e.printStackTrace(); }
System.out.println("After wait");
> }
> }
Re: Applets, AWT and Netscape (2 questions)
Hold on, don't be insulted... My AlertDialog hasn't main method because it's included in an applet. This is obvious... The applet's code creates an instance of AlertDialog and then, appears the AlertDialog which is a modal and no-resizable dialog. On LINUX, the modal-dialog mode works fine but no-resizable-dialog mode fails. On Win32, the modal-dialog mode fails but noresizable-dialog mode works fine, Why? Wait, how did you make it fail to be modal on win32? It is perfectly modal to me (as I said, I tested under ns4.5, msjsdk3.1 and sun jdk1.1.7A - sorry for the typo on the previous one when I erroneously refered to 1.1.6) In my linux box this program compiles but I read in your reply this program can't compile, why? Perhaps you have added in your code something like import java.awt.event.ActionEvent or import java.awt.event.* ? It neither compiles in my box as is. -- Dimitrios Vyzovitis -- Information Processing Laboratory [EMAIL PROTECTED] -- Aristotle University of Thessaloniki [EMAIL PROTECTED] -- Dept. of Electrical and Computer Engineering http://egnatia.ee.auth.gr/~dviz
problem running java linux
All,
when I start to compile a .java file I get the following error:
/usr/lib/jdk116_v5/bin/../bin/i686/green_threads/javac: line 19: 2200
Segmentation fault `dirname $0`/${progname} $RUNTIME_ARGS -ms8m
$RUNTIME_ARGS sun.tools.javac.Main $APP_ARGS
The output from my 'ldconfig -D' is attached to this mail. Since this
output shows a lot of warnings I guess that is the
error. I kinda messed up my libs when I tried to install Oracle on
Linux. Since that did not work I installed Sybase which
works fine now although my libs are kinde messed up.
What do I have to do so my 'ldconfig -D' produces a nice output?
Thanks!!
--Marcus
Thread scheduling
Robert Fitzsimons wrote: > Your code running on Linux is unblocking (notifyAll) before, there > is any thing waiting (wait) on the lock. You're right -- that could happen in the code I sent out. Oops. It's not happening on either of my systems. It's getting past the line st.pause() on my system. Of course, this is a timing difference between our two machines. I should have put in a more sophisticated pause(), but I was concetrating on the socket problem. It doesn't hang anywhere on (my) Linux system. It clearly hangs on the close() on HP Linux, though. -- Charles
What happened to the Alpha port from Uncle George?
-- Can you give me a URL for Uncle George or for anyone else involved in the Linux port to the Digital Alpha platform? It seems that the URL: http://www.voicenet.com/~gatgul/JDK/ is now blocked from access. H. Paul "Duke" Haiduk [EMAIL PROTECTED] http://ac1.actx.edu/~hphaiduk/ Professor, Information Systems and Engineering Computer Science Amarillo College US Postal Service Address: PO Box 447, Amarillo, TX 79178 FedEx, Airborne, UPS, etc: 2011 South Washington Street Amarillo, Texas 79109 USA Voice:(806) 371-5239 FAX:(806) 371-5210 Urgent:(806) 674-7110 -
JDK 1.2 info
Hello: Could you tell me when JDK 1.2 would be available ? Thanks - Abhi
problem running java on linux
OOPS, forgot the attach...
All,
when I start to compile a .java file I get the following error:
/usr/lib/jdk116_v5/bin/../bin/i686/green_threads/javac: line 19: 2200
Segmentation fault `dirname $0`/${progname} $RUNTIME_ARGS -ms8m
$RUNTIME_ARGS sun.tools.javac.Main $APP_ARGS
The output from my 'ldconfig -D' is attached to this mail. Since this
output shows a lot of warnings I guess that is the
error. I kinda messed up my libs when I tried to install Oracle on
Linux. Since that did not work I installed Sybase which
works fine now although my libs are kinde messed up.
What do I have to do so my 'ldconfig -D' produces a nice output?
Thanks!!
--Marcus
test
