Need help!

Using the Java SDK with TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
LiquidSnake
Posts: 3
Joined: Fri Jan 16, 2009 7:36 pm

Need help!

Post by LiquidSnake »

ok so I downloaded textpad and I downloaded a jdk, went to config, tools, added the jdk tools and it works fine if I have like a print statement but when ever I try to have a user input in my code it does not work and will give me some error codes for example the one below:

C:\Users\Jeff\Desktop\ScannerExercise1.java:7: cannot resolve symbol
symbol : class Scanner
location: package util
import java.util.Scanner;


---
Anyways I searched around the other topics and could not find anything to help me, if you can help me please guide me step by step cause i'm a noob :( btw I am trying to use the java compile tools

thanks in advance


BTW I once had it installed and working but I reinstalled windows so everything was deleted and I forget what I had to do
User avatar
talleyrand
Posts: 624
Joined: Mon Jul 21, 2003 6:56 pm
Location: Kansas City, MO, USA
Contact:

Post by talleyrand »

I choose to fight with a sack of angry cats.
LiquidSnake
Posts: 3
Joined: Fri Jan 16, 2009 7:36 pm

Post by LiquidSnake »

none of those come close to helping me, those aren't the same problems I think I just need to download some file somewhere but I don't know what or where

EDIT: btw I prolly should mention i'm trying so I will be able to use the: import java.util.Scanner;



line of code
User avatar
talleyrand
Posts: 624
Joined: Mon Jul 21, 2003 6:56 pm
Location: Kansas City, MO, USA
Contact:

Post by talleyrand »

Good point, the error message you have is that it can't find the Scanner class http://www.tech-faq.com/cannot-resolve-symbol.shtml Seems classpath-ish as it's part of the core library http://java.sun.com/j2se/1.5.0/docs/api ... anner.html

Does a Hello World level program work?

However, do be aware that capturing input from the command line is not supported which is what I was attempting to convey with my links.
I choose to fight with a sack of angry cats.
LiquidSnake
Posts: 3
Joined: Fri Jan 16, 2009 7:36 pm

Post by LiquidSnake »

oh sorry talley ur too late I got it to work but thanks anyways
Post Reply