[2268] in java-interest

home help back first fref pref prev next nref lref last post

java-interest-digest V1 #190

daemon@ATHENA.MIT.EDU (owner-java-interest-digest@java.su)
Wed Sep 27 15:37:08 1995

From: owner-java-interest-digest@java.sun.com
Date: Tue, 26 Sep 1995 16:36:27 -0700
To: java-interest-digest@java.sun.com
Reply-To: java-interest@java.sun.com

java-interest-digest     Tuesday, 26 September 1995     Volume 01 : Number 190

In this issue:

 	Re: JDK : layout : is something wrong ? 
 	Re: Transparent background
 	Why does clientIsOpen() return false?
 	Re: Heres a confusing thing...
 	Re: interfaces are NO substitution for method pointers
 	Re: Decompilation of JAVA bytecode to source
 	modulus on floats?
 	Re: Q's on File access API's in Pre-Beta
 	Re: Consoles and repaints
 	Consoles and repaints
 	More class loader info.
 	Re: Function keys & arrow keys
 	Does anyone need developping environment for java?
 	Threads in native methods
 	Re: simple thread examples needed
 	Re: calling native C/C++ : portability
 	Re: Sun Java Courses
 	How do I use new fonts?
 	Read in one character?
 	Win95 and WinNT JDK?
 	Java on OS2/WARP?
 	Re: thread.sleep and java.lang.InterruptedException
 	Compile time error - file too large
 	Linking Threaded C++ code into JDK VM on Solaris 2.4
 	Re: JPEG Support
 	Please add me
 	Sending an object across the net...
 	window events in frames
 	window events in frames

----------------------------------------------------------------------

From: Arthur van Hoff <Arthur.Vanhoff@Eng.Sun.COM>
Date: Tue, 26 Sep 1995 13:03:28 -0800 (PDT)
Subject: Re: JDK : layout : is something wrong ? 

Hi Jean-Claude,

> I cannot get anything deterministic out of the various
> layoutManagers. Is something wrong, or is it just me ?

I hope it is just you. If you have a particular problem you'll have
to attached a simple example. Random muttering doesn't help.

Have fun,

	Arthur van Hoff


------------------------------

From: Arthur van Hoff <Arthur.Vanhoff@Eng.Sun.COM>
Date: Tue, 26 Sep 1995 13:06:41 -0800 (PDT)
Subject: Re: Transparent background

Hi BC,

> Is there a way to draw text with transparent backgrounds? For instance, I
> want to be able to layer text on an image and have only the glyphs be opaque.
>  cheers, bc

Text is always transparent. You can simply draw it over the an image
and only the letter themselves will be drawn. Is that what you mean?

Have fun,

	Arthur van Hoff



------------------------------

From: uomini@fractals.fractals.com (Robert Uomini)
Date: Tue, 26 Sep 1995 13:07:58 -0700
Subject: Why does clientIsOpen() return false?

Hi,

I have a Java application consisting of a server and two clients. The
server code creates connections to two ports, like so:

  public static void main (String args[])
    {
    ms1 = new StatsServer();
    ms1.startServer(8095);
    ms2 = new StatsServer2(ms1);
    ms2.startServer(8096);
    }

The StatsServer class handles requests from one client, and the
StatsServer2 class handles requests from the other. When request
comes in to StatsServer.serviceRequest(), the information is
supposed to be forwarded to the other.

The respective serviceRequest() methods get called, so I know
the port connections are good, but  

	      System.out.println(ms2.clientIsOpen());

returns false, when called from StatsServer.serviceRequest(), even though
the client connection is open and packets are flowing.

I reported this as a bug to the Java team a while back, but never received
a reply. Any ideas? Thanks.

