Changeset 29216 in vbox for trunk/src/libs/xpcom18a4/java
- Timestamp:
- May 7, 2010 2:28:08 PM (15 years ago)
- Location:
- trunk/src/libs/xpcom18a4/java
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/java/Makefile.kmk
r29182 r29216 48 48 $(VBOX_JAVA_HOME)/include/$(VBOX_MD_OS) 49 49 endif 50 JAVAC_OPTS = -source 1.4 -target 1.4 51 50 52 51 53 VBOX_JXPCOM_TARGET := $(PATH_TARGET)/vboxjxpcom-gen … … 260 262 $(QUIET)$(RM) -Rf $(VBOX_JXPCOM_JDEST) 261 263 $(QUIET)$(MKDIR) -p $(VBOX_JXPCOM_JDEST) 262 $(VBOX_JAVAC) @$ $(VBOX_JXPCOM_GEN)/jxpcomgen.list \264 $(VBOX_JAVAC) $(JAVAC_OPTS) @$ $(VBOX_JXPCOM_GEN)/jxpcomgen.list \ 263 265 -d $(VBOX_JXPCOM_JDEST) -classpath $(VBOX_JXPCOM_JDEST) 264 266 $(call MSG_TOOL,javac,$(notdir $@),...,) 265 $(VBOX_JAVAC) \267 $(VBOX_JAVAC) $(JAVAC_OPTS) \ 266 268 $(VBOX_JXPCOM_JAR_SRC) \ 267 269 $(VBOX_JXPCOM_NSERROR) \ -
trunk/src/libs/xpcom18a4/java/src/org/mozilla/xpcom/Mozilla.java
r29140 r29216 224 224 // Get the bundle for this app. If this is not executing from 225 225 // a bundle, this will return null. 226 Method mainBundleMethod = bundleClass.getMethod("mainBundle", (java.lang.Class )null);227 Object bundle = mainBundleMethod.invoke(null, (java.lang.Object )null);226 Method mainBundleMethod = bundleClass.getMethod("mainBundle", (java.lang.Class[])null); 227 Object bundle = mainBundleMethod.invoke(null, (java.lang.Object[])null); 228 228 229 229 if (bundle != null) { 230 230 // Get the path to the bundle's "Frameworks" directory 231 231 Method fwPathMethod = bundleClass.getMethod("privateFrameworksPath", 232 (java.lang.Class )null);233 String path = (String) fwPathMethod.invoke(bundle, (java.lang.Object )null);232 (java.lang.Class[])null); 233 String path = (String) fwPathMethod.invoke(bundle, (java.lang.Object[])null); 234 234 235 235 // look for libxpcom.dylib
Note:
See TracChangeset
for help on using the changeset viewer.