DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2004

    Angry Running a program on a different computer?

    I made a simple program (simple as in it runs in a DOSish window, like a Hello World program). When I compile and run, it generates a .bat, which can be opened to run the program again. If I move the files to another computer with java installed, it stops working.

    I have to open the .bat and change the file path of java.exe to whatever it is on the new computer, at which point it works just fine. However, as I'm hoping to eventually have other people download and use this, it isn't a solution. I need a way to get it to run on any (Windows) computer that has Java installed without having to make the user modify the .bat. Any ideas would be much appreciated.

    (one thing would be something that turns java into a .exe file, but I haven't come across a free one that I can get to work)

    (better yet would be an applet that can take the .java or .class files and run them, imitating the DOSish window, but I doubt if anything like that exists)

    (The ideal would be something that makes an actual java application that can be double-clicked and will then, like, open. Java is supposed to be cross-platform, isn't it? I should be able to run this anywhere, on any operating system with Java... but I can't find the program itself. Opening the .java or .class files doesn't run the program, only the .bat or compiler will do that....)

  2. #2
    Join Date
    May 2004

  3. #3
    Join Date
    Aug 2004


    Hah, well. Got that to work after a while. Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.