The Artima Developer Community
Sponsored Link

Java Answers Forum
How to make a JAR file?

2 replies on 1 page. Most recent reply: Feb 4, 2004 6:40 AM by twc

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Joseph Lee

Posts: 10
Nickname: at9483mph
Registered: Jan, 2004

How to make a JAR file? Posted: Feb 3, 2004 1:28 PM
Reply to this message Reply
Advertisement
Can any please give me some advises on how to do a JAR and EXE file to run the application without any JDK installed on the machine ? I have totally no idea at all~~ THANKS


Adam Duffy

Posts: 168
Nickname: adamduffy
Registered: Feb, 2003

Re: How to make a JAR file? Posted: Feb 4, 2004 3:06 AM
Reply to this message Reply
Simply typing jar at the command line will display a brief guide on creating/extracting jar files.

In memory of the retired JavaWorld see the following link for advice on creating a native Java executable.

http://www.javaworld.com/javaworld/javaqa/2000-06/02-qa-0609-exe.html

Adam

twc

Posts: 129
Nickname: twc
Registered: Feb, 2004

Re: How to make a JAR file? Posted: Feb 4, 2004 6:40 AM
Reply to this message Reply
Just so there is no confusion, you must have a JRE installed to run a Java program. The JRE is normally installed when installing a JDK, but it can be installed separately.

I know that I'm not answering your original question, but there are sites that you can find with a Google search that do a much better job of explaining the process than I can. (That is how I learned.) But I wanted to make sure you understood that a jar file won't let you get around having Java installed.

There are commercial products that can create a native executable from Java source code, but they are very expensive, and from what I understand, just package the JRE in the file anyway.

Flat View: This topic has 2 replies on 1 page
Topic: JDBC - Problem For Large Result Sets Previous Topic   Next Topic Topic: applet number generator

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use