-
Java Executable
I've written a simple financial calculator for a friend that executes in a
browser. I changed the code to an application and wish to design an icon
and execute the code via double clicking the unique icon, any ideas. By
the by, the code runs perfectly when implemented via MSDOS command line:
java FinCalc I just want to make it easier to execute instead of opening
an MSDOS window and executing from there. I'm using JDK1.2.1
Thanks
-
Re: Java Executable
Create a Windows shortcut to run your class. (E.g. right-click on the
desktop and select New, Shortcut.) In the shortcut's Target field enter
"D:\jdk1.2.2\jre\bin\java.exe FinCalc", changing the directory to the
appropriate one for your environment. You may also have to have "-classpath
something" before FinCalc. And you may have to put the directory where
FinCalc is located into the shortcut's Start In field.
William H Hagan <william_h_hagan@yahoo.com> wrote in message
news:39ab86f0$1@news.devx.com...
>
> I've written a simple financial calculator for a friend that executes in a
> browser. I changed the code to an application and wish to design an icon
> and execute the code via double clicking the unique icon, any ideas. By
> the by, the code runs perfectly when implemented via MSDOS command line:
> java FinCalc I just want to make it easier to execute instead of opening
> an MSDOS window and executing from there. I'm using JDK1.2.1
> Thanks
-
Re: Java Executable
In addition, you may want to use javaw.exe instead of java.exe. It does not
wait for the application to end before quiting. So you can get rid of the
ugly DOS box.
"Paul Clapham" <pclapham@core-mark.com> wrote:
>Create a Windows shortcut to run your class. (E.g. right-click on the
>desktop and select New, Shortcut.) In the shortcut's Target field enter
>"D:\jdk1.2.2\jre\bin\java.exe FinCalc", changing the directory to the
>appropriate one for your environment. You may also have to have "-classpath
>something" before FinCalc. And you may have to put the directory where
>FinCalc is located into the shortcut's Start In field.
>
>William H Hagan <william_h_hagan@yahoo.com> wrote in message
>news:39ab86f0$1@news.devx.com...
>>
>> I've written a simple financial calculator for a friend that executes
in a
>> browser. I changed the code to an application and wish to design an icon
>> and execute the code via double clicking the unique icon, any ideas.
By
>> the by, the code runs perfectly when implemented via MSDOS command line:
>> java FinCalc I just want to make it easier to execute instead of opening
>> an MSDOS window and executing from there. I'm using JDK1.2.1
>> 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
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks