Linux-Noob Forums
coding in java - Printable Version

+- Linux-Noob Forums (https://www.linux-noob.com/forums)
+-- Forum: Distro Noob (https://www.linux-noob.com/forums/forum-10.html)
+--- Forum: Fedora (https://www.linux-noob.com/forums/forum-94.html)
+---- Forum: Fedora Core Release 4 (https://www.linux-noob.com/forums/forum-42.html)
+---- Thread: coding in java (/thread-2183.html)

Pages: 1 2


coding in java - speX - 2006-02-04

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



coding in java - z0ny - 2006-02-04


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.




coding in java - speX - 2006-02-04

alrite cool thx :) ill be back if i need help :) haha :P



coding in java - speX - 2006-02-05


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?




coding in java - z0ny - 2006-02-05


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




coding in java - speX - 2006-02-05

theres no error in my code for sure cause my program ran fine in windows..... so.... ya



coding in java - z0ny - 2006-02-05

Second question unanswered. ;)



coding in java - speX - 2006-02-06

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



coding in java - speX - 2006-02-06


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







coding in java - z0ny - 2006-02-06

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