Results 1 to 4 of 4
Thread: Jikes Compiler - iPhone
- 03-03-2010, 11:52 PM #1
Member
- Join Date
- Mar 2010
- Posts
- 3
- Rep Power
- 0
Jikes Compiler - iPhone
Hello all. I recently instaled a Java compiler called Jikes on my iPhone. Works pretty well, can write simple "println" programs using the built-in text editor. However, I can not write programs to get input from the user. I tried using Scanner and BufferedReader, but no luck. Does anyone have any idea if it's possible to actually put a Scanner.jar file in the iPhone and make it work?
- 03-04-2010, 12:11 AM #2
Member
- Join Date
- Mar 2010
- Posts
- 2
- Rep Power
- 0
how did you install it on your iphone?
- 03-04-2010, 12:29 AM #3
Member
- Join Date
- Mar 2010
- Posts
- 3
- Rep Power
- 0
I have a jailbroken iPhone 3GS and installed it via Cydia.
All I want to do is be able to write programs where I can get input from the user. I guess, in the long run it's no big deal, as I also have Python installed and it works flawlessly, but I would like the Java issue to be resolved as I know more Java than Python.
- 03-05-2010, 03:35 PM #4
Member
- Join Date
- Mar 2010
- Posts
- 3
- Rep Power
- 0
I have gotten able to run it using BufferedReader, lang and util packages and it compiles perfectly, but when I go to run it, it gives me an error with a package. Can someone help me with this? I really want to be able to make user-input programs.
Hear is the code I have:
//*Input
//*Input*information*and*display*to*screen
import*java.util.*;
import*java.io.*;
import*java.lang.*;
class*HelloInput{
*****public*static*void*main(String*args[])*throws*IOException{
*****BufferedReader*read*=*new*BufferedReader(new* InputStreamReader(System.in));
*****String*name;
*****System.out.print("What*is*your*name?");
*****name*=*read.readLine();
*****System.out.println("Hello,*"*+*name);
*****read.close();
*****}
}
Here is a link to the picture of the error:
http://twitxr.com/image/316279/
Similar Threads
-
introduction for tutorial of iphone programming
By JamesEdu in forum Reviews / AdvertisingReplies: 0Last Post: 11-23-2009, 10:35 AM -
compiler,JIT compiler & interpreter
By gamilah in forum New To JavaReplies: 4Last Post: 11-04-2008, 12:32 AM -
Java and the iPhone
By Zosden in forum Forum LobbyReplies: 10Last Post: 06-25-2008, 06:31 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks