|
|
|
|
|
February 26th, 2005, 10:01 PM
|
First Lieutenant
|
|
Join Date: Sep 2004
Posts: 666
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Combat Simulator Released!
When I run this on Macintosh I get:
MAIN draco:~/Desktop/Combat_Simulator$ java Fight
Exception in thread "main" java.lang.UnsupportedClassVersionError: Fight (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(Secure ClassLoader.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.j ava:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 89)
at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 35)
at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:302)
MAIN draco:~/Desktop/Combat_Simulator$ java -version
java version "1.4.2_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-141.4)
Java HotSpot(TM) Client VM (build 1.4.2-38, mixed mode)
MAIN draco:~/Desktop/Combat_Simulator$ uname -a
Darwin draco.local 7.8.0 Darwin Kernel Version 7.8.0: Wed Dec 22 14:26:17 PST 2004; root:xnu/xnu-517.11.1.obj~1/RELEASE_PPC Power Macintosh powerpc
So much for that whole "Write Once, Run Anywhere" idea. :-/
|
February 26th, 2005, 10:10 PM
|
|
Major General
|
|
Join Date: Oct 2003
Location: Crystal Tokyo
Posts: 2,453
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Combat Simulator Released!
Quote:
Zooko said:So much for that whole "Write Once, Run Anywhere" idea. :-/
|
This isn't the first time I had trouble with Macs. Before, I found out that Macs use a different director separator than Windows (Windows uses "\").
However, your problem is not OS-related, I think, but rather the fact that I compiled it in Java 5.0 and you are running it in Java 4.2. 5.0 makes some major changes.
Hopefully, if you go here:
http://java.sun.com/j2se/1.5.0/download.jsp
And click on this link: "Download JRE for Other Platforms"
And install it, it will run.
Edit. P.S. Thanks for posting the complete error message and version information!
|
February 26th, 2005, 10:20 PM
|
First Lieutenant
|
|
Join Date: Sep 2004
Posts: 666
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Combat Simulator Released!
Just checked, and there is no JRE 5.0 for Mac listed there.
|
February 26th, 2005, 10:20 PM
|
First Lieutenant
|
|
Join Date: Sep 2004
Posts: 666
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Combat Simulator Released!
Why don't you make the source code freely available under the GNU Public License and I'll compile it for the current version of Java on Mac for you.
|
February 26th, 2005, 10:24 PM
|
|
Major General
|
|
Join Date: Oct 2003
Location: Crystal Tokyo
Posts: 2,453
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Combat Simulator Released!
Ahh... sorry, I didn't realize that. There is a way to compile for compatibility with previous versions, so as soon as I figure that out (it should be somewhere in the sun forums) I'll recompile it for 4.2.
|
February 26th, 2005, 10:24 PM
|
First Lieutenant
|
|
Join Date: Sep 2004
Posts: 666
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Combat Simulator Released!
http://developer.apple.com/java/faq/#anchor2
^-- this says Java 1.5.0 will never be ported to Mac OS 10.3. It will only work on Mac OS 10.4, which isn't yet available, and which I would have to pay at least USD 100.00 to buy if I wanted it, which I don't.
Why don't you try rewriting your simulator in Python? Python is the easiest language to learn. I'll bet in a mere three hours you will be happy with the new simulator you've written.
Also, the result will be more portable. <wink>
|
February 26th, 2005, 11:01 PM
|
|
Major General
|
|
Join Date: Oct 2003
Location: Crystal Tokyo
Posts: 2,453
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Combat Simulator Released!
Quote:
Zooko said:Why don't you try rewriting your simulator in Python? Python is the easiest language to learn. I'll bet in a mere three hours you will be happy with the new simulator you've written.
|
Hahaha... =)
2 reasons. First, Java is probably much faster, and it already took several days to do that large simulation. Second... it's taken me at least 200 hours to write, test, and debug the simulator so far... I doubt I could port it in 3
Anyway, I recompiled it for Java 1.4.2 (which will, therefore, run under 1.4.2 or higher). Hopefully it will work for you... you can download it here:
http://www.geocities.com/saber_marionette_cherry/
or more specifically, here:
http://www.geocities.com/saber_mario...ulator_142.zip
...although sometimes geocities does not like straight links to files.
|
February 26th, 2005, 11:30 PM
|
First Lieutenant
|
|
Join Date: Sep 2004
Posts: 666
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Combat Simulator Released!
It works! Thanks!
|
February 27th, 2005, 01:26 AM
|
|
Major General
|
|
Join Date: Oct 2003
Location: Crystal Tokyo
Posts: 2,453
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Combat Simulator Released!
You're welcome=)
|
February 28th, 2005, 10:55 PM
|
Corporal
|
|
Join Date: Jan 2004
Location: Wilmington, Delaware, USA
Posts: 191
Thanks: 1
Thanked 13 Times in 2 Posts
|
|
Re: Combat Simulator Released!
Hail, Saber Cherry!
I gotta question: which bless-9 effects are currently working?
I was looking at the history (in Readme.txt), which mentions that only some were working in v22, but then in v24 flaming weapons and berserking were added -- did that fix the fire and nature bless effects?
__________________
No plan survives contact with the enemy.
--Helmut von Moltke
Have too may pretender files to keep track of? Use catgod to view them.
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|