Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help running a script

Status
Not open for further replies.

kiloez

Programmer
Sep 5, 2003
8
US
I have a java script that was written by a tech friend of mine that executes a query on a networked database. I thought I could run it at the command prompt, but instead all that happens is the opening on the text file itself. I am not to technically inclined and need some guidance on how to run this thing. By buddy is away for 2 weeks and I have no way to reach him. Can anyone assist?
 
This might be better received in the Javascript forum?

_________________
Bob Rashkin
 
@kiloez: " but instead all that happens is the opening on the text file itself"
Which textfile itself?
We don't have a clue what you're taking about - your buddy did not introduce us to the problem.

@Bong: Javascript to read from database? Really?

don't visit my homepage:
 
What have you got and what are you doing exactly?
Do you have a .java file, or a .class file?

What are you typing at the command line?

If you have the .java file, then you need to compile it and get the .class file. Better wait for your buddy.

If you have the .class file, and you just type its name at the command line, then it will usually open it in notepad. This is because .class files are not .exe (nor batch files like .bat or .cmd), the operating system cannot execute them. If the .class file is named for example MyProgram.class, you need to type "java MyProgram" (without .class at the end).

Anyway, we would need more explanations.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top