Bob
- ---
Robert Uomini
The Fractal Images Company (http://www.fractals.com)
Voice: 510-528-0258/800-548-0258
Fax:   510-528-0243
*******************************************************************************
*  Buying or selling a home? Come visit the most comprehensive set of	      *
*  residential real estate listings and related services on the Internet:     *
*  The FractalNet Real Estate Server, http://www.fractals.com/realestate.html *
*******************************************************************************


------------------------------

From: jpayne@starwave.com (Jonathan Payne)
Date: Tue, 26 Sep 1995 13:18:20 -0700
Subject: Re: Heres a confusing thing...

They're not the same answer, but you'd have to know about the yucky
internals to understand the answer.

Ignore 2.  It's too hairy to contemplate.

> Date: Tue, 26 Sep 95 11:11:57 PDT
> From: chanda@PRPA.Philips.COM (Chanda Dharap)
> Sender: owner-java-interest@java.sun.com
> Precedence: bulk
> X-Info: To unsubscribe, send 'unsubscribe' to java-interest-request@java.sun.com
> Content-Type: text
> Content-Length: 1600
> 
> 
> Someone posted the following question and now there are two distinct
> replies.
> 
> Which one guys ??
> 
> - Chanda Dharap
> ------------------
> email: chanda@prpa.philips.com
> 
> --------------------------------------------------------------------
> Can I define my own class loader which loads classes from the file
> system?  If I do, will I be subject to the security measures which are
> in place for WWWClassLoader, which loads classes from the network?  Or
> are the security measures dependent on that particular class loader
> subclass?
>  
> Also, if my class loader periodically checks the file system for an
> update to that class, and reloads that class, will the system actually
> successfully start using the new definition of the class.  Something
> tells me that it will actually continue to use the original
> definition, because the class is actually stored internally in the
> interpreter.
> -----------------------------------------------------------------------
> 1>The next time that the class is loaded from that class loader it will
> 1>return the new class. The old class will eventually be gc'd (although
> 1>that isn't implemented). Existing instances of the new class will not
> 1>automatically be upgraded.
> 
> 2>Your latter statement is the more correct one. It is of course possible
> 2>to define a native method in your class loader that does a manual substitution
> 2>on the internal class list however that is probably a fairly dangerous
> 2>operation, especially if you make an incompatible class change.
> 
> -
> Note to Sun employees: this is an EXTERNAL mailing list!
> Info: send 'help' to java-interest-request@java.sun.com
> 

------------------------------

From: Simon Spero <ses@tipper.oit.unc.edu>
Date: Tue, 26 Sep 1995 13:45:15 -0700 (PDT)
Subject: Re: interfaces are NO substitution for method pointers

On Tue, 26 Sep 1995, Ken Arnold - Sun Labs wrote:

> I suppose I'm not as wise as Arthur -- I'm going to take *one* crack
> at trying to convince.

[subclassing to implement callbacks deleted]

This is all well and good, but it only covers one application for method 
pointers. As any functional programmer or lisp hacker can tell you, there 
are lots of problems that become much more elegant when functions, 
particularly first class functions, are available. 

I would very much like to see some support for anonymous functions added 
to java - some ideas follow:

Syntax could be:

   {
	int y = 5;
	List l = getAListOfInts();
	List l2 = l.map(int lambda(int x) -> {return x + y;});
   }

Class List {
 	...
	List map(Function f) {
	   if(cdr == null) {
		return cons(f.funcall(car),null);
	   } else {
		return cons(f.funcall(car),cdr.map(f))
	   }
	}
}

- ----
This would be transformed into 

class Function92010 implements Function_int__int, Function_1 {
	int y;
	public Function92010(int y_in) {
		y = y_in;
	}
	public int funcall(int x) {
		return x + y;
	}
};


{
	int y = 5;
	List l = getListOfInts();
	List l2 = l.map( new Function92010(y));
}
class List {
	List map(Function_1 f) {
	if(cdr == null) {
                return cons(f.funcall(car),null);
           } else {
                return cons(f.funcall(car),cdr.map(f))
           }
        }
};

------------------------------

From: Eric Barna <ebarna@teachersoft.com>
Date: Tue, 26 Sep 1995 15:58:25 ()
Subject: Re: Decompilation of JAVA bytecode to source

Java'ers

Unfortunately I lost the thread that this email really responds to...

As previously noted, it is possible, though not particularly easy, to 
decompile bytecode to source.

My understanding is that when the architecture neutral distribution format 
(ANDF) people at OSF developed the ANDF spec, they spent a lot of time 
ensuring that it was "not possible" to decompile ANDF code to source.  They 
were extremely concerned about intellectual property issues associated with 
giving people mechanisms that permitted access to source.  They believed 
that if it were not possible to protect source, it would be significantly 
more difficult to get vendors to sign up to deliver their code in ANDF.  (Of 
course ANDF never went anywhere, but that is/may be a different issue...)

It seems to me that it would not be a good idea to ignor the ANDF work on 
source access as JAVA goes forward, otherwise it might limit the potential 
for the future.
John Marsh
The MITRE Corporation

jmarsh@mitre.org
Phone (703)883-7086
FAX   (703)883-3315

- -
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com
..


------------------------------

From: Eric Barna <ebarna@teachersoft.com>
Date: Tue, 26 Sep 1995 15:58:29 ()
Subject: modulus on floats?

I've been playing with arithmetic (I'm one of the unwashed hordes
writing books).

The JDK Change Notes say "the meaning of floating point % got clarified."


To what?


The alpha spec says that a % b on floats is equivalent to:

a - ((int)(a / b) * b)

However, that's not what a % b is currently behaving like, and I'm getting
really bizarre results.  12.5 % 7.5, for example, is now -1.5.  Huh?

What's the new formula for floating-point modulus?


Laura



- -
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com
..


------------------------------

From: Eric Barna <ebarna@teachersoft.com>
Date: Tue, 26 Sep 1995 15:58:37 ()
Subject: Re: Q's on File access API's in Pre-Beta

At 04:14 PM 9/25/95 -0800, you wrote:
>>         3) There doesn't appear to be any API for locking files or portions
>> of files
>
>I'm not sure how we implement this in a platform independent way.

There should be something in the API, even if it's simple (e.g.,
non-mandatory lock of whole file).  If  all access to the file(s) are in a
single Java application, Java synchronization primitives should be
sufficient.  However, often there are multiple instances of Java apps and/or
other processes talking to the files; something simple like "lock whole
file" should be enough.  There are UNIX api's for this, and Win32 API's -
there must be some portable Java API for simple cases of file locking that
can be mapped to the expected platforms...
- --
Bob Beck                rbk@ibeam.intel.com     CompuServe: 71674,106
Intel Corporation       (503)264-8856           AOL: RDBeck


- -
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com
..


------------------------------

From: Eric Barna <ebarna@teachersoft.com>
Date: Tue, 26 Sep 1995 15:58:26 ()
Subject: Re: Consoles and repaints

> Two questions that aren't apparently related:
> 
> 1. In HotJava alpha 2 for NTand apparently on Solaris 
>  there was always a console window open to receive the results of 
> commands like System.out.println and error messages. That apears to 
> have gone away in HotJava alpha 3 for NT.  Is there a way to get it 
> back?

Just run hotjava from a console window to begin with:

	java browser.hotjava

> 2.  Is there a method I can call to force an applet to repaint?

	repaint()
- -
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com
..


------------------------------

From: Eric Barna <ebarna@teachersoft.com>
Date: Tue, 26 Sep 1995 15:58:33 ()
Subject: Consoles and repaints

Two questions that aren't apparently related:

1. In HotJava alpha 2 for NTand apparently on Solaris 
 there was always a console window open to receive the results of 
commands like System.out.println and error messages. That apears to 
have gone away in HotJava alpha 3 for NT.  Is there a way to get it 
back?

2.  Is there a method I can call to force an applet to repaint?


- --
Elliotte Rusty Harold    Black Star Publishing Co., Inc.
elliotte@blackstar.com   116 East 27th Street
elharo@escape.com        NY NY 10016
- -
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com
..


------------------------------

From: cmcmanis@scndprsn.Eng.Sun.COM (Chuck McManis)
Date: Tue, 26 Sep 1995 14:10:08 -0700
Subject: More class loader info.

> The testloader is simple, just loads class from InputStream.
> In fact I just copied it from WWWClassLoader.java to try it out.

You missed a crucial point. ClassLoader is abstract and requires its
subclasses to define the method:
	Class loadClass(String name, boolean resolve);
You must use this exact signature. Now in your case you could add this
method and then use it to call your loadClass method that takes an
input stream. 

This error message:

     loadtest.java:154: class testloader is an abstract class. It
     does not define java.lang.Class loadClass(java.lang.String, boolean)
     from class java.lang.ClassLoader. 

Is telling you that you didn't define a method that overrides the abstract
loadClass method.

This error:
	 ClassLoader loader = new testloader(myinputstream);
			      ^
     loadtest.java:155: No method matching loadClass(java.io.InputStream)
     found in class java.lang.ClassLoader. 


Is telling you that class ClassLoader doesn't define the method you are
invoking (loadClass with an inputStream). This code is confused on two
points:
	1) testloader constructs an object of type "testloader" but
	   you are putting it into a Classloader (widen cast)
	2) Then you try to refer to it as a testloader without a cast.

So first, make testloader concrete by defining loadClass(string, boolean)

Then change your test program to read:
	testloader loader = new testloader(myinputstream);

> But "testloader" is not an abstract class. In fact did'nt I just
> define it ? Whats so abstract about that !! I checked in
> ClassLoader.java to make sure I had definitions for all abstract
> classes. This was the only one.

Methods with *Different* signatures do not override, only matching
signatures.

> 3)
> So far no one talks about implementing interfaces and such. After this
> I read comments on "Secrets of the ClassLoader" which says that I
> should define an interface loaded on the "system" side of the class
> loader, and then cast the new object to that interface object and 
> invoke it using the interface. (Should be titled "Unsolved Mystries of
> the ClassLoader" don't you think ?)

Interfaces are implemented just like classes except that they don't have
any implementation, just method signatures. My original "secrets of the
class loaders" message was targeted toward people with a bit more base
understanding of how Java works. I can see how it is both mysterious and
opaque without the basics. 
 
> I'm kinda lost at this point.

> So how does one do this ?? Is there some complete set of
> "how-to-implement-your-own-classloader" ?? 

No there is not.
 
> Can some of the Java-guru's help out ? I've already wasted TWO days on
> this.. and this was that part of Java that I was looking forward to ..

Then it can't be a waste now can it :-).  

> I'm kinda lost at this point.

- ---------------------------------------------------------------------------

Class Loader BASICS
- -------------------

When a request is made by a Java program to instantiate a class, the virtual
machine first checks to see whether or not that class has already been 
loaded. If the class has not been loaded, then the VM invokes the class loader
to load the class file. The class loader that the VM invokes, depends on the 
class loader of the class making the request. 

Every class contains a "cbLoader" field, which tells the VM what class loader
loaded it. If it was loaded by the system (the primordial class loader) then
that field is null. Otherwise it points to the class block for the class loader
that loaded you. 

There are two ways that classes can "demand" that classes be loaded, one
is through the statement "new ClassName(...)" and the other is through
the static function "forName" in class Class. So Class.forName("myclass")
will request that myclass be loaded. In alpha you can also say simply
new("myclass") but that was removed from the language. 

When a demand is made to load a class, the class loader of the invoking
class is called invoked. The method called is "loadClass" and parameters
passed are the name of the class to be loaded and a boolean that says
whether or not the class needs to be resolved. The initial class loaded
_always_ needs to be resolved so sometimes people will define a method
in their classloader with this signature loadClass(String classname) and
implement it with "loadClass(classname, true)" (why this isn't in the base
class loader class I can't explain.) 

Now loading a class kicks off a recursive operation to load the class and
all of its dependencies. This is accomplished by the internal operation of
resolveClass() which recursively calls loadClass on your class loader for
each class that the class you started with depends on, and the classes they
depend on.

The result of a loadClass is a pointer to a subclass of Class that is the
class of the object you want to instantiate. A new object can be created
with the instanceOf() method which is part of Class class (and thus all
of its subclasses). Note that instanceOf() calls the public null constructor
that is the one defined "public ClassName() { ... }" if you don't have
such a constructor you won't be able to instantiate it. (that is a feature
BTW) 

Now once you have this object, you'll probably want to invoke some method
on it. However if you try to cast it to the loaded class you will get
class cast exception because the class loaded by the class loader is
considered to be distinct from the same class loaded by the native loader.
To get around this you use an interface. Interfaces, unlike classes, merely
promise that the method you are invoking is in the object you are invoking.
If the object implements the interface, the object's class is searched for
the matching method and then that method is invoked. 

- --Chuck 

------------------------------

From: flar@bendenweyr.Eng.Sun.COM (Jim Graham)
Date: Tue, 26 Sep 1995 14:09:27 -0700
Subject: Re: Function keys & arrow keys

If you look in java.awt.Event in the JDK release you will see definitions
for UP, DOWN, LEFT, RIGHT, HOME, END, PGUP, and PGDN.  The standard arrow
keys are already defined, just the F# type keys are missing...

				...jim

------------------------------

From: pfu.fujitsu.co.jp!satoo@fujitsuI.fujitsu.com (satoh-HAL-osamu)
Date: Wed, 27 Sep 1995 05:03:09 +0900
Subject: Does anyone need developping environment for java?

Hi.

We (I and my co-worker) are trying to make an application
which provides Smalltalk like java deveropping environment
runs on java interpreter.
Alpha 3 based version of this program is already running
(still some problems, of course ;-) on Solaris 2.4.

Porting to JDK pre-beta1 is now in progress, but it will
take couple of weeks to complete.

So, my question is:

Does anyone need this program although it is based on
alpha3, and is tested only on Solaris?

If you are interested in the program, please reply to this
mail, and tell us how you can get the archive of this
program. Unfortunately, access to our ftp server is strongly
restricted, so you will not be able to get it via ftp.
We can send uuencoded archive via E-mail, and can ftp on
your own anon-ftp server.

Sorry for my broken English.

Thanx.
- -----
SATOH osamu (in real life), research center, Tokyo, PFU Ltd.
> satoo@pfu.fujitsu.co.jp    (official)
  satoo@virgo.bekkoame.or.jp (personal)


------------------------------

From: Peter Leong <pleong@netcom.com>
Date: Tue, 26 Sep 1995 14:05:32 -0700 (PDT)
Subject: Threads in native methods

Are multiple threads in native methods supported by Java?  I have a 
native method that creates a thread in C.  thr_create() returns success, 
but the new thread was never executed.  I am running alpha3 on Unixware 2.0.
Anyone has similar experiences?  Thanks.

Peter Leong
Precision Systems Inc.

------------------------------

From: Eric Barna <ebarna@teachersoft.com>
Date: Tue, 26 Sep 1995 15:58:40 ()
Subject: Re: simple thread examples needed

Hi Harold,

> I'm trying to puzzle out threads and could use a nice, simple example.
> anyone have one?

Here my ping pong program:

	class PingPong extends Thread {
	    String arg;
	    int delay;
	
	    PingPong(String arg, int delay) {
		this.arg = arg;
		this.delay = delay;
		start();
	    }
	    public void run() {
		while (true) {
		    System.out.println(arg);
		    try {
			sleep(delay);
		    } catch (InterruptedException e) {
			return;
		    }
		}
	    }
	    public static void main(String argv[]) {
		new PingPong("ping", 300);
		new PingPong("pong", 1000);
	    }
	}

> (I am <really> missing searchable email archives - those aren't being
> stored anywhere else now are they? I saw one person offer... )

Check out http://java.sun.com/, there is a link to searchable archives there.

Have fun,

	Arthur van Hoff

- -
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com
..


------------------------------

From: Eric Barna <ebarna@teachersoft.com>
Date: Tue, 26 Sep 1995 15:58:43 ()
Subject: Re: calling native C/C++ : portability

>  To: java-interest-digest@java

Next time, mail to "java-interest@java", okay?

>  I know JAVA uses extern "C" to include C code. 

There is no 'extern "C"' facility in Java.  Developers who want to access
external C++ code need to use 'extern "C"' in their C++ code so that the
method names aren't changed by the C++ compiler. 

>  But I wonder if that restricts the resulting program portability. 

Accessing external certainly restricts both portability and ease of
distribution (shared libraries aren't automatically downloaded from a
web page the way Java classes are).  We strongly discourage using native 
methods if you want to write applets or portable programs.  

>  How does Java implement extern "C"?

It doesn't -- most current C++ compilers do.

>  Are the C code translated to bytecodes?

No, the C code must be linked into a shared library, also called a DLL
on Windows systems.  This file must be present when the application is
run, and must be dynamically loaded by the application prior to its use.
Only Java code is translated into bytecodes.

Tom
- -
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com
..


------------------------------

From: jpierce@chem.ucsd.edu (John Pierce)
Date: Tue, 26 Sep 1995 14:44:14 -0700
Subject: Re: Sun Java Courses

 > From: George E Crawford <gec2@Ra.MsState.Edu>
 >
 > OK, I've been unable to find ANY information about SL-230 Basic
 > Java Programming and SL-270 Advanced Java Programming (I've
 > tried both the web page and the 800 number)....

I had no problem with the 800 number (found nothing on the web pages,
though). I was told

	SL-230 - Basic Java - 3 days - $1125

	SL-270 - Advanced Java - 2 days - $750

I was told that the only current locations are at Sun and in NY.

------------------------------

From: Shashikala <stprabhu@cat.syr.edu>
Date: Tue, 26 Sep 1995 17:50:36 -0400 (EDT)
Subject: How do I use new fonts?

Hi,

Can anyone tell me how one can have more fonts than the ones specified in
the alpha release? I read the documentation on it, but its too fuzzy,

Is it something to do with the getNativeFont function?

Please send me a snippet of code if you can.

Thanks
shashi




------------------------------

From: John M Begenisich  <begenisi@oswego.Oswego.EDU>
Date: Tue, 26 Sep 1995 18:07:00 -0400 (EDT)
Subject: Read in one character?

Is there a Java equivelant of the C++  cin stream?  For example,

  char c;
  cin << c;

Or does all input have to be done using the StreamTokenizers?

Confused,
John


------------------------------

From: chi.nguyen@gs.com (Chi Nguyen)
Date: Tue, 26 Sep 95 18:11:08 EDT
Subject: Win95 and WinNT JDK?

I would like to test coding some Java apps for WinNT or Win95. Is there a JDK
available? If so, where? Thanks.

Chi

------------------------------

From: Russ McGinnis <mack2@gate.net>
Date: Sun, 24 Sep 1995 03:05:24 -0400 (EDT)
Subject: Java on OS2/WARP?

    I'm a Linuxite awaiting the Java port to Linux (I've subscribed to

    to the Blackdown mailing lists).  But in the meantime, I'd like to start

    programming Java on _any_ platform to start building proficiency.  Now,

    I saw where Java is supposed to run on Windows95; but, I can't see myself

    sending $89 to you know who.  Will that Windows95 port run on, say, OS2?

                                            Russ McGinnis

                                            St. Pete, Florida

------------------------------

From: flar@bendenweyr.Eng.Sun.COM (Jim Graham)
Date: Fri, 22 Sep 1995 18:39:45 -0700
Subject: Re: thread.sleep and java.lang.InterruptedException

> In the JDK prebeta1 , I get this compiler error:
> 
> 	javac Foo.java
> 	Foo.java:11: Warning: Exception java.lang.InterruptedException must be caught, or it must be  
> declared in throws clause of this method.
> 	        thread.sleep(150);
>     	   	            ^
> But when I do what it suggests I get this compiler error:
> 	javac Foo.java
> 	Foo.java:8: Invalid exception class java.lang.InterruptedException in throws clause. The  
> 	exception must be a subclass of an exception thrown by void run() from interface  
> 	java.lang.Runnable.
> 	public void run() 
> 
>             ^

As the first error message says you can do one of 2 things:

	1) Catch the exception

	2) Declare the exception as something you throw.

You tried the second and it doesn't work since you aren't allowed to
throw an exception from a run() method.  So, you should instead do the
first suggestion - catch the exception and handle it gracefully.  Try:

	run() {
	    ...
	    try {
		Thread.sleep(150);
	    } catch (InterruptedException e) {
		return;
	    }
	}

				...jim

------------------------------

From: "James L. Meyers" <James_L_Meyers@andersen.com>
Date: 26 Sep 95 16:22:42 EDT
Subject: Compile time error - file too large

