[1641] in java-interest

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

Returned mail: Unable to deliver mail

daemon@ATHENA.MIT.EDU (Mail Delivery Subsystem)
Tue Sep 12 09:47:41 1995

Date: Tue, 12 Sep 95 04:27:31 EDT
From: Mailer-Daemon@IConNet.COM (Mail Delivery Subsystem)
To: <java-interest@java.sun.com>

   ----- Transcript of session follows -----
554 <akumar@anastasis>... Never heard of anastasis in domain IConNet . COM
554 <java-interest@java.sun.com>... Possible alias loop
554 No valid recipients

   ----- Unsent message follows -----
Return-Path: <java-interest@java.sun.com>
Received: by overlord.IConNet.COM (4.1/SMI-4.1)
	id AA12333; Tue, 12 Sep 95 04:27:31 EDT
Received: from mail.iconnet.com(199.173.161.113) by overlord.IConNet.COM via smap (V1.3)
	id sma012331; Tue Sep 12 04:27:02 1995
Received: from cc:Mail by mail.IConNet.COM
	id AA810906197; Tue, 12 Sep 95 04:43:09 EST
Date: Tue, 12 Sep 95 04:43:09 EST
From: java-interest@java.sun.com
Encoding: 996 Text
Message-Id: <9508128109.AA810906197@mail.IConNet.COM>
To: java-interest-digest@java.sun.com
Subject: java-interest-digest V1 #159

Received: by ccmail from webrunner.neato.org
From owner-java-interest-digest@java.sun.com
X-Envelope-From: owner-java-interest-digest@java.sun.com
Received: (from majordom@localhost) by webrunner.neato.org (8.6.12/8.6.12) id WAA28319 for java-interest-digest-outgoing; Mon, 11 Sep 1995 22:17:08 -0700
Date: Mon, 11 Sep 1995 22:17:08 -0700
Message-Id: <199509120517.WAA28319@webrunner.neato.org>
From: owner-java-interest-digest@java.sun.com
To: java-interest-digest@java.sun.com
Subject:   java-interest-digest V1 #159
Reply-To: java-interest@java.sun.com
Errors-To: owner-java-interest-digest@java.sun.com
Precedence: bulk
X-Info: To unsubscribe, send 'unsubscribe' to java-interest-digest-request@java.sun.com

java-interest-digest     Tuesday, 12 September 1995     Volume 01 : Number 159

In this issue:

  javadoc
  SEND IN SOCKET
  Re: Request opinion about workabillity of java as it is now
  Re: javadoc
  Distributed Java: Ideas Under Investigation
  Re: javadoc
  Re: Request opinion about workabillity of java as it is now
  Re: COPY AND MAIL ??
  Help On FTP
  Security
  playing mpeg movies on java pages
  Windows NT Java Source
  HAS ANYONE SUCCESSFULLY LOADED GIFS/FILES ON AN NT PLATFORM??!?
  Accessing java String from native c function.
  Re: Accessing java String from native c function.
  Announcing the Java Developers Kit
  Re: Accessing java String from native c function.
  Re: SEND IN SOCKET
  Re: Accessing java String from native c function.
  java.net: No Raw Sockets?
  Re: Windows NT Java Source
  More on Javier (Java Version Idioma Espa^ol)

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

From: "John D. Mitchell" <johnm@emf2-003.emf.net>
Date: Sun, 10 Sep 1995 23:38:29 -0700
Subject: javadoc

Arvind Srinivasan. writes:
> I really like the way javadoc generates 'web-friendly' html documentation
> from the java source files [Lisa Friendly's paper on this subject was
> really informative]. I would like to know if there is a similar tool for
> generating documentation from C++ source files. If not, is anyone working
> on coming up with a 'javadoc-like' tool for C++ ? 

javadoc is a sort of a 'literate' programming (LP).  Check out Knuth's
_Literate Programming_ book for the story from the source, Fraser &
Hanson's _A Retargetable C Compiler: Design and Implementation_ book for a
wonderful 'real world' example of LP, and comp.programming.literate for
information and discussion on the subject.

Of course this begs the question of why bother with C++... :-)

Hope this helps,
  John "I guess that means 'yes'" Mitchell


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

From: Richard Wahongan <n1061925@dodo.fit.qut.edu.au>
Date: Mon, 11 Sep 1995 16:33:38 +1000 (EST)
Subject: SEND IN SOCKET

How can I send data with the class socket ?

Thanks !


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@                                                                            @
@    Richard Wahongan                               @
@                                                                            @
@ Bach. of Info. Tech. (Hons)  | Phone : 61-7-378 3047  (Home)               @
@ Faculty of Information Techn |         61-41-111 5347 (Home)               @
@ Queensland Uni. of Tech.     | Email : n1061925@dodo.fit.qut.edu.au        @
@ Bribane 4001 AUSTRALIA       |                                             @
@                                                                            @
@           WWW : http://student.fit.qut.edu.au/~n1061925/                   @
@                                                                            @
@           "    Test Everything. Hold on to the good.   "                   @
@                                                                            @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@


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

From: moost@nlr.nl (M. Oost)
Date: Mon, 11 Sep 95 11:32:21 +0200
Subject: Re: Request opinion about workabillity of java as it is now

I Wrote:
> > At this moment I am designing a service that will alow anyone with WWW to 
> > locate and preview satellite images. The first version should be ready in 
> > December. I now have less than two weeks to give my recommendations about 
> > the technical design.
> > I have two options:
> > 1) I design the server without Java.
> > 2) I design the server with Java. 
> >  
> > The second one is my prefered option (even though I haven't programmed in
> > Java yet). Using Java would greatly improve the interface, and remove some
> > load of the server (wich of course means faster response).
> > 
> > I want to know if Java as it is available now (or within 6 weeks) would be
> > able to run such a service. And I want to know if the bugs that are in Java
> > at this time would jeopardize the project (not to mention my time-table wich
> > is very tight and wich I can not extend)
Matt Cline wrote:
> Well, if you gave us some idea of what you were trying to offload from
> the server to the Java applet, we might be able to give a better answer.

It would be handiest if the Java applet would contain the complete interface to
the server. It would then issue a request, wich the server can answer.
This means that the applet would contain[1] a map of the earth to zoom in on. 
The user should then be able to select an area (click and drag) in the form of a
rectangle or circle.
The user would issues his request for a quick_look_image wich the server would
send to him. For this quick_look_image the user would get the possibility to 
select the resolution, the image would then be send in a non-standard format to
the user to allow for more resolution the longer he waits. 
+--+--+--+--+
| 1| 5| 2| 8|  The pixels of the image would of course be send 1, 2, 3 ... 16
+--+--+--+--+
| 6| 7| 9|10|
+--+--+--+--+
| 3|11| 4|14|
+--+--+--+--+
|12|13|15|16|
+--+--+--+--+

The applet should also be able to issue one request to a server and based on
its respose issue another request to an other server.
The applet would contain: push buttons, sliders, radio buttons, text fields,
graphics, maps and perhaps pull-down/pop-up menus.
The applet would also be able to save/reload the images or requested
information and be able to print it.

If the server itself runs in Java it would contain a fairly simple Dbase
program (or the interface to a "real" Dbase program). A security program or 
routine wich would verify the identity of the users, but more importand of
the diffrent program-parts (if their running on diffrent computers). And a
a program/routine that would send and receive new information to and from other
servers (same kind) to update its Dbase.
btw. I believe the security part would become absolete with new versions of 
     Java?

If you want to take a look at what others have done in this field:
http://www.coresw.com/info/demo/Demo.html
  (nice interface, bit slow with the map)
http://www.dfd.dlr.de/de/ISIS/gisis-demo/demo10.html
  (also nice interface but not very intuitive, lot of options though)
http://www.vtt.fi:80/aut/ava/rs/virtual/
  (connections to other Remote Sensing servers)

Merrick
- -------------------------------------------------------------------------------
[1] or get from the server.

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

From: Alex Nicolaou <anicolao@cgl.uwaterloo.ca>
Date: Mon, 11 Sep 1995 07:19:20 -0400 (EDT)
Subject: Re: javadoc

