0

At first, I'm sorry about my English :))

I had some problems when i try to include file .js on index.html

<script src "../src/man/js/Generator.js"> </script>

but when i press F12 for debug, i get an error like: "failed to load '../src/man/js/Generator.js' from source/src/man/js/Generator.js" this is file's structure:

enter image description here

so how can i deal this?

3
  • 1
    You're missing an i in /src/man/js. Commented May 18, 2016 at 2:06
  • 1
    oh, i'm sorry, i only write wrong the link on this post, but on my project, i wrote correctly "../src/main/js/Generator.js". i want to use "resourceroot", but i dont know how to use it? Commented May 18, 2016 at 2:10
  • 1
    Can you post a complete error message with all the details it gives you? Commented May 18, 2016 at 2:10

3 Answers 3

1

You are missing the =:

<script src="../src/main/js/Generator.js"></script>
Sign up to request clarification or add additional context in comments.

Comments

0

Oh, you must have check your Path. <script src "../src/man/js/Generator.js"> </script> won't work. but, <script src "../src/main/js/Generator.js"> </script> will work. Man, you forget the 'i' in 'main'

Comments

0

Please add equal src = "path"

<script src="../src/man/js/Generator.js"> </script>

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.