RE: Re. about Class class

1999-01-02 Thread Jari . P . Kinnunen
Hi! You can't do that. You are going to cast an object to something that you don't know what it is going to be. Then what are you going to do with the object after that? Do you know any method to call or what? The whole code after that should be also "dynamic". This sounds like you wan't to do a

Problem on mSQL.

1999-01-02 Thread Gao Lei
Dear friends, When I use JDBC driver to connect the mSQL. I get following error message on one of my machine. "-1:Hostname/IP address mismatch"; but on other machines, the java application runs well. Then, if I telnet the mSQL port(2224), I also get the same string from the database server, of c

Problem on mSQL.

1999-01-02 Thread Gao Lei
Dear friends, When I use JDBC driver to connect the mSQL. I get following error message on one of my machine. "-1:Hostname/IP address mismatch"; but on other machines, the java application runs well. Then, if I telnet the mSQL port(2224), I also get the same string from the database server, of c

Re. about Class class

1999-01-02 Thread SABYASACHI S GUPTA
Yup I figured that out ... but how do I do a typecast when I have the class name in a String variable during runtime. (I do NOT know the class name to typecast). On Thu, 4 Nov 1999, Nathan Meyers wrote: > Nathan Meyers wrote: > > SABYASACHI S GUPTA wrote: > > > > > > public class saby { > > >

Re. about Class class

1999-01-02 Thread SABYASACHI S GUPTA
Yup I figured that out ... but how do I do a typecast when I have the class name in a String variable during runtime. (I do NOT know the class name to typecast). On Thu, 4 Nov 1999, Nathan Meyers wrote: > Nathan Meyers wrote: > > SABYASACHI S GUPTA wrote: > > > > > > public class saby { > > >

Re: Java and Redhat 6.1

1999-01-02 Thread James M. Earle III
XFree86/Gnome/Enlightenment runs the same way for me [crashes] so I don't do X on Redhat 6.0 as a result -- for servers, unless I want utilities. I can reliably run 1.7 Blackdown JDK on Redhat with latest JDBC/ODBC to SQL or Oracle dbs. Caldera has the best and most stable X desktop if that's wha

Re: Question

1999-01-02 Thread jin feng
unsubscribe - Original Message - From: Bernardo Paz Betancourt <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: DD23 CCChang2 <[EMAIL PROTECTED]> Sent: Thursday, November 04, 1999 8:44 PM Subject: Re: Question > Applets can NOT open or write files, for security > I had the same problem t

Re: qestion

1999-01-02 Thread you
thank you very mach I had done it by your Suggestion , and succeed. thanks every one that replied me sorry for my poor English. I am very sorry can I ask another qestion: my Linux Keyborad is set to US(101key) now. and I wont to set it to JP(106key) may using Xconfigurator or other?

Installation problem regarding finding .so libraries

1999-01-02 Thread Rainer Mager
Hi all, Ok, I installed the JDK1.2 and set my PATH var to find the binaries but I still have a problem. When I run java (or javac) I get an error about not being able to load a shared library. After this I edited my /etc/ldconfig.so.conf file to add my jdk1.2/jre/lib/i386/ directory but this

Re: Jdk1.2 and Hotjava 3.0

1999-01-02 Thread Nathan Meyers
Martin Olveyra wrote: > > I know it is recommended to run Hotjava 3.0 with jdk1.1.6, but > has somebody been able to run Hotajava 3.0 with jdk1.2? I've been able to make it sort of limp by using running it under the "oldjava" launcher. It's not a pretty sight. Nathan -

Re: qestion

1999-01-02 Thread you
thank you very mach I had done it by your Suggestion , and succeed. thanks every one that replied me sorry for my poor English. - Original Message - From: Bernardo Paz Betancourt <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: you <[EMAIL PROTECTED]> Sent: Thursday, November 04, 1

Jdk1.2 and Hotjava 3.0

1999-01-02 Thread Martin Olveyra
I know it is recommended to run Hotjava 3.0 with jdk1.1.6, but has somebody been able to run Hotajava 3.0 with jdk1.2? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTE

Re: Compiling shared objects for JNI

1999-01-02 Thread Jacob Nikom
Here I wrote my own tutorial for creating JNI "Hello, World!" application. I think it is more detailed than the SUN's one. Try it, Jacob Nikom Tutorial "In the "Lesson: Compiling and Running a Java Program with a Native Method" the tutorial author described six steps in writing JNI program:

Re: Compiling shared objects for JNI

1999-01-02 Thread Matt Welsh
> libhwrld.so: HelloWorld.C HelloWorld.h > g++ $(CXXFLAGS) $< -o $@ This isn't the right way to generate a .so file. You need to use the -shared switch on gcc (I presume this is also supported by g++, but you can use gcc to transform a g++-generated .o file into a .so). Matt Welsh, UC

Re: Java complains "Could not create Java VM"

1999-01-02 Thread Matthias Pfisterer
Hi Eric, in JDK 1.1.x, you have to include the standard classes in the CLASSPATH. Depending on your installation, include something like /usr/local/java/lib/classes.zip. With JDK1.2.x, this is no longer necessary. Another hint: swingall.jar contains all the other swing-related jars (swing.jar, wi

Java complains "Could not create Java VM"

1999-01-02 Thread Eric Chao
Hi, Java complains " Unable to initialize threads: cannot find class java/lang/Thread Could not create Java VM" when I try to run Swing examples in the /usr/local/swing-1.1.1fcs/example The exact error message that I get is listed below: =

Free Tip

1999-01-02 Thread tip_iceberg
Dear Investor / Business person, Free Tip Iceberg would like you to have the following tip on world currency: Dollar is going to go up vs. the Swiss Franc between 5% and 8% in the next few weeks. We hope you find it useful. And remember, this is just the Tip of the Iceberg. regards, Free Ti

Re: Aplletviewer wont start

1999-01-02 Thread Martin Kavalar
Hello! Thx for your quick reply. What readme do you mean? Theres only one file that came with my jdk, and i cant find anything there. I just found out that the virtual machine doesnt work properly, either. So its not only the appletviewer. Martin On Thu, 04 Nov 1999, James Seigel wrote: > Re

Compiling shared objects for JNI

1999-01-02 Thread Kevin McWhirter
How does one compile/link the shared object for JNI modules. Here is an example the shows the problems I am having. I follow the steps in the Tutorial; namely: 1) Create Java code (HelloWorld.java) 2) Compile 3) Create header for stubs (HelloWorld.h) 4) Create C/C++ code (Hel

Re: about Class class.

1999-01-02 Thread Bruce R Miller
SABYASACHI S GUPTA wrote: > > I dont know this might be something very simple... > so please excuse me. > > I have the following small code. > > public class saby { > > public static void main(String args[]) > { > > String s = "myclass"; > Class

Swing, Threads and InvokeLater() method

1999-01-02 Thread Jacob Nikom
Hi, I wrote small animation application which uses multiple threads and I have some problems running it on my Linux machine. Generally, I do the following: 1. In one thread I calculate my image using MemoryImageSource method (time-consuming task). 2. Stop and start my Animation using buttons.

Re: about Class class.

1999-01-02 Thread Joseph Shraibman
SABYASACHI S GUPTA wrote: > > Now I get the compilation error that method is not there in Object. > So now if I want to call the method of the newly created instance > what should I do... > Cast it. ((myclass) b).method() -

Re: Changing heap size

1999-01-02 Thread Joseph Shraibman
alias java="java -Xmx555" ALPESH KOTHARI wrote: > Hello, > > I am using Java2 on RH6.0. I have developed an GUI > application using Java. Now it runs out of memory at > some places. So I am increasing heap size with the > help of -Xmx and it works fine. But, I have to do this > every time I run

Re: about Class class.

1999-01-02 Thread Nathan Meyers
SABYASACHI S GUPTA wrote: > > I dont know this might be something very simple... > so please excuse me. > > I have the following small code. > > public class saby { > > public static void main(String args[]) > { > > String s = "myclass"; > Class

Re: policytool

1999-01-02 Thread Joseph Shraibman
Oliver Fels wrote: > > This only works for the appletviewer, applications do not make any > use of the java.policy file per default in the Linux 1.2 version. > You need to set a runtime option if you want to use it. > This will change in JDK 1.3 > That is NOT TRUE. I was getting security except

Re: about Class class.

1999-01-02 Thread Oliver Fels
> I have the following small code. > > public class saby { > > public static void main(String args[]) > { > > String s = "myclass"; > Class c = new Class(); > try { > > c = Class.forName(s); > >

Re: ibm jdk 118 and apache jserv

1999-01-02 Thread schen
Hi Aaron, everyone, On Thu, 4 Nov 1999, Aaron M. Stromas wrote: > having read how fast the ibm's jvm is i decided to compile apache jserv > with it. unfotunately, i was getting a library load errors, "unsatisfied > symbol: __bzero" in libjava.so. the old trick of defining macro bzero in > term o

about Class class.

1999-01-02 Thread SABYASACHI S GUPTA
I dont know this might be something very simple... so please excuse me. I have the following small code. public class saby { public static void main(String args[]) { String s = "myclass"; Class c = new Class(); try {

Re: Java and Redhat 6.1

1999-01-02 Thread Ulli Kortenkamp
Paul Grepps wrote: > I would be interested to hear any similar problems that people are > experiencing with XFree86/Gnome/Enlightenment setup and running GUI apps > with JRE 1.1.7v3 or JRE 1.2. > We are using 6.1/Gnome/Enlightenment with 1.1.7_v3 without any problems, even with our Java applicat

Re: Java and Redhat 6.1

1999-01-02 Thread Paul Grepps
Roland Silver wrote: > I'm thinking about upgrading my Linux machine from Redhat 6.0 to > version 6.1, but I don't want to break my Java setup in the process. > > I'm using Blackdown Java 1.1.7v3 with the xx libraries, and I don't > want to go to Java 1.2 until Blackdown makes a stable release. >

Re: Question

1999-01-02 Thread Kantartzis V
you can read a file with an applet by instanciating a URL of type "file://" , but you can not write into the file. On Thu, 4 Nov 1999, Bernardo Paz Betancourt wrote: > Applets can NOT open or write files, for security > I had the same problem trying to acces to my data base in oracle by an appl

ibm jdk 118 and apache jserv

1999-01-02 Thread Aaron M. Stromas
greetings, having read how fast the ibm's jvm is i decided to compile apache jserv with it. unfotunately, i was getting a library load errors, "unsatisfied symbol: __bzero" in libjava.so. the old trick of defining macro bzero in term of memset didn't work this time.  what would be the least intru

Re: Aplletviewer wont start

1999-01-02 Thread James Seigel
Read the FAQ/README/HOWTO your problem is described in there from what I remember. Pooh Bear -- "I am just a bear of little brain" On Thu, 4 Nov 1999, Martin Kavalar wrote: > Hello! > I got a problem with my JDK. I got the jdk1.2pre-v1 at blackdown. Im using SuSE > 6.1. I unpacked the jkd,

Re: Question

1999-01-02 Thread James Seigel
Check your applet tag for codebase tag Check to make sure your datbase driver is available in the directory where your codebase is implied. Make sure you database is on the same machine as the applet is loaded from. 3 is for after you fix the first two. J Pooh Bear -- "I am just a bear of litt

help iso8859

1999-01-02 Thread ales3
Hallo, i wonder hov can i change charatcer encoding iso8859_1 to iso8859_2. I have jdk1.1.7 and RedHat 6.1, country slovenia. In other programs i have iso8859_2 character encoding. Problem is in Java Applet, where is iso8859_1 but it should be iso8859_2. Thanks for help. ales --

Re: Help SCJD.

1999-01-02 Thread James Seigel
References: Sun's java coding standard is good. Remember to document code. Excercise: Quickly write the hello world class/program. Then after you are done Identify 3 good things about it and 5 bad things about your implementation.. ---do the class before you read the next part

Re: Bug in date?

1999-01-02 Thread John Reynolds
Please ignore the previous mails, I got it fixed using DateFormat (Gawd, talk about Sun making things ackward). John John Reynolds wrote: > The bug of course is in Calendar. > > John Reynolds wrote: > > > Hmm is there something wrong with me or is it pre2 problem. > > > > Note the minute field

Aplletviewer wont start

1999-01-02 Thread Martin Kavalar
Hello! I got a problem with my JDK. I got the jdk1.2pre-v1 at blackdown. Im using SuSE 6.1. I unpacked the jkd, and did export PATH=/home//jdk1.2/bin:$PATH Now java and javac seems to work allright, but appletviewer gives me this error message: Exception in thread "main" java.lang.Unsat

Bug in date?

1999-01-02 Thread John Reynolds
Hmm is there something wrong with me or is it pre2 problem. Note the minute field in the time stamp 1999-11-03 23:46:56.0 ^^ and compare it to that in minute field of the calandar object java.util.GregorianCalendar [time=941672816000,areFieldsSet=true,areAllField

Re: Bug in date?

1999-01-02 Thread John Reynolds
The bug of course is in Calendar. John Reynolds wrote: > Hmm is there something wrong with me or is it pre2 problem. > > Note the minute field in the time stamp > 1999-11-03 23:46:56.0 > ^^ > > and compare it to that in minute field of the calandar object > java.u

Re: Question

1999-01-02 Thread Bernardo Paz Betancourt
Applets can NOT open or write files, for security I had the same problem trying to acces to my data base in oracle by an applet. The reason could be this restriction see documentation on applet restrictions. Bernardo At 09:57 a.m. 04/11/99 +0800, you wrote: > >Dear Sirs: >I am junior JAVA progra

Re: qestion

1999-01-02 Thread Bernardo Paz Betancourt
Suggestion: Use Xconfigurator to reinstall the screen & the video card. When you finish this, Xconfigurator will askyou if you see the the message, say yes, a 2 question will appers, "do you want to autosart in Xwindows?" say yes and it sould works. If pr

Changing heap size

1999-01-02 Thread ALPESH KOTHARI
Hello, I am using Java2 on RH6.0. I have developed an GUI application using Java. Now it runs out of memory at some places. So I am increasing heap size with the help of -Xmx and it works fine. But, I have to do this every time I run application. Is it possible someway to permenantly change the h

Printing Swing components.

1999-01-02 Thread Jani Mikkonen
Ive tried to do some printing of Swing components and didnt succeed in anyway. I Think i know how to print normal graphics outputted to Graphics class but outputting components doesnt seem to work for me at all. Here's the code ive tried: import java.lang.*; import java.util.*; import java.awt

Re: policytool

1999-01-02 Thread Oliver Fels
> Could someone please tell me how to use the policy tool to set > permissions for classes I run from my filesystem? I thought this entry Dont use the tool, do it by hand, so you know what you get ;) > grant codeBase "file:" { > permission java.security.AllPermission; > }; grant codeBase "f