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
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
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
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 {
> > >
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 {
> > >
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
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
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?
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
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
-
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
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
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:
> 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
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
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:
=
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
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
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
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
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.
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()
-
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
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
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
> 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);
>
>
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
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 {
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
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.
>
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
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
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,
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
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
--
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
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
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
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
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
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
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
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
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
> 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
45 matches
Mail list logo