-
executing java class files
hello,
When we double click the .exe files ,os will automatically execute/runs
the files similarly ,whether it is possible for java class files(to run a
java class file by double clicking it ?)?
-
Re: executing java class files
There is no straight way of associating double click on class file. You can
write a batch file like the follwoing
execJava.bat
@echo off
set JAVA_HOME=c:\jdk1.1.8
set path=%JAVA_HOME%\bin;%path%
set classpath=.;%JAVA_HOME%\lib\classes.zip;%classpath%
@echo on
%JAVA_HOME%\bin\java %1
In your explorer associate the class file to this batch file.
"karthik.s" <kaarthik_s@rediffmail.com> wrote:
>
>hello,
> When we double click the .exe files ,os will automatically execute/runs
>the files similarly ,whether it is possible for java class files(to run
a
>java class file by double clicking it ?)?
-
Re: executing java class files
Hello,
On Windows environment, you can create a jar file which can execute on
double-click.
Create you manifest file which refers to your main driver class.
"Ruchi Dhar" <rdhar@verticalnet.com> wrote:
>
>There is no straight way of associating double click on class file. You
can
>write a batch file like the follwoing
>
>execJava.bat
>
>@echo off
>set JAVA_HOME=c:\jdk1.1.8
>set path=%JAVA_HOME%\bin;%path%
>set classpath=.;%JAVA_HOME%\lib\classes.zip;%classpath%
>@echo on
>%JAVA_HOME%\bin\java %1
>
>In your explorer associate the class file to this batch file.
>
>"karthik.s" <kaarthik_s@rediffmail.com> wrote:
>>
>>hello,
>> When we double click the .exe files ,os will automatically execute/runs
>>the files similarly ,whether it is possible for java class files(to run
>a
>>java class file by double clicking it ?)?
>
-
Re: executing java class files
"karthik.s" <kaarthik_s@rediffmail.com> wrote:
>
>hello,
> When we double click the .exe files ,os will automatically execute/runs
>the files similarly ,whether it is possible for java class files(to run
a
>java class file by double clicking it ?)?
On Windows, you can use a product called Jove for creating an (optimized)
exe from your java source. Expensive though!
See
http://www.instantiations.com/jove/p...jovesystem.htm
-
Re: executing java class files
It will work fine,but it will unnecessarily keep open a dos window,to avoid
this u can use javaw instead of java
"Ruchi Dhar" <rdhar@verticalnet.com> wrote:
>
>There is no straight way of associating double click on class file. You
can
>write a batch file like the follwoing
>
>execJava.bat
>
>@echo off
>set JAVA_HOME=c:\jdk1.1.8
>set path=%JAVA_HOME%\bin;%path%
>set classpath=.;%JAVA_HOME%\lib\classes.zip;%classpath%
>@echo on
>%JAVA_HOME%\bin\java %1
>
>In your explorer associate the class file to this batch file.
>
>"karthik.s" <kaarthik_s@rediffmail.com> wrote:
>>
>>hello,
>> When we double click the .exe files ,os will automatically execute/runs
>>the files similarly ,whether it is possible for java class files(to run
>a
>>java class file by double clicking it ?)?
>
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