wes2405
asked on
Interacting w/a CDR drive in Java App.
I'm creating a Java program that will go fetch all file locations for 5 different types of extensions. For instance all: powerpoint (.ppt), word (.doc), etc...
Then basically store all of these file locations in maybe a vector, (haven't really decided, but this isn't my question)...
Then basically what I want to happen is for this program to notify my CDR so that all of these files can be copied to a CD....
I have a pretty decent idea on how to complete this entire project, getting the files, storing them in some structure, this isn't a problem, what I'm unsure on is how to interact with the CDR.
One thing I see being a problem is when I usually go to copy information onto a CD using my CDR by clicking on the icon to start my CDR, a window pops up that prompts the user for what they want to do (copy files, music, etc...) A bunch of options the user has to choose before the CDR will begin, then the CDR pops up a window that asks you to search for the files that you want to add (or copy)...
Finally my questions are:
1) How in my Java program do I interact with the CDR?
2) When these windows that the CDR executable puts up
on the console, how will I satisfy the CDR prompts so
it can begin copying?
Then basically store all of these file locations in maybe a vector, (haven't really decided, but this isn't my question)...
Then basically what I want to happen is for this program to notify my CDR so that all of these files can be copied to a CD....
I have a pretty decent idea on how to complete this entire project, getting the files, storing them in some structure, this isn't a problem, what I'm unsure on is how to interact with the CDR.
One thing I see being a problem is when I usually go to copy information onto a CD using my CDR by clicking on the icon to start my CDR, a window pops up that prompts the user for what they want to do (copy files, music, etc...) A bunch of options the user has to choose before the CDR will begin, then the CDR pops up a window that asks you to search for the files that you want to add (or copy)...
Finally my questions are:
1) How in my Java program do I interact with the CDR?
2) When these windows that the CDR executable puts up
on the console, how will I satisfy the CDR prompts so
it can begin copying?
Normally should work like saving on a floppy I've never tested.
Are you trying to drive some CD burning software with Java, or are you trying to burn your CD's with Java alone?
Generally saving to a floppy and CD are fairly different
things, as you need to prepare a CD image in your desired format and then burn this image to the CD.
Generally saving to a floppy and CD are fairly different
things, as you need to prepare a CD image in your desired format and then burn this image to the CD.
ASKER
Ovi> Normally should work like saving on a floppy I've never tested.
-- No, it doesn't work like saving on a floppy or zip drive... (those two are easy...) In this situation when I try to save to the CD since I'm using a CDR, the CDR has prompts that it requires being filled out prior to it's beginning to copy. Specifically there are two prompts that I have to get by for it to begin copying. 1) It ask what type of thing I want to copy, example: music, files, etc.... 2) It gives me a selection box to choose the files I want to copy, but in my situation I don't want to use this option cause I'll already have the files stored in some sort of array, I just have to find a way to give this array to the CDR...
objects> Are you trying to drive some CD burning software with Java, or are you trying to burn your CD's with
Java alone?
I'm just trying to get my CDR to react with my Java application, In the java app, I will find certain files.
Then I want to contact the CDR and tell it what files I want to copy... Then get it to start copying... But my problem is stated clearly in the response I gave to ovy directly above...
objects && ovi >I was thinking, the two windows that my CDR throws up that's giving me these options that I can't fill in through my Java appplication... In my Java app., could I somehow say retrieve the current window thats currently on display on my console...(that window being the one the CDR has displayed) Then somehow see the options and set the values in it???? Or is this not possible since I didn't create the window w/my java app???
-- No, it doesn't work like saving on a floppy or zip drive... (those two are easy...) In this situation when I try to save to the CD since I'm using a CDR, the CDR has prompts that it requires being filled out prior to it's beginning to copy. Specifically there are two prompts that I have to get by for it to begin copying. 1) It ask what type of thing I want to copy, example: music, files, etc.... 2) It gives me a selection box to choose the files I want to copy, but in my situation I don't want to use this option cause I'll already have the files stored in some sort of array, I just have to find a way to give this array to the CDR...
objects> Are you trying to drive some CD burning software with Java, or are you trying to burn your CD's with
Java alone?
I'm just trying to get my CDR to react with my Java application, In the java app, I will find certain files.
Then I want to contact the CDR and tell it what files I want to copy... Then get it to start copying... But my problem is stated clearly in the response I gave to ovy directly above...
objects && ovi >I was thinking, the two windows that my CDR throws up that's giving me these options that I can't fill in through my Java appplication... In my Java app., could I somehow say retrieve the current window thats currently on display on my console...(that window being the one the CDR has displayed) Then somehow see the options and set the values in it???? Or is this not possible since I didn't create the window w/my java app???
> Or is this not possible since
> I didn't create the window w/my java app???
This is not possible.
Unless the CDR s/w your using has some batch processing capabilities then there's probably not a lot you can do with Java.
Maybe have a look for some CDR s/w that has batch processing capabilities (GEAR might).
> I didn't create the window w/my java app???
This is not possible.
Unless the CDR s/w your using has some batch processing capabilities then there's probably not a lot you can do with Java.
Maybe have a look for some CDR s/w that has batch processing capabilities (GEAR might).
As I've said I've never tested. I believe you are wrong (objects & wes2405)about the process of burning a CD. Is the same process as floppy at the 'bit level'. I know that a cd image must be created first, and sended to the CDR. Just take a look to what others have done, and if you find some interesting there are free decompilers to see the real source and methods used by them (hacking is usefull sometimes) :
http://www.i2rd.com/CDEveryWhere/download.shtml
http://www.imada.ou.dk/~jews/BurnIT/ (open source)
http://www.hycd.com/html/hycd_suite.htm
http://nicestep.sourceforge.net/javadoc/nicestep.cdburner.CDBurner.html
http://www.linuxdoc.org/HOWTO/CD-Writing-HOWTO.html
http://www.i2rd.com/CDEveryWhere/download.shtml
http://www.imada.ou.dk/~jews/BurnIT/ (open source)
http://www.hycd.com/html/hycd_suite.htm
http://nicestep.sourceforge.net/javadoc/nicestep.cdburner.CDBurner.html
http://www.linuxdoc.org/HOWTO/CD-Writing-HOWTO.html
ovi> (hacking is usefull sometimes)
Hacking is illegal always.
Hacking is illegal always.
Yes there is lots of software for burning CD's, that's the point (as I mentioned). You can't just copy the file to the CD as you would to a floppy, you need software specificily for burning CD's.
As I've said I've never tested. I believe you are wrong (objects & wes2405)about the process of burning a CD. Is the same process as floppy at the 'bit level'. I know that a cd image must be created first, and sended to the CDR. Just take a look to what others have done, and if you find some interesting there are free decompilers to see the real source and methods used by them (hacking is usefull sometimes) :
http://www.i2rd.com/CDEveryWhere/download.shtml
http://www.imada.ou.dk/~jews/BurnIT/ (open source)
http://www.hycd.com/html/hycd_suite.htm
http://nicestep.sourceforge.net/javadoc/nicestep.cdburner.CDBurner.html
http://www.linuxdoc.org/HOWTO/CD-Writing-HOWTO.html
http://www.i2rd.com/CDEveryWhere/download.shtml
http://www.imada.ou.dk/~jews/BurnIT/ (open source)
http://www.hycd.com/html/hycd_suite.htm
http://nicestep.sourceforge.net/javadoc/nicestep.cdburner.CDBurner.html
http://www.linuxdoc.org/HOWTO/CD-Writing-HOWTO.html
"Hacking is illegal always"> from the developer point of view is a "fountain of youth" in some cases. I agree with you only for the case of real hackers. So, don't tell me that you have never used a decompiler in your java programming experience, I don't buy't.
Rarely, and never where the developer has requested it not be done.
Mostly where clients have lost original source code.
Mostly where clients have lost original source code.
Objects - you are a saint. However, I belive that you can learn more and much faster by decompiling here and there.
I guess that where you are going - we are not....
wes2405,
Some CDR makers has batch capabilities. I worked with one (by RImage - driving a Plextor(??) CDR). This device was heavy - including a robot and several CDRs. I drove it from Java code - no problem. If you are considering to use the software from them or the hardware from them (pricy), I can give you some code fragments to manage the batch processing.
I guess that where you are going - we are not....
wes2405,
Some CDR makers has batch capabilities. I worked with one (by RImage - driving a Plextor(??) CDR). This device was heavy - including a robot and several CDRs. I drove it from Java code - no problem. If you are considering to use the software from them or the hardware from them (pricy), I can give you some code fragments to manage the batch processing.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.