943,902 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 21910
  • Java RSS
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
Nov 14th, 2005
0

Re: how do i make executable

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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
frogshooter is offline Offline
2 posts
since Nov 2005
Nov 15th, 2005
0

Re: how do i make executable

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?
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004
Nov 15th, 2005
0

Re: how do i make executable

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:-

Quote ...
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
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005
Nov 15th, 2005
0

Re: how do i make executable

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.
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004
Nov 16th, 2005
0

Re: how do i make executable

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
Reputation Points: 10
Solved Threads: 1
Junior Poster in Training
Kate Albany is offline Offline
71 posts
since Jun 2005
Nov 16th, 2005
0

Re: how do i make executable

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
Reputation Points: 10
Solved Threads: 1
Junior Poster in Training
Kate Albany is offline Offline
71 posts
since Jun 2005
Nov 17th, 2005
0

Re: how do i make executable

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.
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004
Nov 17th, 2005
0

Re: how do i make executable

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

Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: creating a Trie
Next Thread in Java Forum Timeline: about static variable





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC