Author Topic: Updater.jar broken?  (Read 1786 times)

wain

  • Hydlaa Resident
  • *
  • Posts: 50
    • View Profile
Updater.jar broken?
« 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)

wain

  • Hydlaa Resident
  • *
  • Posts: 50
    • View Profile
(No subject)
« Reply #1 on: October 05, 2005, 03:29:58 pm »
Forgot to mention, I\'m using OS X 10.4.2, with all the latest updates.

Cha0s

  • Veteran
  • *
  • Posts: 1860
    • View Profile
(No subject)
« Reply #2 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! :)
Cha0s
Mac OS X Forum Moderator
In-Game Roleplay Forum Moderator
Please search and skim existing threads before posting!

wain

  • Hydlaa Resident
  • *
  • Posts: 50
    • View Profile
(No subject)
« Reply #3 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

dying_inside

  • Guest
(No subject)
« Reply #4 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 ?

Cha0s

  • Veteran
  • *
  • Posts: 1860
    • View Profile
(No subject)
« Reply #5 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. :)
« Last Edit: October 06, 2005, 12:47:37 am by Cha0s »
Cha0s
Mac OS X Forum Moderator
In-Game Roleplay Forum Moderator
Please search and skim existing threads before posting!

keifer

  • Traveller
  • *
  • Posts: 22
    • View Profile
(No subject)
« Reply #6 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
- Geharor Fatoori

Cha0s

  • Veteran
  • *
  • Posts: 1860
    • View Profile
(No subject)
« Reply #7 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. :)
Cha0s
Mac OS X Forum Moderator
In-Game Roleplay Forum Moderator
Please search and skim existing threads before posting!

wain

  • Hydlaa Resident
  • *
  • Posts: 50
    • View Profile
(No subject)
« Reply #8 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.

wain

  • Hydlaa Resident
  • *
  • Posts: 50
    • View Profile
(No subject)
« Reply #9 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 ;)

Cha0s

  • Veteran
  • *
  • Posts: 1860
    • View Profile
(No subject)
« Reply #10 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
Cha0s
Mac OS X Forum Moderator
In-Game Roleplay Forum Moderator
Please search and skim existing threads before posting!

wain

  • Hydlaa Resident
  • *
  • Posts: 50
    • View Profile
(No subject)
« Reply #11 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.

Cha0s

  • Veteran
  • *
  • Posts: 1860
    • View Profile
(No subject)
« Reply #12 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.
Cha0s
Mac OS X Forum Moderator
In-Game Roleplay Forum Moderator
Please search and skim existing threads before posting!

Alos

  • Traveller
  • *
  • Posts: 37
    • View Profile
(No subject)
« Reply #13 on: October 07, 2005, 07:21:55 pm »
Cha0s, can we please take a look at the .java files. Pretty please  ^_^

Cha0s

  • Veteran
  • *
  • Posts: 1860
    • View Profile
(No subject)
« Reply #14 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...
Cha0s
Mac OS X Forum Moderator
In-Game Roleplay Forum Moderator
Please search and skim existing threads before posting!