Hunsu / ntorrent

Automatically exported from code.google.com/p/ntorrent
GNU General Public License v3.0
0 stars 1 forks source link

nTorrent 0.5 fails to open in OSX 10.5.5 (Java 1.6 update installed) #107

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. download and unzip ntorrent 0.5
2. run application
3.

What is the expected output? What do you see instead?

No splash screen or icon on the doc, app closes silently.

What version of the product are you using? On what operating system?

nTorrent-bin-0.5-mac.tar.bz2

OS 10.5.5 fully patched.  Java 1.6 installed.

Please provide any additional information below and if necessary, attach
the nTorrent log file found under $HOME/.ntorrent/.

generic version loads and runs no problems.  

running the JavaapplicationStub from within the .app results in the following 

-----------

System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/MacOS/JavaApplic
ationStub
; exit;
[JavaAppLauncher Error] CFBundleCopyResourceURL() failed loading
MRJApp.properties file
[JavaAppLauncher Error] CFBundleCopyResourceURL() failed loading
MRJApp.properties file
[JavaAppLauncher Error] CFBundleCopyResourceURL() failed while getting
Resource/Java directory
[LaunchRunner Error] No main class specified
[JavaAppLauncher Error] CallStaticVoidMethod() threw an exception
Exception in thread "main" java.lang.NullPointerException
    at apple.launcher.LaunchRunner.run(LaunchRunner.java:112)
    at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:50)
    at
apple.launcher.JavaApplicationLauncher.main(JavaApplicationLauncher.java:61)
logout

--------------

Running the jpf-boot.jar directly from within the lib dir a window opens
(java -jar jpf-boot.jar)

Application Start Failed

Error:Java.Lang.IllegalArgumentException: unknown plug-in ID: - null

Original issue reported on code.google.com by FireW...@gmail.com on 3 Nov 2008 at 9:50

GoogleCodeExporter commented 9 years ago
can any other mac users confirm this?

try running java -jar lib/jpf-boot.jar from within the ntorrent dir, not the 
lib dir.

Error:Java.Lang.IllegalArgumentException: unknown plug-in ID: - null
this error is cast when it can't find the plugins.

here you can create your own app file.
http://developer.apple.com/documentation/Java/Conceptual/Jar_Bundler/Packaging/c
hapter_3_section_1.html

Original comment by kei...@gmail.com on 4 Nov 2008 at 7:08

GoogleCodeExporter commented 9 years ago
It seems to crash as described.
But doing java -jar lib/jpf-boot.jar from Resources/Java dir it works.

Original comment by carlos.j...@gmail.com on 6 Nov 2008 at 12:13

GoogleCodeExporter commented 9 years ago
Just change java Version in Info.plist to 1.6+ will fix this issue.

after line :      <key>JVMVersion</key>
--      <string>1.5+</string>
++      <string>1.6+</string>

Attached is the correct Info.plist. And a working copy of the app

Original comment by carlos.j...@gmail.com on 6 Nov 2008 at 1:04

Attachments:

GoogleCodeExporter commented 9 years ago
this fix will force the use of java 1.6? so this really isn't a work around for 
those
with java 1.5... or am i wrong?

Original comment by kei...@gmail.com on 6 Nov 2008 at 5:30

GoogleCodeExporter commented 9 years ago
To reproduce this crash you must have a OSX system updated with  Java for Mac 
OS X
10.5 Update 2.
Earlier versions of java for mac will not be able to reproduce this crash.
Another work around is to write absolute paths in Info.plist. 

It seems that version of Java5 after update erase $JAVAROOT after follow
JavaApplicationStub symlink. After that $JAVAROOT/lib/commons-logging.jar 
becomes
/lib/commons-logging.jar.

Here is some info.
http://renderfast.com/2008/09/26/java-for-mac-update-2-leaves-some-java-apps-bro
ken/
and another ugly work around (delete symlink and copy JavaApplicationStub to
Contents/MacOS)

Original comment by carlos.j...@gmail.com on 6 Nov 2008 at 6:23

GoogleCodeExporter commented 9 years ago
thanks for your clarificaton

Original comment by kei...@gmail.com on 6 Nov 2008 at 7:03

GoogleCodeExporter commented 9 years ago
did change to info.plist and can confirm it fixes the crash issue on 2 seperate 
systems.

thanks for the quick workaround.

Original comment by FireW...@gmail.com on 6 Nov 2008 at 10:35

GoogleCodeExporter commented 9 years ago
Issue 110 has been merged into this issue.

Original comment by kei...@gmail.com on 20 Dec 2008 at 10:14

GoogleCodeExporter commented 9 years ago
Issue 112 has been merged into this issue.

Original comment by kei...@gmail.com on 27 Dec 2008 at 1:57