SunQuest
           Mac Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsMac Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old October 2nd, 2005, 08:08 PM
shaun510 shaun510 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2005
Posts: 2 shaun510 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m
Reputation Power: 0
Getting Java 5 to work

Can anyone help me. Im trying to use Java 1.5 on OS X

I recently downloaded and installed Java 5.0 for OS X from
http://www.apple.com/support/downloads/java2se50release1.html

I am trying to complie a .java file in Terminal using the javac
command. I keep getting the following error:

Shaun-Computer:~ Shaun$ javac /Users/Shaun/Desktop/IconicProgram.java
/Users/Shaun/Desktop/IconicProgram.java:1: cannot resolve symbol
symbol : class Scanner
location: package util
import java.util.Scanner;
^
/Users/Shaun/Desktop/IconicProgram.java:7: cannot resolve symbol
symbol : class Scanner
location: class IconicProgram
Scanner scan = new Scanner(System.in);
^
/Users/Shaun/Desktop/IconicProgram.java:7: cannot resolve symbol
symbol : class Scanner
location: class IconicProgram
Scanner scan = new Scanner(System.in);
^
3 errors

I tried going into the Java Prefrences that is
under/Applications/Utilities/Java/J2SE 5.0 and setting the version to
J2SE 5.0

I tried doing it in Xcode and it gives me the error:
"cannot resolve symbol : class scanner"

I also tried using the "java -version:1.5/5.0" command


Does anyone know how I can get it to work?

Thank you

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsMac Help > Getting Java 5 to work


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway