The Artima Developer Community
Sponsored Link

Java Answers Forum
java.util.regex: I cannot find this file

2 replies on 1 page. Most recent reply: Nov 3, 2003 8:33 PM by Charles Keller

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Charles Keller

Posts: 8
Nickname: cgkeller
Registered: Oct, 2003

java.util.regex: I cannot find this file Posted: Nov 2, 2003 4:25 PM
Reply to this message Reply
Advertisement
I'm trying to compile and run a program by bruce eckel which is MathOps.java and says:
import com.bruceeckel.simpletest.*;
import java.util.*;
........
..........

The program does not compile and I get following errors:
.com\bruceeckel\simpletest\Test:9: ---->
--->package java.util.regex does not exist
.com\bruceeckel\simpletest\Teststream.java:9: ----->
--->package java.util.regex does not exist
.com\bruceeckel\simpletest\Test:24: cannot not resolve --->
---> symbol
symbol : method getStackTrace ()
location : class java.lang.Throwable
new Throwable ().getStackTrace () [1].getClassName();

Where should java.util.regex be; it is not on my computer,
I have jdk1.3 installed as well as "Thinking in Java" from Bruce Eckel.

Am I missing something?

Thanks for your valuable help.
Charles


Kishori Sharan

Posts: 211
Nickname: kishori
Registered: Feb, 2002

Re: java.util.regex: I cannot find this file Posted: Nov 2, 2003 6:15 PM
Reply to this message Reply
The package java.util.regex was introduced in Java 2 version 1.4. I think you are using JDk prior to version 1.4. Just download JDK 1.4 and you won't get that error message.

Charles Keller

Posts: 8
Nickname: cgkeller
Registered: Oct, 2003

Re: java.util.regex: I cannot find this file Posted: Nov 3, 2003 8:33 PM
Reply to this message Reply
To Kishori:
Thank you very much for your prompt answer. I had a slight inkling that JDK1.3 might be the culprit, now you made everything clear: I will download JDK1.4 without delay.
You are great!
Charles, Kelowna, Canada.

Flat View: This topic has 2 replies on 1 page
Topic: problem by using vendor Previous Topic   Next Topic Topic: a menthod to print a token by token each time you call

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use