'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



Solution 1:[1]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Steven-MSFT