> 
> Arvind Srinivasan. writes:
> > I really like the way javadoc generates 'web-friendly' html documentation
> > from the java source files [Lisa Friendly's paper on this subject was
> > really informative]. I would like to know if there is a similar tool for
> > generating documentation from C++ source files. If not, is anyone working
> > on coming up with a 'javadoc-like' tool for C++ ? 
> 
 * There is a script called "classdoc" floating around the 'net which takes
a C++ header file and generates man pages; I'm sure it could easily be 
made to make HTML (once in the mists of time I made it make ms-.hlp files).
If you can't find it then drop me a note and I'll send you a copy.
> 
> Of course this begs the question of why bother with C++... :-)
> 
 * I think Java's great but for some things it still can't compete with
C++. If you can't think of those things don't worry about it - this list
isn't the place for a discussion about religion :-)

alex

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

From: "Joseph R. Kiniry" <kiniry@osf.org>
Date: Mon, 11 Sep 1995 09:38:40 -0400
Subject: Distributed Java: Ideas Under Investigation

If you are not interested in Java and Distributed Computing, read no
further.

I've spent a few weeks doing research and preliminary write-ups on a
Java-based system, currently dubbed _Distributed Java_, that would
bring simple, flexible, and powerful distributed computing ideas to
the Java environment.  These ideas are based on previous work called
_DECS_ that explored new innovative techniques in the enterprising use
of resources in a network of workstations.

These short papers are now available for viewing outside of the OSF.
If you are interested in reading about these ideas, links to the
Distributed Java pages can be found in my projects page at URL:

   http://www.osf.org/~kiniry/projects/

Note that I need to make it very clear that this is not funded
work-in-progress by the OSF.  This is currently independent work that
is only in the design stages; no more, no less.  Comments,
suggestions, and discussion are always welcome.

jrk


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

From: David.Geary@Central.Sun.COM (David Geary)
Date: Mon, 11 Sep 1995 09:19:14 +0700
Subject: Re: javadoc

> Hi javanites,
> 
> I really like the way javadoc generates 'web-friendly' html documentation
> from the java source files [Lisa Friendly's paper on this subject was
> really informative].
>
> I would like to know if there is a similar tool for
> generating documentation from C++ source files. If not, is anyone working
> on coming up with a 'javadoc-like' tool for C++ ? 
> 
> Any pointers will be much appreciated. 

  See http://www.telstra.com.au/docs/ose/doc/tools/classinfo.html for a description
of OSE's classinfo tools that come with it's (freely available) C++ development
package.

  class2man creates a man page from a header file, while man2html does, hold on,
damn, what does that one do?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 David Geary                  "As the decibels of this disenchanting discourse
 geary@rmtc.Central.Sun.COM    continue to dampen the day" 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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

From: amc@cs.wustl.edu (Adam M. Costello)
Date: Mon, 11 Sep 1995 15:23:48 GMT
Subject: Re: Request opinion about workabillity of java as it is now

moost@nlr.nl (M. Oost) writes:

> The user would issues his request for a quick_look_image wich the
> server would send to him. For this quick_look_image the user would get
> the possibility to select the resolution, the image would then be send
> in a non-standard format to the user to allow for more resolution the
> longer he waits.
> +--+--+--+--+
> | 1| 5| 2| 8|  The pixels of the image would of course be send
> +--+--+--+--+  1, 2, 3 ... 16
> | 6| 7| 9|10|
> +--+--+--+--+
> | 3|11| 4|14|
> +--+--+--+--+
> |12|13|15|16|
> +--+--+--+--+

Sorry this is off-topic, but...

There is no need to use a non-standard format.  PNG (Portable Network
Graphics) offers a 7-pass progressive display that starts with a 1/64
size image (1/8 in each dimension) and doubles the number of pixels
on each subsequent pass.  Although it's a new format, it is currently
supported by many applications, and the number is growing.  There is a
patch available for xv, and Mosaic 2.7 is expected to support inline
PNG.  PNG is intended to replace GIF.  See:

http://quest.jpl.nasa.gov/PNG/

AMC

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

