We help IT Professionals succeed at work.

Interacting w/a CDR drive in Java App.

wes2405
wes2405 asked
on
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?

Comment
Watch Question

Ovi

Commented:
Normally should work like saving on a floppy I've never tested.
Mick BarryJava Developer
CERTIFIED EXPERT
Top Expert 2010

Commented:
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.

Author

Commented:
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???

Mick BarryJava Developer
CERTIFIED EXPERT
Top Expert 2010

Commented:
> 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).


Ovi

Commented:
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
Mick BarryJava Developer
CERTIFIED EXPERT
Top Expert 2010

Commented:
ovi> (hacking is usefull sometimes)

Hacking is illegal always.

Mick BarryJava Developer
CERTIFIED EXPERT
Top Expert 2010

Commented:
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.
Ovi

Commented:
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
Ovi

Commented:
"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.
Mick BarryJava Developer
CERTIFIED EXPERT
Top Expert 2010

Commented:
Rarely, and never where the developer has requested it not be done.
Mostly where clients have lost original source code.

Commented:
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.

Technical consultant & graphic design
CERTIFIED EXPERT
Top Expert 2004
Commented:
Hopefully you've already been helped with this question, but thought you'd appreciate knowing this.  It would be great if you could bring this question to a conclusion, awarding the experts above who helped you with points or a comment to them on your status today.

WindowsUpdate has new updates for .NET users; Details follow - Microsoft .NET Framework
The .NET Framework is a new feature of Windows. Applications built using the .NET Framework are more reliable and secure. You need to install the .NET Framework only if you have software that requires it.

For more information about the .NET Framework, see http://www.microsoft.com/net. (This site is in English.)

System Requirements
The .NET Framework can be installed on the following operating systems:
Windows 98
Windows 98 Second Edition (SE)
Windows Millennium Edition (Windows Me)
Windows NT 4.0® (Workstation or Server) with Service Pack 6.0a
Windows 2000 with the latest service pack installed (Professional, Server, Datacenter Server, or Advanced Server)
Windows XP (Home Edition and Professional)
You must be running Internet Explorer version 5.01 or later for all installations of the .NET Framework.

To install the .NET Framework, your computer must meet or exceed the following software and hardware requirements:

Software requirements for server operating systems:
MDAC 2.6
Hardware requirements:
For computers running only a .NET Framework application, Pentium 90 mHz CPU with 32 MB memory or the minimum CPU and RAM required by the operating system, whichever is higher.
For server operating systems, Pentium 133 mHz CPU with 128 MB memory or the minimum CPU and RAM required by the operating system, whichever is higher.
Recomended software:
MDAC 2.7 is recommended.
Recommended hardware: For computers running only a .NET Framework application, Pentium 90 MHz CPU with 96 MB memory or the minimum CPU and RAM required by the operating system, whichever is higher.
For server operating systems, Pentium 133 MHz CPU with 256 MB memory or the minimum CPU and RAM required by the operating system, whichever is higher.

How to use -> Restart your computer to complete the installation. No other action is required to run .NET Framework applications. If you are developing applications using the .NET Framework, you can use the command-line compilers or you can use a development environment, such as Visual Studio .NET, that supports using the .NET Framework.

How to uninstall
To uninstall the .NET Framework: Click Start, point to Settings, and then click Control Panel (In Windows XP, click Start and then click Control Panel.).
Click Add/Remove Programs.
Click Microsoft .NET Framework (English) v1.0.3705 and then click Change/Remove.
More here  http://www.microsoft.com/net/

The .NET topic is being considered for addition to our All Topics link soon, so this may interest you as well:
http://www.experts-exchange.com/newtopics/Q.20276589.html

EXPERTS POINTS are waiting to be claimed here:  http://www.experts-exchange.com/commspt/Q.20277028.html

":0)
Asta


Explore More ContentExplore courses, solutions, and other research materials related to this topic.