diff options
| author | green <green@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-09-06 22:32:54 +0000 |
|---|---|---|
| committer | green <green@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-09-06 22:32:54 +0000 |
| commit | df1f11433357c40c4ccbbcea5fa119a441f14ca6 (patch) | |
| tree | ce727c113b87b1cdaa86ced6af1018bb91186e15 /libjava/gnu/gcj/runtime/VMClassLoader.java | |
| parent | 862c1e2e1e04da36385052f1857661456657ad0d (diff) | |
| download | ppe42-gcc-df1f11433357c40c4ccbbcea5fa119a441f14ca6.tar.gz ppe42-gcc-df1f11433357c40c4ccbbcea5fa119a441f14ca6.zip | |
* include/jvm.h: Declare _Jv_RegisterResource.
* gnu/gcj/Core.java, gnu/gcj/natCore.cc,
gnu/gcj/protocol/core/Connection.java,
gnu/gcj/protocol/core/Handler.java,
gnu/gcj/protocol/core/CoreInputStream.java,
gnu/gcj/protocol/core/natCoreInputStream.cc: New files.
* java/net/URL.java (setURLStreamHandler): Use
gnu.gcj.protocol.core.Handler for the core protocol.
* gnu/gcj/runtime/VMClassLoader.java (init): Add "core:/" to the
end of java.class.path.
* Makefile.am (ordinary_java_source_files): Add new java files.
(nat_source_files): Add new native code files.
* Makefile.in: Rebuilt.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45450 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/gnu/gcj/runtime/VMClassLoader.java')
| -rw-r--r-- | libjava/gnu/gcj/runtime/VMClassLoader.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libjava/gnu/gcj/runtime/VMClassLoader.java b/libjava/gnu/gcj/runtime/VMClassLoader.java index 9468d163eb8..77d21606621 100644 --- a/libjava/gnu/gcj/runtime/VMClassLoader.java +++ b/libjava/gnu/gcj/runtime/VMClassLoader.java @@ -56,6 +56,16 @@ public final class VMClassLoader extends java.net.URLClassLoader /* Ignore this path element */ } } + // Add core:/ to the end of the java.class.path so any resources + // compiled into this executable may be found. + try + { + p.addElement (new URL("core", "", -1, "/")); + } + catch (java.net.MalformedURLException x) + { + // This should never happen. + } URL[] urls = new URL[p.size()]; p.copyInto (urls); |

