• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

How to create an EXE of the Java application?

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can anyone help me I need to know if I can run a Java application on a client m/c without the client having the JVM.
Thanks in advance.
 
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Pallavi:
Can anyone help me I need to know if I can run a Java application on a client m/c without the client having the JVM.
Thanks in advance.


Hello Pallavi
I don't think you can create an EXE version of a Java application since EXE belongs to a single platform(Windows) and Java doesn't belong to anyone.(I mean its same on every platform).
If you are working in Windows and still need to invoke your Java application from explorer or from desktop you can create a batch file like the one shown below create a shortcut for the batch file.
One more thing. You can't escape from the JVM.
All the Best
Batch file --
@echo off
rem set path or set classpath depending on your OS(WinNT or Windows 95/98)
java <fileName>
vadiraj
 
Trailboss
Posts: 23953
IntelliJ IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm moving this thread to the Java Intermediate forum. The people that generally check the cattle drive forum are not going to know about EXE stuff.
 
paul wheaton
Trailboss
Posts: 23953
IntelliJ IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are tools that will generate an EXE, but it seems that most folks prefer to use just byte code.
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by vadiraj deshpande:
Hello Pallavi
I don't think you can create an EXE version of a Java application since EXE belongs to a single platform(Windows) and Java doesn't belong to anyone.(I mean its same on every platform).
If you are working in Windows and still need to invoke your Java application from explorer or from desktop you can create a batch file like the one shown below create a shortcut for the batch file.
One more thing. You can't escape from the JVM.
All the Best
Batch file --
@echo off
rem set path or set classpath depending on your OS(WinNT or Windows 95/98)
java <fileName>
vadiraj


Hello Vadiraj,
Thank you so much for your help. I need to know some thing more.
Is there any way to embed the necessary files to create a JRE along with the application so that the client machine need not have a JVM.
For instance if you are creating a stand alone application which can be downloaded from the internet as an exe then how do you go about it?
Would appreciate the help.
Pallavi.

 
Alpana Sabnis
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Paul Wheaton:
There are tools that will generate an EXE, but it seems that most folks prefer to use just byte code.


Thanks Paul,
Can you throw more light on this.....
Pallavi.
 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Pallavi!
You can create a executable file from java also. You just open the same file in VisualCafe and in the options you can directly make this file as an executable file.But there is one limitation that this executable file is going to run on windows platform only.
 
Alpana Sabnis
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by srinivas acharyulu:
Hi Pallavi!
You can create a executable file from java also. You just open the same file in VisualCafe and in the options you can directly make this file as an executable file.But there is one limitation that this executable file is going to run on windows platform only.



Thanks Srinivas. that was helpful.

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello pallavi
I think you are not aware of the existence of jre.exe (available from download.com and others). You can ship these with your application if those are only console based
hope that helps
 
It sure was nice of your sister to lend us her car. Let's show our appreciation by sharing this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic