Sanjay Charles
Sanjay Charles

Reputation: 1

Compiling Issue using VSC on ONE Simulator

I just install ONE Simulator on my pc with updated JDK and JRE 1.8.0_321 using Visual Studio Code text editor. When I compile the main file, here is the problem mentioned:

Exception in thread "main" java.lang.Error: Unresolved compilation problems:

    Settings cannot be resolved
    DTNSimTextUI cannot be resolved to a type
    Settings cannot be resolved
    DTNSimGUI cannot be resolved to a type

    at core.DTNSim.main(DTNSim.java:83)

May I know, what is the problem here and how can I solve this problem?

Thanks

Upvotes: 0

Views: 117

Answers (1)

Steven-MSFT
Steven-MSFT

Reputation: 8431

It looks like the DTNSimTextUI and DTNSimGUI class is not known at compile time. You need to import the related class.

Like this:

import package1.package2.DTNSimTextUI

Upvotes: 0

Related Questions