Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Creating an Executable Jar File


  • Please log in to reply
31 replies to this topic

#13 TALucas

TALucas

    CC Addict

  • Advanced Member
  • PipPipPipPipPip
  • 118 posts
  • Programming Language:Java, (Visual) Basic, Visual Basic .NET, Transact-SQL
  • Learning:C++, PHP, ActionScript

Posted 14 January 2010 - 11:03 AM

I recently came across an application that will convert .jar files to windows .exe files.

http://viralpatel.ne...converting.html
  • 0
Your thoughts are the architects of your destiny.

#14 javaman

javaman

    CC Newcomer

  • Just Joined
  • PipPip
  • 12 posts

Posted 14 April 2010 - 03:32 AM

nice tutorial...

One more thing ...
I've noted that when using Netbeans, .jar file is created when you build your application. if i want executable jar file of my application, can i just take the same generated jar file, or should i create my own like you did. I mean whats the difference between that jar file created by netbeans and the the one i'll creat manually via the prompt?
  • 0

#15 TALucas

TALucas

    CC Addict

  • Advanced Member
  • PipPipPipPipPip
  • 118 posts
  • Programming Language:Java, (Visual) Basic, Visual Basic .NET, Transact-SQL
  • Learning:C++, PHP, ActionScript

Posted 17 April 2010 - 06:00 PM

Good question. I've not used NetBeans before, so not sure. My "guess" would be that you could use it. It would be easy to test...just double click and see if it works. With this method you probably wouldn't have control on what other files were included in the .jar file.
  • 0
Your thoughts are the architects of your destiny.

#16 javaman

javaman

    CC Newcomer

  • Just Joined
  • PipPip
  • 12 posts

Posted 19 April 2010 - 02:14 AM

It would be easy to test...just double click and see if it works.


i've tested it. when i double click it, the application just runs as expected. I went on to extract the .far file,.. it contains the class files and opening the manifest file reveals this:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.1
Created-By: 16.0-b13 (Sun Microsystems Inc.)
Main-Class: myApp.myClass
Class-Path: 
X-COMMENT: Main-Class will be added automatically by build

  • 0

#17 GMVResources

GMVResources

    CC Resident

  • Just Joined
  • PipPipPipPip
  • 71 posts

Posted 14 June 2010 - 03:16 PM

Lol true that WingedPanther and lolz, take more advanced classes! Nice tutorial
  • 0

#18 raghu

raghu

    CC Newcomer

  • Just Joined
  • PipPip
  • 11 posts

Posted 06 July 2010 - 09:54 AM

really great dude...
  • 0

#19 TALucas

TALucas

    CC Addict

  • Advanced Member
  • PipPipPipPipPip
  • 118 posts
  • Programming Language:Java, (Visual) Basic, Visual Basic .NET, Transact-SQL
  • Learning:C++, PHP, ActionScript

Posted 06 July 2010 - 10:29 AM

raghu, were you able to get the .jar files working?
  • 0
Your thoughts are the architects of your destiny.

#20 raghu

raghu

    CC Newcomer

  • Just Joined
  • PipPip
  • 11 posts

Posted 06 July 2010 - 06:49 PM

raghu, were you able to get the .jar files working?


Yes dude.. :)
  • 0

#21 wim DC

wim DC

    Roar

  • Expert Member
  • PipPipPipPipPipPipPipPip
  • 2681 posts
  • Programming Language:Java, JavaScript, PL/SQL
  • Learning:Python

Posted 16 July 2010 - 06:04 AM

I recently came across an application that will convert .jar files to windows .exe files.

Convert Jar to EXE, jar file to executable, java JAR to EXE. Converting Jar to exe. | ViralPatel.net


That software just (super simplified) attaches a JRE to the jar and changes the extension to exe, right?
  • 0

#22 TALucas

TALucas

    CC Addict

  • Advanced Member
  • PipPipPipPipPip
  • 118 posts
  • Programming Language:Java, (Visual) Basic, Visual Basic .NET, Transact-SQL
  • Learning:C++, PHP, ActionScript

Posted 16 July 2010 - 06:13 AM

That software just (super simplified) attaches a JRE to the jar and changes the extension to exe, right?


I'm not sure how the software works. If I were to GUESS, I'd say that it converts the data in the .jar to actual executable code.
  • 0
Your thoughts are the architects of your destiny.

#23 SankaSL

SankaSL

    CC Lurker

  • Just Joined
  • Pip
  • 8 posts

Posted 25 September 2010 - 04:30 AM

Wow great help, thanx alot :D
  • 0

#24 Java_

Java_

    CC Newcomer

  • Member
  • PipPip
  • 13 posts

Posted 12 November 2010 - 11:30 AM

Thank's easier then I thought.+rep
  • 0




Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download