First, check that the class can be seen by Java, using javap:
javap CustomObject It probably cannot: possible reasons are: a) It's in a package, in which case is should be in a directory that matches the package and rooted from a segment in the CLASSPATH (e.g., if the package is foo.bar, then perhaps in \java11\classes\foo\bar) b) It's not in a package but CLASSPATH does not include the current directory ("."). Mike Cowlishaw, IBM Fellow, IBM UK Laboratories mailto:[hidden email] [http://www2.hursley.ibm.com] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to [hidden email] with the following message in the body of the note unsubscribe ibm-netrexx <e-mail address> |
There's something horribly wrong with OS/2's java 1.1.4.
I was experiencing weirdnesses much like the one described some messages ago (a class not found), but this problem probably is different. I have a NetRexx program that generates other NetRexx and Java programs: under OS/2, when it invokes javac it produces a bad .class file, that from there on cannot be seen by Java. An attempt to look at it with javap gives: Error: Class not found in '.\.\nrio\reg.class' Error: bad class format.\.\nrio\reg.classwrong magic: 1772114341, expected -8892 75714 Repeated ad libitum (until I press CTRL+C). Now the weird thing is, this doesn't happen under Linux and/or Windows 95. The interesting part of the problem comes from the fact that if I compile by issueing javac on the very same .java file, the .class is produced well and it can be seen, used and perused by other Java classes. There are other general weirdnesses in the current JDK 1.1.4: I don't know why, but my DBF/QIF to MBase import routines tend to fail when run under OS/2 (same classes, same DBs, same computer but different o.s. make it work as expected, and as it should). These are NetRexx classes, but I am sure that if I rewrote everything in Java-Java the final outcome would be the very same. The programmer's 6th sense. Finally, I had to put every List in Panels, instead that directly into a Frame, because if : A) a program is grown over a certain size, and B) you put a List into a Frame, your program bombs. All of the above with and without JIT, with and without latest Java refresh. Bottom line: the thing is fast (possibly the fastest I've seen), but unreliable. [I am sure it will improve, though] Max ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to [hidden email] with the following message in the body of the note unsubscribe ibm-netrexx <e-mail address> |
>There's something horribly wrong with OS/2's java 1.1.4.
> Max, is this the 01/21/98 update that you're running? Also, which version of OS/2, 3.0 or 4.0? I've had such bad luck with this update drop, that I've back leveled to the previous one dated 12/05/97. The older one is slower, no doubt about it, but at least things run to completeion and no PM corruption. >Bottom line: the thing is fast (possibly the fastest I've seen), but >unreliable. [I am sure it will improve, though] > Agreed. I'm anxious for the speed improvment. So much so, I "mixed and matched" some of the modules from the 012198 drop with the 120597 drop... No real luck to report. However, (no recommendations here) using the 12/05 version of JAVAI.DLL in the 01/21 update allows it to run on my machine... -- /-------------------------------------\ | Jerry McBride | | | | ([hidden email] | \-------------------------------------/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to [hidden email] with the following message in the body of the note unsubscribe ibm-netrexx <e-mail address> |
Ciao,
> >There's something horribly wrong with OS/2's java 1.1.4. > > > > Max, is this the 01/21/98 update that you're running? Also, which > version of OS/2, 3.0 or 4.0? Yes, it's the 21/1/98, OS/2 4.0 not fixpak-ed. > Agreed. I'm anxious for the speed improvment. So much so, I "mixed > and matched" some of the modules from the 012198 drop with the > 120597 drop... No real luck to report. However, (no recommendations > here) using the 12/05 version of JAVAI.DLL in the 01/21 update > allows it to run on my machine... I'd like to correct the aim of my previous post: I was only implying that if something fails when it shouldn't, well if it is OS/2-related it could be because of this weird JVM. Max ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to [hidden email] with the following message in the body of the note unsubscribe ibm-netrexx <e-mail address> |
Free forum by Nabble | Edit this page |