Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Dec 2011
    Location
    abuja
    Posts
    18
    Thanks
    1
    Thanked 0 Times in 0 Posts

    burning java programs into a compact disk, how?

    how do i burn a java program on an external CD(compact disk)? So that this CD could be used to run the java program on another system.

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    Same as any other file. Jar's are simply java archives. You will be responsible for providing all supporting resources or documentation specifying where the resources must be placed on a client machine.
    Beyond that, all the client would need is a JRE installed.

  • #3
    New Coder
    Join Date
    Dec 2011
    Location
    abuja
    Posts
    18
    Thanks
    1
    Thanked 0 Times in 0 Posts

    how: burning a java program(.java) to a compact disk

    fou-lu you said i will be responsible for the resources, i dnt understand your point. Please can you make your explanation much more clear. I have suceeded in writing this euclid program saved with a .java file extension but don't know how to burn it on a compact disk so that my teacher will be able to run it. Its a kinda of assignment. Waiting for your reply.

  • #4
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    Just burn it. .java isn't an exectuable file, so they simply need to target their disk drive during a java call. Its not different than placing it on a removable flash drive or floppy disk.
    As for resources, I'm talking about things like the necessary supporting jar's for SQL connections, extended GUI managers like substance, custom graphs and other datastructures etc. If its not a part of the java core api, you need to provide it or tell a user where to get it and where to put it so that it runs.

    Edit:
    Oops, my bad. .java isn't even runnable by java, that would be the resulting .class file. They'll need to compile it before they can run it.

  • Users who have thanked Fou-Lu for this post:

    greeninho (02-24-2012)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •