Re: Netscape 4.06 running Java Applets with sound files.
Linda DeBoer wrote: > > G'day > I have spent the last 4 days trying to find info on this on the net, > FAQ's etc. I cannot find anything to help. > > I have Netscape 4.06 running on Linux with JDK 1.1.6. My MIME Type > is setup for " ULAW cat %s > /dev/audio". > If I select the "mysound.au" file using the browser, and "Open > Page", the image and sound work fine. > If I run my java program called "ButtonTest" using "check.html" in > the "Appletviewer", the image and sound work fine. > If I use my Netscape Browser to open "check.html" then the image > displays but the sound does not work. > > I have also copied a some other applets that work fine on our > Windows 95 using JDK 1.1.6 to my Linux box and the sound fails to work, > so I know that particular code was ok. I have many examples of the same > code I used (real simple program) and lots of info on Netscape Plug-ins > (all MickeySoft). > > I installed both the netscape common and netscape communicator > packages as rpm instructed (common first). I also installed the full > package JDK 1.1.6 port. Did I end up missing a piece anyway? If there > is an FAQ I have missed, web site, or document, please direct me. > Reading is not a problem, but I right now I'm seeing alot of trees and > none of them have moss growing on them..;-) > > PS: Linux is my chosen home desktop (we have 3 more converts at > work) This is a known problem. Someone did some work on this, I saved his page, but the page appears not be there anymore when you go there... maybe you can e-mail him or something, or get some info from my copy of the page at: ftp://shell3.ba.best.com/pub/rmlynch/Java_Stuff/sound-linuxNS.html HTH. Bob L. P.S. Reminder: this page is just a copy I saved. None of the links will probably work, although I haven't tried them all... -- Robert Lynch-Berkeley CA [EMAIL PROTECTED] http://www.best.com/~rmlynch/
Dynamic modification of CLASSPATH
Hi: There is any way to change the value of CLASSPATH dynamicaly, that is, how I can include a new directory into CLASSPATH after my program is runnning, to instantiate a class that is inside it? Thanks. _ Domingo Pinya Maza INSTITUTO TECNOLOGICO DE INFORMATICA Email : [EMAIL PROTECTED] UNIVERSIDAD POLITECNICA Telefono/Fax : 34 96 3877233/7239VALENCIA - SPAIN Web : http://www.iti.upv.es/~dpinya/dpinya.html
How long will it take to port 1.1.7 ?
I'm curious. How long does it usually take to port the full 1.1 JDK ? I'd guess that since all the 1.1.x are all just bugfixes of the previous version, the changes shouldn't be that extensive. Having all the changes made to the previous versions should speed things up too. Am I wrong ?
Re: Dynamic modification of CLASSPATH
You could write your own class loader. Domingo Pinya wrote: > Hi: > >There is any way to change the value of CLASSPATH dynamicaly, that is, > how I can include a new directory into CLASSPATH after my program is > runnning, to instantiate a class that is inside it? > > Thanks. >
Re: Write Once Run Anywhere?
Are you on JDK 1.1 on your Win95 Box ? Try doing a "java -version" on both platforms. If you are trying to run JDK1.1 compiled code on JDK 1.0 that might cause problems. Rob -- Rob Nugent Development Manager UniKix Technologies Europe [EMAIL PROTECTED] Tel: +44 (0) 1489 585503 Fax: +44 (0) 1489 881363
Re: Write Once Run Anywhere?
Rob Nugent wrote: > Are you on JDK 1.1 on your Win95 Box ? > > Try doing a "java -version" on both platforms. If you are trying to run JDK1.1 > compiled code on JDK 1.0 that might cause problems. > > Rob > > -- > > Rob Nugent > Development Manager > UniKix Technologies Europe > [EMAIL PROTECTED] > Tel: +44 (0) 1489 585503 > Fax: +44 (0) 1489 881363 I'm on 1.1.6 on both platforms.
Re: Write Once Run Anywhere?
Nelson Minar wrote: > >However, most of your proposed solutions fall wide of the mark. > > Gee, so sorry. Again, there's no fundamental problem with Linux Java, > the problem is something in your own environment. I'm sure you're right. I was just trying to figure out what that was. > >Now here is a detail that may be more relevant: There are 19 .java > >files in the package. The compilation under linux is making them into > >19 class files. When compiling under Win95, 27 class files are > >created. Two of these are for non-public classes defined in other > >java files. The other six files have names like x$1.class where > >x.java is one of my project files (x.class is also created by > >the compilation). > > The $1 files (and $2, etc) are anonymous classes. If javac on Linux > isn't producing them, something is very strange about your setup. > Maybe they're being placed elsewhere? Hmm. No, they're being produced, all right. And they are in the jar file. I just checked. I wonder why I don't find them on the other end when I unjar everything.
Re: Write Once Run Anywhere? - MYSTERY SOLVED
Steve Cohen wrote: > Nelson Minar wrote: > > > >However, most of your proposed solutions fall wide of the mark. > > > > Gee, so sorry. Again, there's no fundamental problem with Linux Java, > > the problem is something in your own environment. > > I'm sure you're right. I was just trying to figure out what that was. > > > >Now here is a detail that may be more relevant: There are 19 .java > > >files in the package. The compilation under linux is making them into > > >19 class files. When compiling under Win95, 27 class files are > > >created. Two of these are for non-public classes defined in other > > >java files. The other six files have names like x$1.class where > > >x.java is one of my project files (x.class is also created by > > >the compilation). > > > > The $1 files (and $2, etc) are anonymous classes. If javac on Linux > > isn't producing them, something is very strange about your setup. > > Maybe they're being placed elsewhere? > > Hmm. No, they're being produced, all right. And they are in the jar > file. I just checked. I wonder why I don't find them on the other end > when I unjar everything. MYSTERY SOLVED! Jar behaves rather oddly under Win95 and this caused me to become confused. When I unjarred the file under Win95, I looked in the Windows Explorer for the products. I immediately noticed under the directory where I did the unjarring, a new path mirroring the path under linux where the files were created, which contained a bunch of class files. I ALSO noticed some class files in the directory where I did the unjarring, but I assumed that these were from a previous compilation, deleted them, and copied in the ones from the unix-like path. However, this set did NOT include any of the inner classes, the $1, $2 etc. So I now had an incomplete set of files and the program wouldn't run. When I just ran the files that jar unzipped, it all worked fine. Duh. I am wondering, however, why Jar makes this additional mirror of the original directory structure and places in it an incomplete set of files. And one more minor problem: The one difference between the program on the two systems is a JOptionsPane. On the linux side it behaves correctly. On the Win95 side it truncates the message. Is there some way to control this? Thanks again for all your help. Steve
Re: Write Once Run Anywhere?
The $1 and $2 are inner classes This is how the Java Compiler generates Anonymous Inner classes. So on a linux environment you do need them. May when you copy these filenames the result is garbage filenames. For this reason it is better to package all `*.class' files in a JAR or ZIP archive for better transportation(!). Pete __ Reply Separator _ Subject: Re: Write Once Run Anywhere? Author: stevecoh ([EMAIL PROTECTED]) at lon-mime Date:02/10/98 02:46 - Now here is a detail that may be more relevant: There are 19 .java files in the package. The compilation under linux is making them into 19 class files. When compiling under Win95, 27 class files are created. Two of these are for non-public classes defined in other java files. The other six files have names like x$1.class where x.java is one of my project files (x.class is also created by the compilation). I don't know what these extra files are for, but the NoClassDefFoundError message is telling me that the class it cannot find is x$1. The extra files do not seem to be required under the linux environment, but they appear necessary under the Win95 environment.
Re: EVERYONE: javac segmentation fault
When I last looked I could not see in jdk-1.1.6v2. I can think you should create a new text file called `PROBLEMS' to focus the naive installer attention. Put also the bugfixes and remedies in this file and put a ptr in the README.linux file. Pete __ Reply Separator _ Subject: Re: EVERYONE: javac segmentation fault Author: sbb ([EMAIL PROTECTED]) at lon-mime Date:02/10/98 05:29 Eric Harlow writes: > > I installed the jdk1-1-6v4 and can compile java files fine, but running > anything > > 'java classfile' > > gets a segmentation fault. I have RedHat 5.0 on the system and need to do > a java demo next week. I would prefer not to use win95 to do the demo. > I checked the faq and didn't find anything that decribes my scenario. [General announcement, since this has cropped up a few times in the last day] If you get a seg fault on running v4, the FIRST THING that you should do is try renaming libc and libdl in java/lib/i386/green_threads to some other name. If your ld.so version is 1.9.6 or above (with the libc5 Linux JDK), you should definitely do this. I think the README.linux mentions this, doesn't it? Steve
Re: Dynamic modification of CLASSPATH
You can also get the classpath from SystemProperty( "java.classpath" )
or something like that.
Then use you write a PathnameResolve sth that search for the classes
by looking at each of the separated directory. You could use
the StringTokenizer(":") to get each directory. Loop through all
directories and try to see if there is File called xxx.class or
whatever.
Or maybe there's a method in ClassLoader which accepts a new
(augmented) classpath.
Pete
__ Reply Separator _
Subject: Re: Dynamic modification of CLASSPATH
Author: gaolei ([EMAIL PROTECTED]) at lon-mime
Date:02/10/98 08:59
You could write your own class loader.
Domingo Pinya wrote:
> Hi:
>
>There is any way to change the value of CLASSPATH dynamicaly, that is,
> how I can include a new directory into CLASSPATH after my program is
> runnning, to instantiate a class that is inside it?
>
> Thanks.
>
Re: Write Once Run Anywhere? - MYSTERY SOLVED
>And one more minor problem: >The one difference between the program on the two systems is a >JOptionsPane. On the linux side it behaves correctly. On the Win95 side it >truncates the message. Is there some way to control this? This is a known bug for Win95. I just downloaded the latest SwingBug list and the bug is still there: 4129402 bug 4 5 evaluated Win32:JOptionPane dialogs not sized correctly There are a number of other bugs in JOptionPane. This is the result if you grep with JOptionPane in the SwingBuglist: 4107861 bug 4 3 evaluated JOptionPane: sometimes no component gets default focus when dialog activated 4119710 bug 4 5 evaluated setClosable() not working if JInternalFrame is created through JOptionPane 4119711 bug 4 5 evaluated setMaximizable() not working if JInternalFrame is created through JOptionPane 4119712 bug 4 5 evaluated setIconifiable() not working if JInternalFrame is created through JOptionPane 4129402 bug 4 5 evaluated Win32:JOptionPane dialogs not sized correctly 4133782 bug 4 5 evaluated several JOptionPane problems 4134075 bug 4 5 dispatched JOptionPane not modal in browsers 4135440 bug 4 5 dispatched JOptionPane.showInternalMessageDialog broken under jdk1.1.6 4135514 bug 4 5 evaluated JOptionPane doesn't like Uppercase 4137106 bug 4 5 acceptedExtra JOptionPane Dialog with Mouse Click 4139692 bug 4 5 evaluated JOptionPane.showInternalMessageDialog() does not create a modal dialog 4139736 bug 4 5 evaluated JOptionPane needs support for Windows newline charactors added 4140405 bug 4 5 evaluated Calling JOptionPane from within a DocumentListener hangs the browser 4147090 bug 4 5 dispatched Modal JOptionPane.showMessageDialog moves to the back of the parent. 4159234 bug 4 2 evaluated JOptionPane's showInternal*Dialog methods should create modal dialogs 4171200 bug 4 3 dispatched Keyboard Accessibility in Swing 1.1 and Swing in JDK 1.2 - JOptionPane focus 4177736 bug 4 5 dispatched JComboBox getSelectedItem broken when in JOptionPane You can follow the status of these bugs on the JDC or you just can send an empty message to [EMAIL PROTECTED] Then you get an auto-reply list of the pending swing bugs. I am monitoring this list now since the beginning of september and it stays about the same size (about 700 bugs) with approximately 10 bugs a day added and about the same amount solved. Now this is also because swing is back in beta with swing 1.1. Regards Wim Ceulemans Nice bvba
Re: Need help with initial Java setup
> Michael> Netscape does equally complex stuff. It tries to find > Michael> itself (and there is a setting but I forgot what it was) > Michael> and once it does, it does even more by automatically > Michael> adding *all* jar files in the directory where it stores > Michael> its jar files. This is so that plug-in and add-on java > Michael> things can be done without the CLASSPATH setting. Note > Michael> that there actually is a problem with some versions of > Michael> Netscape where if you have CLASSPATH defined at all when > Michael> Netscape runs it does not try to find its own Java > Michael> directories and thus will fail to run Java. The best > Michael> thing to do is not to have CLASSPATH defined when > Michael> starting Netscape. > > export MOZILLA_HOME=/path/to/top/of/netscape/directory/tree > > Navigator will then successfully find the jar files it needs. >From netscape README file: Java Applet Support: Java Applet support is available for all Unix platforms. To run Java applets with the Java-enabled version, Communicator needs to be able to load Java class files from a file called java40.jar. This file is included in the distribution, and is searched for using the following algorithm: if($CLASSPATH environment variable is set) Look at $CLASSPATH, where $CLASSPATH is a colon-delimited list of / entries. else Search in order: $MOZILLA_HOME/java/classes $HOME/.netscape /usr/local/netscape/java/classes /usr/local/lib/netscape -- Cheers. Alexander
Re: Trouble JDK 1.1.6 + HOTJAVA
> > > * You DO NOT need to set JAVA_HOME. Doing so can be bad for your health > > What makes you think HotJava needs JAVA_HOME? Look at the launching script. I > think you need to set JDK_HOME (or JRE_HOME) but not JAVA_HOME, but the script > is the final arbiter. I can't catch a thought... What wrong is to set JAVA_HOME ? The starter script is doing the same thing. I just make it work simpler, by setting up that. :) -- Cheers. Alexander
Re: How long will it take to port 1.1.7 ?
Hi, Sun has messed up its non-commercial source distribution once again! I received my e-mail to grab the 1.1.7 source archive and the name they sent to me was simply not found. I asked the other porters and the same thing has held true for everyone who has tried to download anything! Sun made this exact smae mistake last time (with 1.1.6). This is getting really frustrating! To top it off, Sun gives no contact e-mail address, only a fax number for licenses. So it is next to impossible to inform them they f'd up again. If anyone works for Sun or has appropriate contact there, will you please ask them to check their non-commercial source distribution system again. None of the names they are sending out have been created yet! As for how long it will take to port 1.1.7? This will depend on how many changes were made to the source from 1.1.6. Most of our diffs should apply directly but we will have to apply them by hand to each file to make sure that our patch does not mess up a new fix added by Sun. Also the awt stuff seems to change alot each time and actually requires a whole bunch of patches to make it work right under a wide variety of window managers. So once Sun actually fixes their process and gets us the source code and assuming a reasonble number of changes (not a massive overhaul) we should have something in two weeks or so (BUT THIS IS IN NO WAY A PROMISE), just an estimate. This all assumes Sun will fix their still broken process! Kevin -- Kevin B. Hendricks Associate Professor, Operations & Information Technology School of Business, College of William & Mary Williamsburg, VA 23187, [EMAIL PROTECTED] http://business.tyler.wm.edu
Re: Trouble JDK 1.1.6 + HOTJAVA
On Fri, 02 Oct 1998 18:16:59 +0400, Alexander Davydenko wrote: >> > > * You DO NOT need to set JAVA_HOME. Doing so can be bad for your health >> >> What makes you think HotJava needs JAVA_HOME? Look at the launching script. I >> think you need to set JDK_HOME (or JRE_HOME) but not JAVA_HOME, but the script >> is the final arbiter. > >I can't catch a thought... What wrong is to set JAVA_HOME ? > >The starter script is doing the same thing. > >I just make it work simpler, by setting up that. :) If that is the only Java VM on your system, then it should not cause a problem. However, setting this can lead to problems if you install a new JDK to try it and forget to unset it. Or if you have another JVM installed that may happen to use JAVA_HOME Since it gets set in the script, setting it externally can cause problems/confusion. It is not that it, in and of itself, is bad. With so many different people doing so many different linux systems and so many different ways they install things, it is easier to just make a blanket statement that *generally* is true and assume that those who are more advanced users can work though the stuff. 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: Where Can I find libBrokenLocale.so ?
[EMAIL PROTECTED] wrote: > Is the source code available, because I have Slackware 3.5 not RHL. > If you have trouble with fonts, try to play with a font.properties.? file for your locale. It was solving a problem for me. I've never needed that lib. -- Cheers. Alexander
Re: Trouble JDK 1.1.6 + HOTJAVA
Michael Sinz wrote: > If that is the only Java VM on your system, then it should not cause > a problem. However, setting this can lead to problems if you install > a new JDK to try it and forget to unset it. :) i have 3 versions installed. Just use link to what i want. > With so many different people doing so many different linux systems > and so many different ways they install things, it is easier to just > make a blanket statement that *generally* is true and assume that those > who are more advanced users can work though the stuff. it's truth -- Cheers. Alexander
Re: Where Can I find libBrokenLocale.so ?
No my problem was getting the [RETURN] key to produce newlines in a XmTextWidget (Motif Toolkit as used in the JDK). The only trick that did it for me was Emacs Control-J ;-) It is a bit of nuisance not having the Return key work in any apps that have statically linked Motif objects. Pete __ Reply Separator _ Subject: Re: Where Can I find libBrokenLocale.so ? Author: alex ([EMAIL PROTECTED]) at lon-mime Date:02/10/98 15:53 [EMAIL PROTECTED] wrote: > Is the source code available, because I have Slackware 3.5 not RHL. > If you have trouble with fonts, try to play with a font.properties.? file for yo ur locale. It was solving a problem for me. I've never needed that lib. -- Cheers. Alexander
Netscape 4.05 support Java 1.1??
Hi there, I got netscape 4.05 that came with RedHat 5.1. Does it support Java 1.1? I tried the following and got errors: I have JDK1.1.6 installed. Will that help netscape? Thanks http://www.javasoft.com/applets/jdk/1.1/demo/NervousText/index.html #Applet exception: error: java.lang.NoSuchMethodError: java.awt.Component: method addMouseListener (Ljava/awt/event/MouseListener;) V not found at NervousText.init(NervousText.java:63) at netscape.applet.DeriveAppletFrame.run(DerivedAppletFrame.java) at java.lang.Thread.run(Thread.java) - Free e-mail group hosting at http://www.eGroups.com/
RE: Dynamic modification of CLASSPATH
>> There is any way to change the value of CLASSPATH dynamicaly. The Default Classloader doesn't expose a method that allows it to be manipulated. However you can accomplish this by building your own Classloader that incorporates the functionality. There's an excellent reference classloader in the Java Beans Development Kit (BDK) available at
Re: Netscape 4.05 support Java 1.1??
Chi-Ming Yang wrote: >I got netscape 4.05 that came with RedHat 5.1. >Does it support Java 1.1? ... No. You need netscape 4.5pr2, I think. >I have JDK1.1.6 installed. Will that help netscape? No. Netscape 4.x doesn't have a good way to use an external JRE (unless you count the Java Plugin). - Dan
Re: Netscape 4.05 support Java 1.1??
> Dan Kegel writes: Dan> Chi-Ming Yang wrote: >> I got netscape 4.05 that came with RedHat 5.1. >> Does it support Java 1.1? ... Dan> No. You need netscape 4.5pr2, I think. Yes, but netscape 4.06 supports Java 1.1 as well. >> I have JDK1.1.6 installed. Will that help netscape? Dan> No. Netscape 4.x doesn't have a good way to use Dan> an external JRE (unless you count the Java Plugin). Juergen
Re: Netscape 4.05 support Java 1.1??
Hi, The NoSuchMethodError on AWT 1.1 methods is one of the surest ways of testing whether a browser supports 1.1 or not...if you get it, it doesn't. Get Netscape 4.06, it reportedly DOES support 1.1. Chi-Ming Yang wrote: > Hi there, > I got netscape 4.05 that came with RedHat 5.1. Does it support Java 1.1? I >tried the following and got errors: > I have JDK1.1.6 installed. Will that help netscape? > > Thanks > > http://www.javasoft.com/applets/jdk/1.1/demo/NervousText/index.html > > #Applet exception: error: java.lang.NoSuchMethodError: > java.awt.Component: method addMouseListener > (Ljava/awt/event/MouseListener;) V not found > at NervousText.init(NervousText.java:63) > at netscape.applet.DeriveAppletFrame.run(DerivedAppletFrame.java) > at java.lang.Thread.run(Thread.java) > > - > Free e-mail group hosting at http://www.eGroups.com/
Kaffe
Hello, I've tried Kaffe under linux to see if it worked fine. I've found no problem to run jdk classes, but it's really slow: on the class I've tested, it's about 4 times slower than under the jdk 1.1.6 from blackdown. What I would know is if something exists to make it faster ? Is Guavac a good (faster) compiler? Thanks.
Hi, there
Hi, all, I am new to Linux and I'm glad to find out there is a Java port on Linux. I would like to contribute a bit by writing some C programs. However, I don't know the inside of Java so I will need your help. Please write me if I can be of any help. Thanks. -- K
Re: Netscape 4.05 support Java 1.1??
Not really. Check this out (it's been there for a long time): http://developer.netscape.com/software/jdk/download.html There is a special version of 4.05 that suports jdk1.1 Unfortunately, the 4.04 patch won't work with standard 4.05. But, since you 'll have to spend a lot of time downloading, I also suggest using 4.5b2 Dan Kegel wrote: > Chi-Ming Yang wrote: > >I got netscape 4.05 that came with RedHat 5.1. > >Does it support Java 1.1? ... > > No. You need netscape 4.5pr2, I think. > -- 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
Re: How long will it take to port 1.1.7 ?
same here, but in reality it was that admin that was a lot faster than production - ie the paperwork was ready, but the source wasn't - oh well gat BTW, i looked at the POSTed on the archives ( it didn't seem to make it on the list itself for me ) about the JIT from metrowerks. It seems a little strange, in particular the JNI requirements. Its hard to agree, untill u know exactly what u are getting into - and u wont know till u experiment with the source. Somehow i'd like to edit TYA to work with alpha but i havent talked with the TYA folk in charge of its fruition. Catch-22 comes to mind Kevin B. Hendricks wrote: > Hi, > > Sun has messed up its non-commercial source distribution once again! I >
Re: How long will it take to port 1.1.7 ?
In mail.java-linux "Kevin B. Hendricks" <[EMAIL PROTECTED]> writes: >As for how long it will take to port 1.1.7? >This will depend on how many changes were made to the source from 1.1.6. >Most of our diffs should apply directly but we will have to apply them by >hand to each file to make sure that our patch does not mess up a new fix >added by Sun. Do your patches go back to Sun to be integrated into their sources? -- Andrew Burgess [EMAIL PROTECTED] Available for software contract work: www.scruz.net/~cichlid
Re: Hi, there
>Hi, all, > >I am new to Linux and I'm glad to find out there is a Java port on Linux. As always, the coolest Operating system on the planet also has a Java Compiler (actually, quite a few 8-) )... For all things Java and Linux, goto http://java.blackdown.org/java-linux.html >I would like to contribute a bit by writing some C programs. However, I >don't know the inside of Java so I will need your help. Please write me if >I can be of any help. Thanks. To learn Java, there are lots of on-line training facilities available: I've got a few links on my own web-site: http://www.ozemail.com.au/~dbuddrige - at the bottom of the intro-page which will give you some basic intro's... there's also a bunch of stuff that I've just discovered and not had time to put on my web-page including: http://users.neca.com/vmis/java.html http://www.waite.com/ezone/ezone/ http://www.execpc.com/~eboegel/html/java/java.html http://sunsite.unc.edu/javafaq/ Also, if you run a search through www.yahoo.com (having gone to the options and selected the "AND" facility and put the words "jdk linux java" you'll get a list of other stuff to check out... but this should keep you out of mischeif for a while 8-) Take care David Buddrige. > >-- >K > >
