CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2000
    Location
    Bangalore,India
    Posts
    2

    How to run .class file in windows environment.

    Hi friends,
    I have created a application.I want to run that in the windows environment without opening the MSDOS prompt.I want a Icon and on clicking that i want the application to run.Some told me to create a batch file and run it.I tried it but i didn't get the required result.Can someone please help me?Give the correct steps and details of what should be in the batch file.
    waiting for reply




  2. #2
    Join Date
    Jan 2000
    Location
    Canada
    Posts
    249

    Re: How to run .class file in windows environment.

    Assuming you have java in the directory c:\jdk1.2.2 and a class file named myprogram.class, use the following in the batch file:

    c:\jdk1.2.2\bin\java myprogram.class


    This batch file has to be in the same directory as the class file.

    -------------------------------------------
    T. Sean Ryan
    http://rastos0.kjm.htmlplanet.com

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured