Re: How to Read files belong to client

2000-07-26 Thread Patrick Tsoi-A-Sue

This is a solution with a perl script on the server. I suppose you could
replace the server script with java.

Include this form on your web page:

http://yourserver/cgi-bin/savefile.pl>


 


Here is the server script to receive the file savefile.pl.

# - savefile.pl

# Receive file name and file data into buffer at server.
$|=1;
read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});

#
# some code is needed to split file name and file data.
#

open(UPLD, "> /$filename");
print UPLD $buffer;
close(UPLD);

print "Content-type: text/html\n\n";
print <
Thank you very much

Thank you for sending your file.
filename: http://yourserver/$filename>$filename .

$buffer



EOF

At 10:04 AM 7/26/00 +0800, you wrote:
>Hi, Everybody
>
>I want to design an assignment submission system (a simple web page).
>(1) After the students fill their name and they file names (located at their
>own computer), they click submit
>button.
>(2) How to read the files located at their hard disk?
>
>Java Applet or something else?
>
>Thanks advance
>yangyuexiang
>
>
>--
>To UNSUBSCRIBE, email to [EMAIL PROTECTED]
>with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
>
>


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Unable to initialize threads

2000-07-26 Thread linux

I downloaded JDK118_v1 so that I could run the Oracle 8i installer.  The JDK
README seemed clear, so I put the JDK directory in /usr/local, and created
the symbolic link, /usr/local/jre, that the Oracle installer requires.  I
set my PATH to /usr/local/jre/bin:/usr/local/bin:/usr/bin:/bin and tried
running some of the Java demos.  They work just fine using either Netscape
or the appletviewer.  But whenever I try to invoke jre, I get the error:

Unable to initialize threads: cannot find class java/lang/Thread
Could not create Java VM

I've tried several things that the documentation seemed to suggest, like
"unsetting" CLASSPATH, setting the THREADS_FLAG environment variable to both
"native" and "green," changing the DEFAULT_THREADS_FLAG to both options in
the .java_wrapper and running as different users.  I even tried downloading
JRE_116_v5, but got exactly the same error.  Oh, and BTW, I'm using the KDE
window manager, not Enlightenment.

Since I get the error any time I try to invoke jre, it's not the Oracle
Installer, so what is the problem?  I've spent two days on it now, and I'm
not any closer to a solution!

--
Matthew Plumb, President
Reality-Based Consulting, Inc.



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Unable to initialize threads

2000-07-26 Thread linux

Ok, I've finally figured out that I have to set
CLASSPATH=/usr/local/jdk118_v1/lib/classes.zip, even thought the
documentation seem pretty clear about _un_setting the CLASSPATH.  So now I
can compile and run my "hello world" program.  Off I go to try the Oracle
Installer again.  This time I get:

Initializing Java Virtual Machine from /usr/local/jre/bin/jre. Please
wait...
Error in CreateOUIProcess(): -1
: Bad address

Any ideas on this one?  Since can run my "hello world" program, I guess this
one probably has to do with the Oracle Installer, not Java, huh?


> From: linux <[EMAIL PROTECTED]>
> Date: Wed, 26 Jul 2000 10:42:59 -0400
> To: <[EMAIL PROTECTED]>
> Subject: Unable to initialize threads
> 
> I downloaded JDK118_v1 so that I could run the Oracle 8i installer.  The JDK
> README seemed clear, so I put the JDK directory in /usr/local, and created the
> symbolic link, /usr/local/jre, that the Oracle installer requires.  I set my
> PATH to /usr/local/jre/bin:/usr/local/bin:/usr/bin:/bin and tried running some
> of the Java demos.  They work just fine using either Netscape or the
> appletviewer.  But whenever I try to invoke jre, I get the error:
> 
> Unable to initialize threads: cannot find class java/lang/Thread
> Could not create Java VM
> 
> I've tried several things that the documentation seemed to suggest, like
> "unsetting" CLASSPATH, setting the THREADS_FLAG environment variable to both
> "native" and "green," changing the DEFAULT_THREADS_FLAG to both options in the
> .java_wrapper and running as different users.  I even tried downloading
> JRE_116_v5, but got exactly the same error.  Oh, and BTW, I'm using the KDE
> window manager, not Enlightenment.
> 
> Since I get the error any time I try to invoke jre, it's not the Oracle
> Installer, so what is the problem?  I've spent two days on it now, and I'm not
> any closer to a solution!
> 
> --
> Matthew Plumb, President
> Reality-Based Consulting, Inc.
> 


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Using DB2 w/ Sun J2EE server

2000-07-26 Thread jknutson

I've been using the sun 1.2.2 SDK along with the sun 1.2.1 enterprise SDK
on a linux box.  The intent is to learn how to effectively use EJB to
access a data warehouse.

I've managed to get through the first five lesson's in Monica Pawlan's
"Writing Enterprise Applications with Java 2 SDK, Enterprise Edition" using
the Cloudscape database, but I'm starting think about how to solve my own
problems using our RDBMS, DB2.

Has anyone out there successfully used DB2 with the sun reference EJB
server?  Cloudscape works, setting the entity bean database JNDI name to
jdbc/Cloudscape, but I expect db2 to be slightly more complicated.  But if
I were to guess, I'd say that you need to be running db2jd and use
"jdbc/db2/" as the jndi name.  I haven't tried yet.  I still
have a lot to learn :-)

Anyway, if someone has info to share I'd appreciate it.




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Unable to initialize threads

2000-07-26 Thread linux

Martin, 

Thanks for the hint.  A discussion at Oracle Technet lead me to this page:

http://homepages.tig.com.au/~jmsalvo/linux/oracle8i.html

Apparently the Oracle installer Java program looks for the rt.jar file that
the JRE uses, and doesn't work with the classes.zip file the JDK uses.
Using JRE instead of JDK, I've managed to get the Installer running.  Of
course I haven't gotten the install to _work_, but that's not a Java
problem.

To the Java-Linux listers,

Thanks for putting up with me.  Since the Java problem is resolved, I won't
bother you any more.  For what it may be worth, the documentation I found
said that you could create a symbolic link called "rt.jar" pointing to
"classes.zip" in that same directory to fix the error message I was getting.
It might help you with some other, misbehaving Java program.



From: Martin Gustavo Dobro <[EMAIL PROTECTED]>
Date: Wed, 26 Jul 2000 17:00:18 -0300
To: "'linux'" <[EMAIL PROTECTED]>
Subject: RE: Unable to initialize threads



Hello 
I find a page in Oracle Technet
I've a same problem and I will probe with this.

http://www.oracle.com/support/oracleinstall/dbserver/LinuxInstall.pdf

Good Luck 

Gustavo 

-Mensaje original-
De: linux [SMTP:[EMAIL PROTECTED]]
Enviado el: MiƩrcoles, 26 de Julio de 2000 12:11 p.m.
Para:   linux 
CC: [EMAIL PROTECTED]
Asunto: Re: Unable to initialize threads

Ok, I've finally figured out that I have to set
CLASSPATH=/usr/local/jdk118_v1/lib/classes.zip, even thought the
documentation seem pretty clear about _un_setting the CLASSPATH.  So now I
can compile and run my "hello world" program.  Off I go to try the Oracle
Installer again.  This time I get:

Initializing Java Virtual Machine from /usr/local/jre/bin/jre. Please
wait... 
Error in CreateOUIProcess(): -1
: Bad address 

Any ideas on this one?  Since can run my "hello world" program, I guess this
one probably has to do with the Oracle Installer, not Java, huh?

> From: linux <[EMAIL PROTECTED]>
> Date: Wed, 26 Jul 2000 10:42:59 -0400
> To: <[EMAIL PROTECTED]>
> Subject: Unable to initialize threads
> 
> I downloaded JDK118_v1 so that I could run the Oracle 8i installer.  The JDK
> README seemed clear, so I put the JDK directory in /usr/local, and created the
> symbolic link, /usr/local/jre, that the Oracle installer requires.  I set my
> PATH to /usr/local/jre/bin:/usr/local/bin:/usr/bin:/bin and tried running some
> of the Java demos.  They work just fine using either Netscape or the
> appletviewer.  But whenever I try to invoke jre, I get the error:
> 
> Unable to initialize threads: cannot find class java/lang/Thread
> Could not create Java VM
> 
> I've tried several things that the documentation seemed to suggest, like
> "unsetting" CLASSPATH, setting the THREADS_FLAG environment variable to both
> "native" and "green," changing the DEFAULT_THREADS_FLAG to both options in the
> .java_wrapper and running as different users.  I even tried downloading
> JRE_116_v5, but got exactly the same error.  Oh, and BTW, I'm using the KDE
> window manager, not Enlightenment.
> 
> Since I get the error any time I try to invoke jre, it's not the Oracle
> Installer, so what is the problem?  I've spent two days on it now, and I'm not
> any closer to a solution!
> 
> -- 
> Matthew Plumb, President
> Reality-Based Consulting, Inc.
> 

--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]