Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#19411 - 04/10/2000 10:50 Java Emptool
mschrag
pooh-bah

Registered: 09/09/2000
Posts: 2303
Loc: Richmond, VA
OK -- It's very beta, but it appears to be working OK (I moved files around, uploaded MP3's, etc.). Check out http://www.experient.com/jemptool if you're interested in checking it out. I haven't tried it on the mac yet, but it is pretty standard stuff, so assuming the Socket impl on Mac isn't hosed up, it probably will work... Let me know if you run into any terrible problems.

Mike
[email protected]


Top
#19412 - 04/10/2000 19:47 Re: Java Emptool [Re: mschrag]
mcomb
pooh-bah

Registered: 31/08/1999
Posts: 1649
Loc: San Carlos, CA
Well, I haven't had a chance to play much yet, but...

Seems to work fine under Solaris2.7/JDK1.2.2 although I did not try any uploads.

Works under MacOS 9/MRJ2.2 after packaging with JBindery. However I am getting errors with file uploads...

----------------------
/> upload /Storage/public/Mpegs/Rock/Lit/ZipLock.mp3
0: /Storage/public/Mpegs/Rock/Lit/ZipLock.mp3
File
Created new FIDLocalFile with Tags: {2=ZipLock.mp3, 1=3409920, 0=tune}
Title: ZipLock.mp3
Exception Occurred:
java.lang.NoClassDefFoundError: pri/nightmare/utils/Bytes
at de.vdheide.mp3.ID3v2Frame.(Compiled Code)
at de.vdheide.mp3.ID3v2.readFrames(Compiled Code)
at de.vdheide.mp3.ID3v2.(ID3v2.java:107)
at de.vdheide.mp3.ID3v2.(ID3v2.java:129)
at de.vdheide.mp3.MP3File.(MP3File.java:72)
at mschrag.empeg.core.FileMagic.identifyMP3(FileMagic.java:36)
at mschrag.empeg.core.FileMagic.(FileMagic.java:28)
at mschrag.empeg.emptool.Console.uploadFiles(Compiled Code)
at mschrag.empeg.emptool.Console.parseUpload(Compiled Code)
at mschrag.empeg.emptool.Console.processCommand(Compiled Code)
at mschrag.empeg.emptool.Console.processLine(Console.java:148)
at mschrag.empeg.emptool.Main.main(Compiled Code)
at com.apple.mrj.JManager.JMStaticMethodDispatcher.run(JMAWTContextImpl.java)
at java.lang.Thread.run(Thread.java)
-------------------


Does not work under MacOSX Beta/JDK1.2.2 here is some output...

------------------
[mentally:/Users/mcomb] root# java mschrag.empeg.emptool.Main
Scanning Ethernet for an empegcar...
java.io.IOException: Permission denied
at java.net.PlainDatagramSocketImpl.send(Native Method)
at java.net.DatagramSocket.send(DatagramSocket.java:321)
at mschrag.empeg.protocol.NetworkEmpegDiscoverer.sendTo(NetworkEmpegDiscoverer.java:42)
at mschrag.empeg.protocol.NetworkEmpegDiscoverer.sendTo(NetworkEmpegDiscoverer.java:46)
at mschrag.empeg.protocol.NetworkEmpegDiscoverer.broadcastDiscoveryRequest(NetworkEmpegDiscoverer.java:37)
at mschrag.empeg.protocol.NetworkEmpegDiscoverer.discover(NetworkEmpegDiscoverer.java:31)
at mschrag.empeg.emptool.Main.chooseDevice(Main.java:286)
at mschrag.empeg.emptool.Main.main(Main.java:96)
----------------

I will try to do some more thorough testing (and maybe even some fixing) later tonight. Email me if you want more info at mcombATmac.com

-Mike

p.s. Good work!

_________________________
EmpMenuX - ext3 filesystem - Empeg iTunes integration

Top
#19413 - 04/10/2000 20:15 Re: Java Emptool [Re: mcomb]
mcomb
pooh-bah

Registered: 31/08/1999
Posts: 1649
Loc: San Carlos, CA
Woops, forgot one.

