Hacking WiiJManager Multiplataform (Windows/OS X)

madeirabhoy

Well-Known Member
Member
Joined
Nov 29, 2008
Messages
336
Trophies
0
XP
386
Country
Antarctica
help, i downloaded version 5. Im on a mac. in the main folder theres a pc .exe file and a .jar file which says the java jar file "wiijmanager.jar" could not be launched. please check the console for possible error messages.

theres a folder called osx but theres only 3 text files in it.

i tried to download the older version 4 but its unavailable.
 

Wiimm

Developer
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
@oggzee
you are right, its now time. I try to solve the fragmentation problem at the next weekend.

And WDF segmentation should also be possible. I will start a discussion in the WDF thread later in the week.
 

zon7

Active Member
OP
Newcomer
Joined
Oct 1, 2005
Messages
38
Trophies
0
XP
96
Country
madeirabhoy said:
help, i downloaded version 5. Im on a mac. in the main folder theres a pc .exe file and a .jar file which says the java jar file "wiijmanager.jar" could not be launched. please check the console for possible error messages.

theres a folder called osx but theres only 3 text files in it.

i tried to download the older version 4 but its unavailable.

Maybe I forgot to add some of the SWT files. I'll check it later (I don't have a mac here)
 

cambric

Well-Known Member
Member
Joined
May 17, 2009
Messages
404
Trophies
0
Location
Tuscany
Website
Visit site
XP
77
Country
Italy
zon7 said:
Solved the problem with OS X. I've checked the app in both WinXP and OS X 10.6 and it works.
@madeirabhoy If it gives you more troubles let me know
Download Version 0.5.1
Thanks a lot for helping MacOSX world...

