C
contrex
My java application use the extension mechanism (see:
http://java.sun.com/docs/books/tutorial/ext/basics/install.html) which
works very well under windows and linux. But the same app doesn't
launch under Mac OS X (Panther) throwing a
java.lang.NoSuchMethodException by the main class even when I've
copied the jar (the extension) to all three possible extension
folders which are (see:
http://developer.apple.com/document...Development/Overview/chapter_2_section_4.html):
1) /Library/Java/Extensions/
2) /System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home/lib/ext/
3) /System/Library/Frameworks/JavaVM.framework/Versions/1.4.1/Home/lib/ext/
Let me go a little bit more into the details: What I wan't is to
integrate an existing java app "SubApp" into another java app
"MainApp". Both apps are normaly standalone apps.
Thus, I just added a button to the GUI of "MainApp" which will
instanciate "SubApp" when the user clicks it. The jar of "SubApp" has
to be located therefore in the java extension folder, which is the
case.
This works fine on windows and linux but Mac OS X throws a
java.lang.NoSuchMethodException. Why?
Thanks for reading and helping!
PS: If I double-click directly the jar file of "SubApp" then this app
works fine too on Mac OS X - but standalone and not integrated in
"MainApp". What can I do (besides chuck away Mac OS X)? I don't know
much about Mac but I begin to hate it...
http://java.sun.com/docs/books/tutorial/ext/basics/install.html) which
works very well under windows and linux. But the same app doesn't
launch under Mac OS X (Panther) throwing a
java.lang.NoSuchMethodException by the main class even when I've
copied the jar (the extension) to all three possible extension
folders which are (see:
http://developer.apple.com/document...Development/Overview/chapter_2_section_4.html):
1) /Library/Java/Extensions/
2) /System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home/lib/ext/
3) /System/Library/Frameworks/JavaVM.framework/Versions/1.4.1/Home/lib/ext/
Let me go a little bit more into the details: What I wan't is to
integrate an existing java app "SubApp" into another java app
"MainApp". Both apps are normaly standalone apps.
Thus, I just added a button to the GUI of "MainApp" which will
instanciate "SubApp" when the user clicks it. The jar of "SubApp" has
to be located therefore in the java extension folder, which is the
case.
This works fine on windows and linux but Mac OS X throws a
java.lang.NoSuchMethodException. Why?
Thanks for reading and helping!
PS: If I double-click directly the jar file of "SubApp" then this app
works fine too on Mac OS X - but standalone and not integrated in
"MainApp". What can I do (besides chuck away Mac OS X)? I don't know
much about Mac but I begin to hate it...