From: Ben Black <benb@velocity.com>
Date: Mon, 11 Sep 95 10:42:28 -0500
Subject: Re: COPY AND MAIL ??

i am just about ready to get procmail running for the sole purpose of  
redirecting all posts from Richard Wahongan to /dev/null.  how many times must  
we see a 2 line request for information followed by a 15 line boxed .sig?   
and the questions aren't even interesting.  a couple minutes actually looking  
through the docs and the source would answer them all.

>1) Can I copy files from inside an applet ?
did you try opening 2 files and moving data from one to the other?  i have  
only written stand-alone apps, so i don't know how this is handled in applets.  
 if you _have_ tried this, then why not tell us that in your post?

>2) Can I mail a document from inside an applet ?
RTFM!  there is an SMTP class which makes sending mail a no-brainer.

sorry to everyone else for the flame, but it's been a long month already.


ben


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

From: Richard Wahongan <n1061925@dodo.fit.qut.edu.au>
Date: Mon, 11 Sep 1995 19:13:35 +1000 (EST)
Subject: Help On FTP

// FTP Test

import java.io.*;
import net.ftp.FtpClient;

class FTPtest
{
  public static void main (String args[])
  {

 FtpClient client = new FtpClient("student.fit.qut.edu.au");
 
 System.out.println("Proxy = " + client.ftpProxyHost);

 client.login("myusername", "mypassw");
 client.ascii();
 client.list();
 client.get("remote_file"); // ascii file
 client.put("local_file");
 
 System.out.println("Closing connection !!");
  }
}

This is my code to open an FTP connection with student.fit.qut.edu.au
But it doesn't really work ! 
The problems :
1) It doesn't get the 'remote_file'
2) It puts the 'local_file' but the file is empty
3) the method 'list' doesn't work !

Any one knows what's the problem ?

1) Do I have to assign the variable 'ftpProxyHost'


Thanks for any suggestion/help !

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@



@                                                                            @
@    Richard Wahongan                               @
@                                                                            @
@ Bach. of Info. Tech. (Hons)  | Phone : 61-7-378 3047  (Home)               @
@ Faculty of Information Techn |         61-41-111 5347 (Home)               @
@ Queensland Uni. of Tech.     | Email : n1061925@dodo.fit.qut.edu.au        @
@ Bribane 4001 AUSTRALIA       |                                             @
@                                                                            @
@           WWW : http://student.fit.qut.edu.au/~n1061925/                   @
@                                                                            @
@           "    Test Everything. Hold on to the good.   "                   @
@                                                                            @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@



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

From: erich@loc100.tandem.com (halpern_eric)
Date: Mon, 11 Sep 1995 13:55:01 -0700
Subject: Security

After reading "HotJava: The Security Story", I have couple of questions.
If anyone can answer them, I'd greatly appreciate it.

According to the paper, one property ensured by the bytecode verifier is that
"when there are two execution paths into the same point, they must arrive 
there with exactly the same type state".  This is to protect against, for
example, a loop copying an array onto the stack. 

1. How can Java protect against this and still allow for recursive function
   calls?  On first thought it seems that this could only be accomplished
   if the "type state" of the stack only includes the current call frame. 
   But an array can easily be copied onto the stack using a recursive
   function call, so disallowing one without disallowing the other doesn't
   really solve the problem.  What's going on here?

2. How could a malicious program take advantage of copying an array to the 
   stack?  Are there any concrete examples of hacks that do such a thing?

I am putting together a presentation on Java and would like to give some
concrete examples of hacks that the runtime protects against.  If anyone has
good papers/books/urls to suggest that discuss the kinds of security concerns
that system like Java must address, I'd sincerely appreciate the references.

Thanks, Eric

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

From: Mike Zheng <mzheng@clyde.ICS.UCI.EDU>
Date: Mon, 11 Sep 1995 14:34:20 -0700
Subject: playing mpeg movies on java pages

Hi, all you software genius and applet experts out there:

 I really apologize for posting a question that might be already "beaten-
to death" or impossible to implement at this time:

I like to write an applet that plays a mpeg movie repeatedly on a hotjava page.

