Java Javascript Setup: What am I doing Wrong?

  • Thread starter Thread starter TheDemx27
  • Start date Start date
  • Tags Tags
    Javascript Nvidia
AI Thread Summary
The discussion revolves around troubleshooting issues related to running HTML and JavaScript code using Mongoose as a web server and Sublime Text 2 as the text editor. The user encountered an error indicating that a file could not be found, which was linked to Python, causing confusion since JavaScript should run in the browser without needing a server. It was clarified that HTML and JavaScript can be executed directly in a browser by opening the file, and that error messages can be viewed in the web console. The user ultimately resolved the issue by installing Node.js and configuring it as a custom build system in Sublime Text, which allowed the JavaScript to run correctly. The thread concluded with the user stating that the problem was solved.
TheDemx27
Gold Member
Messages
169
Reaction score
13
I should be able to figure this out myself, I know.

All it will display is text in html: It won't run any js. I am completely new to any sort of web programming and I've been searching the interwebs for hours. I'm using mongoose as my web server, and sublime 2 as my text editor.

JFKDLSF_zps5f48687f.png


Building returns :
Code:
The system cannot find the file specified
[cmd:  [u'python', u'-u', u'C:\\Users\\Demx\\Desktop\\Programming\\index.html']]
[dir:  C:\Users\Demx\Desktop\Programming]
[path: C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\]
[Finished]

I don't know why it is saying anything about python...
 
Last edited:
Technology news on Phys.org
What do you mean by building? JavaScript is interpreted by the web browser.

Also you don't need a server for html and JavaScript. Just open the file in the browser by double clicking on it. In your web browser, you can open up the web console where error messages will be reported.
 
Last edited:
Are you sure it is not main.js or phaser.min.js that looks for python?
 
Solved it myself, for some reason sublime doesn't check for javascript? I installed node and added it as a custom "build system". Close the thread.
 
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.

Similar threads

Replies
2
Views
6K
Replies
1
Views
2K
Back
Top