PlaneShift

Support => Mac OSX Specific Issues => Topic started by: wain on October 05, 2005, 03:28:45 pm

Title: Updater.jar broken?
Post by: wain on October 05, 2005, 03:28:45 pm
Not sure if you\'re already aware of it, but Updater.jar seems to be broken now.

I downloaded a new copy today from the link in the thread (http://www.world-of-cha0s.hostrocket.com/PSUpdater/Updater.jar)

I\'ve used previous copies successfully in the past. But when I try to use the new one, it crashes without launching and leaves a console log (below). If I copy the older version back to the folder, it works fine.

The Log is:


Exception in thread \"main\" java.lang.UnsupportedClassVersionError: Updater (Unsupported major.minor version 49.0)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
  at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
  at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
 at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
Title:
Post by: wain on October 05, 2005, 03:29:58 pm
Forgot to mention, I\'m using OS X 10.4.2, with all the latest updates.
Title:
Post by: Cha0s on October 05, 2005, 03:31:32 pm
Errr... oops. *smacks head*
I recently switched my JDK over to 1.5.0 and thus you\'d need 1.5.0 to run it. Later today I\'ll do a quick compile in 1.4.2. Thanks for the heads up! :)
Title:
Post by: wain on October 05, 2005, 03:48:06 pm
Quote
Originally posted by Cha0s
Errr... oops. *smacks head*
I recently switched my JDK over to 1.5.0 and thus you\'d need 1.5.0 to run it. Later today I\'ll do a quick compile in 1.4.2. Thanks for the heads up! :)


Glad that\'s all it was :) Has anything interesting changed in the latest version? Support for not overwriting fixed light maps, perhaps? *cross fingers* :D
Title:
Post by: dying_inside on October 05, 2005, 07:01:23 pm
will we still be able to update with the old  updater using 10.3.9 ?

or will we have to update to 4.2  to update ?
Title:
Post by: Cha0s on October 05, 2005, 07:41:23 pm
It has always required JRE 1.4.2 (which means Mac OS 10.3.x). I just started using 1.5.0 recently, so I forgot to make a 1.4.2 version.

To answer your question, wain, it now reads the mirrors setting from the normal updater configuration file. Also, I started implementing a new method of downloading zip files that will be implemented at a later point in the new updater. So please don\'t use \"Update Zip Entries\" as this will do.. weird things. :P

EDIT: Ok, should be fixed. I\'ve also simply disabled zip entries mode (both via the GUI and command line) so that shouldn\'t be a problem. Don\'t worry, it will be back as soon as the changes are implemented in the repository. :)
Title:
Post by: keifer on October 06, 2005, 04:42:11 am
Hmmm, now it still fails to run, but with this error message instead..

Code: [Select]
Exception in thread \"main\" java.lang.NoSuchMethodError: java.lang.String.contains(Ljava/lang/CharSequence;)Z
 at Updater.main(Updater.java:145)


Also running on 10.4.2
Title:
Post by: Cha0s on October 06, 2005, 04:59:25 am
Oops. I had a 1.5.0 method. Should be fixed now (could you confirm, please?).

You should switch to the 1.5.0 JRE, by the way. You\'ll still be able to run 1.4.2 apps (like this one), and you\'ll also be able to run 1.5.0 apps. :)
Title:
Post by: wain on October 06, 2005, 05:16:25 am
Quote
Originally posted by Cha0s
You should switch to the 1.5.0 JRE, by the way. You\'ll still be able to run 1.4.2 apps (like this one), and you\'ll also be able to run 1.5.0 apps. :)


How does one do that? I thought Tiger only supported up to 1.4.2 so far.
Title:
Post by: wain on October 06, 2005, 02:15:48 pm
The updater now works, anyway. Thanks :)

One minor note: Once it\'s done updating, the \"Update Zip Entries\" box seems to become active. I presume you want to keep it inactive ;)
Title:
Post by: Cha0s on October 06, 2005, 08:06:28 pm
Errr... Oops. I thought I had covered... Ooooh. Heh. Ok, yea, I\'ll fix that when I get home. ;)

And Panther (10.3) only supports up to 1.4.2. Tiger (10.4) supports and comes with 1.5.0. To enable it, you need to find the JDK folder (deep in the frameworks) and change the alias to 1.5.0.

The easy way: from /Applications/Utilities/Terminal(.app)
Code: [Select]
> cd /System/Library/Frameworks/JavaVM.framework/Versions
> mv CurrentJDK CurrentJDK-old
> ln -s 1.5 CurrentJDK
Title:
Post by: wain on October 07, 2005, 01:38:00 am
Ah, so I see!  :) Apparently you can set \"1.5+\" as your JVMVersion key in info.plist for your app and it would have worked. But I guess it still wouldn\'t solve the problem of it failing on earlier systems.
Title:
Post by: Cha0s on October 07, 2005, 04:01:52 am
Actually, since I\'m using a .jar instead of a .app (platform portability ;) ), there is no info.plist, but thanks for the suggestion. :)

P.S. The zip entries re-enabling issue should now be gone.
Title:
Post by: Alos on October 07, 2005, 07:21:55 pm
Cha0s, can we please take a look at the .java files. Pretty please  ^_^
Title:
Post by: Cha0s on October 08, 2005, 01:28:20 pm
Why, might I ask? I didn\'t code it very neatly and comments are... rare. ;)
It\'s not a good example of how you should code something like this in any way...
Title:
Post by: Ignasia on October 24, 2005, 01:47:31 am
when I run the updater I downloaded from the main site today it told me to get the new updater from the forums, but ii dont know where to get that. where do I get that? by the way, the server is not responding to pings and i cant log in to create my first character.
Title:
Post by: Cha0s on October 24, 2005, 03:20:24 am
Welcome to the forums! I know you\'re new, so you don\'t the rules around here. Here\'s a short list of things you should do before posting:
1. Read the stickies: they answer all the major questions
2. Search: most questions have been addressed before
3. Post:
 a. Find the correct forum
 b. If a recent (1-1.5 months max as a guideline) topic exists that matches your topic, post there
 c. If not, create a new thread with a detailed description of your problem

Please think before posting. 99% of all questions have already been answered. The major ones are addressed in the stickies. Please take some time to try to answer your questions on your own before asking on the forums. Since most forum users aren\'t watching the forums 24/7, you\'ll probably get answers faster if you look on your own anyway. Now, since your post is technically off-topic, iLock. ;)