• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Java - Objective-C bridge and loading classes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Java - Objective-C bridge and loading classes


  • Subject: Java - Objective-C bridge and loading classes
  • From: Brent Gulanowski <email@hidden>
  • Date: Thu, 16 Sep 2004 21:58:27 -0400

I am trying to use a Java library from Cocoa called JXTA (<http://ww.jxta.org>).

I have successfully followed some instructions here:
<http://www.cocoadev.com/index.pl?XcodeObjCJavaBridge>
(which I have emended somewhat) and have successfully accessed Java
classes as described. But when I try to load classes from jxta.jar,
things go haywire:

com.apple.misc.BundleClassLoader@40e45a: while trying to define
archiveresource:file:/Volumes/Clarke/Users/brentgulanowski/Programming/PB
builds/jxta.jar/+/net/jxta/access/AccessService$1.class, (null), got
throwable: java.lang.UnsupportedClassVersionError: Unsupported
major.minor version 48.0
java.lang.UnsupportedClassVersionError: Unsupported major.minor version 48.0
	at java.lang.ClassLoader.defineClass0(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:423)
	at com.apple.misc.BundleClassLoader.getClassesFromLocations(BundleClassLoader.java:158)
	at com.apple.misc.BundleClassLoader.getClassesFromResourceLocator(BundleClassLoader.java:115)

and the same thing for every class in the archive. I built the archive
with Eclipse on the same machine that I'm building this test project
in Xcode. OS X 10.3.5, Java 1.4.2.

This is the result of calling NSJavaClassesFromPath() with the path to
the jxta.jar archive.
--

Brent Gulanowski
http://www.boredastronaut.com
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Java - Objective-C bridge and loading classes
      • From: Brent Gulanowski <email@hidden>
  • Prev by Date: Re: [Q] Bindings, FilteringController and KVC compliance
  • Next by Date: Re: All IBOutlet instance variables show 0x0 - they're not there?! XCode bug?
  • Previous by thread: Re: How to get system volume path ?
  • Next by thread: Re: Java - Objective-C bridge and loading classes
  • Index(es):
    • Date
    • Thread