Re: JSDK
I am using the original jsdk20-solaris2-sparc.tar.Z package. See http://jserv.javasoft.com/products/java-server/servlets/index.html
Re: JDK FTP files
On Wed, 2 Sep 1998, Stephen Wynne wrote: > Which of these is what? > > Please take a look at > http://www.blackdown.org/java-linux/docs/faq/FAQ-java-linux-2.html#ss2.3 > and let us know if you still need help. I already read the FAQ and didn't find an answer to my question. The FAQ only tells me in which directory to look. It doesn't say which files in the directory I should get. I would interpret that to mean `get all files', however I can't quite believe that I should need to get *both* the JDK *and* the JRE, as the JRE is only a subset of the JDK (unless I'm mistaken). So what is what, and what do I as a developer need to get? Any help appreciated, Robert - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Robert P Biuk-Aghai, University of Macau, Faculty of Science and Technology http://hyperg.sftw.umac.mo/robert/tel: +853-3974365fax: +853-838314 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Microsoft isn't the answer. Microsoft is the question and the answer is no.
Searching RPM for JDK 1.1.6 libc5
Hi Sorry if this is has been asked before. Is there a RPM for JDK 1.1.6 (sbb), libc 5 version available ? I tried RedHat, but there seems to be only a glibc version or a 1.1.5 RPM. Did I overlook something ? Thanks, Dirk.
How to trace with invocation?
Kevin wrote: > Try invoking the java_g interpreter with the -tm (or was that -t) trace > method option and look for exceptions being throuwn during the class init. How do you do this with the invocation interface? I linked with -ljava_g, but I don't see anything documenting a trace method option in the jni docs. - Dan
Re: JDK FTP files
On Wed, 2 Sep 1998, Robert P. Biuk-Aghai wrote: # I already read the FAQ and didn't find an answer to my question. The # FAQ only tells me in which directory to look. It doesn't say which # files in the directory I should get. I would interpret that to mean # `get all files', however I can't quite believe that I should need to # get *both* the JDK *and* the JRE, as the JRE is only a subset of the # JDK (unless I'm mistaken). So what is what, and what do I as a # developer need to get? You can find the information you're looking for in the JDK 1.1.1 HOWTO: ftp://ce.usu.edu/pub/mirror/linux/JDK/JDK-1.1.1/Java-Linux-1.1.1-HOWTO.txt peace, Marc
serialization
I can't seem to get any of my own classes to successfully implement the Serializable interface under Linux or Irix. I have no problem serializing native objects like java.lang.String or java.lang.Integer. Also, serializing my own classes worked fine using the Sun JDK for Windows95. Is this a known issue on non MS/Sun Platforms? Thanks. -Rob
[Fwd: Distribution of runtime portions]
Rohit Kaila wrote: > > Hi, > > The SUN documentation says that while JRE can be distributed > freely with the Java Applications/Applets, the JDK cannot be > distributed. I wanted to distribute the runtime features of > the JDK ported to linux with my Java application, can I do so > freely ?? > > thanx, > --rohit.
JAVA PROJECT! CODER WANTED!!
DEAR ALL YOU GOOD PEOPLE! I am trying to created a java project work group. If you are the interested, please do connect with me. email==> [EMAIL PROTECTED] some of the project[s] [for fun!] are ==>> 1] creating a very simple windowing manager coded in JAVA! [mult-threading windows manager! ] 2] porting the linux kernel from gnu c++ to java1.?? [just think! write once Linux kernel run ANYWHERE!!] [cool idea! comments please! :) ] 3] java and mmx + AMD k6 3d cpu for games! a gaming toolkit for linux writing in java or game writing in linux java using mmx/k6 3d cpu mxx. 4] a wsftp style gui ftp programme written in java for linux so that someone can ftp in X gui. 5] a 3D login in XDM mgr in java . if any one would like to help me with these ideas/project please kindly email. If you have any cool java ideas/project share them with me/ and post them here! Thanks ! Keith Schmauss Pob 704 Laramie,Wyoming 82070 [EMAIL PROTECTED] MAXIMUM POWER!SPEED!3Dgraphics! = MAXIMUM-LINUX!! :) !! __ Get Your Private, Free Email at http://www.hotmail.com
Re: Searching RPM for JDK 1.1.6 libc5
On Wed, 2 Sep 1998, Dan Kegel wrote: > The trick is to go to the redhat search *page*, then > use the ftp site search for jdk. One thing it finds is > > >ftp://ftp.redhat.com/pub/contrib/grouped/libc5/i386/Development/Languages/Java/jdk-1.1.5-8.i386.rpm > > I find it easy enough to just use the Blackdown tarballs, though. I often use http://ftpsearch.ntnu.no/ It bills itself as "The World's largest file search engine". I recommend using it when trying to track down the latest release of a software package. Chris Dynamic Solutions Pty Ltd http://www.dynamic.net.au 414 Gilbert Road [EMAIL PROTECTED] Preston, Victoria 3072 61 3 94718224 - voice Australia 61 3 94711622 - fax
Re: JAVA PROJECT! CODER WANTED!!
What, are you kidding? keith schmauss wrote: > > > > some of the project[s] [for fun!] are ==>> > 1] creating a very simple windowing manager coded in > JAVA! [mult-threading windows manager! ] 1) What are you going to use for your gui on this window manager? AWT is not thread safe, so you ultimately have to have all your events handled by one thread. Yes, you can distribute the work out to multiple threads, but the benefits of this are dubious. > > > > 2] porting the linux kernel from gnu c++ to java1.?? > [just think! write once Linux kernel run ANYWHERE!!] > [cool idea! comments please! :) ] 2) HAHAHAHA! That's really funny! > > > > 3] java and mmx + AMD k6 3d cpu >for games! > a gaming toolkit for linux writing in java or >game writing in linux java using mmx/k6 3d cpu mxx. > 3) I've done a fair bit of Java3D coding (the company I work for makes graphics libraries in Java & c++). Unless you've got good hardware acceleration (i.e. not simply MMX or K6 3D), everything gets done in software. Speed sucks. Now, if you've got good hardware acceleration, then performance is quite good. But it seems like you want to use java to reach more machines. Listen--just code it natively, and use one of the various gaming libraries out there. You'll do far better doing it this way. > > > > 4] a wsftp style gui ftp programme written in java for linux >so that someone can ftp in X gui. > 4) I think you can probably find one of these on one of the various java books out there. It seems like I've seen one or two, now that I think about it. With the new drag-and-drop stuff, these can be quite nice. However, this one is "been there, done that, what's next?" > > > > 5] a 3D login in XDM mgr in java . > 5) Why 3D? What do you want done in 3D? Why don't you just replace the gif in XDM with some cool 3D gif that you whip up in gimp? Quite frankly, I don't see the value added by a 3D login prompt, either in beauty or in functionality. > > > > if any one would like to help me with these ideas/project > please kindly email. > > If you have any cool java ideas/project share them with me/ > and post them here! > > Thanks ! > Keith Schmauss > Pob 704 > Laramie,Wyoming 82070 > > [EMAIL PROTECTED] > > MAXIMUM POWER!SPEED!3Dgraphics! = MAXIMUM-LINUX!! :) !! > Java is not nearly so slow as many of its pundits would have you believe (at least, not with TowerJ or a good JIT). However, it quite simply is *not* MAXIMUM POWER!SPEED! And quit yelling, for God's sake. At least you got the 3D graphics thing right. While Java3D is not near being complete yet, it's got a pretty darn good design. Oh, and get off the Microsoft gravy train. Stop using hotmail. Remember, this is a Linux newsgroup, and we Linux users don't much like Microsoft. Try iname if you want a decent web-based e-mail (and when you get a real e-mail address, they'll forward the mail to your new place for free, for life, whilst also filtering out spam).
Windowing System
I've written a complete Windowing System in Java . The top layer is the Swing. It contains a hardware driver a bootstrap awt driver, And a driver using XTC a all java XLIB. It is available at http://www.fdc.co.uk/jos/src/graphics.tar.gz I hope some members of this group are intrested. I'm currently seeing if the JOS group wants it. Mike
Exception handling broken by jni?
I'm having a wee bit of trouble with Blackdown JDK for Linux
and exception handling inside code called from JNI.
It seems that try/catch blocks don't work if they are
contained in a method called directly or indirectly by JNI.
This is hitting me in the face because the jdbc driver I'm trying to use,
http://www.worldserver.com/~mmatthew/mysql/
while it does run better under Blackdown JDK than the last one I tried,
seems to rely on exception handling during normal operation
to detect the end of the query results:
catch (ArrayIndexOutOfBoundsException E) {
// Horrible hack
if (Driver.debug) {
System.out.println("* NULL Packet *");
}
return null;
}
Since try/catch seems broken, the driver doesn't return null here,
and instead my top level code gets the exception:
java.lang.ArrayIndexOutOfBoundsException: 2
at org.gjt.mm.mysql.Buffer.readLong(Buffer.java)
at org.gjt.mm.mysql.Buffer.readLength(Buffer.java)
at org.gjt.mm.mysql.MysqlIO.nextRow(MysqlIO.java)
at org.gjt.mm.mysql.MysqlIO.sqlQuery(MysqlIO.java)
at org.gjt.mm.mysql.Connection.execSQL(Connection.java)
at org.gjt.mm.mysql.Statement.executeQuery(Statement.java)
at score_65.scoreReceived(score_65.java:52)
Exception in thread "main"
Has anyone else had trouble with exception handling in code
called from JNI?
- Dan
Unidentified subject!
__ Syed Mubeen National Centre For Biological Sciences, [EMAIL PROTECTED]TIFR Centre, P.B #1234, 80-334-5615 or 4062 or 3035 IISc Campus, Bangalore - 560 012. INDIA. ___ hi balveer, From your mail i feel you haven't set the CLASSPATH for the library files where it can search the files.Hence you go through the README.txt file where you can find the installation deatails and also enviroment to set the path.and accordingly set path. I feel it not a tough task you can easily make it. Bye. Syed Mubeen
Re: JDK FTP files
In message, "Robert P. Biuk-Aghai" writes: Which of these is what? Please take a look at http://www.blackdown.org/java-linux/docs/faq/FAQ-java-linux-2.html#ss2.3 and let us know if you still need help. Best regards, Steve
Re: Searching RPM for JDK 1.1.6 libc5
Dirk Vanhalle wrote: > Sorry if this is has been asked before. > Is there a RPM for JDK 1.1.6 (sbb), libc 5 version available ? > I tried RedHat, but there seems to be only a glibc version or a 1.1.5 RPM. The trick is to go to the redhat search *page*, then use the ftp site search for jdk. One thing it finds is ftp://ftp.redhat.com/pub/contrib/grouped/libc5/i386/Development/Languages/Java/jdk-1.1.5-8.i386.rpm I find it easy enough to just use the Blackdown tarballs, though. - Dan
Re: Searching RPM for JDK 1.1.6 libc5
On Wed, 2 Sep 1998, Dan Kegel wrote: > Dirk Vanhalle wrote: > > Sorry if this is has been asked before. > > Is there a RPM for JDK 1.1.6 (sbb), libc 5 version available ? > > I tried RedHat, but there seems to be only a glibc version or a 1.1.5 RPM. > > The trick is to go to the redhat search *page*, then > use the ftp site search for jdk. One thing it finds is > > >ftp://ftp.redhat.com/pub/contrib/grouped/libc5/i386/Development/Languages/Java/jdk-1.1.5-8.i386.rpm or if you don't feel that a web browser is needed for something as simple as ftp you can ftp.redhat.com site exec locate jdk and get back the same list Brad -- --- There are two kinds of knowledge, you either know the answer or you know where to find it -Kane, Johnson, and anonymous
RE: JNI/fileio problems (Re: JDK problem with findClass in native cod
Bernd,
thanks for the elaboration.
I have switched from using invocation interface to
calling a c_main native method from a java program per your suggestion.
I had to do this to turn on method tracing, since
I couldn't figure out how to do that with the invocation interface anyway.
My class-loading problem seems to persist even after I remove all
native code, though, so it might be in my funky class loader stuff.
- Dan
-- original message from bernd kreimeier follows ---
> [EMAIL PROTECTED] wrote:
>Bernd wrote:
>> The invocation API will get you in big trouble if you use any
>> system calls redirected by green threads.
> > I just threw together a quick JNI and fileio test program, and
> > didn't see any problems.
> > Could you give us more specific details about where you've seen
> > problems?
>
> I'll rephrase and elaborate. It is not file IO, it is *system calls*.
> E.g. an open("/dev/dsp") , read/write etc. In some USENET Java FAQ
> there is an entire list of it, I can dig it up in my backlogs at home.
>
> The invocation API as such works fine with small test programs, and
> larger apps, as long as you stay away from these calls. Even if you
> do use them, you might be fine - it all depends on the linkage order,
> the libraries used, and what calls are executed in which sequence.
>
> For example, the port of the Quake2 Game DLL to Java
> (http://www.openquake.org/jquake/q2java/) has not been ported
> to Linux successfully. The problems are:
>
> a) invocation API crashes with libdl/dlopen/dlsym calls
> (thus the original Win32 approach does not work)
> b) invocation API interferes with the main() C code that
> opens the sound device
> (thus the Solaris port that linked directly, avoiding
>the libdl use, can not be ported to Linux - the Solaris
>Q2 binary is a dedicated server)
> c) invocation API intereferes with the X11 libraries the
> Q2 binary is linked against on Linux (so even if you
> avoid the sound code, the green_threads changes to
> system calls break the invocation API with existing libs).
>
>
> In short, you should be fine as long as you start from scratch,
> avoid any libc wrapped system calls changed by green_threads
> in your app, and have full control of the linkage of all
> libs used. If you take an existing app in native code (e.g.
> of the complexity of the Q2 engine) and try to retrofit it
> with an embedded JVM invoked from that app, you might have a
> lot of problems. The same might apply for adding a Java service
> to some existing legacy server etc.
>
> This seems to be a non-issue with Win32 JDK, which does not
> use green_threads. I have no information about the Solaris
> native thread JDK. I do know that the Open Group JDK does not
> support the invocation API at all (doesn't even return proper
> error codes, because they didn't bother to catch or document
> this omission).
>
>
>
> > #define USER_CLASSPATH "." /* where Prog.class is */
>
> Changing (appending) to the Linux JDK supplied class path reportedly
> crashes on Solaris, crashed in some Linux JDKs for me, too. The
> default classpath returned by the invocation is completely bogus
> in Blackdown JDK, but seems to be different in OG JDK and Solaris.
> I am not aware of any specification.
>
>
> > (*jvm)->DestroyJavaVM(jvm);
>
>
> There is a documented and reported bug in all JDK 1.1.x, that,
> according to the Bug Parade evaluation, will not be fixed in 1.2.
> DestroyJavaVM always fails and returns an error code. As the
> SMI JNI specs do not specify any issues regarding multiple
> JVM use within a single process (serial or parallel), you might
> not want to destroy a JVM. You can't invoke a second one anyways,
> the Create call fails. Might be relevant for a server that is
> supposed to restart.
>
>
> Final remark: you might be better off to avoid the invocation
> API entirely. Write a top level Java control code and main(),
> and put your legacy or augmentation native code into some classes,
> using JNI in there. It seems that Sun does not put much effort
> in the invocation API, but JNI gets some more efforts (as long
> as javac and java run, nobody cares about invocation outside
> of what these do. JNI is required by all the dirty hacks in
> the core classes, so to say).
>
>
> b.
>
>
>
Re: JAVA PROJECT! CODER WANTED!!
On Wed, 2 Sep 1998, keith schmauss wrote: > 2] porting the linux kernel from gnu c++ to java1.?? > [just think! write once Linux kernel run ANYWHERE!!] > [cool idea! comments please! :) ] ?? No thanks ;)
