how do i make executable

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Nov 2005
Posts: 2
Reputation: frogshooter is an unknown quantity at this point 
Solved Threads: 0
frogshooter frogshooter is offline Offline
Newbie Poster

Re: how do i make executable

 
0
  #11
Nov 14th, 2005
I use netbeans too. When I am writing files, I just copy the code onto notepad and then put it on my zip drive, then when I get to the computer that I am going to use I just open up the notepad and copy the code then copy it back into netbeans. I guess it's a little complicated, but it works.
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: how do i make executable

 
0
  #12
Nov 15th, 2005
Sigh, more IDE idiocy...
And what do you do when you don't have netbeans?

Maybe you should learn to use the compiler and runtime, but of course that would mean you'd learn something and we can't have that, now can we?
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,266
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 377
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: how do i make executable

 
0
  #13
Nov 15th, 2005
Hey thanks Richard. U seem 2 no what you are on about. If you don't mind explaining to me from the start how to use java from the command line. I've never used it b4.

I guess you could say I'm:-

Originally quoted by jwenting

"...Another victim of the IDE. Learns the tool, not the language, and gets stuck when there's no nice shiny "run" button for something."
So yes,I don't know how to change the directory or how to compile and run in the command line either. So you'll have to go through that with me if you don't mind. I appreciate all the help.

To jwenting...
I prob sound stupid but we all have to start somewhere don't we? And ur right about the pitfalls associated with fancy IDEs.

:o
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: how do i make executable

 
0
  #14
Nov 15th, 2005
It's all explained in your compiler documentation and the documentation for your operating system.

It's so basic in fact that you shouldn't consider programming anything until you can use the commandline comfortably.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 71
Reputation: Kate Albany is an unknown quantity at this point 
Solved Threads: 1
Kate Albany Kate Albany is offline Offline
Junior Poster in Training

Re: how do i make executable

 
0
  #15
Nov 16th, 2005
Iamthwee,

Netbeans uses the Apache Ant build tool to do it's compilation. The Ant build.xml file Netbeans uses should create a jar in a directory called 'dist' under the project folder.

As you know the pitfalls of using an IDE I would really recommend learning Ant. OK so it is not going right down to the command line (which is preferable) but it is a step in the right direction and will free you from the Netbeans IDE.

Apache Ant home page:

http://ant.apache.org/

The Ant Manual:

http://ant.apache.org/manual/index.html

Have fun.

Kate
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 71
Reputation: Kate Albany is an unknown quantity at this point 
Solved Threads: 1
Kate Albany Kate Albany is offline Offline
Junior Poster in Training

Re: how do i make executable

 
0
  #16
Nov 16th, 2005
As I was editing an Ant build.xml file today at work it occurred to me that although it seems easy enough, it might in fact be more difficult for a beginner to get to grips with Ant then the standard Java toolset (javac, java, jar etc ...). To that end, Iamthwee, please see below a link to the Java tools documentation.

http://java.sun.com/j2se/1.5.0/docs/tooldocs/#basic

This page will give you all the information you need to work with Java at the command line.

Kate
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: how do i make executable

 
0
  #17
Nov 17th, 2005
Yes, ANT is rather complicated. The authors have by now realised that using an XML based buildfile was probably not a good idea but of course it's far too late to change it.

The commandline tools are easy to use if you take a few minutes to RTFM.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,266
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 377
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: how do i make executable

 
0
  #18
Nov 17th, 2005
First of all, tank u for everyone who has helped me.

I intend to try and get this working at the command line.
So i will have 2 read up on thsis. When i do and if i have questions i will ask.

God bless

Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Java Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC