This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: FYI: gcj faq fix
- From: Tom Tromey <tromey at redhat dot com>
- To: java-patches at gcc dot gnu dot org
- Cc: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: 19 Feb 2003 11:35:32 -0700
- Subject: Patch: FYI: gcj faq fix
- Reply-to: tromey at redhat dot com
I'm checking this in. This fixes a buglet in the gcj faq.
Tom
Index: ChangeLog
from Tom Tromey <tromey at redhat dot com>
* faq.html (1.7): Use correct name for shared library.
Index: faq.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/java/faq.html,v
retrieving revision 1.57
diff -u -r1.57 faq.html
--- faq.html 4 Jan 2003 18:34:18 -0000 1.57
+++ faq.html 19 Feb 2003 18:43:40 -0000
@@ -166,7 +166,7 @@
much like a traditional virtual machine. You can even use "gij" to run a shared library
which is compiled from java code and contains a main method:</p>
<pre>
-$ gcj -shared -o HelloWorld.so HelloWorld.java
+$ gcj -shared -o lib-HelloWorld.so HelloWorld.java
$ gij HelloWorld
</pre>
This works because gij uses Class.forName, which knows how to load shared objects.