• 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
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

Convert .jar to .exe file

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hai guys,
I have a simple problem about converting .jar file to .exe file, the thing is I am not familiar in C or C# (Infact I dont know any code in C or C#)so need some thing full detailed guide ness about the process,

If there is any convertible software�s available please tell me I have tried with JSmoother but it did not work, so if there is a software for this task please send some information about it

Thanks
 
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I dont know of any software that can do that. I dont think it can be done, but thats just a strong hunch. The whole point behind a jar is that you can run it in any operating system and it is delivered as a single package.

You can execute the package by associating the jar extension with java runtime in windows.
 
Ranch Hand
Posts: 524
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
1st let me try to clarify one small point, WHY do you want to do this? If you did some googling.. you would probably find that many articles simpling saying don't do this cause this truly destroys the Java's platform independence feature. If you want the application to execute when the .jar is double clicked, certainly .jar can provide this facility. The following article will give your more details Article. Hope this helps you in some way. Regards..
 
Rancher
Posts: 43028
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
While there are compilers that will compile Java source or class files into native code, Johns point is a good one: a jar file is double-clickable like an executable. What benefit are you looking for in a native executable that you don't get with a jar file?

I'm not sure what C and C# have to do with this - are you trying to convert Java source code into C source code?
 
Hewa Naimanage Sumedha Amalka
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Guys, I can understand what are you trying to explain but the thing is the .jar file can not be run a machine which does not have a JVM !

So, in my project, I very much needed to do this task !

I have heard some programmers says this can be done with a simple code of C or C# programming that�s why I asked is there wya to do this task in C or C#.

 
Ulf Dittmer
Rancher
Posts: 43028
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have a look at GCJ, which can compile Java source code and byte code to native code.
 
Stop it! You're embarassing me! And you are embarrassing this tiny ad!
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic