Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
coding in java
#1
ok.. i know how to code in java... but i was wondering how do i install the java sdk for fedora core 4.... so that i can compile and also.. wats a good text editor to use? that can compile inside the text editor (like crimson editor) i used crimson editor but i wana try something a little more advance...
Reply
#2

Download the Linux RPM version of the J2SE JDK from java.sun.com and install it using 'rpm -ivh <rpm file>'. They distribute the package through a ".rpm.bin" file (to display license stuff), so run 'sh <bin file>' to extract the RPM.

 

For the editor - depends on what you want. I like SciTE. It's a small and lightweight editor that can compile. If you're looking for an IDE check the Eclipse project.

Reply
#3
alrite cool thx :) ill be back if i need help :) haha :P
Reply
#4

ok so i got SciTE working.. it compiled my code and ran it.. i saw the first screen of my program but when it was suppose to have user input it goes

"Error: your input doesn't represent a valid integer value"

 

why is that?

Reply
#5

Err, I assume that your program has a bug. :)

Or don't you see the error when compiling and starting directly from the shell? o_O

Reply
#6
theres no error in my code for sure cause my program ran fine in windows..... so.... ya
Reply
#7
Second question unanswered. ;)
Reply
#8
i dont see any errors..... when i compile.. lol
Reply
#9

i dont see any errors..... when i compile.. lol

 

this is wat happens when i compile



Code:
>javac CPT.java
>Exit code: 0




 

this is wat happens when i build



Code:
>javac CPT.java
>Exit code: 0




 

and this is wat happens when i run



Code:
>java CPT
*******************************************************************************

*******    *           *      ******  *    ***********   *      ******  *  
*      *   *          * *     *       *         *       * *     *       *  
*       *  *         *   *    *       *         *      *   *    *       *  
*       *  *        *     *   *       *         *     *     *   *       *  
*       *  *       *       *  *       *   *     *    *       *  *       *   *
*      *   *       *       *  *       *  *      *    *       *  *       *  *
*******    *       *       *  *       * *       *    *       *  *       * *
*      *   *       *********  *       **        *    *********  *       **
*       *  *       *       *  *       *         *    *       *  *       *
*       *  *       *       *  *       **        *    *       *  *       **
*       *  *       *       *  *       * *       *    *       *  *       * *
*      *   *       *       *  *       *  *      *    *       *  *       *  *
*******    ******  *       *  ******  *   * *****    *       *  ******  *   *

*******************************************************************************

Please select a option
1. Play Game
2. Instructions
3. High Scores
4. Exit


Error: your input doesn't represent a valid integer value


Press Enter to continue . . . >Exit code: 0




Reply
#10
Seems to be a Java problem...would you mind pasting the relevant source code? Maybe somebody is able to help you...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)