Results 1 to 6 of 6
- 01-22-2013, 03:21 PM #1
Member
- Join Date
- Aug 2012
- Posts
- 3
- Rep Power
- 0
How to make a runtime version of my java program?
Letīs say I have made a small system (5 files) in Java on NetBeans for a customer/friend/whatever and now I want to run it on his computer and without him to see the code in the files (so copying the open source files on to his computer is not an option). How do I make an executable version of the 5 files in this system?
Does he have to install NetBeans on his computer?
- 01-22-2013, 03:26 PM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
Re: How to make a runtime version of my java program?
You jar them up and give them the executable jar file.
Netbeans has full documentation on that.
Indeed, if it knows which class is your main class in your project, it does do it automatically.
Is there a dist directory in your project that contains a <your project name>.jar?Please do not ask for code as refusal often offends.
- 01-22-2013, 10:52 PM #3
Member
- Join Date
- Aug 2012
- Posts
- 3
- Rep Power
- 0
Re: How to make a runtime version of my java program?
Yes, I found a dist directory with a .jar in some of my projects, but not in all and not in the projects that had only one file with all the classes inside this file.
What makes this dist directory?
- 01-23-2013, 04:53 AM #4
Re: How to make a runtime version of my java program?
Since this question is specific to NetBeans, I've moved the thread from New to Java.
NetBeans comes with a fairly extensive help system. Have you tried to find the answer there?
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 01-23-2013, 09:34 AM #5
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
Re: How to make a runtime version of my java program?
Do your classes sit in packages?
It's possible (I haven't looked) that Netbeans refuses to jar up default-package projects as they are not a Good Thing.Please do not ask for code as refusal often offends.
- 01-23-2013, 10:37 AM #6
Re: How to make a runtime version of my java program?
Why do they call it rush hour when nothing moves? - Robin Williams
Similar Threads
-
Workout program progression - Ways to make my Java program shorter/smarter?
By LasseA in forum New To JavaReplies: 4Last Post: 11-21-2012, 01:19 PM -
Load Java classes at runtime in a program
By jfabian in forum Advanced JavaReplies: 1Last Post: 09-19-2012, 08:57 AM -
java-version is not recognized as an internal or external command, operable program o
By liam in forum New To JavaReplies: 13Last Post: 12-31-2010, 01:36 AM -
MidletSample program giving java/lang/ClassFormatError: Bad version informatan error
By madhuchannama in forum Sun Java Wireless ToolkitReplies: 1Last Post: 07-23-2010, 02:42 PM -
How to define new server runtime in Eclipse version 3.3
By Crisanto in forum EclipseReplies: 0Last Post: 11-06-2008, 12:30 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks