This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] Include rmic template files in the tools.jar


as reported in http://bugs.debian.org/427677, the template files for rmic are
missing:

rmic fails with the following error:

~$ grmic-4.1 -d classes/core -classpath
/home/marcus/src/debian/build-area/libmx4j-java-3.0.2/classes/core:/home/marcus/src/debian/build-area/libmx4j-java-3.0.2/lib:/home/marcus/src/debian/build-area/libmx4j-java-3.0.2/dist/lib/mx4j-impl.jar:/home/marcus/src/debian/build-area/libmx4j-java-3.0.2/dist/lib/mx4j-jmx.jar:/home/marcus/src/debian/build-area/libmx4j-java-3.0.2/dist/lib/mx4j.jar:/usr/share/ant/lib/ant.jar:/usr/share/ant/lib/ant-launcher.jar:/usr/share/java/log4j-1.2.jar:/usr/share/java/commons-logging.jar:/usr/share/java/servlet-api-2.4.jar:/usr/share/java/bcel.jar:/usr/share/java/jython.jar:/usr/share/java/gnumail.jar:/usr/share/java/activation.jar:/usr/share/java/axis.jar:/usr/share/java/jaxrpc.jar:/usr/share/java/saaj.jar:/usr/lib/jvm/java-gcj/lib/tools.jar
--iiop -g -always -verbose javax.management.remote.rmi.RMIServerImpl
Package javax.management.remote.rmi, name RMIServer impl RMIServerImpl
Exception in thread "main" java.lang.InternalError:
gnu.classpath.tools.rmic.SourceGiopRmicCompiler: no resource templates/Stub.jav
   at gnu.classpath.tools.rmic.Generator.getResource(libgcj-tools.so.71)
   at
gnu.classpath.tools.rmic.SourceGiopRmicCompiler.generateStub(libgcj-tools.so.71)
   at gnu.classpath.tools.rmic.SourceGiopRmicCompiler.run(libgcj-tools.so.71)
   at gnu.classpath.tools.rmic.Main.run(libgcj-tools.so.71)
   at gnu.classpath.tools.rmic.Main.main(libgcj-tools.so.71)


libjava/classpath/ChangeLog.gcj

2008-02-05  Matthias Klose  <doko@ubuntu.com>

	* tools/Makefile.am ($(TOOLS_ZIP)): Copy over rmic template files.
	* tools/Makefile.in: Regenerate.
 
Index: libjava/classpath/tools/Makefile.am
===================================================================
--- libjava/classpath/tools/Makefile.am	(revision 132123)
+++ libjava/classpath/tools/Makefile.am	(working copy)
@@ -196,6 +196,15 @@
 	  echo "  cp $(top_srcdir)/resource/$$p classes/$$p"; \
 	  cp $(top_srcdir)/resource/$$p classes/$$p; \
 	done
+	cd $(srcdir) && find gnu/classpath/tools -name \*.jav -print
+## Copy over rmic template files.
+	@list=`cd $(srcdir) && find gnu/classpath/tools -name \*.jav -print`; \
+	for p in $$list; do \
+	  dirname=classes/`dirname $$p`; \
+	  if ! test -d "$$dirname"; then mkdir -p "$$dirname"; fi; \
+	  echo "  cp $(srcdir)/$$p classes/$$p"; \
+	  cp $(srcdir)/$$p classes/$$p; \
+	done
 endif
 	cp -pR $(srcdir)/asm .
 	cp -pR $(srcdir)/classes .

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]