Guest teoryn Posted July 24, 2004 Report Share Posted July 24, 2004 Hi everybody,So basically, I want my computer when I double click (for example) abc123.class file to open a command line prompt, switch to the directory where abc123.class is located, and run "java abc123" (notice the .class is gone).Thanks for the help,Teoryn Quote Link to comment Share on other sites More sharing options...
Scarecrow Man Posted July 25, 2004 Report Share Posted July 25, 2004 Ha, good luck..One thing I can suggest is to make a .bat fileOpen dos, go to the directory you want to have this file and type 'edit filename.bat' This will open a blank file to be edited.I'm sorry I can't tell you what to put into this dos file, but google how to make .bat files and you may find something... :huh: Quote Link to comment Share on other sites More sharing options...
Guest teoryn Posted July 25, 2004 Report Share Posted July 25, 2004 Yea, I was looking into making a batch file, but I think it will require some complex stuff to get it to interact with any .class file, anywhere. Quote Link to comment Share on other sites More sharing options...
Scarecrow Man Posted July 25, 2004 Report Share Posted July 25, 2004 You can set up .class files to open with a certian program...Open an explorer window, go to Tools > Folder Options. Click File Types, and look for .class. If there, click it and click change to change the program it opens with. Navigate to the program you want to open it and select it. If it's not listed, click new and speicfy the appropriate parameters.I don't think you can do it any other way.What exactly are you doing? Quote Link to comment Share on other sites More sharing options...
Guest teoryn Posted July 25, 2004 Report Share Posted July 25, 2004 well, is it possible to associate the .class extension with a batch file, because it might be possible to have the batch file switch the directory where the file is and run "java prgmName"edit:I want to do this so I can quickly launch programs that I write in java. Quote Link to comment Share on other sites More sharing options...
andsome Posted July 26, 2004 Report Share Posted July 26, 2004 WELCOME to the forum. Quote Link to comment Share on other sites More sharing options...
Scarecrow Man Posted July 26, 2004 Report Share Posted July 26, 2004 Just set the .class to open with your java editing program. One click, and it's open. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.