I am sure that a lot of you have looked into this problem already when hotjava
first came out. Actually, I spoke to some of the java team members at sun 
microsystems already about this matter. My impression from their answer is that
the java language is unable to provide the performance that is needed to imple-
ment an mpeg player. So what I have in mind now is implenting a native method,
with its C-codes being a simple unix system() or exec() call, to use a mpeg
player program that I already have to play back a mpeg stream. Now, I don't
know too much about the java language, and much less about unix system program-
ing, I am looking for comments and suggestions desperately. Anything you can  
tell me would be greatly apprecitated. 

 This mailing list is probably my last resort to find answer for my
problem.

Thank you very much ahead of time, Mike


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

From: Network Services <ravi@wolfson.mdcc.edu>
Date: Mon, 11 Sep 1995 19:44:26 -0400
Subject: Windows NT Java Source

Why doesn't SUN distribute the source code for the Windows NT port of Java/HotJava ? 

I would like to get a copy if legal. :-)


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

From: mikea@ai.mit.edu (Michael Afergan)
Date: Mon, 11 Sep 1995 20:33:03 -0400
Subject: HAS ANYONE SUCCESSFULLY LOADED GIFS/FILES ON AN NT PLATFORM??!?

  Sorry for the loud header, I just wanted to make sure anyone who
could help would notice my request.  Here's my problem:

  I want to load a gif (the problem applies to files too) that is
sitting on MY computer.  I am using a new GifImage() command which is
translating properly to hotjava which then prompts me to allow access
to this gif (path and all).  However, even if allow access, I get an
IllegalAccessException error and the standard red screen. 
 
  I have allowed unrestricted access (through the firewall stuff) and
furthermore played with HOTJAVA_READ_PATH in my autoexec.nt, setting
it to both "*" and the explicit path (on seperate occasions), but to no avail. 

  Although I have received many suggestions, none have worked thus
far...Are there any more suggestions out there??

  Thanks,
   -- Mike

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

From: ibalkhi@dnt.dialog.com (Imran Balkhi (NT))
Date: Mon, 11 Sep 1995 17:59:35 -0700
Subject: Accessing java String from native c function.

Hi, 

I am trying to access java string type data element from c native function. At runtime IncompatibleClassChangeException error. Please Help.



Java code:
- ----------


class J_AccNumType  {

    public native void cpJavaToC(Object xx);
 
    String AccNum;

    public void set_AccNum(String value){
  AccNum = value;
 }

    public String get_AccNum(){
  return (AccNum);
 }


    public void saveGuts(){
  cpJavaToC(this);
 }
};



C/C++ code:
- -----------

extern "C"{
#include "StubPreamble.h"
#include "javaString.h"

#include "J_AccNumType.h"

#include <stdio.h>

void J_AccNumType_cpJavaToC(struct HJ_AccNumType *obj,struct Hjava_lang_Object* javaobj);

}

#include <iostream.h>

void J_AccNumType_cpJavaToC(struct HJ_AccNumType *obj,struct Hjava_lang_Object* javaobj)
{

 cout << "Trying to call Java method " << endl;
 
 execute_java_dynamic_method (0, javaobj, "get_AccNum", "()LString");
 
 cout << "data " << *data << endl;

}




Output & Error message at runtime:
- ----------------------------------

Trying to call Java method  
java.lang.IncompatibleClassChangeException J_AccNumType: dynamic method get_AccNum()LString not found
 at J_AccNumType.saveGuts(AccNumType.java:40)
 at TestScript.main(TestScript.java:34)


Note :
- ------

If I change the type of data element AccNum from String to int everything runs fine.

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

From: ibalkhi@dnt.dialog.com (Imran Balkhi (NT))
Date: Mon, 11 Sep 1995 18:33:44 -0700
Subject: Re: Accessing java String from native c function.

> From jsw@cs.brown.edu Mon Sep 11 18:14:18 1995
> From: Jeff White <jsw@cs.brown.edu>
> Date: Mon, 11 Sep 1995 21:14:08 -0400
> To: ibalkhi@dnt.dialog.com
> Subject: Re: Accessing java String from native c function.
> Cc: cmcmanis@scndprsn.Eng.Sun.COM, Orca.Starbuck@Eng.Sun.COM
> 
 
> 
> Your signature is missing a semicolon.  Change it to either "(V)LString;" or
> "(V)Ljava_lang_String;"  One of those should work.  (I'm pretty sure
> you put a V for void parameters... if that doesn't work then take out
> the V).  
> 

I tried the following four things with all of them gave exceptions at runtime

1)"()LString;"
2)"()Ljava_lang_String;"

 1 & 2 resulted in 

java.lang.IncompatibleClassChangeException J_AccNumType: dynamic method get_AccNum()Ljava_lang_String; not found
 at J_AccNumType.saveGuts(AccNumType.java:40)
 at TestScript.main(TestScript.java:34)


3)"(V)LString;"
4)"(V)Ljava_lang_String;"

 3 & 4 resulted in

java.lang.ArrayIndexOutOfBoundsException
 at J_AccNumType.saveGuts(AccNumType.java:40)
 at TestScript.main(TestScript.java:34)



> Whenever you have an Object type, you end it with a semicolon.
> 
> jeff
> 
>  --------------------------------------------------------------------
> | Jeff White jsw@cs.brown.edu http://www.cs.brown.edu/people/jsw/    |
> | "So you run and you run to catch up with the sun but it's sinking  |
> | Racing around to come up behind you again" - pink floyd            |
>  --------------------------------------------------------------------
> 

Thank's 
Imran

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

From: cds@scndprsn.Eng.Sun.COM (Carla Schroer)
Date: Mon, 11 Sep 1995 18:54:47 -0700
Subject: Announcing the Java Developers Kit

 __________________________________________

     Announcing the Java Developers Kit 
 __________________________________________

We're pleased to announce the availability of the Pre-Beta 1 release
of the Java Developers Kit.

The Java Developers Kit (JDK) lets you write applets that
conform to the new, frozen Java Applet API.  

Now you can write Java applets that will run in any Java-enabled
Web browser or standalone viewer.  You can try out the prototype
Java Debugger. You can also load applets -- locally or over the
net -- using the new Java Applet Viewer. 


The JDK helps you to:
- ---------------------
 - Develop applets that conform to the final applet API
 - Convert existing 1.0 Alpha 3 applets 
        - Create applets that run in all Java-enabled browsers
 - Develop Java applications
 - Experiment with the new debugger API (and a prototype 
   command-line debugger) 

 
Supported platforms
- -------------------
*** The JDK is initially available for SPARC Solaris ONLY. ***

The Windows NT and Windows 95 ports will follow in coming weeks.

Expect an announcement soon about the availability of Java for
the Macintosh.


The JDK contains:
- -----------------
 - Java Applet Upgrade Utility, 
     for help in converting applets to the new API

 - Java Applet Viewer, 
     for testing and running applets

 - Java Debugger API and Prototype Debugger,
    an API (java.tools.debug) and early prototype
  of a command-line debugger that uses the API

 - Java Compiler

 - Java Interpreter
  
NOTE: The Pre-Beta 1 release does NOT include a Web browser. 
 

How to get the JDK:
- -------------------
 1. Download the JDK from:

    ftp://java.sun.com/pub/JDK-prebeta1-solaris2-sparc.tar.Z

    Or one of these mirror sites:

    ftp://www.dnx.com/pub/JDK-prebeta1-solaris2-sparc.tar.Z

    ftp://www.blackdown.org/pub/Java/pub/JDK-prebeta1-solaris2-sparc.tar.Z

     Note: The java.sun.com server at Sun is frequently
  swamped with requests. Using a mirror site may be faster. 

    See the following URL for detailed instructions:

    http://java.sun.com/JDK-prebeta1/installation-solaris2-sparc.html
  
 2. Read the README document accompanying the release.

     The README explains the basic steps 
  involved in converting,
    debugging, and running applets.

 3. Read the documentation at our Web site:

    http://java.sun.com/JDK-prebeta1/

         It includes the following:

  - More help on converting alpha applets
  - Frequently asked questions
  - Changes since the last release
  - Applet examples 
  - API documentation
  - Documentation for the Java programming tools
    (including java, javac, and jdb)
  - The latest Java Language Specification
  - Known bugs in the Pre-Beta 1 release of the JDK


