Skip to content
This repository was archived by the owner on Sep 27, 2022. It is now read-only.
This repository was archived by the owner on Sep 27, 2022. It is now read-only.

Module 2 link a website to your app #121

Open

Description

@becschatz

Hi Seinecle,
I am trying too link a webiste to my app however it is saying Builed failed. Prior to this the build was successful

This is the code that I wrote:

public void onActionEvent(com.codename1.ui.events.ActionEvent ev) {
display.getInstance().execute("http://www.sportsdietitians.com.au");
}
}

Thanks

Activity

  1. seinecle commented on Jun 20, 2018

    @seinecle
    Owner

    Try putting a capitalized D at "display":

    Display.getInstance().execute("http://www.sportsdietitians.com.au");

    A red warning will appear in the margin. Click on "Add import Display.."

  2. becschatz commented on Jun 20, 2018

    @becschatz
    Author

    Capital D did not work this is what the output screen says

    Compiling 1 source file to D:\rscha34\Desktop\NetBean\Redsnutrition\Redsnutrition\build\tmp
    D:\rscha34\Desktop\NetBean\Redsnutrition\Redsnutrition\src\schatz\redsnutrition\Screen1.java:78: error: cannot find symbol
    Display.getInstance().execute("http://www.sportsdietitians.com.au");
    symbol: variable Display
    location: class Screen1
    Note: D:\rscha34\Desktop\NetBean\Redsnutrition\Redsnutrition\src\schatz\redsnutrition\Screen1.java uses or overrides a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    1 error
    D:\rscha34\Desktop\NetBean\Redsnutrition\Redsnutrition\build.xml:57: Compile failed; see the compiler error output for details.
    BUILD FAILED (total time: 2 seconds)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions