ver, the capability of spawning threads is enough to
solve a lot of problems.
--
Weiqi Gao
[EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
).
--
Weiqi Gao
[EMAIL PROTECTED]
-Original Message-
From: Ali Ghaharbeighi [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 16, 2002 9:10 PM
To: [EMAIL PROTECTED]
Subject: New to Java
Hi,
I am very new to Java and would like to learn this language. Using both
windows and Linux
ing the specific functions you are
interested in. But I do have a Linux/Intel port of the Shared Stubs JNI
Example from Sheng Liang's JNI book. This allows you to call almost any
function in almost any shared objects (.so).
--
Weiqi Gao
[EMAIL PROTECTED]
jnistb-1.0.tar.gz
hat shouldn't take up a slot in the file handle table. (I
haven't looked at the source code of the JDK, so someone please correct
me if I'm wrong.)
--
Weiqi Gao
[EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL
after allocation. The
difference ought to be a good ballpark figure.
--
Weiqi Gao
[EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
after allocation, the
difference ought to be a good ballpark figure.
--
Weiqi Gao
[EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
On 09 Apr 2001 23:03:11 -0500, Weiqi Gao wrote:
>
> Try
> javac -Djava.library.path=. JavaCallC
Of course, it should have been "java -Djava.library.path=. JavaCallC".
--
Weiqi Gao
[EMAIL PROTECTED]
--
va:6)
> at JavaCallC.main(JavaCallC.java:17)
Try
javac -Djava.library.path=. JavaCallC
--
Weiqi Gao
[EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
.doit() overrides the method of the
same name in its super classes.
>
> Is there any way to work around this, apart from declaring B like this:
> abstract class B {
> void doit() { super.doit(); }
> }
> (this is not satisfactory, because you may want to force B subclasses to
ed.
> Is this possible?
The compiled code are not Java objects anymore, so they cannot be
garbage collected.
--
Weiqi Gao
[EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Peter Pilgrim wrote:
>
> I am considering writing a JNI to the process list.
> How do you do this in Linux/Unix?
You open files in the "/proc" filesystem. (We are going around in
circles now.)
--
Weiqi G
automatic update feature that makes upgrading a snap.
>
> Check out the helix code gnome distribution at
>
> http://www.helixcode.com/
Red Hat 6.2 + Helix Code Gnome (sawfish) works wonderfully for Java.
--
Weiqi Gao
[EMAIL PROTECTED]
--
t to learn a new language. If you use Emacs, you can
be sure that there will be a mode for that language. If you use Forte,
you have to abandon ship and learn a new tool.
I don't see anything wrong with Forte, though. In fact, I liked it.
But my machine is too old (Pentium 200/64MB RAM
ee. It does not come with the source. However it comes with very
detailed documentation.
--
Weiqi Gao
[EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
ql.Date) to describe
> which one you want to use.
>
> Nathan
You can also do something like the following:
import java.util.*;
import java.sql.*;
import java.sql.Date;
At the top of your class. This will cause all
unqualified use of Date in your code to resolve to
java.sql.Date.
==
ands this sort of things.
> When I compiler the attatched file,
> the compiler complains that it does not support
> "goto", so I decided to understand this small program that
> I can rewrite it.
Again, it
me spot, in which case you have a conflict.)
--
Weiqi Gao
[EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
ake ))
#kawa:2# (invoke f 'show)
Although I'm sure the Beanshell is what the original poster wanted.
--
Weiqi Gao
[EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
>
> jmethodID mid = (*gEnv)->GetMethodID(gEnv, cls, "callBack", "(V)V");
It's "()V" not "(V)V". It worked on my machine after the change.
--
Weiqi Gao
[EMAIL PROTECTED]
---
(shared memories, message queues, semaphores).
> A simple sample code will help a lot.
A simple registration example:
/* so2.c */ typedef void (*F)(); F so2_f; void so2_g(F _f){so2_f = _f;}
void so2_h(){so2_f();}
/* so1.c */ int i=0; void so1_x(){} void so1_y(){so2_g(so1_x); i=1;}
void so1_z(){i &
atch_i386-pc-linux-gnu.s as if it were posted on a mailing
list.
--
Weiqi Gao
[EMAIL PROTECTED]
jnistb-1.0.tar.gz
the
poster.
Could the original poster (or anyone who has saved the file) email me
the file again? Thanks in advance.
--
Weiqi Gao
[EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe&quo
ers), so you have to change them back to the proper case by hand.
I was crazy enough to do the above once, and it did work. But I've
decided that it's easier to use a near by Windows 95 machine for the
task.
Maybe one could writ
t;
> Thanks for reading.
>
> From: [EMAIL PROTECTED]
> Heeyeon Hwang
According to Mozilla M12 Release Notes:
+ On Linux, Java is not yet implemented.
--
Weiqi Gao
[EMAIL PROTECTED]
--
To UNSUBSCRIB
The spirit of Linux shines through throughout.
I'm buying it from Amazon.com, they are giving a $7.50 discount on this
book.
Thank Nathan you for such a wonderful book. And have fun updating it
every year for the next five years. You are going to update it, aren't
you?
--
W
nprise.
What's the story?
--
Weiqi Gao
[EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
: Hello
>
> Does anybody know where is the error ?
It sounds like you needed 'extern "C"' somewhere in your native code
implementation file. Do a 'nm libNative.so' and make sure a function
symbol 'Java_Native_Hello' is exported, not some C++
[EMAIL PROTECTED] wrote:
>
> Hello everybody,
>
> Have you got any example like that? It's because there are so many
> classes in java.io that I don't know what to choose to do it.
Get the Java I/O book from O'Reilly. It has examples that does that.
e customer support issues
> we receive at my day job for the product I work on, it seems that a
> reasonable percentage of the people running Java servers out in the
> commercial world are using SMP boxes.
And how are they exploiting the SMP system with green threads?
--
Weiqi Gao
[EMAI
-----
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
--
Weiqi Gao
[EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
third parties.)
The only guarantee is that if your application is 100% pure, then it
will run in any JVM, including the Blackdown JDK on Linux.
--
Weiqi Gao
[EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
he class, you can do a Class.forName(className).
Each derivative class have to override this method if the obtained Class
is used in some substantial way.
--
Weiqi Gao
[EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTEC
But nothing happens. What am I missing?
You have to click on the Button.
--
Weiqi Gao
[EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
LASSPATH $1
>
> However, since I installed JDK 1.2-b-prev the script
>
> appletviewer $1 &
>
> does not function, and now I found out why.
You did?
--
Weiqi Gao
[EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
x27;w', and the last 5 characters are NUL
('\0').
And that choked PostgreSQL! Remove the NUL characters from the String
and everything will be fine.
--
Weiqi Gao
[EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
tend to drift a bit under various window managers, even though
> there's explicit code in the application to save and restore
> their position. Both Enlightenment and Windowmaker seem to have
> this problem, but icewm, last time I chec
HelloWorld
IBM: java.lang.Object on strike!
On a serious note, how will the IBM JVM impact the Blackdown port?
--
Weiqi Gao
[EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
m I doing something wrong?
On my (stock) Red Hat 5.2 machine, the Menus are all italic. I also
noticed some slow down in SwingSet. Most noticable is making an
internal frame, with pre1, it's almost instantaneous, with pre2, it take
up to 2 seconds.
Otherwise all my apps compiled fine and ru
ok.
>
> I would like to know if i must use any options for java interpreter or
> compiler (i have read the README.linux file and i have tried the options
> suggested for the interpreter and the compiler), or if i must configure
> jdk1.2 in a different way.
I have exactly the same problem a
rnative is to compile the IDL on Solaris or NT.
--
Weiqi Gao
[EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
others people could help me out with would be
> great.
os.name: Linux
os.version: 2.2.5-15
os.arch: i386
--
Weiqi Gao
[EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
41 matches
Mail list logo