Questions? Problems? Comments?
- ------------------------------
 1. Check out the FAQ at:

    http://java.sun.com/JDK-prebeta1/faq.html
  
 2. Before fiiling a bug report, please check the known bugs at:

    http://java.sun.com/JDK-prebeta1/faq.html

    File bug reports using the form at:

    http://java.sun.com/GettingInTouch/BugReport.html

 3. The Java/HotJava mailing lists are active forums
    for posting questions and exchanging information
    with other Java users. See http://java.sun.com/mail.html
    for information on accessing the mailing lists.

 4. Other questions can be sent to java@java.sun.com.


Thanks for your interest.  

We hope you enjoy using the Java Developers Kit Pre-Beta 1 release!


- -- The Java Products Group
   Sun Microsystems, Inc.


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

From: Jeff White <jsw@cs.brown.edu>
Date: Mon, 11 Sep 1995 21:59:39 -0400
Subject: Re: Accessing java String from native c function.

>>>>> "Imran" == Imran Balkhi (NT) <ibalkhi@dnt.dialog.com> writes:

    Imran> I am trying to access java string type data element from c
    Imran> native function. At runtime
    Imran> IncompatibleClassChangeException error. Please Help.


    Imran>  execute_java_dynamic_method (0, javaobj, "get_AccNum",
    Imran> "()LString");
 

Sorry about the confusion, everyone.. ..

The signature should be "(V)Ljava/lang/String;"  

Imran:  Please tell me that this works!!

You always use slashes instead of underscores in the signature.
Wouldn't it be more consisted if underscores were used throughout?

jeff

 --------------------------------------------------------------------
| Jeff White jsw@cs.brown.edu http://www.cs.brown.edu/people/jsw/    |
| "So you run and you run to catch up with the sun but it's sinking  |
| Racing around to come up behind you again" - pink floyd            |
 --------------------------------------------------------------------

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

From: Nicholas Geh <nik@mailhub.ncb.gov.sg>
Date: Tue, 12 Sep 1995 08:32:46 +0900 (SDT)
Subject: Re: SEND IN SOCKET

Richard,

> 
> How can I send data with the class socket ?
> 

 Can't say that I have a wealth of experience in Socket transmission, but 
I just did a Chat program that uses sockets. I would recommend that you 
read up on Windows and UNIX sockets transmission procedures - it is 
pretty much the same commands in Java, except that instead of calling 
functions, you have to call the method (which goes by the same names) in 
the context of a class. Pay attention to methods such as the accept(), 
listen(), bindToPort(), connect(). Other than that, once you open a 
socket, you would transmit data using inputstreams and outputstreams, 
which can be rather messy since data transfer can be asynchrous. If you 
need info on this subject, check out http://www.yahoo.com and surf to the 
relevant topic.

What I did was to design a custom protocol to transmit variable-length
strings, which provides an abstraction for string transfer and saves you
the trouble of having to worry about how many bytes to transmit/receive. 
If you really want the code, email me. I think there are lots of you out
there who have more experience with this area and can come up with better
code than I can. 


Nik


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

From: ibalkhi@dnt.dialog.com (Imran Balkhi (NT))
Date: Mon, 11 Sep 1995 20:21:41 -0700
Subject: Re: Accessing java String from native c function.

Hi Jeff,

> The signature should be "(V)Ljava/lang/String;"  
> 
> Imran:  Please tell me that this works!!

It did worked out, but with minor change.
The signature looked like this "()Ljava/lang/String;"
With "(V)Ljava/lang/String;", it gave "java.lang.ArrayIndexOutOfBoundsException".



 
> jeff
> 
Thank's 

Imran 


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

From: Aleph One <aleph1@dfw.net>
Date: Mon, 11 Sep 1995 22:38:01 -0500 (CDT)
Subject: java.net: No Raw Sockets?

