Linux-Noob Forums

Full Version: coding in java
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
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...

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.

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

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?


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

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

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




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