Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Java - Tutorials done now request assistance?

  1. #1
    Junior Member
    Join Date
    Jan 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Java - Tutorials done now request assistance?

    Gday

    Background -
    I have had minor programming exposure (through turbo pascal at school, to a bit of self taught C++ over a few months) and now working on Java (which I was taught a bit of a while ago but cannot remember anything worthwhile now!)
    I started a bit of an ascii game in turbo pascal at school which involved the character as an arrow moving around the screen from reading arrow keys, having random encounters and getting exp etc. (standard RPG fare) It also incoroprated an ascii castle central to the screen and staus bar at the bottom. Encounters and castle entry involved clearing the screen and replacing with a menu, scrolling again by an arrow highlighting menu choices and getting the key pressed to move up/down etc. (done by clearing the screen and redrawing with the arrow next to the new selection)
    6 months ago I tried to make this in C++ with a basic amount of success (noting the potential of object oriented programming!) however when I encountered obstacles and asked for help, I didnt get much as most people recommended I attempt something different or pursued the ascii format using another language. After a break of 6 months, I am back again, trying with Java this time. I am starting from the beginning with the plan of getting a better overall base before jumping in. Whilst the overall motivation is to ressurect this game, I am keen to expand overall knowledge and may pass over the old game completely. I am leaning towards java again because it seems to offer easy flexibility for graphics over C++ (I remember being able to make a picture move around a screen after not too much time last time I tried Java) as well as applets etc.

    Ok - Background done (I appreciate your patience if you are still with me!) A few things I am struggling with at the moment - Despite designing stuff primarly for ascii/console I am not really keen to use console for compiling etc. and I always try to use an editing/compiling program. I am currently using NETBEANS which definitely has some strong pros however: I cannot work out how to make standalone class files as they all seem to be forced into a package (which i have not even encountered in my beginners tutorial hunt yet). This has also somehow resulted in an error when I try to run the compiled class files from the command prompt (compiles fine in NETBEANS though) Dev-CPP is what I use for C++, which is working quite well.

    Q1 - What is the best software to use as far as a compiler/editor etc. goes? (java)
    Q2 - Is it possible to make a .jar file that will run in a console window? Eg. hello world?
    Q3 - If anyone is happy to look at the C++ code from the game (next post) - comments are much appreciated!

    Cheers,

    M
    Last edited by mdiz; January 11th, 2012 at 01:51 PM.


  2. #2
    Junior Member
    Join Date
    Jan 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Java - Tutorials done now request assistance?

    C++ game code attached as text file
    Attached Files Attached Files

  3. #3
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: Java - Tutorials done now request assistance?

    Quote Originally Posted by mdiz View Post
    Q1 - What is the best software to use as far as a compiler/editor etc. goes? (java)
    A simple text editor (notepad or JEdit) and the command prompt.

    Quote Originally Posted by mdiz View Post
    Q2 - Is it possible to make a .jar file that will run in a console window? Eg. hello world?
    Yes and no. You'd actually want to create a script that opens the console window and then run the jar.

    Quote Originally Posted by mdiz View Post
    Q3 - If anyone is happy to look at the C++ code from the game (next post) - comments are much appreciated!
    Sorry, C++ makes my eyes bleed.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. Assistance requested in setting up JAVA environment
    By bobcox in forum File I/O & Other I/O Streams
    Replies: 1
    Last Post: November 2nd, 2011, 10:30 AM
  2. Java Tutorials and Help
    By theitranger in forum The Cafe
    Replies: 4
    Last Post: March 31st, 2011, 05:24 PM
  3. Basic Java Tutorials
    By uimbibe in forum The Cafe
    Replies: 0
    Last Post: January 26th, 2011, 12:55 PM
  4. NEED ASSISTANCE W/ JAVA PROGRAM
    By Neddrick in forum What's Wrong With My Code?
    Replies: 0
    Last Post: April 29th, 2010, 08:20 PM
  5. Replies: 5
    Last Post: December 13th, 2009, 07:10 PM