|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > Mac Help > Getting Java 5 to work |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|