Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > must be missing something simple...

Reply
Thread Tools

must be missing something simple...

 
 
luca passani
Guest
Posts: n/a
 
      09-05-2003


....I am sure I'll feel stupid when I hear what I got wrong:

Ssolittle.java
================================================== ===================

import java.util.regex.*;


public class Ssolittle {


private void parsePage(String html) {

Pattern p;

p = Pattern.compile("aaa");
Matcher m = p.matcher (html);

}
}
================================================== ===================

C:\SSO\servlet>java -version
java version "1.4.2_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_01-b06)
Java HotSpot(TM) Client VM (build 1.4.2_01-b06, mixed mode)

C:\SSO\servlet>javac Ssolittle.java
Ssolittle.java:2: Package java.util.regex not found in import.
import java.util.regex.*;
^
1 error

C:\SSO\servlet>


What am I doing wrong? all others java.util.* libs work OK

thanks

luca
 
Reply With Quote
 
 
 
 
luca passani
Guest
Posts: n/a
 
      09-05-2003

Got it. It was actually a Java gothca.

In spite of the fact that I had installed the 1.4.2 JDK,
windoes kept invoking the old javac compiler...

thanks

luca


luca passani wrote:
>
> ...I am sure I'll feel stupid when I hear what I got wrong:
>
> Ssolittle.java
> ================================================== ===================
>
> import java.util.regex.*;
>
> public class Ssolittle {
>
>
> private void parsePage(String html) {
>
> Pattern p;
>
> p = Pattern.compile("aaa");
> Matcher m = p.matcher (html);
>
> }
> }
> ================================================== ===================
>
> C:\SSO\servlet>java -version
> java version "1.4.2_01"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_01-b06)
> Java HotSpot(TM) Client VM (build 1.4.2_01-b06, mixed mode)
>
> C:\SSO\servlet>javac Ssolittle.java
> Ssolittle.java:2: Package java.util.regex not found in import.
> import java.util.regex.*;
> ^
> 1 error
>
> C:\SSO\servlet>
>
> What am I doing wrong? all others java.util.* libs work OK
>
> thanks
>
> luca

 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I Must Be Missing Something Using 'Vista'? Bigbazza Computer Support 7 09-14-2008 06:58 AM
Why must and must not be "final" ? NeoGeoSNK Java 25 11-24-2006 02:02 AM
Question on 'access-list', I must misunderstnad something... Johan Bezem Cisco 2 11-30-2004 12:21 PM
I have no idea why this isn't working - must be missing something simple SB C++ 6 04-23-2004 11:17 AM
Weak references - I must be missing something... Mark M Java 16 03-05-2004 05:31 PM



Advertisments