aspose file tools*
The moose likes Beginning Java and the fly likes Need some help. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Need some help." Watch "Need some help." New topic
Author

Need some help.

Chris Tian
Greenhorn

Joined: Sep 29, 2004
Posts: 3
I am taking a Java class in which I am a bit lost. I have done some C++ programming as well as code in VB. I am using NetBeans to write and run the programs. First I don't know how to start a project in netbeans. Second I don't understand the process of adding the class structure the Professor has given us. The only thing I can do is mount the file system.
I did the Hello World Program and turned it in but I couldn't get it to run or print out the results.

I am not new to programming. I just dont seem to be getting the grasp of Java that this instructor is teaching. Can anyone help me?
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Well, you've come to the right place. However, your display name does not follow our Naming Policy. So we'll need you to click here and change that just as soon as possible.

I am using NetBeans to write and run the programs.

I would highly advise against this. Learning a new programming language can be daunting on its own without the additional effort needed to learn an IDE. I would suggest using something as simple as Notepad (if in windows) or vi (if in Linux). This alleviates the need to create projects when your just doing homework assignment where there is really no need for a project.

Second I don't understand the process of adding the class structure the Professor has given us.

So what is this "class structure" you speak of?


GenRocket - Experts at Building Test Data
Chris Tian
Greenhorn

Joined: Sep 29, 2004
Posts: 3
Well since the class requires us to write using Netbeans I really don't have a choice but to use it.

The class structure is the staugIO folder that the instructor requires us to mount when starting a project. I was under the impression that it had the class and methods we would us in our project assignments.

Here is the first assignment and it seems pretty basic but I don't know where to start as far as begining the project.

Create a program that allows the user to vote for one of 5 entries. Users are voting for the best Internet Search engine. Code for one attempt only.

1. Excite
2. Google
3. Hotbot
4. KartOO
5. Lycos

Am I to understand that by doing a java program that you may not always create an applet? I have seen some java done that seems to use the command prompt.

I do not want anyone to do the code for me I just want to be shown the necessary direction to take in order to program these projects.

Thanks for the help.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Originally posted by Chris Tian:
Well since the class requires us to write using Netbeans I really don't have a choice but to use it.

The class structure is the staugIO folder that the instructor requires us to mount when starting a project. I was under the impression that it had the class and methods we would us in our project assignments.

Here is the first assignment and it seems pretty basic but I don't know where to start as far as begining the project.

Create a program that allows the user to vote for one of 5 entries. Users are voting for the best Internet Search engine. Code for one attempt only.

1. Excite
2. Google
3. Hotbot
4. KartOO
5. Lycos

Am I to understand that by doing a java program that you may not always create an applet? I have seen some java done that seems to use the command prompt.

I do not want anyone to do the code for me I just want to be shown the necessary direction to take in order to program these projects.

Thanks for the help.


There are numerous different types of java programs. There are command line driven programs, applets, Desktop GUI Apps (AWT/SWING), and web applications (J2EE).

I can't believe your instructor is requiring an IDE like Netbeans for a beginner class. But that aside since you must use it, is it just mounting the file system to start with that you are having a problem with?

I would start by going to your explorer, command prompt, or whatever where you will manually create folders. Create a folder and call it whatever you want (project1, votingapp, etc). Then, simply go into netbeans and mount that folder as the working filesystem. I don't use netbeans, so I am afraid I won't be much help beyond that. If you have further Netbeans specific questions, you would be better off asking them in the IDEs and Other Tools forum. The ranchers that hang out in that forum will know quite a bit about Netbeans.

If you have more general Java questions that aren't related to Netbeans specifically, you can continue to ask in this forum and as you get further along, be sure and check out the other forums we have to better place your questions. For example, if you are working on an Applet, you may end up needing to ask questions in our Applet forum. Doing this will help you get the best answers and the fastest possible response time.

Good luck and let me know if I can be of any more help.
Jeff Bosch
Ranch Hand

Joined: Jul 30, 2003
Posts: 805
Java can run in one of two ways: an Applet, which runs in a Web browser's JVM, and an application, which runs standalone, much like any executable file. An application can accept command-line arguments upon startup through an array of Strings passed to the main method, which is analogous to the main() or winMain() function in C/C++.

Sun has great, free, downloadable tutorials on their java.sun.com site. I highly recommend getting these tutorials, and read Your First Cup of Java and the applet and application overviews.

Good luck!


Give a man a fish, he'll eat for one day. Teach a man to fish, he'll drink all your beer.
Cheers, Jeff (SCJP 1.4, SCJD in progress, if you can call that progress...)
Jeff Bosch
Ranch Hand

Joined: Jul 30, 2003
Posts: 805
Hey, Chris -

Have you visited the NetBeans Site? They have some good info there.

Good luck!
Chris Tian
Greenhorn

Joined: Sep 29, 2004
Posts: 3
Im reading a lot of sites now. Mind if I post some of my code later for review?
Should I post code in another spot?

Gorilla Belly
Jeff Bosch
Ranch Hand

Joined: Jul 30, 2003
Posts: 805
Depends on the code and the length. We can't post code from real exams, and we try to keep it short for easier reading. Also, please note that long lines of code don't wrap -- your readers will have to scroll horizontally, and that turns a lot of people off from reading code.

Also, sometimes code questions belong in specialized threads, but any beginner stuff can go here.

Hope that helps.
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
Originally posted by Gorilla Belly:
I am taking a Java class in which I am a bit lost. I have done some C++ programming as well as code in VB. I am using NetBeans to write and run the programs. First I don't know how to start a project in netbeans. Second I don't understand the process of adding the class structure the Professor has given us. The only thing I can do is mount the file system.
I did the Hello World Program and turned it in but I couldn't get it to run or print out the results.

I am not new to programming. I just dont seem to be getting the grasp of Java that this instructor is teaching. Can anyone help me?


I think, you tight with IDE much more.

You shoud use simple IDE to code/ run java program such as Eclipse, Text Editor.

Simple IDE is easy to use and quick learning.


SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need some help.