Where is sun.jdbc.odbc package?
Hello, I cannot find the sun.jdbc.odbc package in the blackdown JDK 1.1.6 port for PC's. Is this a bug or a feature? And if this driver doesn't work for Linux, do you know where I can get a working one? Thanks in advance. -- Martin Monsorno mailto: [EMAIL PROTECTED]
Re: Write Once Run Anywhere?
Steve Cohen wrote: > > I have built an application and an applet using jdk 1.1.6 under linux > RedHat 5.0. Both the application and the applet (which use much of the > same code) compile and work under linux. > When I copy the class files to a Win95 system, they fail with > NoClassDefFoundError. > If, instead, I copy the .java files to the Win95 system and compile them > there, then again, both the applet and the application run exactly as > they did under linux. > > Why could this be happening? If what you claim is true, then this is really worthy of further investigation. The problem of Java WORA is usually a lot more subtle then this, it is usually something along the line of slight differences in behaviour, GUI for example. It shouldn't be as gross as what you described. Ming-Ching
Re: Write Once Run Anywhere?
Steve Cohen wrote: > > No, that's not it. The classpath is right. With the same classpath, under > Win95, the copied CLASS files fail, but compiled source files work. You're not using a Microsoft Java VM (/compiler) ? I've never used them but from what I hear, they like to 'do their own thing'. -- Ross
Re: Write Once Run Anywhere?
Rob Nugent wrote: > Steve Cohen wrote: > > > No, that's not it. The classpath is right. With the same classpath, under > > Win95, the copied CLASS files fail, but compiled source files work. > > You might want to check that you didn't intrduce any problems when transferring > the files to Win95 e.g. by a) accidentally coercing the file name to the wrong > case or b) if you ftp'd them make sure they were ftp'd in binary mode. > > We have a project here with over 400 class files that work just fine on > WinNT/Win95/Linux, AIX etc Us too, > 50,000 lines of 100% Java. Windows NT/95 is a bit more reliable than other platforms as the JVM is from Javasoft (except of course for the Date handling screw up in the various 1.1.x versions) -- Regards, Mick. Michael J. Bell, Consultant Mail: [EMAIL PROTECTED] Advanced Technology Division Web: www.cmgplc.com CMG PLCTel:+44 (0) 171 592 4000 London
Re: Swing menu problem
I stand corrected. I don't know what I was thinking exactly. I tried this again with v4a and it works fine. I guess it has been one of those days. My apologies for any headaches I may have caused. Thanks you Juergen for catching my mistake. Unfortunately I am still having Socket problems with v4a (in code that I did not write), so I am doomed be annoyed by the older jdk's broken menus until there is a fix for the current version. Thanks and sorry. --jason On 01-Oct-98 Juergen Kreileder wrote: >> Jason Dillon writes: > > Jason> I have sent mail to [EMAIL PROTECTED] describing > Jason> the problem. I included this code to test the menus as > Jason> well: > > [...] > > Jason, > > I've tried your example with swing-1.0.3, swing-1.1beta2 and various > jdk versions. v4a, v5 work fine, only v2 shows the bug you described. > > > Jürgen > > -- > Juergen Kreileder, Universitaet Dortmund, Lehrstuhl Informatik V > Baroper Strasse 301, D-44221 Dortmund, Germany > Phone: ++49 231/755-5806, Fax: ++49 231/755-5802
Re: v4 patches?
The Glyph writes: > Where can I retrieve a precompiled v4 version of the i386 port? I've not > seen it on ANY of the mirrors, or the website. Only v2. The mirror that has "tux.org" as part of the host name (it's in North America) has a copy of v4a. > --glyph > > On 1 Oct 1998, Juergen Kreileder wrote: > > > > The Glyph writes: > > > > Glyph> Could you please release a version with the v4 patches > > Glyph> developed by the PowerPC linux java port? I've noticed that > > Glyph> a number of AWT bugs in v2 were fixed in v4, yet the Intel > > Glyph> verson doesn't have these fixes yet. > > > > There is a v4 version for i386 too and there should be no difference > > between the AWT parts of the ppc and i386 versions because the source > > is the same. > > > > > > Juergen > > > > -- > > Juergen Kreileder, Universitaet Dortmund, Lehrstuhl Informatik V > > Baroper Strasse 301, D-44221 Dortmund, Germany > > Phone: ++49 231/755-5806, Fax: ++49 231/755-5802 > > >
Re: JDK 1.2 Support for CORBA
> I needed CORBA support for Linux as well. At time I was not aware of > any free Java ORB availbale so I did the following... I unzipped > classes.zip from JDK1.2beta3 > for win32 and picked out the stuff related to CORBA (something like > org.omg.corba.*) > and re-zipped it as OMGCORBA.zip). I used this class archive > successfully under Linux!!! I admit it is a bit of hacking, but it > proves the portability of Java (at least of > the ORB implemented by JavaSoft). > How would I be able to generate the java code from the IDL files? hoongshen
Re: Write Once Run Anywhere?
Sean Starkey wrote: > On Wed, 30 Sep 1998, Steve Cohen wrote: > > > I have built an application and an applet using jdk 1.1.6 under linux > > RedHat 5.0. Both the application and the applet (which use much of the > > same code) compile and work under linux. > > When I copy the class files to a Win95 system, they fail with > > NoClassDefFoundError. > > If, instead, I copy the .java files to the Win95 system and compile them > > there, then again, both the applet and the application run exactly as > > they did under linux. > > > > Why could this be happening? > > Did you check your CLASSPATH? I compile things on Linux all the time > and run them in Win95. I compile things on Digital Unix and run them > in Linux and Win95. I compile things on Win95 and run them in Linux > and Digital Unix. Get the idea? :) > > Sean > > === Friends don't let friends use DOS... === > Sean Starkey [EMAIL PROTECTED] WWW: http://rmi.net/~starkey ICQ: 4863014 > Check out Universe! - http://rmi.net/~starkey/Universe No, that's not it. The classpath is right. With the same classpath, under Win95, the copied CLASS files fail, but compiled source files work.
Re: Write Once Run Anywhere?
Steve Cohen wrote: > No, that's not it. The classpath is right. With the same classpath, under > Win95, the copied CLASS files fail, but compiled source files work. You might want to check that you didn't intrduce any problems when transferring the files to Win95 e.g. by a) accidentally coercing the file name to the wrong case or b) if you ftp'd them make sure they were ftp'd in binary mode. We have a project here with over 400 class files that work just fine on WinNT/Win95/Linux, AIX etc -- Rob Nugent Development Manager UniKix Technologies Europe [EMAIL PROTECTED] Tel: +44 (0) 1489 585503 Fax: +44 (0) 1489 881363
Re: Write Once Run Anywhere?
Ross Golder wrote: > Steve Cohen wrote: > > > > No, that's not it. The classpath is right. With the same classpath, under > > Win95, the copied CLASS files fail, but compiled source files work. > > You're not using a Microsoft Java VM (/compiler) ? > > I've never used them but from what I hear, they like to 'do their own > thing'. > > -- > Ross No. I am using javac on both sides.
Re: Write Once Run Anywhere?
Ming-Ching Tiew wrote: > Steve Cohen wrote: > > > > I have built an application and an applet using jdk 1.1.6 under linux > > RedHat 5.0. Both the application and the applet (which use much of the > > same code) compile and work under linux. > > When I copy the class files to a Win95 system, they fail with > > NoClassDefFoundError. > > If, instead, I copy the .java files to the Win95 system and compile them > > there, then again, both the applet and the application run exactly as > > they did under linux. > > > > Why could this be happening? > > If what you claim is true, then this is really worthy of further > investigation. The problem of Java WORA is usually a lot more subtle > then this, it is usually something along the line of slight > differences in behaviour, GUI for example. It shouldn't be as > gross as what you described. > > Ming-Ching Yes, I do notice some slight differences in GUI, but I'm not concerned about those for now. It's really pretty straightforward. The CLASSPATH is not the issue as transferred class files fail but recompiled source succeeds with the same CLASSPATH. I copied the files across using a DOS floppy disk and the linux mcopy program. The files were copied in jar's, first a jar with the class files and then a different jar with the source files. A key clue is this: When we get the NoClassDefFoundError, the class it is looking for is package.1.class. No such class exists, but package. is the class containing the main method.
Re: Experiences with jdk and lesstif?
Juergen Kreileder wrote: > > > Jason Dillon writes: > > Jason> I had lots of trouble with popup menus using lesstif. I > Jason> was never able to resolve this issue, so I had to stop > Jason> using it. I run into similar problems with netscape. When > Jason> you right-click, the menu pops up but does not return > Jason> control... ever (well after a kill it does). > > The lesstif people fixed this a week ago. > > Juergen
Re: redhat RPM & bin license.
Uncle George wrote: > > Bec of the limited space & bandwidth, I was thinking of providing a > redhat rpm for the various alpha platforms ( 21064, 21164, and the > 21164a processors ). I'd like to create the rpm, and submit the rpm to > redhat for their inclusion into the jewel set distribution. > Am i violating the bin license, by doing so. I suppose if someone else > were to package the bins, and submitted the RPM to redhat they would be > safe, and unencumbered by the license. > gatTAKE ME OFF YOUR MAIL LIST
Re: Write Once Run Anywhere?
-- | From: stevecoh / mime, , , [EMAIL PROTECTED] | To: mctiew / mime, , , [EMAIL PROTECTED] | Cc: java-linux / mime, , , [EMAIL PROTECTED] | Subject: Re: Write Once Run Anywhere? | Date: Thursday, October 01, 1998 2:12PM | | Ming-Ching Tiew wrote: | | > Steve Cohen wrote: | > > | > > I have built an application and an applet using jdk 1.1.6 under linux | > > RedHat 5.0. Both the application and the applet (which use much of the | > > same code) compile and work under linux. | > > When I copy the class files to a Win95 system, they fail with | > > NoClassDefFoundError. | > > If, instead, I copy the .java files to the Win95 system and compile them | > > there, then again, both the applet and the application run exactly as | > > they did under linux. | > > | > > Why could this be happening? | > | > If what you claim is true, then this is really worthy of further | > investigation. The problem of Java WORA is usually a lot more subtle | > then this, it is usually something along the line of slight | > differences in behaviour, GUI for example. It shouldn't be as | > gross as what you described. | > | > Ming-Ching | | Yes, I do notice some slight differences in GUI, but I'm not concerned about | those for now. | It's really pretty straightforward. The CLASSPATH is not the issue as | transferred class files fail but recompiled source succeeds with the same | CLASSPATH. I copied the files across using a DOS floppy disk and the linux | mcopy program. The files were copied in jar's, first a jar with the class | files and then a different jar with the source files. | A key clue is this: When we get the NoClassDefFoundError, the class it is | looking for is package.1.class. No such class exists, but package. | is the class containing the main | method. | Maybe it has something to do with class access modifiers. Is you main class specified as "public". It still doesn't explain why it does give an error on one and not the other, but... Addy.
Re: Where is sun.jdbc.odbc package?
This is not a bug. I think that you can't use the Jdbc-Odbc bridge from linux for two reasons: 1. Linux don't support Odbc. 2. Jdbc-Odbc bridge is not a net-driver (type 3 or 4 driver) and you can use it only on local Pc. bye Stefano [EMAIL PROTECTED] On Thu, 1 Oct 1998 [EMAIL PROTECTED] wrote: > Hello, > > I cannot find the sun.jdbc.odbc package in the blackdown JDK 1.1.6 port > for PC's. Is this a bug or a feature? > And if this driver doesn't work for Linux, do you know where I can get > a working one? > > Thanks in advance. > > > -- > Martin Monsorno > mailto: [EMAIL PROTECTED] >
Re: Write Once Run Anywhere?
> "Steve" == Steve Cohen <[EMAIL PROTECTED]> writes: Steve> Ming-Ching Tiew wrote: >> If what you claim is true, then this is really worthy of further >> investigation. The problem of Java WORA is usually a lot more subtle >> then this, it is usually something along the line of slight >> differences in behaviour, GUI for example. It shouldn't be as >> gross as what you described. >> >> Ming-Ching Steve> Yes, I do notice some slight differences in GUI, but I'm Steve> not concerned about those for now. It's really pretty Steve> straightforward. The CLASSPATH is not the issue as Steve> transferred class files fail but recompiled source succeeds Steve> with the same CLASSPATH. I copied the files across using a Steve> DOS floppy disk and the linux mcopy program. The files Steve> were copied in jar's, first a jar with the class files and Steve> then a different jar with the source files. A key clue is Steve> this: When we get the NoClassDefFoundError, the class it is Steve> looking for is package.1.class. No such class exists, Steve> but package. is the class containing the main method. What is the exact error message and what is the value of CLASSPATH? javac is written entirely in Java, so it should produce exactly the same results on Linux and Windows. Juergen -- Juergen Kreileder, Universitaet Dortmund, Lehrstuhl Informatik V Baroper Strasse 301, D-44221 Dortmund, Germany Phone: ++49 231/755-5806, Fax: ++49 231/755-5802
Re: JDK 1.2 Support for CORBA
-- | From: hswong / mime, , , [EMAIL PROTECTED] | To: A.KLOS / mime, , , A.KLOS | Cc: drobnic.pavlo / mime, , , [EMAIL PROTECTED]; | java-linux / mime, , , [EMAIL PROTECTED] | Subject: Re: JDK 1.2 Support for CORBA | Date: Thursday, October 01, 1998 9:50AM | | > I needed CORBA support for Linux as well. At time I was not aware of | > any free Java ORB availbale so I did the following... I unzipped | > classes.zip from JDK1.2beta3 | > for win32 and picked out the stuff related to CORBA (something like | > org.omg.corba.*) | > and re-zipped it as OMGCORBA.zip). I used this class archive | > successfully under Linux!!! I admit it is a bit of hacking, but it | > proves the portability of Java (at least of | > the ORB implemented by JavaSoft). | > | How would I be able to generate the java code from the IDL files? Indeed, you need to generate the java source code with the windows JDK. Some other things You also will need to have a C/C++ compiler on Windows, since JavaIDL use the preprocessor of any existing C/C++ compiler (however they recommend MS VC++ 4.2 or higher I think :-( ) I was not able to start the nameserver on Linux. I can't remember what the error message was, but it just didn't work. Addy
Re: Trouble installing JDK 1.1.6
David Buddrige wrote: > > Hi all, > > I have recently downloaded JDK 1.1.6 from > ftp.progsoc.uts.edu.au/pub/Linux/java to run on my Redhat 5.1 system... > I've un-tar'ed it into /usr/local/jdk1.1.6, and then added the following > lines to my /etc/profile file > > PATH="$PATH:/usr/X11R6/bin:/usr/local/jdk1.1.6/bin" > export JAVA_HOME="/usr/local/jdk1.1.6 > export CLASSPATH="/usr/local/jdk1.1.6/lib/classes.zip" > > I then wrote a very basic "hello world" program, and attempted to > compile it, using javac... however I get the message: > > No library path set. > > Can anyone tell me what I have done wrong? I've been searching through > the archives here, and reading through the readme file, however I can't > see what I've missed... > > Ta > > David Buddrige. > [EMAIL PROTECTED] take me off your mail list
Re: Write Once Run Anywhere?
On Thu, Oct 01, 1998 at 12:25:21, Rob Nugent said: > You might want to check that you didn't intrduce any problems when > transferring the files to Win95 e.g. by a) accidentally coercing the file > name to the wrong case or b) if you ftp'd them make sure they were ftp'd in > binary mode. I'd have to second this as I've sometimes had case problems with the letters in the filenames when moving between (Solaris and 95) and (Linux and 95.) I never really had the time to track it down beyond this or anything, usually just a recompiling took care of it. (This problem stems from 95 being a caseless beast.) Keith -- Keith T. Garner [EMAIL PROTECTED] STR Consultant http://www.str.com/ [EMAIL PROTECTED] "Its hard to play pin the tail on the donkey when its running around kicking you." -- Illinois Little Lotto radio commercial
Re: Write Once Run Anywhere?
There's definitely no problem moving .class files between Linux and Win95, I do it all the time myself and it works fine. >I copied the files across using a DOS floppy disk and the linux mcopy >program. Did mcopy properly preserve the long filenames, the case, etc? Newer versions get this mostly right, but you may have better luck zipping everything first.
Re: Write Once Run Anywhere?
Did you try to run the one generated by Win95 on Linux? > > > I have built an application and an applet using jdk 1.1.6 under linux > > > RedHat 5.0. Both the application and the applet (which use much of the > > > same code) compile and work under linux. > > > When I copy the class files to a Win95 system, they fail with > > > NoClassDefFoundError. > > > If, instead, I copy the .java files to the Win95 system and compile them > > > there, then again, both the applet and the application run exactly as > > > they did under linux. > > > > > > Why could this be happening? - See the original message at http://www.egroups.com/list/java-linux/?start=3764 -- Free e-mail group hosting at http://www.eGroups.com/
Re: Write Once Run Anywhere?
At 12:15 01/10/98 -0400, Nelson Minar wrote: >There's definitely no problem moving .class files between Linux and >Win95, I do it all the time myself and it works fine. > >>I copied the files across using a DOS floppy disk and the linux mcopy >>program. > >Did mcopy properly preserve the long filenames, the case, etc? Newer >versions get this mostly right, but you may have better luck zipping >everything first. I never transfer *class* files directly, I always transfer a jar archive. I've never had any problems with execution switching jars between Linux and Win95/NT. Andreas Dr Andreas Schöter, Intertrader Ltd http://www.intertrader.com Tel: +44(0)131 475 7108, Fax: +44(0)131 475 7109
strange problem with jdk1.1.6v4 and debian....
Hello,
spurious thing
i am developping several things, and since now had no problem executing them...
but now i ran into the following problem:
i have a class HelpBrowser that i began to make with netbeans, this class
includes a method
public static void main(java.lang.String[] args) {
new HelpBrowser ().show ();
}
the classpath is set to:
echo $CLASSPATH
/usr/local/java/lib/classes.zip:/home/bboett/java/:/home/bboett/java/jmud/common:/home/bboett/java/jmud/server:/home/bboett/java/JLex:/home/bboett/java/cup:/home/bboett/java/JavaCC:/home/bboett/java:/home/bboett/java/swing/swing.jar:/home/bboett/java/swing/windows.jar:/home/bboett/java/swing/motif.jar:/home/bboett/java/swing/metal.jar:/home/bboett/java/swing/organic.jar:/home/bboett/java/swing/mac.jar:.:.
the compile ist fine, no probs, but when i try to execute:
java HelpBrowser
Can't find class HelpBrowser
and i do not know what to do to get it strange enough when executed through
netbeans it executes
ciao
bboett
==
acount at earthling net
http://erm6.u-strasbg.fr/~bboett
===
Unsolicited commercial email is NOT welcome at this email address
To contact me replace acount by bboett in above addresses
Re: Trouble installing JDK 1.1.6
John Gulizia writes: > David Buddrige wrote: > > > > Hi all, > > > > I have recently downloaded JDK 1.1.6 from > > ftp.progsoc.uts.edu.au/pub/Linux/java to run on my Redhat 5.1 system... > > I've un-tar'ed it into /usr/local/jdk1.1.6, and then added the following > > lines to my /etc/profile file > > > > PATH="$PATH:/usr/X11R6/bin:/usr/local/jdk1.1.6/bin" > > export JAVA_HOME="/usr/local/jdk1.1.6 > > export CLASSPATH="/usr/local/jdk1.1.6/lib/classes.zip" > > > > I then wrote a very basic "hello world" program, and attempted to > > compile it, using javac... however I get the message: > > > > No library path set. > > > > Can anyone tell me what I have done wrong? I've been searching through > > the archives here, and reading through the readme file, however I can't > > see what I've missed... > > > > Ta > > > > David Buddrige. > > [EMAIL PROTECTED] > > > take me off your mail list Here's a clue: DO NOT send to the list (ANY LIST) to be removed from it. That is wrong, Wrong, WRONG! Bad! DON'T DO IT! For almost all mailing lists anywhere, if you send to -request instead of (now, let me be real clear on what that means. That does NOT mean "angle bracket l i s t n a m e close angle bracket", it means just whatever the mailing list name is). In your case, you *should* have mailed to [EMAIL PROTECTED] NOTE the -request in the mail address. Often just sending the word "unsubscribe" (again, to be very clear, this is spelled u n s u b s c r i b e no quotes or anything) in the body of the message is sufficient. Go forth and sin no more. Steve
Stop mail
Please, stop emailing Thanks
Re: Write Once Run Anywhere?
> "Steve" == Steve Cohen <[EMAIL PROTECTED]> writes: > I copied the files across using a DOS floppy disk and the linux > mcopy program. The files were copied in jar's, first a jar with the class > files and then a different jar with the source files. > A key clue is this: When we get the NoClassDefFoundError, the class it is > looking for is package.1.class. No such class exists, but package. > is the class containing the main > method. My bet is that the DOS floppy stage is corrupting your filenames. My current system is a peer-peer app with 1500 classfiles that are compiled on and run on all permutations of win95/winnt/macos/solaris/linux with nary a problem (well, ok - so some MacOS VMs cannot deal with some zip formats...). For moving stuff between linux and the DOS world, I usually use samba - if I must use a floppy/ZipDisk, I'll pre-zip my class tree. good luck, -mik -- Michael Thome ([EMAIL PROTECTED])
JEditorPane problem...
hello, another problem i try to instantiate a JEditorPane and get strange Errors: java.lang.NumberFormatException: 98% at java.lang.Integer.parseInt(Integer.java) at java.lang.Integer.valueOf(Integer.java) at com.sun.java.swing.text.html.HRuleView.(HRuleView.java:62) at com.sun.java.swing.text.html.HTMLEditorKit$HTMLFactory.create(HTMLEditorKit.java:734) at com.sun.java.swing.text.CompositeView.loadChildren(CompositeView.java:66) at com.sun.java.swing.text.CompositeView.setParent(CompositeView.java:158) at com.sun.java.swing.plaf.basic.BasicTextUI$RootView.setView(BasicTextUI.java:749) at com.sun.java.swing.plaf.basic.BasicTextUI.setView(BasicTextUI.java:354) at com.sun.java.swing.plaf.basic.BasicTextUI.modelChanged(BasicTextUI.java:345) at com.sun.java.swing.plaf.basic.BasicTextUI$UpdateHandler.propertyChange(BasicTextUI.java:1105) at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:103) at com.sun.java.swing.JComponent.firePropertyChange(JComponent.java:2604) at com.sun.java.swing.text.JTextComponent.setDocument(JTextComponent.java:309) at com.sun.java.swing.JEditorPane.setPage(JEditorPane.java:159) at com.sun.java.swing.JEditorPane.(JEditorPane.java:81) at HtmlPanel.(HtmlPanel.java:48) at test.(test.java:44) at test.main(test.java:56) the offending line of my code: html = new JEditorPane(url); (with an empty constructor is does exactly the same) don't know if this is a linux-specific problem. i am using the jdk1.1.6v4 and swing1.0.3 ciao bboett == acount at earthling net http://erm6.u-strasbg.fr/~bboett === Unsolicited commercial email is NOT welcome at this email address To contact me replace acount by bboett in above addresses
Re: strange problem with jdk1.1.6v4 and debian....
At 11:48 AM 10/1/98 -0700, you wrote:
>Hello,
>
>spurious thing
>i am developping several things, and since now had no problem executing
them...
>but now i ran into the following problem:
>
>i have a class HelpBrowser that i began to make with netbeans, this class
>includes a method
>public static void main(java.lang.String[] args) {
>new HelpBrowser ().show ();
> }
>
>the classpath is set to:
> echo $CLASSPATH
>/usr/local/java/lib/classes.zip:/home/bboett/java/:/home/bboett/java/jmud/c
ommon:/home/bboett/java/jmud/server:/home/bboett/java/JLex:/home/bboett/java
/cup:/home/bboett/java/JavaCC:/home/bboett/java:/home/bboett/java/swing/swin
g.jar:/home/bboett/java/swing/windows.jar:/home/bboett/java/swing/motif.jar:
/home/bboett/java/swing/metal.jar:/home/bboett/java/swing/organic.jar:/home/
bboett/java/swing/mac.jar:.:.
>
>the compile ist fine, no probs, but when i try to execute:
> java HelpBrowser
>Can't find class HelpBrowser
>
>and i do not know what to do to get it strange enough when executed
through
>netbeans it executes
Could it be that the classpath gets truncated at 256 chars or something
like that? Try moving the "." to the front and see if that fixes/changes
the problem.
Douglas Toltzman
Re: Write Once Run Anywhere?
Steve Cohen wrote: > Sean Starkey wrote: > > > On Wed, 30 Sep 1998, Steve Cohen wrote: > > > > > > Why could this be happening? > > > > Did you check your CLASSPATH? I compile things on Linux all the time > > and run them in Win95. I compile things on Digital Unix and run them > > in Linux and Win95. I compile things on Win95 and run them in Linux > > and Digital Unix. Get the idea? :) > > > > Sean > > No, that's not it. The classpath is right. With the same classpath, under > Win95, the copied CLASS files fail, but compiled source files work. Just to eliminate any obvious problems. You're not using a unix classpath under windows are you? ../Martin
Swing error
__
Syed Mubeen Tata Institute of Fundamental Research,
[EMAIL PROTECTED] P.B #1234,
80-334-5615 or 4062 or 3035 IISc Campus,
Resi :3452848 Bangalore - 560 012. INDIA.
___
Hi Everybody,
I have installed Swing1.03 on linux5.1 and tried all the demo
examples working fine,but when i tried to compile the following
program.
import java.awt.*;
import java.awt.event.*;
import com.sun.java.swing.*;
import java.applet.*;
public class SimpleSwing extends Applet{
JRadioButton metalButton, motifButton, windowsButton;
JButton button;
public void init()
{
JButton button = new JButton("Hello, world");
JRadioButton metalButton = new JRadioButton(metal);
add(button);
add(metalButton);
validate();
button.show();
metalButton.show();
}
}
ERRORS SHOWN
SimpleSwing.java:3: Package com.sun.java.swing not found in import.
import com.sun.java.swing.*;
^
1 error
Anybody tell me what the error is.
java crashes when starting a frame (more info)
Hi again! I left out some information that might help in solving of my question. An output like this one is printed The output when it crashes (java and appletviewer). SIGSEGV 11* segmentation violation stackbase=0xb430, stackpointer=0xb334 Full thread dump: "Finalizer thread" (TID:0x4065e208, sys_thread_t:0x413a2f04, state:R) prio=1 "Async Garbage Collector" (TID:0x4065e250, sys_thread_t:0x41381f04, state:R) prio=1 "Idle thread" (TID:0x4065e298, sys_thread_t:0x41360f04, state:R) prio=0 "Clock" (TID:0x4065e088, sys_thread_t:0x4133ff04, state:CW) prio=12 "main" (TID:0x4065e0b0, sys_thread_t:0x81f1808, state:R) prio=5 *current thr ead* java.lang.Runtime.loadLibrary(Runtime.java) java.lang.System.loadLibrary(System.java) sun.awt.motif.MToolkit.(MToolkit.java:46) java.awt.Toolkit.getDefaultToolkit(Toolkit.java:402) java.awt.Window.getToolkit(Window.java:239) java.awt.Frame.addNotify(Frame.java:204) java.awt.Window.show(Window.java:150) Test.(Test.java:23) Test.main(Test.java:28) Monitor Cache Dump: java.lang.Object@1080434584/1080795504: owner "main" (0x81f1808, 1 entry) java.lang.Class@1080434944/1080797144: owner "main" (0x81f1808, 1 entry) java.lang.Runtime@1080435440/1080801128: owner "main" (0x81f1808, 1 entry) Registered Monitor Dump: Thread queue lock: Name and type hash table lock: String intern lock: JNI pinning lock: JNI global reference lock: BinClass lock: Class loading lock: Java stack lock: Code rewrite lock: Heap lock: Has finalization queue lock: Finalize me queue lock: Monitor IO lock: Child death monitor: Event monitor: I/O monitor: Alarm monitor: Waiting to be notified: "Clock" (0x4133ff04) Monitor registry: owner "main" (0x81f1808, 1 entry) Thread Alarm Q: IOT trap/Abort - jdb crashes with the following message: File not found (libnet_g.so) java.lang.UnsatisfiedLinkError: no net in shared library path at java.lang.Runtime.loadLibrary(Runtime.java) at java.lang.System.loadLibrary(System.java) at at sun.tools.ttydebug.TTY.main(TTY.java:1534) Installed libs and packages -- Dist: SuSE 5.3 jdk: jdk1.1.6v2 libc: lib5 output from ldconfig -D /sbin/ldconfig: version 1.9.9 /usr/X11R6/lib: libforms.so.0.88 => libforms.so.0.88 libXtst.so.6 => libXtst.so.6.1 libXt.so.6 => libXt.so.6.0 libXp.so.6 => libXp.so.6.2 libXmu.so.6 => libXmu.so.6.0 libXi.so.6 => libXi.so.6.0 libXext.so.6 => libXext.so.6.3 libXaw.so.6 => libXaw.so.6.1 libXIE.so.6 => libXIE.so.6.0 libX11.so.6 => libX11.so.6.1 libSM.so.6 => libSM.so.6.0 libPEX5.so.6 => libPEX5.so.6.0 libICE.so.6 => libICE.so.6.3 libXpm.so.4 => libXpm.so.4.10 libXaw3d.so.6 => libXaw3d.so.6.1 libtk4.2.so => libtk4.2.so libtksam4.2.so => libtksam4.2.so libtixsam4.1.7.6.so => libtixsam4.1.7.6.so libtix4.1.7.6.so => libtix4.1.7.6.so libtclsam7.6.so => libtclsam7.6.so libtiff.so.3 => libtiff.so.3.4.37 librle.so.1 => librle.so.1.0.0 libpng.so.2 => libpng.so.2.1.0 libppm.so.1.0 => libppm.so.1.0.0 libpnm.so.1.0 => libpnm.so.1.0.0 libpgm.so.1.0 => libpgm.so.1.0.0 libpbm.so.1.0 => libpbm.so.1.0.0 libjpeg.so.6 => libjpeg.so.6.0.1 libgif.so.3.0 => libgif.so.3.0 libfbm.so.1 => libfbm.so.1.2.0 libz.so.1 => libz.so.1.1.2 /usr/i486-linux/lib: /usr/i486-linuxaout/lib: libm.so.4 => libm.so.4.6.27 libdb.so.1 => libdb.so.1.85.1 libcurses.so.0 => libcurses.so.0.1.2 /usr/local/lib: libtix4.1.8.0.so => libtix4.1.8.0.so libtixsam4.1.8.0.so => libtixsam4.1.8.0.so libtk8.0.so => libtk8.0.so libtcl8.0.so => libtcl8.0.so libesd.so.0 => libesd.so.0.0.0 libFnlib.so.0 => libFnlib.so.0.3.0 libImlib.so.1 => libImlib.so.1.7.0 libgdk_imlib.so.1 => libgdk_imlib.so.1.7.0 libgtk.so.1 => libgtk.so.1.0.4 libgdk.so.1 => libgdk.so.1.0.4 libglib.so.1 => libglib.so.1.0.4 /usr/local/lib/itcl: libitk2.2.so => libitk2.2.so libtk4.2i.so => libtk4.2i.so /usr/lib/itcl: libtcl7.6i.so => libtcl7.6i.so /usr/lib: libtcl7.6.so => libtcl7.6.so libexpect5.22.so => libexpect5.22.so libvgagl.so.1 => libvgagl.so.1.3.0 libvga.so.1 => libvga.so.1.3.0 libobjects.so.0 => libobjects.so.0.1.19 libopcodes-2.9.1.0.4.so.0 => libopcodes-2.9.1.0.4.so.0.0.0 libbfd-2.9.1.0.4.so.0 => libbfd-2.9.1.0.4.so.0.0.0 libgpm.so.1 => libgpm.so.1.13 libtermcap.so.2 => libtermcap.so.2.0.8 libcurses.so.1 => libcurses.so.1.0.0 libpthreads.so.1 => libpthreads.so.1.60.4
Re: java crashes when starting a frame (more info)
At 08:21 PM 10/1/98 +0200, you wrote: >Hi again! > >I left out some information that might help in solving of my question. >An output like this one is printed > >The output when it crashes (java and appletviewer). > >SIGSEGV 11* segmentation violation >stackbase=0xb430, stackpointer=0xb334 > >Full thread dump: >"Finalizer thread" (TID:0x4065e208, sys_thread_t:0x413a2f04, state:R) prio=1 >"Async Garbage Collector" (TID:0x4065e250, sys_thread_t:0x41381f04, state:R) > prio=1 >"Idle thread" (TID:0x4065e298, sys_thread_t:0x41360f04, state:R) prio=0 >"Clock" (TID:0x4065e088, sys_thread_t:0x4133ff04, state:CW) prio=12 >"main" (TID:0x4065e0b0, sys_thread_t:0x81f1808, state:R) prio=5 *current thr >ead* >java.lang.Runtime.loadLibrary(Runtime.java) > ... I've seen something like this before. It was immediately after I had updated my JDK from 1.1.3 to 1.1.6 and I discovered that there were still some hooks into the 1.1.3 code. I removed the 1.1.3 and all references to it in paths, etc. and the problem went away. This may be a completely different problem but it could be relevant. Douglas Toltzman
Re: Write Once Run Anywhere?
Am Don, 01 Okt 1998 schrieb Steve Cohen: >I have built an application and an applet using jdk 1.1.6 under linux >RedHat 5.0. Both the application and the applet (which use much of the >same code) compile and work under linux. >When I copy the class files to a Win95 system, they fail with >NoClassDefFoundError. >If, instead, I copy the .java files to the Win95 system and compile them >there, then again, both the applet and the application run exactly as >they did under linux. > >Why could this be happening? I don´t know this. But I have a similar experience: a) open a .ZIP-File with Midnight Commander and copy the class-Files into a linux file system. (as root) b) try to execute the class files -> error. Obviously the class files are corrupt. c) extracting the same ZIP using kzip (as normal user) -> classes are working. I found the same happening with swing ZIP file. So, question: have you used ZIP? regards Wolfgang
Can't import Calender in java.util.Calender
I recently tried to write a program trying import Calender so that I could use it and I got the Error: Class java.util.Calender not found in import. I have my classpath set to include my classes.zip and my swingall.jar and it has worked find on all the other programs I have work on up to now? I even upziped the classes.zip to make sure it contained calender and it did. Can anyone help me with this problem please. -jeff
java crashes when starting a frame
Hi! When I use java (or appletviewer) on the testprograms in the jdk-shipping it crashes. Is there anyone who have seen this before and knows why this happends. I use SuSE-linux 5.3 (it worked under 5.1). An output like this one is printed SIGSEGV 11* segmentation violation stackbase=0xb430, stackpointer=0xb334 Full thread dump: "Finalizer thread" (TID:0x4065e208, sys_thread_t:0x413a2f04, state:R) prio=1 "Async Garbage Collector" (TID:0x4065e250, sys_thread_t:0x41381f04, state:R) prio=1 "Idle thread" (TID:0x4065e298, sys_thread_t:0x41360f04, state:R) prio=0 "Clock" (TID:0x4065e088, sys_thread_t:0x4133ff04, state:CW) prio=12 "main" (TID:0x4065e0b0, sys_thread_t:0x81f1808, state:R) prio=5 *current thr ead* java.lang.Runtime.loadLibrary(Runtime.java) java.lang.System.loadLibrary(System.java) sun.awt.motif.MToolkit.(MToolkit.java:46) java.awt.Toolkit.getDefaultToolkit(Toolkit.java:402) java.awt.Window.getToolkit(Window.java:239) java.awt.Frame.addNotify(Frame.java:204) java.awt.Window.show(Window.java:150) Test.(Test.java:23) Test.main(Test.java:28) Monitor Cache Dump: java.lang.Object@1080434584/1080795504: owner "main" (0x81f1808, 1 entry) java.lang.Class@1080434944/1080797144: owner "main" (0x81f1808, 1 entry) java.lang.Runtime@1080435440/1080801128: owner "main" (0x81f1808, 1 entry) Registered Monitor Dump: Thread queue lock: Name and type hash table lock: String intern lock: JNI pinning lock: JNI global reference lock: BinClass lock: Class loading lock: Java stack lock: Code rewrite lock: Heap lock: Has finalization queue lock: Finalize me queue lock: Monitor IO lock: Child death monitor: Event monitor: I/O monitor: Alarm monitor: Waiting to be notified: "Clock" (0x4133ff04) Monitor registry: owner "main" (0x81f1808, 1 entry) Thread Alarm Q: IOT trap/Abort - /Micke
Internet Casino Lottery - Enter at No Cost
Enter at No Cost! The time has come to enjoy casino games from the comfort of your home. Find out where to play all of your favorite casino games online securely. Blackjack, Craps, Slot Machines, Roulette, Baccarat, Bingo & Much More! The best odds. Huge pay-outs. Top-Rated Customer Service. For more information, reply below IMMEDIATELY and you will be GUARANTEED TO RECEIVE between $25.00 and $10,000.00. What better way to visit the best Casino's on the Internet? Use their dollars and enjoy the best online Casino's the world has to offer. If you enjoy Casino gaming then this is for you. You need to reply today for more information and guaranteed acceptance. You must respond NOW at [EMAIL PROTECTED] and type "SHOW ME THE MONEY" in the Subject line of the message.
Re: JEditorPane problem...
At 12:12 PM -0700 10/1/98, Bruno Boettcher wrote: >hello, > >another problem > >i try to instantiate a JEditorPane and get strange Errors: >java.lang.NumberFormatException: 98% >at java.lang.Integer.parseInt(Integer.java) >at java.lang.Integer.valueOf(Integer.java) >at com.sun.java.swing.text.html.HRuleView.(HRuleView.java:62) swing don't like your tag. It's expecting an Integer number and you give it "98%" Try swing1.1b2, swing 1.1 have a better HTML parser. Cheers, Paul
java.lang.reflect.Method invoke bug?
Hi! I have continous problems trying to call "invoke" in java.lang.reflect.Method class. I spend several hours and have the impression that it is not implemented. I use redhat-5.1 and jdk-1.1.6sn-1.1glibc package 1) Did somebody ever happens to run "invoke"? 2) What is the most stable and/or complete Java for Linux distribution? ( I see many choices on ftp.redhat.com ) Thanks -- Andrew
Re: java.lang.reflect.Method invoke bug?
On Thu, 01 Oct 1998 19:58:11 -0400, Andrew V. Shuvalov wrote:
>Hi!
>
> I have continous problems trying to call "invoke" in
>java.lang.reflect.Method class. I spend several hours and have the
>impression that it is not implemented. I use
>redhat-5.1 and
>jdk-1.1.6sn-1.1glibc package
>
>1) Did somebody ever happens to run "invoke"?
>2) What is the most stable and/or complete Java for Linux distribution?
>( I see many choices on ftp.redhat.com )
I use Invoke in my server support classes all the time.
This has worked in the Linux JDK since 1.1.5 at least (I think
that was when this code went into service on a Linux box)
This code is currently running in all JDK 1.1.6 versions on Linux.
(Including the current test of the v5 changes)
Here is an example of the code:
/**
* This method is called to process the command that this
* entry is for. It uses reflection to find the command
* and process it in the handler object.
*
* @param context The command context that the command handler will need.
*/
public void HandleCommand(CommandContext context)
{
if (Method == null)
{
// We assume that this is to be handled by the
// context itself...
context.nullMethod();
}
else
{
CommandProcessor handler=context.getProcessor();
// First, get the class of the handler object...
java.lang.Class handlerClass=handler.getClass();
// Just in case the method is not there...
try
{
// Now, get the method for this command...
java.lang.reflect.Method handlerMethod;
handlerMethod=handlerClass.getMethod(Method,HandlerArgTypes);
// Put together the argument array...
Object[] args=new Object[1];
args[0]=context;
// Just in case there is a access/invoke violation...
try
{
// Finally, we need to invoke the method...
handlerMethod.invoke(handler,args);
}
catch (java.lang.IllegalAccessException e)
{
// Let the user know (and thus let the system
know)
// This should really never happen.
context.Error(e.toString());
}
catch (java.lang.reflect.InvocationTargetException e)
{
// Let the user know (and thus let the system
know)
// This should really never happen.
context.Error(e.toString());
}
}
catch (java.lang.NoSuchMethodException e)
{
// Let the user know (and thus let the system know)
// This should really never happen.
context.Error(e.toString());
}
}
}
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: Write Once Run Anywhere?
Steve, did you check that you are using "binary transfer" to transfer the class files? The java files are not affected by using ASCII transfer, but the class files are. Actually, we never had any problems running our projects (developed on Linux and Solaris) on Windows VMs. Ulli
Re: Swing error
Syed Mubin wrote:
> ___
> ___
> Syed Mubeen Tata Institute of Fundamental Research,
> [EMAIL PROTECTED] P.B #1234,
> 80-334-5615 or 4062 or 3035 IISc Campus,
> Resi :3452848 Bangalore - 560 012. INDIA.
> ___
>
>
> Hi Everybody,
>
> I have installed Swing1.03 on linux5.1 and tried all the demo
> examples working fine,but when i tried to compile the following
> program.
>
> import java.awt.*;
> import java.awt.event.*;
> import com.sun.java.swing.*;
> import java.applet.*;
>
> public class SimpleSwing extends Applet{
> JRadioButton metalButton, motifButton, windowsButton;
> JButton button;
> public void init()
> {
> JButton button = new JButton("Hello, world");
> JRadioButton metalButton = new JRadioButton(metal);
> add(button);
> add(metalButton);
> validate();
> button.show();
> metalButton.show();
> }
> }
>
> ERRORS SHOWN
> SimpleSwing.java:3: Package com.sun.java.swing not found in import.
> import com.sun.java.swing.*;
>^
> 1 error
>
> Anybody tell me what the error is.
Have you added the full pathname for "swingall.jar" to your CLASSPATH?
Cynthia Jeness
Re: Can't import Calender in java.util.Calender
At 02:23 PM 10/1/98 -0500, you wrote: >I recently tried to write a program trying import Calender so that I >could use it and I got the Error: Class java.util.Calender not found in >import. I have my classpath set to include my classes.zip and my >swingall.jar and it has worked find on all the other programs I have >work on up to now? I even upziped the classes.zip to make sure it >contained calender and it did. Can anyone help me with this problem >please. >-jeff Are you really spelling "Calendar" as "Calender" ? Douglas Toltzman
Re: Write Once Run Anywhere?
Ross Golder wrote: > Steve Cohen wrote: > > > > No, that's not it. The classpath is right. With the same classpath, under > > Win95, the copied CLASS files fail, but compiled source files work. > > You're not using a Microsoft Java VM (/compiler) ? > > I've never used them but from what I hear, they like to 'do their own > thing'. > > -- > Ross I don't think that microsoft's vm causes particular problems. I have repeatedy compiled stuff under linux and used under microsoft's sdk3.1 and vice versa without many problems. (the only thing is that I am using NT and not win95...) Don't fear of the bill ;-} -- 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: java.lang.reflect.Method invoke bug?
Oh, i see, thanks - now it works. Andrew
javac segmentation fault
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. -Eric
Re: Write Once Run Anywhere?
Thanks to all who responded to my plea for help with the problem of not being able to run class files generated under linux under Win95, while if the same files were recompiled under Win95, they run fine. However, most of your proposed solutions fall wide of the mark. 1) Classpath is irrelevant since the Classpath under Win95 is the same regardless of whether the copied .class files or newly compiled .class files are run. 2) Many wrote about the difficulties with copying files between the two systems. This is not relevant either, since the files actually copied are jar files containing the class files. This should be equivalent to zipping the files. 3) Others have asked how the files were transferred. My results are the same using binary-mode FTP or passing data by floppy disk. 4) Other points made about 8.3 file names or wrong-case filenames do not seem to apply here either, especially because the means of transmission was a jar file which preserved case names. 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: Write Once Run Anywhere?
Steve Cohen wrote: > 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. I dont know why they are not produce under linux but these $1.class are inner classes. They should be there unless you are compiling with jdk 1.02 or earlier and even then you would get a syntax error on compile.
ATTENTION: Java and SEGFAULTS
Hi, I will try this one last time. If you are getting seg-faults when using either java or javac upon startup they are caused by incompatible shared libraries (99 times out of 100). Before submitting a bug report try the following: - remove libdl.so and libc.so from $JAVA_HOME/lib/xxx/green_threads/ where xxx is your machine architecture (i.e. i386, ppc, i586, etc) 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
Netscape 4.06 running Java Applets with sound files.
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)
Re: Write Once Run Anywhere?
>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. >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?
Re: javac segmentation fault
Someone enlighted me that I need to install the absolutely latest glibc RPM files. I found them at: ftp://ftp.redhat.com/pub/redhat/redhat-5.0/updates/i386/ So far, this seems to have fixed my problems. -Eric - Original message below - 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. -Eric
EVERYONE: javac segmentation fault
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
