Re: Printing with 1.2
On Thu, 11 Nov 1999, Greg Tomalesky wrote: > Hi Gang: > > Does anyone know where I can get some examples of printing under JDK > 1.2? The trick is to use the java.awt.PrintJob class. Take a look at my retepPDF library. Although it's not directly printing, it extends PrintJob, so the example code may help you. http://www.retep.org.uk/pdf Peter -- Peter T Mount [EMAIL PROTECTED] Main Homepage: http://www.retep.org.uk PostgreSQL JDBC Faq: http://www.retep.org.uk/postgres Java PDF Generator: http://www.retep.org.uk/pdf -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
java library
hi is there exist a java class in which i can to transcoding , i,e from mpeg to other file formats.(i.e audio) regards abeezar ms student , india. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: code question
Hello! You cant read anything on the local machine with java, just from the server that contains the class files. This is because of secuity. cya Martin On Mon, 15 Nov 1999, Yohans Mendoza wrote: > hi all, > > is it possible to open, read and write files froma an applet? > > I know it's off topic, but I really need to know that. > > TIA > > --Yohans > > ~ > Yohans MendozaUnix Administrator > [EMAIL PROTECTED] Sirius Images Inc. > http://www2.utep.edu/~yohans http://www.sirius-images.net > ~ > > > -- > 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]
setReceiveBufferSize in jdk1.1
Is there any way that I can quickly hack up the java.net.Socket.setReceiveBufferSize() method in jdk1.1? I know the method exists in jdk1.2 but the pre-release versions are too unstable to run my application right now. I've been looking at the jdk1.1 sources but I can't seem to find the native function source codes anywhere. Any help would be greatly appreicated. Allen. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Setting default encoding for String (byte[])
Hi, I am facing a strange behavior with JDK 1.2. String(byte[]) is supposed to construct a string from a byte array. using default encoding. The default encoding in terms comes from sun.io.ByteToCharConverter's getDefault(). I am wondering what determine what's return by the getDefault in ByteToCharConverter. My program if runs under command line use the current Big5 encoding. However, when I run it as a servlet under apache, it use ISO8859_1 converter. I have try to set a couple paramter for the VM from file.encoding, user.lang to user.region and none of these seems to affect the the default converter. I wonder how the getDefault() method is controled. David Li -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Setting default encoding for String (byte[])
On Wed, 17 Nov 1999 01:02:22 +0800, David Li wrote: >Hi, I am facing a strange behavior with JDK 1.2. > >String(byte[]) is supposed to construct a string from a byte array. >using default encoding. The default encoding in terms comes from >sun.io.ByteToCharConverter's getDefault(). I am wondering what determine >what's return by the getDefault in ByteToCharConverter. > >My program if runs under command line use the current Big5 encoding. >However, when I run it as a servlet under apache, it use ISO8859_1 >converter. I have try to set a couple paramter for the VM from >file.encoding, user.lang to user.region and none of these seems to >affect the the default converter. I wonder how the getDefault() method >is controled. That is controlled via the locale setting which in within the environment of the process that starts the JVM. You most likely do not have that same environment running in the apache server process or the servlet engine under apache (depending on how you configured it and which servlet engine you used) You should check that the correct environment (espcially locale and timezone) settings exist in the web server process and any processes it spawns. -- Michael Sinz Technology and Engineering Director/Consultant "Starting Startups" mailto:[EMAIL PROTECTED] My place on the web ---> http://www.users.fast.net/~michael_sinz -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: code question
Martin Kavalar wrote: > You cant read anything on the local machine with java, just from the server > that contains the class files. This is because of secuity. Well actually you can but it depends which browser you're using: - in Netscape (and probably IE) you need a digital certificate - in IE you can specify a "trusted internet zone" which will allow applets on a particular domain to gain access to your hard-drive. Robbie -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Version for GlibC
[EMAIL PROTECTED] wrote: > > > ermirza erekose writes: > > Please quote correctly. > > >> On Mon, 8 Nov 1999, Oliver Fels wrote: > >> >6.0 is (still) libc5, > >> 6.0 is glibc 2.0. > > > hmmm ... I believe 6.0 is glibc 2.1 > > Don't mix the distributions: SuSE 6.0 (and we're discussing SuSE here) > is libc5 - RedHat 6.0 is glibc 2.1. > > > The latest glibc is 2.1.2 > and will be on SuSE 6.3. > > >> > >> >6.1 is glibc2.0 and > >> >6.2 is based on glibc2.1, > >> and 6.3 is glibc 2.1.2 > >> > >> Bernd > Could you print this glibc version info on the shrinked wrapped boxes for SuSE 6.3 and for all forthcoming SuSEs. It would definitely help me! Better yet put in the disk README or have any new upgrade or install print this out in `dmesg' Cheers -- Adios Peter - import std.Disclaimer; // More Java for your Lava, Mate. "Give the man, what he wants. £££" [on Roy Keane, Quality Player] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: code question
> Hello! > You cant read anything on the local machine with java, just from the server > that contains the class files. This is because of secuity. > cya > Martin This is not true. As long as the security model in the browser is set properly you can read and write files to the local drive just as if you were running an application. --Corey > On Mon, 15 Nov 1999, > Yohans Mendoza wrote: > hi all, > > > is it possible to open, read and write files froma an applet? > > > > I know it's off topic, but I really need to know that. > > > > TIA > > > > --Yohans > > > > ~ > > Yohans Mendoza Unix Administrator > > [EMAIL PROTECTED]Sirius Images Inc. > > http://www2.utep.edu/~yohanshttp://www.sirius-images.net > > ~ > > > > > > -- > > 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] > /* Corey Brown (WB0RXQ): 20m, 15m, 2m(146.82) 70cm(443.65) */ /* RAPID/FASTAR Development District */ /* AT&T NCS | [EMAIL PROTECTED] */ /* Alpharetta, Ga 30005 | [EMAIL PROTECTED] */ /* (770)750-8071 | New rays from an ancient sun (JS) */ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Pass by Reference question.
[EMAIL PROTECTED] wrote:
>
> I expected the following to work since Objects are supposedly
> pass-by-reference. Am I doing something wrong here?
>
> I'm just trying to change a Boolean value inside of a method and return
> as pass-by-reference to the caller.
>
> My environment is:
> Blackdown JDK1.2 pre2, RedHat 6.1, glibc 2.1.2
>
> The output of the following program is:
> Boolean before: false
> changeBoolean(): false
> changeBoolean(): true
> Boolean after: false
>
> I expected the Boolean after: to be true.
>
two rules:
primitives are passed by value.
objects are passed by reference
solution pass an array which qualified as an object since you
must `new ...' it!!!
> --
> public class BooleanTest2 {
public void changeBoolean(Boolean [] pbj ) {
>
> System.out.println("changeBoolean(): " + b.booleanValue());
> b = Boolean.TRUE;
> System.out.println("changeBoolean(): " + b.booleanValue());
obj[0] = Boolean.True;
> }
>
> public static void main(String args[])
> {
> BooleanTest2 bt = new BooleanTest2();
> Boolean bool = new Boolean(false);
>
> System.out.println("Boolean before: " + bool.booleanValue());
Boolean [] obj = new Boolean [1];
obj[0] = Boolean.False;
s.o.println( "before:"+obj[0] );
bt.changeBoolean( obj);
s.o.println( "after:"+obj[0] );
> System.out.println("Boolean after: " + bool.booleanValue());
> }
> }
>
> ---
> I expected the following to work since Objects are supposedly
> pass-by-reference. Am I doing something wrong here?
>
> I'm just trying to change a Boolean value inside of a method and return as
> pass-by-reference to the caller.
>
> My environment is:
> Blackdown JDK1.2 pre2, RedHat 6.1, glibc 2.1.2
>
> The output of the following program is:
> Boolean before: false
> changeBoolean(): false
> changeBoolean(): true
> Boolean after: false
>
> I expected the Boolean after: to be true.
>
> --
> public class BooleanTest2 {
> public void changeBoolean(Boolean b) {
>
> System.out.println("changeBoolean(): " + b.booleanValue());
> b = Boolean.TRUE;
> System.out.println("changeBoolean(): " + b.booleanValue());
> }
>
> public static void main(String args[])
> {
> BooleanTest2 bt = new BooleanTest2();
> Boolean bool = new Boolean(false);
>
> System.out.println("Boolean before: " + bool.booleanValue());
> bt.changeBoolean(bool);
> System.out.println("Boolean after: " + bool.booleanValue());
> }
> }
--
Adios
Peter
-
import std.Disclaimer; // More Java for your Lava, Mate.
"Give the man, what he wants. £££" [on Roy Keane, Quality Player]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: java library
Hi, have a look at the Java Media Framework (JMF). As far as I know, the latest version supports MP3. Matthias Pfisterer Abeezar wrote: > > hi > > is there exist a java class in which i can to transcoding , i,e from > mpeg to other file formats.(i.e audio) > > regards > abeezar > ms student , > india. > > -- > 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]
Re: What is JDK 1.3 like?
[EMAIL PROTECTED] wrote: > > I read that announcement as well... but it said "With the help of the > Blackdown team Sun hopes to... yadda yadda" so from what I understand, > Blackdown will still be doing the ports. > > Can anyone clarify this along with anwering my original question of how > difficult 1.3 will be compared to 1.2? > > -Riyad Well I suppose they [sun] have to port 1.3 themselves, since they bought Star Divison. If they really want to release a Java version of Star Office of a portal then something has to be down to improve the performance of Java on Linus. This means they have to port HotSpot and the rest of the extended JDK elements JNDI, JMF, JavaSound, EJB to make it viable , at least for business to take it serious enough. -- Adios Peter - import std.Disclaimer; // More Java for your Lava, Mate. "Give the man, what he wants. £££" [on Roy Keane, Quality Player] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: code question
Well, not quite. Check out the Netscape capabilities classes to learn about signing applets and obtaining needed capabilities: http://developer.netscape.com:80/docs/manuals/signedobj/capabilities/contents.htm Nathan On Tue, Nov 16, 1999 at 05:33:18PM +0100, Martin Kavalar wrote: > Hello! > You cant read anything on the local machine with java, just from the server > that contains the class files. This is because of secuity. > cya > Martin > On Mon, 15 Nov 1999, > Yohans Mendoza wrote: > hi all, > > > is it possible to open, read and write files froma an applet? > > > > I know it's off topic, but I really need to know that. > > > > TIA > > > > --Yohans > > > > ~ > > Yohans Mendoza Unix Administrator > > [EMAIL PROTECTED]Sirius Images Inc. > > http://www2.utep.edu/~yohanshttp://www.sirius-images.net > > ~ > > > > > > -- > > 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] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
To use Sniff+... Re: Version for GlibC
Peter Pilgrim wrote: > > Could you print this glibc version info on the shrinked wrapped boxes > for SuSE 6.3 and for all forthcoming SuSEs. Hi - while on the topic of Suse, Java and glibc versions, [ob java+linux] I want to check out this "Java/Web" version of Sniff+, and have a Suse 6.0 system. [/ob java+linux] I can't, though, because I don't have glibc 2.1. Is there a document on Suse's Site, or anywhere else, that explains how to quickly add the glibc 2.1 libraries --just for the purposes of running a dynamically linked application--? I browsed through the www.suse.de site, and couldn't find anything. There's several (complex) instructions elsewhere on the web about this (ie. glibc 2 howto), but they're geared for people doing glibc development. They usually start with "Extract the source distribution...". I'd think that I shouldn't have to do that! Thanks for any help, Robb -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: code question
Thanks for the responses but what I actually need to access the file system in the server, not the local machine where the applet is being executed. Thanks again ~ Yohans Mendoza Unix Administrator [EMAIL PROTECTED]Sirius Images Inc. http://www2.utep.edu/~yohanshttp://www.sirius-images.net ~ On Tue, 16 Nov 1999, Nathan Meyers wrote: > Well, not quite. Check out the Netscape capabilities classes to learn about > signing applets and obtaining needed capabilities: > > http://developer.netscape.com:80/docs/manuals/signedobj/capabilities/contents.htm > > Nathan > > > On Tue, Nov 16, 1999 at 05:33:18PM +0100, Martin Kavalar wrote: > > Hello! > > You cant read anything on the local machine with java, just from the server > > that contains the class files. This is because of secuity. > > cya > > Martin > > On Mon, 15 Nov 1999, > > Yohans Mendoza wrote: > hi all, > > > > is it possible to open, read and write files froma an applet? > > > > > > I know it's off topic, but I really need to know that. > > > > > > TIA > > > > > > --Yohans > > > > > > ~ > > > Yohans MendozaUnix Administrator > > > [EMAIL PROTECTED] Sirius Images Inc. > > > http://www2.utep.edu/~yohans http://www.sirius-images.net > > > ~ > > > > > > > > > -- > > > 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] > > > -- > 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]
Signal - Threads - Problem
I'm stuck against a problem and I'm not sure which way to take,
example :
Thread 1
Thread 2
Thread 3
ThreadGroup 2543543 (random number)
Reader Thread
AsyncInputStream
Thread
Writer Thread
ThreadGroup 32453453 (random number)
Reader Thread
AsyncInputStream
Thread
Writer Thread
I need to cancel ThreadGroup 32453453 from Thread 2, how do I go about
doing this. I've tried using the interrupt method on say the reader thread
without any luck (isinterrupt() doesnt return true for some reason). I'm
still learing java, could I set a boolean flag in for the reader thread
in Thread 2 , for example
Thread 2 Code
[Reader Thread,32453453].timetoquit=true
Reader Thread Code
If [Reader Thread,32453453].timetoquit=true {
...bla bla
}
Also if I destroy all threads from a threadgroup using the destroy()
method would this clean up afterwards (release memory used) ???
Thanks
Ron
Re: code question
On Tue, Nov 16, 1999 at 01:41:14PM -0700, Yohans Mendoza wrote: > Thanks for the responses but what I actually need to access the file > system in the server, not the > local machine where the applet is being executed. Ah, well, that's a pretty important piece of missing information. The question is what the server is doing to make its local resources available to remote clients. Networked file systems? FTP? HTTP PUT and GET operations? A custom servlet? If the server is providing some way for remote clients to access files, then applets can access files on the server - just like any other client. Some techniques (like HTTP PUT and GET) are doable without requiring additional permissions outside the sandbox, others may require granting special permissions on the client side. Nathan > > > Thanks again > > ~ > Yohans MendozaUnix Administrator > [EMAIL PROTECTED] Sirius Images Inc. > http://www2.utep.edu/~yohans http://www.sirius-images.net > ~ > > On Tue, 16 Nov 1999, Nathan Meyers wrote: > > > Well, not quite. Check out the Netscape capabilities classes to learn about > > signing applets and obtaining needed capabilities: > > > > >http://developer.netscape.com:80/docs/manuals/signedobj/capabilities/contents.htm > > > > Nathan > > > > > > On Tue, Nov 16, 1999 at 05:33:18PM +0100, Martin Kavalar wrote: > > > Hello! > > > You cant read anything on the local machine with java, just from the server > > > that contains the class files. This is because of secuity. > > > cya > > > Martin > > > On Mon, 15 Nov 1999, > > > Yohans Mendoza wrote: > hi all, > > > > > is it possible to open, read and write files froma an applet? > > > > > > > > I know it's off topic, but I really need to know that. > > > > > > > > TIA > > > > > > > > --Yohans > > > > > > > > ~ > > > > Yohans Mendoza Unix Administrator > > > > [EMAIL PROTECTED]Sirius Images Inc. > > > > http://www2.utep.edu/~yohanshttp://www.sirius-images.net > > > > ~ > > > > > > > > > > > > -- > > > > 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] > > > > > > -- > > 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]
Re: code question
Hi Johans, this is normally done via the web server using the http protocol. To read files, this can be done the usual way. Writing files is nore complicated. There are two possibilities: PUT requests and POST requests. I've attached a program that demonstrates hot to use PUT requests. For configureing apache to accept PUT requests, see http://www.apacheweek.com/features/put. Be aware that enabling PUT incorporates security risks. For production uses, I recommend POST requests. They also have security risks, but can be controlled much better. Matthias Pfisterer Yohans Mendoza wrote: > > Thanks for the responses but what I actually need to access the file > system in the server, not the > local machine where the applet is being executed. > > Thanks again > > ~ > Yohans Mendoza Unix Administrator > [EMAIL PROTECTED]Sirius Images Inc. > http://www2.utep.edu/~yohanshttp://www.sirius-images.net > ~ > > On Tue, 16 Nov 1999, Nathan Meyers wrote: > > > Well, not quite. Check out the Netscape capabilities classes to learn about > > signing applets and obtaining needed capabilities: > > > > >http://developer.netscape.com:80/docs/manuals/signedobj/capabilities/contents.htm > > > > Nathan > > > > > > On Tue, Nov 16, 1999 at 05:33:18PM +0100, Martin Kavalar wrote: > > > Hello! > > > You cant read anything on the local machine with java, just from the server > > > that contains the class files. This is because of secuity. > > > cya > > > Martin > > > On Mon, 15 Nov 1999, > > > Yohans Mendoza wrote: > hi all, > > > > > is it possible to open, read and write files froma an applet? > > > > > > > > I know it's off topic, but I really need to know that. > > > > > > > > TIA > > > > > > > > --Yohans > > > > > > > > ~ > > > > Yohans MendozaUnix Administrator > > > > [EMAIL PROTECTED] Sirius Images Inc. > > > > http://www2.utep.edu/~yohans http://www.sirius-images.net > > > > ~ > > > > > > > > > > > > -- > > > > 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] > > > > > > -- > > 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] URLCTest.java
Java2 & Alpha
Is there any work being done on porting JDK 1.2 to Linux on Alpha? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Compile Error from BlackDown jdk 1.1.7
Hi: I installed BlackDown jdk_1.1.7-v3-glibc-x86.tar.gz on RedHat 6.1 Linux. There is no problem to compile a simple java application (hello.java). But got compile error when compile an application with Swing component. The error message is "Package com.sun.java.swing.* not found in import". What I missed? Should I download and install JFC/Swing package separately? Thank you. Lee -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Compile Error from BlackDown jdk 1.1.7
On Tue, 16 Nov 1999 16:33:36 -0600, [EMAIL PROTECTED] wrote: >Hi: > >I installed BlackDown jdk_1.1.7-v3-glibc-x86.tar.gz on RedHat 6.1 Linux. >There is no problem to compile a simple java application (hello.java). But >got compile error when compile an application with Swing component. The >error message is "Package com.sun.java.swing.* not found in import". What I >missed? Should I download and install JFC/Swing package separately? Well, two things: 1) Swing is not part of JDK 1.1.x - you need to download it from Sun and put the swingall.jar file into your classpath. 2) The package name com.sun.java.swing.* is most likely from an older swing (pre-Swing 1.1 and thus pre-Java 1.2 also) naming. You may need to either use the older swing (Swing 1.0.3 or a beta version of Swing 1.1) or fix your code to use the final javax.swing package naming. Remember, Swing was an add-on in JDK 1.1.x Download the Swing 1.1.1 (which is the current GA version) and add its swingall.jar to your classpath. -- Michael Sinz Technology and Engineering Director/Consultant "Starting Startups" mailto:[EMAIL PROTECTED] My place on the web ---> http://www.users.fast.net/~michael_sinz -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Compile Error from BlackDown jdk 1.1.7
The package name changed to javax.swing. That's also the case with reasonably recent releases of Swing1.1 for JDK1.1. Nathan On Tue, Nov 16, 1999 at 04:33:36PM -0600, [EMAIL PROTECTED] wrote: > Hi: > > I installed BlackDown jdk_1.1.7-v3-glibc-x86.tar.gz on RedHat 6.1 Linux. > There is no problem to compile a simple java application (hello.java). But > got compile error when compile an application with Swing component. The > error message is "Package com.sun.java.swing.* not found in import". What I > missed? Should I download and install JFC/Swing package separately? > > Thank you. > > > Lee > > > -- > 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]
Re: Compile Error from BlackDown jdk 1.1.7
On Tue, 16 Nov 1999 [EMAIL PROTECTED] wrote: > Hi: > > I installed BlackDown jdk_1.1.7-v3-glibc-x86.tar.gz on RedHat 6.1 Linux. > There is no problem to compile a simple java application (hello.java). But > got compile error when compile an application with Swing component. The > error message is "Package com.sun.java.swing.* not found in import". What I > missed? Should I download and install JFC/Swing package separately? Yes. And remember that sun moved swing to javax.swing. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: code question
Hey! Guess it was a big mistake trying to post a reply for the first time. Theres like 49 answers telling me that im wrong. Sorry bout that! martin On Tue, 16 Nov 1999, corey wrote: > > Hello! > > You cant read anything on the local machine with java, just from the server > > that contains the class files. This is because of secuity. > > cya > > Martin > > This is not true. As long as the security model in the > browser is set properly you can read and write files > to the local drive just as if you were running an > application. > > --Corey > > > On Mon, 15 Nov 1999, > > Yohans Mendoza wrote: > hi all, > > > > is it possible to open, read and write files froma an applet? > > > > > > I know it's off topic, but I really need to know that. > > > > > > TIA > > > > > > --Yohans > > > > > > ~ > > > Yohans MendozaUnix Administrator > > > [EMAIL PROTECTED] Sirius Images Inc. > > > http://www2.utep.edu/~yohans http://www.sirius-images.net > > > ~ > > > > > > > > > -- > > > 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] > > > > /* Corey Brown (WB0RXQ): 20m, 15m, 2m(146.82) 70cm(443.65) */ > /* RAPID/FASTAR Development District*/ > /* AT&T NCS| [EMAIL PROTECTED] */ > /* Alpharetta, Ga 30005| [EMAIL PROTECTED] */ > /* (770)750-8071 | New rays from an ancient sun (JS) */ > > > -- > 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]
Re: Newbie Question - Please Help
Note, when it says Warning, it isn't an error. You are doing finethere isn't a problem...it just isn't using a JIT. Cheers James. Don Hatch wrote: > I can't seem to get my envireonment variables to work. When I run javac file.java I >get his error: > "Warning: JIT compiler "sunwjit" not found. Will use interpreter." > > It creates a class file and runs fine, but I still get the error. If anyone has any >suggestions, please help. I'm running Debian 2.1 with jdk1.2pre-v2. Here is a copy >of .profile: > > PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/mysql/bin:/usr/local/java/jdk1.2/bin > DISPLAY=:0 > JAVA_HOME=/usr/local/java/jdk1.2 > CLASSPATH=.:/usr/local/java/jdk1.2/jre/lib/rt.jar: > > export PATH DISPLAY JAVA_HOME CLASSPATH > > Thanks in advance, > > Don Hatch > > ___ > Site Design, Hosting, and E-Commerce at www.webpipe.net > > -- > 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]
Re: code question
Absolutely not true! Posting answers (and, yes, being wrong once in a while) is the best way to expand your knowledge! Trust me (from personal experience, and LOTS of it), you'll NEVER forget the answers to the questions you're wrong on! :) Ted Neward CTO, WebRaiser ( http://www.webraiser.com ) Java Instructor, DevelopMentor ( http://www.develop.com ) Author: "Core OWL 5.0", "Advanced OWL 5.0", "Server-Side Java" http://www.manning.com ) Patterns/C++/Java/CORBA/EJB/COM-DCOM spoken here http://www.javageeks.com/~tneward -Original Message- From: Martin Kavalar <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Tuesday, November 16, 1999 6:09 PM Subject: Re: code question >Hey! >Guess it was a big mistake trying to post a reply for the first time. Theres >like 49 answers telling me that im wrong. Sorry bout that! >martin > > On Tue, 16 Nov 1999, >corey wrote: > > Hello! >> > You cant read anything on the local machine with java, just from the server >> > that contains the class files. This is because of secuity. >> > cya >> > Martin >> >> This is not true. As long as the security model in the >> browser is set properly you can read and write files >> to the local drive just as if you were running an >> application. >> >> --Corey >> >> > On Mon, 15 Nov 1999, >> > Yohans Mendoza wrote: > hi all, > >> > > is it possible to open, read and write files froma an applet? >> > > >> > > I know it's off topic, but I really need to know that. >> > > >> > > TIA >> > > >> > > --Yohans >> > > >> > > ~ >> > > Yohans Mendoza Unix Administrator >> > > [EMAIL PROTECTED] Sirius Images Inc. >> > > http://www2.utep.edu/~yohanshttp://www.sirius-images.net >> > > ~ >> > > >> > > >> > > -- >> > > 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] >> > >> >> /* Corey Brown (WB0RXQ): 20m, 15m, 2m(146.82) 70cm(443.65) */ >> /* RAPID/FASTAR Development District */ >> /* AT&T NCS | [EMAIL PROTECTED] */ >> /* Alpharetta, Ga 30005 | [EMAIL PROTECTED] */ >> /* (770)750-8071 | New rays from an ancient sun (JS) */ >> >> >> -- >> 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] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: To use Sniff+... Re: Version for GlibC
> Robb Shecter writes: > Peter Pilgrim wrote: >> >> Could you print this glibc version info on the shrinked wrapped boxes >> for SuSE 6.3 and for all forthcoming SuSEs. > Hi - while on the topic of Suse, Java and glibc versions, > [ob java+linux] > I want to check out this "Java/Web" version of Sniff+, and have a Suse 6.0 > system. > [/ob java+linux] > I can't, though, because I don't have glibc 2.1. > Is there a document on Suse's Site, or anywhere else, that explains how to > quickly add the glibc 2.1 libraries --just for the purposes of running a > dynamically linked application--? No, there isn't. > I browsed through the www.suse.de site, and couldn't find anything. > There's several (complex) instructions elsewhere on the web about this (ie. > glibc 2 howto), but they're geared for people doing glibc development. > They usually start with "Extract the source distribution...". > I'd think that I shouldn't have to do that! There's really no other way. glibc uses some special paths (specified at compile time) and you can not just place the libraries in another location. It might work - but it might also fail in subtle ways. Putting them in /usr/lib and /lib will break your libc5 system. Either install glibc as a secondary lib (read the HowTo and the FAQ), or get yourself a distribution that comes with glibc 2.1.x. Andreas -- Andreas Jaeger SuSE Labs [EMAIL PROTECTED] private [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
