Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds


  Asked By: Diem    Date: May 21    Category: Java    Views: 2335

I've downloaded the source of an application and now I want to build
it. In one of it's
sources there is a :

import java.net.URI;

that JBuilder does can not access it:

"URIValidator.java": Error #: 302 : cannot access class java.net.URI;
java.io.IOException: class not found: class java.net.URI at line 33,
column 17

I don't know where this class is located to add it to project's
libraries. I've searched for it on the web, but the only thing I've
found is it's specification.
Can anybody help me?



1 Answer Found

Answer #1    Answered By: Adalricus Fischer     Answered On: May 21

This is part of rt.jar

just make sure this is included in the classpath. This should have been picked by JBuilder as this is the main jar file of J2SDK / J2RE.

Didn't find what you were looking for? Find more on java.net.URI Or get search suggestion and latest updates.