Is there anyway for a stand alone aplication to request a raw socket
under the current API? Looking at http://java.sun.com/ revelead noting.
I want to implement other protocols such as RPC and be able to receive
and send handcrafted IP packets. Is this posible or must I write it
in C and link it in? Thanx in advance.

Aleph One / aleph1@dfw.net
http://underground.org/


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

From: Philip R Brenan <phil@bga.com>
Date: Mon, 11 Sep 1995 23:49:14 -0500 (CDT)
Subject: Re: Windows NT Java Source

Too valuable now?

Phil
http://www.realtime.net/~phil

On Mon, 11 Sep 1995, Network Services wrote:

> Why doesn't SUN distribute the source code for the Windows NT port of Java/HotJava ? 
> 
> I would like to get a copy if legal. :-)
> 
> -
> Note to Sun employees: this is an EXTERNAL mailing list!
> Info: send 'help' to java-interest-request@java.sun.com
> 

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

From: cosuna@giga.com (Ing. Carlos A. Osuna Roffe)
Date: Mon, 11 Sep 1995 23:21:37 GMT
Subject: More on Javier (Java Version Idioma Espa^ol)

I've noticed that some of you didn't quite catched what I meant on the
translation...(maybe something was lost after those words got past my
internal Spanish-to-English compiler)...

Transalting software and its docs isn't new. You just get the original
source or negatives and just replace what's in English (menus, buttons,
forms, etc.) and replace it in Spanish...something like this goes on when
you have installed a localized version of Windows and all dialog boxes seem
a little confused: with English question and Spanish answers--sort like:

Do you wish to save xxx.yyy?

<Aceptar> <Cancelar>

Most of the time this translations are just a waste of time, cuz people tend
to prefer the original version versus the 'patch'...Sometimes you even find
conflicts with one over the other implementation...Things don't quite work
the same with the 'International' version...

Some of you suggested a lookup table...others thought we would be better off
learning  the whole thing in English, and so participate on the community as
a whole...not just this strange experiment called Javier...

This made me thoughtthat you might have missed the point...

We're not looking into a whole new programming environment, nor are we
interested in a dubbed Java using lookup tables...

What we're interested in is a _down-compatible_ system...not an
interoperable environment...

Why? To create Spanish-safe Internet apps (similar to mail, tin and mosaic)
that'll cohabitate (not cooperate) along side Java (English) apps and
applets...just like CBS and NBC live right next to Univision and Telemundo...

To avoid a dual system, all core systems will interoperate in English or
Spanish...alas, all instance variable types and methods are equivalent, that is:

main() {
   ....
}

would be equal to

principal() {
    ....
}

down to the 'bytecode' level.

Also

int UnEntero;

may be equal to:

entero UnEntero

Of course, variables and methods are considered a-lingual, since a method
called: ImageMoveRight can't be equal to MueveImagenAlaDerecha...

Any intrenal relationship will be done thru an explicit extension to the
Traduce class...which will convert instance variables and methods to and
from different language classes...

The main thing is that we're specifing language specific Classes via an
specific method called Idioma() equal to Language(), which would return
"Java" for normal programs and "Javier" for spanish equivalents...

I tried to give some Conceptual examples, since Javier hasn't begun as yet
to be developed...Most things here are proyects and not real parts of the
implementation...

I urge you to visit our new Home Page at:
http://www.xmission.com/~cc/javier/

where you will learn more about this new initiative...

Of course, we're still in the process of translating the site, so please
wait a week or two if you don't speak english...please...

Saludos y muchas gracias... 

THIS MESSAGE BROUGHT TO YOU BY:
....................................................
    Carlos A. Osuna Roffe <cosuna@raza.giga.com>
 "We make other BIG SIGNATURES look like one liners"
.............................................and by:
        Correo_Clave  <cc@xmission.com>
    "You don't even need know how to drive to be 
        on the INFORMATION SUPERHIGHWAY"
......................please visit our HOME PAGE at: 
           http://www.xmission.com/~cc/
====================================================
MADE WITH CARE AND WITH QUALCOMM'S EUDORA LITE 1.4
                            


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

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


-
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