LinuxPPC unable to connect via discovery...
------------------
[root@macgeek mcomb]# java mschrag.empeg.emptool.Main
Scanning Ethernet for an empegcar...
Receiving packet...
java.lang.NullPointerException: You probably discovered yourself!
at mschrag.empeg.protocol.NetworkEmpegDiscoverer.parseDiscoveryResponse(NetworkEmpegDiscoverer.java:85)
at mschrag.empeg.protocol.NetworkEmpegDiscoverer.waitForDiscoveryRequest(NetworkEmpegDiscoverer.java:61)
at mschrag.empeg.protocol.NetworkEmpegDiscoverer.discover(NetworkEmpegDiscoverer.java:33)
at mschrag.empeg.emptool.Main.chooseDevice(Main.java:286)
at mschrag.empeg.emptool.Main.main(Main.java:96)
Receiving packet...
java.io.InterruptedIOException: Receive timed out
at java.net.PlainDatagramSocketImpl.receive(Native Method)
at java.net.DatagramSocket.receive(DatagramSocket.java:392)
at mschrag.empeg.protocol.NetworkEmpegDiscoverer.waitForDiscoveryRequest(NetworkEmpegDiscoverer.java:60)
at mschrag.empeg.protocol.NetworkEmpegDiscoverer.discover(NetworkEmpegDiscoverer.java:33)
at mschrag.empeg.emptool.Main.chooseDevice(Main.java:286)
at mschrag.empeg.emptool.Main.main(Main.java:96)
java.io.IOException: Timed out before recieving a response.
at mschrag.empeg.protocol.NetworkEmpegDiscoverer.waitForDiscoveryRequest(NetworkEmpegDiscoverer.java:54)
at mschrag.empeg.protocol.NetworkEmpegDiscoverer.discover(NetworkEmpegDiscoverer.java:33)
at mschrag.empeg.emptool.Main.chooseDevice(Main.java:286)
at mschrag.empeg.emptool.Main.main(Main.java:96)

--------------------

If I specify the IP it connects, but I get the same upload error that I mentioned with MacOS 9.

OK, it also connects under OS X Beta if I specify the IP address, but I get the same missing class error when I try an upload.

So, to summarize it looks like there may be some discovery problems and a definite upload problem.

-Mike

Edited by mcomb on 5/10/00 04:19 AM.

_________________________
EmpMenuX - ext3 filesystem - Empeg iTunes integration

Top
#19414 - 04/10/2000 20:35 Re: Java Emptool [Re: mcomb]
mschrag
pooh-bah

Registered: 09/09/2000
Posts: 2303
Loc: Richmond, VA
On the upload problem -- looks like I missed a directory or something when I packaged up the mp3 libraries... You can download them from
http://www-users.rwth-aachen.de/jens.vonderheide/software/java_id3.html

I'll check out the discovery thing ... The NPE is actually correct, because your machine doesn't properly respond to the broadcast. However, it should proceed on to then discover the empeg.


Top
#19415 - 04/10/2000 20:42 Re: Java Emptool [Re: mcomb]
mschrag
pooh-bah

Registered: 09/09/2000
Posts: 2303
Loc: Richmond, VA
The current version out on the site now includes that missing pri package... Sorry about that one.


Top
#19416 - 05/10/2000 02:30 Re: Java Emptool [Re: mschrag]
kimbotha
member

Registered: 30/08/2000
Posts: 157
Loc: London, UK
tis great... seems to run happily on a DEC Alpha running Tru64 and jdk1.2.2

have had a problem renaming tracks and playlists though... I rename them... do a listing to check the name has changed... sync... and go and look again to find the names have reverted to their old name again... Any clues where I should look...?

Cheers

Kim


Top
#19417 - 05/10/2000 05:12 Re: Java Emptool [Re: kimbotha]
mschrag
pooh-bah

Registered: 09/09/2000
Posts: 2303
Loc: Richmond, VA
I'll check out the rename problem today... Thanks for the info. The code for renaming would be in mschrag.empeg.emptool.Console.java and would be in the public void parseRename(String[] _commands) method. Most of the problems I had in the port were pointers vs. cloning problems -- this might be another one of those.


Top
#19418 - 05/10/2000 10:56 Re: Java Emptool [Re: kimbotha]
mschrag
pooh-bah

Registered: 09/09/2000
Posts: 2303
Loc: Richmond, VA
This turns out to be a bug in the real emptool too... I added a node.markDirty() at the end of the parseRename method and it's fixed. I'll be putting the fixed version up on the site in a minute.

Thanks for finding that...


Top
#19419 - 06/10/2000 14:08 Max OS X Discovery [Re: mschrag]
mschrag
pooh-bah

Registered: 09/09/2000
Posts: 2303
Loc: Richmond, VA
For those of you using Mac OS X, there is a bug in the Socket implementation such that the broadcast socket option is not set by default. This means that it is not possible to broadcast from the current VM in OS X. The Mac OS X VM team said that this bug has already been fixed, so it's just a matter of release dates at this point. In the meantime, you should be able to work around this problem by specifiying the IP on the commandline.


Top
#19420 - 18/10/2000 19:40 Re: Java Emptool [Re: mschrag]
dewdman42
member

Registered: 13/09/2000
Posts: 186
Where can I find docs on how to use Jemptool? Must I download the linux native version to get docs?


Top
#19421 - 18/10/2000 22:05 Re: Java Emptool [Re: dewdman42]
mschrag
pooh-bah

Registered: 09/09/2000
Posts: 2303
Loc: Richmond, VA
Yeah -- Right now I just tell you how to run it. Beyond that, jemptool works exactly the same as the regular emptool... Honestly, I'm not sure where the docs are for that, but they are probably included in the linux version.


Top
#19422 - 19/10/2000 02:09 Re: Java Emptool [Re: mschrag]
dewdman42
member

Registered: 13/09/2000
Posts: 186
I've never used Emptool...so please excuse my ignorance. I want to use it for batch loading MP3's from my PC to my Empeg. Does the Java version support uploading MP3's from the Empeg to the PC in the opposite direction as normal?

Did you, by any chance, make the java classes in such a way that I can write my own java program that uses your java classes to perform the tasks..?? In essence, I'm wondering if I can use Java itself as the scripting language to create my batch scripts...

??



Top
#19423 - 19/10/2000 05:34 Re: Java Emptool [Re: dewdman42]
mschrag
pooh-bah

Registered: 09/09/2000
Posts: 2303
Loc: Richmond, VA
Emptool lets you move MP3's from your PC to your Empeg. The java version is a near direct port of the original version, which isn't really designed to be incorporated into a scripting language. However, it really wouldn't be too hard to write a wrapper around it that could do that.

If you look at mschrag.empeg.emptool.Main, that is the entry point... It's setup now to then either run an mschrag.empeg.emptool.Console or an mschrag.empeg.emplode.Emplode that presents a pretty interface to things. Both of those classes have examples of calling the API's to upload MP3's (in different ways), so from there you can probably tell how you could write a scripting wrapper around it.

Feel free to email me if you need more info or if you start working on anything.

Mike
[email protected]


Top
#19424 - 20/10/2000 23:03 Re: Java Emptool [Re: dewdman42]
geekdude
new poster

Registered: 23/09/2000
Posts: 13
WAY COOL
Got jempeg working on FreeBSD

Had never used java before.
I have been looking at this thread for a few days
and did not see an example of how to get it working
if you did not know something about java already.

Here is what I needed to do on FreeBSD.

I needed the following ports installed:
/usr/ports/java/jdk ( for the basic java stuff )
/usr/ports/java/jfc ( for the swing stuff )

Downloaded the following link into my home dir:
http://download.sourceforge.net/jempeg/jempeg-0.9.6.jar

setenv CLASSPATH /usr/home/chein/jempeg-0.9.6.jar:/usr/local/share/java/classes/jfc-1.1.1/swingall.jar

Typed in the following command string:
javavm mschrag.empeg.emplode.Main

And let it run
It seems a bit slower than the compiled version,
but this works under FreeBSD. This is where my
MP3 ripper runs and where I archive my MP3 files.

Thank You for starting something really great !!!

-- MK2, 36G, blue, 080000398 --
_________________________
-- MK2, 36G, blue, 080000398 --

Top
#19425 - 21/10/2000 13:52 Re: Java Emptool [Re: geekdude]
mschrag
pooh-bah

Registered: 09/09/2000
Posts: 2303
Loc: Richmond, VA
If you want more speed, and don't need the gui, you can run mschrag.empeg.emptool.Main and just use the console version, too, by the way.


Top
#19426 - 23/10/2000 06:22 Re: Java Emptool [Re: geekdude]
mschrag
pooh-bah

Registered: 09/09/2000
Posts: 2303
Loc: Richmond, VA
On the speed issue -- I made a pretty nasty mistake which made the connection code run about 3-5 times slower than it should have. The new version out atSourceForge downloads/synchs at a significantly faster speed now.


Top