Internet Marketing Business Forum


Internet Marketing Business Forum » MAIN FORUMS » Web Design & Programming » need help with java scripting?
Web Design & Programming Building websites, coding scripts or developing apps? html, css, javascripts, ajax, php, asp, java, c+, C++ and other geeky info is here.

Reply
 
LinkBack Thread Tools Display Modes
Old 08-03-2009, 06:32 PM   #1 (permalink)
 robosigma's Avatar
 
Status: Junior Member
Join Date: Aug 2009
Posts: 0
robosigma is on a distinguished road
Default need help with java scripting?

hey i want to try and make a script for java because i have all the text im surposed to save but i dont know what to save it to... do i save it to a blank text document wand when i name it do i name is (whatever).java or what program do i need to be able to write java scripts
thanks.
do i need certain software to save it as a java script? like a java writer? what programs should i download to be able to read and write java
robosigma is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 08-03-2009, 08:29 PM   #2 (permalink)
 Michael Darnell's Avatar
 
Status: Junior Member
Join Date: Aug 2009
Posts: 2
Michael Darnell is on a distinguished road
Default

Javascript and Java are two different languages.

If you are writing javascript like this:

function hello () {
alert ("Hello world!");
}

you simply save the text above as "hello.js"

Then you must call the program from within a web page in html by including it like this

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<title>Untitled</title>
<script language="JavaScript" src="hello.js">
</script>
</head>

<body>

<CENTER>
<FORM>
<input type=button value="Click Here for a friendly greeting!" onClick="hello()">
</FORM>
</CENTER>

</body>
</html>

and save that as example.html

To do this in java is similar... but in Java, everything must be defined inside of a class, and since this program is about printing the string "Hello, world!", this seemed like as good a name
so you must save the following;

public class HelloWorld {

public static void main (String[] args) {
System.out.println("Hello, world!\n");
}
}

in a file called HelloWorld.java -- NOTE: the filename in java MUST match the name of the class, so if you used a name besides HelloWorld for your class, make sure you use the same name for your file. Then, assuming you have the Java JDK loaded, compile the program with this command:

javac HelloWorld.java

When you compile the program you'll create a byte-code file named HelloWorld.class. You can confirm this with the ls command in Unix, or the dir command in the DOS/Windows world. Now you can execute the byte code in the Java interpreter with this command:

java HelloWorld

When you run the program at the command line, you'll see this output

Hello, world!

if you dont have the JDK you can get it here
http://java.sun.com/javase/downloads/index.jsp
Michael Darnell is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 08-04-2009, 12:30 AM   #3 (permalink)
 Tyler C's Avatar
 
Status: Junior Member
Join Date: Aug 2009
Posts: 1
Tyler C is on a distinguished road
Default

Yes. You would save it too like whatyouwanthere.java
Tyler C is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 07-31-2010, 04:07 AM   #4 (permalink)
 
Status: Junior Member
Join Date: Jul 2010
Posts: 4
sams ron is on a distinguished road
Default

From Internet Explorer, click on Tools from the top menu and select 'Internet Options';
click on the 'Advanced' tab and scroll down the screen until you see 'Java';
if the box for Java is not selected, then you java script is turned off......just select Java and reboot your computer (your system may tell you that you need to reboot in order to update the change)
sams ron is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 02-16-2011, 02:33 PM   #5 (permalink)
 
Status: Junior Member
Join Date: Feb 2011
Posts: 2
peterduglas is on a distinguished road
Default

Java is used solely for effective web development. Today, Web services developed using the technology of Java API And the tool that provides an array of integrated Web services platform. Different stacks Web Service consists of JAX-WS, JAZB and WSIT, which allow programmers to build secure Web services.
__________________
dell coupons codes
peterduglas is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 06-11-2011, 02:39 PM   #6 (permalink)
 
Status: Junior Member
Join Date: Jun 2011
Posts: 20
monuis is on a distinguished road
Default

hi thanks for your information i am new to this forum
monuis is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 06-17-2011, 03:04 AM   #7 (permalink)
 
Status: Junior Member
Join Date: Jun 2011
Location: 1
Posts: 1
luciffer9123 is on a distinguished road
Default

thank you everbody
__________________
free download
luciffer9123 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 07-12-2011, 04:00 PM   #8 (permalink)
 
Status: Junior Member
Join Date: Jul 2011
Posts: 4
avinmichal is on a distinguished road
Default

There are abounding acceptable affidavit why you should attenuate java Software in your browsers. Estimates aren't too authentic but about about 5 to 7 percent of internet users accept disabled java script. That agency 1 out of every 20 visitors ability not be able to see your website. So it is important to ensure that your website plan appropriately with or after java script.
__________________
psd to wordpress
avinmichal is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 07-22-2011, 09:23 AM   #9 (permalink)
 
Status: Junior Member
Join Date: May 2011
Posts: 18
Nicols is on a distinguished road
Default

JavaScript is an implementation of the ECMAScript language standard. ECMA-262 is the official JavaScript standard.

JavaScript was invented by Brendan Eich at Netscape (with Navigator 2.0), and has appeared in all browsers since 1996.

The official standardization was adopted by the ECMA organization (an industry standardization association) in 1997.

The ECMA standard (called ECMAScript-262) was approved as an international ISO (ISO/IEC 16262) standard in 1998.

..................................
__________________
Plc Training In Chennai
Nicols is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 07-27-2011, 04:51 AM   #10 (permalink)
 mrbean's Avatar
 
Status: Junior Member
Join Date: Jul 2011
Posts: 16
mrbean is on a distinguished road
Default

I don't wanna say this again. But this isn't in java. This is javascript aka UnityScript.

And in your snippet, you cannot use GUI classes in other classes other than in OnGUI() function.

Thanks
mrbean is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 12-01-2011, 03:33 PM   #11 (permalink)
 
Status: Junior Member
Join Date: Nov 2011
Posts: 26
deansergio is on a distinguished road
Default

When you gather the application you'll make a byte-code computer file called HelloWorld.class. You can affirm this with the ls order in Unix, or the dir order in the DOS/Windows community. Now you can do the byte value in the Coffee translation with this order.
__________________
High School Diploma
deansergio is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Reply
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 01:05 AM.
Powered by vBulletin® Version 3.7.0 Beta 6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.


Nav Item BG