Page 2 of 2

Posted: Fri Sep 10, 2010 7:56 am
by mic_
You're running the tool from the commandline with java, right?

Posted: Sat Sep 11, 2010 1:05 pm
by psycopathicteen
This is what happens.
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Compaq_Owner.DAVID>"My Documents\[681]BRRTools\bin\brr
\BRREncoder.class"
Exception in thread "main" java.lang.NoClassDefFoundError: C:\Documents and Sett
ings\Compaq_Owner/DAVID\My Documents\[681]BRRTools\bin\brr\BRREncoder/class
Caused by: java.lang.ClassNotFoundException: C:\Documents and Settings\Compaq_Ow
ner.DAVID\My Documents\[681]BRRTools\bin\brr\BRREncoder.class
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: C:\Documents and Settings\Compaq_Owner.DAVID\My D
ocuments\[681]BRRTools\bin\brr\BRREncoder.class. Program will exit.

C:\Documents and Settings\Compaq_Owner.DAVID>

Posted: Sat Sep 11, 2010 1:25 pm
by mic_
C:\snesdev\BRRTools>java -classpath bin brr.BRREncoder test.wav -l

Size of file to encode : 2000 samples.
Initial BRR block added
Done !
Filter 0 used on 111 blocks.
Filter 2 used on 2 blocks.
Filter 3 used on 12 blocks.

Posted: Sat Sep 11, 2010 1:43 pm
by Bregalad
Psycho, you should install JRE (java runtime environment) on your machine (just google java runtime in google and you'll be able to download it easily), and then type "java" before the program, like mic shows. Yeah, java programs aren't directly executable without JRE (like how ROMs aren't executable without an emulator), but that is an easy way to make sure your programs will run on all OSes that have JRE (Windows, linux and mac OS all have JRE).

Posted: Sat Sep 11, 2010 3:09 pm
by psycopathicteen
Java run-time environment. Oh, I downloaded just Java, not the run-time environment. I'll try that.

Posted: Sat Sep 11, 2010 3:34 pm
by Near
mic_ wrote:
C:\snesdev\BRRTools>java -classpath bin brr.BRREncoder test.wav -l

Size of file to encode : 2000 samples.
Initial BRR block added
Done !
Filter 0 used on 111 blocks.
Filter 2 used on 2 blocks.
Filter 3 used on 12 blocks.
Poor filter 1 :(
I'll use you, filter 1 ;_;

Posted: Sun Sep 12, 2010 2:17 am
by Bregalad
LOL

It's weird filter 0 is used this much - usually it's the worst one and is the least used one. At least it was for samples I converted.

Posted: Sun Sep 12, 2010 3:04 am
by mic_
It's weird filter 0 is used this much - usually it's the worst one and is the least used one. At least it was for samples I converted.
I used a square wave sample.

Posted: Sun Sep 12, 2010 3:40 pm
by psycopathicteen
What folder should I put all this stuff in?

Posted: Mon Sep 13, 2010 2:24 am
by mic_
The JRE? Doesn't the installer suggest a directory for you? Like C:\Program Files\Sun\...

Posted: Tue Sep 14, 2010 2:11 pm
by KungFuFurby
In my case, I can't even run it.
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:620)
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:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
This requires Java 6. I can't do that... that requires a 64-bit Intel Mac to do so, if I recall my details correctly.

I use a PowerPC G5 running Mac OS X 10.4.11.