JGRASP issues when compiling Java programs
807601Apr 6 2008 — edited Feb 5 2009I installed both the JRE and the SDK newest versions and it still gives me issues.
----jGRASP exec: javac -g C:\UNCC\ITCS 2215\Program Assignment 2\WordFind.java
----jGRASP wedge2 error: command "javac" not found.
---- This command must be in the current working directory
---- or on the current PATH to use this function.
---- PATH is ";D:\WINDOWS\system32;D:\WINDOWS\system32;D:\WINDOWS;D:\WINDOWS\System32\Wbem;D:\Program Files\QuickTime\QTSystem\;d:\Program Files\Microsoft SQL Server\90\Tools\binn\;D:\Program Files\Common Files\Autodesk Shared\;D:\Program Files\backburner 2\;D:\Program Files\Common Files\Adobe\AGL".
----
---- Make sure you have the full JDK (J2SE SDK or other), not just the JRE, installed.
---- The J2SE SDK is available from java.sun.com.
----jGRASP: operation complete.
I have the full development kit installed. One side note. My computer reinstalled windows as my D drive instead of my as my C drive. ((all programs etc install to
D instead of C.
That was the old issue. I changed the paths for it to find the Java software but now I get issues recognizing the Scanner() class.
EX below:
----jGRASP exec: javac -g C:\UNCC\ITCS 2215\Program Assignment 2\WordFind.java
WordFind.java:13: cannot resolve symbol
symbol : class Scanner
location: package util
import java.util.Scanner; // Needed for Scanner class
^
WordFind.java:33: cannot resolve symbol
symbol : class Scanner
location: class WordFind
Scanner keyboard = new Scanner(System.in);
^
WordFind.java:33: cannot resolve symbol
symbol : class Scanner
location: class WordFind
Scanner keyboard = new Scanner(System.in);
^
3 errors
----jGRASP wedge2: exit code for process is 1.
----jGRASP: operation complete.
-KSW
I have the right software installed version 1.5.0_15 SDK AND JRE