I tried the .jar file but I received the following error in console (I hope it can help you, I have 10.6.2 on a 24" iMac):
17/03/10 19:24:11 [0x0-0xa10a1].com.apple.JarLauncher[2217] SystemFlippers: didn't consume all data for long ID 0 (pBase = 0x100141b00, p = 0x100141b04, pEnd = 0x100141b08)
17/03/10 19:24:11 [0x0-0xa10a1].com.apple.JarLauncher[2217] SystemFlippers: didn't consume all data for long ID 0 (pBase = 0x100125d40, p = 0x100125d44, pEnd = 0x100125d48)
17/03/10 19:24:11 [0x0-0xa10a1].com.apple.JarLauncher[2217] SystemFlippers: didn't consume all data for long ID 0 (pBase = 0x100125d40, p = 0x100125d44, pEnd = 0x100125d48)
17/03/10 19:24:11 [0x0-0xa10a1].com.apple.JarLauncher[2217] Exception in thread "main"
17/03/10 19:24:11 [0x0-0xa10a1].com.apple.JarLauncher[2217] java.lang.UnsupportedClassVersionError: Bad version number in .class file
17/03/10 19:24:11 [0x0-0xa10a1].com.apple.JarLauncher[2217] at java.lang.ClassLoader.defineClass1(Native Method)
17/03/10 19:24:11 [0x0-0xa10a1].com.apple.JarLauncher[2217] at java.lang.ClassLoader.defineClass(ClassLoader.java:676)
17/03/10 19:24:11 [0x0-0xa10a1].com.apple.JarLauncher[2217] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
17/03/10 19:24:11 [0x0-0xa10a1].com.apple.JarLauncher[2217] at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
17/03/10 19:24:11 [0x0-0xa10a1].com.apple.JarLauncher[2217] at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
17/03/10 19:24:11 [0x0-0xa10a1].com.apple.JarLauncher[2217] at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
17/03/10 19:24:11 [0x0-0xa10a1].com.apple.JarLauncher[2217] at java.security.AccessController.doPrivileged(Native Method)
17/03/10 19:24:11 [0x0-0xa10a1].com.apple.JarLauncher[2217] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 

zon7

Active Member
OP
Newcomer
Joined
Oct 1, 2005
Messages
38
Trophies
0
XP
96
Country
Well. Can you post the full error log? This doesn't seem to show all the error stack. If you know how to do it, can you run the app from the terminal (java -jar WiiJManager.jar) and paste the error stack here? Thanks.

Btw, I have a Macbook with a clean install of 10.6.2, so I'm working with the same system as you. Later today I'll send you a version with debug messages to try to narrow the error.

cambric said:
I tried the .jar file but I received the following error in console (I hope it can help you, I have 10.6.2 on a 24" iMac):
17/03/10 19:24:11 [0x0-0xa10a1].com.apple.JarLauncher[2217] SystemFlippers: didn't consume all data for long ID 0 (pBase = 0x100141b00, p = 0x100141b04, pEnd = 0x100141b08)
17/03/10 19:24:11 [0x0-0xa10a1].com.apple.JarLauncher[2217] SystemFlippers: didn't consume all data for long ID 0 (pBase = 0x100125d40, p = 0x100125d44, pEnd = 0x100125d48)
17/03/10 19:24:11 [0x0-0xa10a1].com.apple.JarLauncher[2217] SystemFlippers: didn't consume all data for long ID 0 (pBase = 0x100125d40, p = 0x100125d44, pEnd = 0x100125d48)
17/03/10 19:24:11 [0x0-0xa10a1].com.apple.JarLauncher[2217] Exception in thread "main"
17/03/10 19:24:11 [0x0-0xa10a1].com.apple.JarLauncher[2217] java.lang.UnsupportedClassVersionError: Bad version number in .class file
17/03/10 19:24:11 [0x0-0xa10a1].com.apple.JarLauncher[2217] at java.lang.ClassLoader.defineClass1(Native Method)
17/03/10 19:24:11 [0x0-0xa10a1].com.apple.JarLauncher[2217] at java.lang.ClassLoader.defineClass(ClassLoader.java:676)
17/03/10 19:24:11 [0x0-0xa10a1].com.apple.JarLauncher[2217] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
17/03/10 19:24:11 [0x0-0xa10a1].com.apple.JarLauncher[2217] at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
17/03/10 19:24:11 [0x0-0xa10a1].com.apple.JarLauncher[2217] at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
17/03/10 19:24:11 [0x0-0xa10a1].com.apple.JarLauncher[2217] at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
17/03/10 19:24:11 [0x0-0xa10a1].com.apple.JarLauncher[2217] at java.security.AccessController.doPrivileged(Native Method)
17/03/10 19:24:11 [0x0-0xa10a1].com.apple.JarLauncher[2217] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 

Blue-K

No right of appeal.
Member
Joined
Jun 21, 2008
Messages
2,572
Trophies
0
Location
Helvetica
XP
209
Country
Swaziland
No love for Linux-Users? Or should it also work? I can't test right now, that's why I'm asking...

P.s: Yeah, I know that it's a bit strange that a Linux-User asks for a GUI...xP
 

zon7

Active Member
OP
Newcomer
Joined
Oct 1, 2005
Messages
38
Trophies
0
XP
96
Country
As I have the code right now, it will only need an hour to make it work in linux.
If you want it I can make the port, but I don't know if the compiled versions of wwt would work in diferent linux versions (red hat, ubuntu...)
Blue-K said:
No love for Linux-Users? Or should it also work? I can't test right now, that's why I'm asking...

P.s: Yeah, I know that it's a bit strange that a Linux-User asks for a GUI...xP
 

Blue-K

No right of appeal.
Member
Joined
Jun 21, 2008
Messages
2,572
Trophies
0
Location
Helvetica
XP
209
Country
Swaziland
zon7 said:
As I have the code right now, it will only need an hour to make it work in linux.
If you want it I can make the port, but I don't know if the compiled versions of wwt would work in diferent linux versions (red hat, ubuntu...)
I would realy like it. If you want to do it, I would be happy
smile.gif
. So it's not my decision, it's yours
tongue.gif
.

And I thought that WWT for Linx work on different Versions...but I'm not shure
unsure.gif
 

cambric

Well-Known Member
Member
Joined
May 17, 2009
Messages
404
Trophies
0
Location
Tuscany
Website
Visit site
XP
77
Country
Italy
zon7 said:
Well. Can you post the full error log? This doesn't seem to show all the error stack. If you know how to do it, can you run the app from the terminal (java -jar WiiJManager.jar) and paste the error stack here? Thanks.

Here it is.... Thanks a lot

Macintosh:WiiJManager 0.5.1 cambric$ ls -al
total 2880
drwxr-xr-x 9 cambric staff 306 17 Mar 19:22 .
drwxrwxrwx 106 cambric staff 3604 17 Mar 22:51 ..
-rwxr-xr-x 1 cambric staff 260 17 Mar 19:06 ReadMe.txt
-rwxr-xr-x 1 cambric staff 1434426 17 Mar 18:49 WiiJManager.jar
-rwxr-xr-x 1 cambric staff 32256 18 Feb 12:55 WiiJManagerWin.exe
drwxr-xr-x 3 cambric staff 102 17 Mar 19:22 covers
drwxr-xr-x 4 cambric staff 136 17 Mar 19:22 media
drwxr-xr-x 5 cambric staff 170 17 Mar 19:22 osx
drwxr-xr-x 6 cambric staff 204 17 Mar 19:22 win
Macintosh:WiiJManager 0.5.1 cambric$ java -jar WiiJManager.jar
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:676)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:317)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:375)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:56

Macintosh:WiiJManager 0.5.1 cambric$
 

zon7

Active Member
OP
Newcomer
Joined
Oct 1, 2005
Messages
38
Trophies
0
XP
96
Country
Well, there seems to be an error with your java version. You can read it in this link.
So it seems I'm compiling it with a newer version. Can you tell me what version of java are you running (java -version). I'll check my system later and try to compile with an earlier version.


cambric said:
zon7 said:
Well. Can you post the full error log? This doesn't seem to show all the error stack. If you know how to do it, can you run the app from the terminal (java -jar WiiJManager.jar) and paste the error stack here? Thanks.

Here it is.... Thanks a lot
 

cambric

Well-Known Member
Member
Joined
May 17, 2009
Messages
404
Trophies
0
Location
Tuscany
Website
Visit site
XP
77
Country
Italy
zon7 said:
Well, there seems to be an error with your java version. You can read it in this link.
So it seems I'm compiling it with a newer version. Can you tell me what version of java are you running (java -version). I'll check my system later and try to compile with an earlier version.
Maybe I found the problem....

In the office I have MacOSX 10.6.2, while at home I have MacOSX 10.5.8 ....

this is the java version at home:

Last login: Thu Mar 18 18:23:19 on ttys000
Macintosh:~ cambric$ java -version
java version "1.5.0_22"
Java? 2 Runtime Environment, Standard Edition (build 1.5.0_22-b03-333-9M3125)
Java HotSpot? Client VM (build 1.5.0_22-147, mixed mode, sharing)
Macintosh:~ cambric$

Thanks again...
 

Tsunii

Well-Known Member
Member
Joined
Apr 24, 2009
Messages
114
Trophies
0
Website
Visit site
XP
144
Country
Gambia, The
cambric said:
zon7 said:
Well, there seems to be an error with your java version. You can read it in this link.
So it seems I'm compiling it with a newer version. Can you tell me what version of java are you running (java -version). I'll check my system later and try to compile with an earlier version.
Maybe I found the problem....

In the office I have MacOSX 10.6.2, while at home I have MacOSX 10.5.8 ....

this is the java version at home:

Last login: Thu Mar 18 18:23:19 on ttys000
Macintosh:~ cambric$ java -version
java version "1.5.0_22"
Java? 2 Runtime Environment, Standard Edition (build 1.5.0_22-b03-333-9M3125)
Java HotSpot? Client VM (build 1.5.0_22-147, mixed mode, sharing)
Macintosh:~ cambric$

Thanks again...
you should check this link:
http://java.com/en/download/installed.jsp
click on verify and it will tell you if there's a newer version of java for your system
wink.gif
 

markmcrobie

Well-Known Member
Member
Joined
May 24, 2008
Messages
623
Trophies
0
XP
1,247
On OS X 10.6.2, I justr get 2 drop downs to Select Drive/Folder, but when I click then, the only option is "Select Drive/Folder", I can't actually choose anything...
 

cambric

Well-Known Member
Member
Joined
May 17, 2009
Messages
404
Trophies
0
Location
Tuscany
Website
Visit site
XP
77
Country
Italy
markmcrobie said:
On OS X 10.6.2, I justr get 2 drop downs to Select Drive/Folder, but when I click then, the only option is "Select Drive/Folder", I can't actually choose anything...
Same for me yesterday in the office (I have 10.6.2 at work)

QUOTE(Tsunii @ Mar 18 2010, 09:39 PM) click on verify and it will tell you if there's a newer version of java for your system
wink.gif

I have no system update to do....
rolleyes.gif


By the way, take into account that Market Share Stats (February 2010) say that 45% of Mac users have 10.5 and 38% have 10.6 (just 15% still have 10.4)
 

Wiimm

Developer
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
@zon7

I have updated WWT and implemented a new option for you: --sections. If set then wwt+wit produce machine readable output devided in section. See this expamples:

Code:
# wwt --sections error 27

[error]
code=27
name=OUT OF MEMORY
text=Allocation of dynamic memory failed

# wit --section list a.wbfs/RUUP01 pool/wdf/animal.wdf

[disc-0]
id=RUUP01
name=Animal Crossing Wii
title=Animal Crossing: Let's go to the city
region=PAL
size=358612992
itime=1269021248 2010-03-19 18:54:08
mtime=1257728135 2009-11-09 01:55:35
ctime=1269021248 2010-03-19 18:54:08
atime=1269021248 2010-03-19 18:54:08
filetype=WBFS/ISO
wbfs_slot=2
filename=a.wbfs
source=a.wbfs/#2

[disc-1]
id=RUUP01
name=Animal Crossing Wii
title=Animal Crossing: Let's go to the city
region=PAL
size=352695380
itime=1268421949 2010-03-12 20:25:49
mtime=1257728135 2009-11-09 01:55:35
ctime=1268421949 2010-03-12 20:25:49
atime=1269021356 2010-03-19 18:55:56
filetype=WDF+ISO
wbfs_slot=-1
filename=pool/wdf/animal.wdf
source=pool/wdf/animal.wdf

The old output (and all output of other commands) are well formatted for humans and object to change. This new output is stable and better for your project. If there are (new) unknown parameters just ignore them.
 

IcyVeins

Active Member
Newcomer
Joined
Jan 31, 2008
Messages
33
Trophies
0
Website
Visit site
XP
379
Country
Gambia, The
First I have to say: Thank you for making a GUI for my favourite WBFS-Manager
laugh.gif


But I have a little problem
wink.gif

Everytime I select the folder with the games I want to add, only the games of the subdirectory in the folder are shown in the list =/
So I have to make a subdirectory and move the games I want to copy to my drive into that directory.

My System:

Windows 7 Ultimate 64Bit
Newest Java engine (at least I think so)

The games are all *.iso.

Keep up the good work!
ph34r.gif
 

zon7

Active Member
OP
Newcomer
Joined
Oct 1, 2005
Messages
38
Trophies
0
XP
96
Country
Sorry folks, but this weekend i've been a little ill and busy.

@cambric: I have solved your issue compiling it with an older version of java.

@Tsunii: It's true, but I don't have a machine with 10.5 working. I promise to try to solve it as soon as posible.

@Wiimm: Thanks! I'll give it a try as soon as I can. Seems nice. And now I can forget about spaces
biggrin.gif


@IcyVeins: I know. It was a "feature" I added as I had been working with wbfs_file.exe and the directory structure was the default output option. I'll have it removed for next release.

Hope I've answered everything. And for all of you, I'll bring a release later today ( I hope not to late cause I'm still little dizzy) solving most of the problems, and showing others new
biggrin.gif
 

Wiimm

Developer
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
zon7 said:
@Wiimm: Thanks! I'll give it a try as soon as I can. Seems nice. And now I can forget about spaces
biggrin.gif
YES!
And additional infos are absolute unproblematic because you can ignore unknown parameters.

Remember: Months ago I ask you If I should implement machine readable output. I said: Just ask!
And again: Ask if you need such output for other commands.
 

zon7

Active Member
OP
Newcomer
Joined
Oct 1, 2005
Messages
38
Trophies
0
XP
96
Country
I've uploaded version 0.5.3 Most of the issues I've found have been solved, but there are still a few ones remaining.
QUOTE said:
Version 0.5.3
-Added sorting to tables
-Solved a problem with incompatibility with older versions of java (now is 1.5 compliant).
-Removed the requirement of the game being into a folder.
-Added a log to monitor errors (writes file log.txt in app folder).
-Changed the default open dialog to be more os x friendly.

As always, you can find the download link in the first post.

If you find something bothering you, tell me.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    The Real Jdbye @ The Real Jdbye: you can fap to your favorite character without it being gay