I was wondering if anybody can help me - It appears that a file I am compiling 
in java is too large for the compiler to handle.  I have already ran into the 
problem of my run-time hotjava needing an 8 meg heap size to handle the 
graphics for my application.  Does anybody know how to use a larger heap size 
or something for a compile time error.  The error is that it gets to a certain 
portion of my code and starts giving me warnings / errors that it didn't read 
the lines after a certain point.  Any suggestion would be greatly appreciated.  
Jim from Andersen Consulting

------------------------------

From: "Steve V. Yalovitser" <root@cyberpunk.com>
Date: Tue, 26 Sep 1995 18:45:16 +0900 (EDT)
Subject: Linking Threaded C++ code into JDK VM on Solaris 2.4

Hiya,

	I am trying to investigate the feasability of linking the java VM with
Orbix+Isis client stubs. Orbix is a C++ CORBA 1.2 dist. objects implementation.
Isisis a natively threaded reliable distribution mechanism. 
	I have already linked simple non-threaded C++ code and have had no problems
(via extern C). However when I try to link in (this is a .so) a library
containing calls to Orbix/Isis the load static initializer hangs. In particular I
dont think that the native threading code is being initialized. This code is
required for Isis to function properly. 
	The java VM seems to use a non-native thread implementation. Does this
threadimplementation rule out linking native thread code? Is it as simple as the
JDKneeding to be recompiled with a -mt? Thanks in advance for any help

------------------------------

From: Jim.Graham@Eng.Sun.COM
Date: Fri, 22 Sep 1995 13:57:29 -0700
Subject: Re: JPEG Support

> Has anything been done to support the jpeg image format?

JPEG support was added after the JDK-prebeta1 release was sent out.  It
should appear in the next release.

				...jim

------------------------------

From: doug@equator.Central.Sun.COM (Doug McMullen - Des Moines SE)
Date: Fri, 22 Sep 1995 14:25:15 +0600
Subject: Please add me


------------------------------

From: Derek Hamner <dhamner@email.unc.edu>
Date: Fri, 22 Sep 1995 14:34:54 -0400 (EDT)
Subject: Sending an object across the net...

I have written simple client & server based on the sun.net classes and I 
would like to know if it would be possible to extend the 
DataInput/OutputStream classes to accommodate more complex types.  I 
would like to be able to send any simple object across the network, and 
then reconstruct it on the other side.  Is this possible?

Any help or pointers to past discussions on this topic would be greatly 
appreciated.

Derek Hamner
UNC-Chapel Hill

------------------------------

From: sdo@soliado.East.Sun.COM (Scott Oaks - NE Area Tactical)
Date: Fri, 22 Sep 1995 16:18:07 -0400
Subject: window events in frames

In JDK 1.0 pre-beta:

Are frame subclasses expected to receive and handle window manager
events (WINDOW_DESTROY, WINDOW_ICONIFY, etc)?  I'd expected my
handleEvent() method to be called when this happens, but it doesn't.

And of course the underlying question is, how can a frame respond to
the DESTROY_YOURSELF message sent by the window system?

- -sdo

------------------------------

From: sdo@soliado.East.Sun.COM (Scott Oaks - NE Area Tactical)
Date: Fri, 22 Sep 1995 16:18:07 -0400
Subject: window events in frames

In JDK 1.0 pre-beta:

Are frame subclasses expected to receive and handle window manager
events (WINDOW_DESTROY, WINDOW_ICONIFY, etc)?  I'd expected my
handleEvent() method to be called when this happens, but it doesn't.

And of course the underlying question is, how can a frame respond to
the DESTROY_YOURSELF message sent by the window system?

- -sdo

------------------------------

End of java-interest-digest V1 #190
***********************************

-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post