| 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. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| Status: Junior Member Join Date: Aug 2009 Posts: 0
![]() | 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 |
| | |
| | #2 (permalink) |
| Status: Junior Member Join Date: Aug 2009 Posts: 2
![]() | 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 |
| | |
| | #3 (permalink) |
| Status: Junior Member Join Date: Aug 2009 Posts: 1
![]() | Yes. You would save it too like whatyouwanthere.java |
| | |
| | #4 (permalink) |
| Status: Junior Member Join Date: Jul 2010 Posts: 4
![]() | 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) |
| | |
| | #5 (permalink) |
| Status: Junior Member Join Date: Feb 2011 Posts: 2
![]() | 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 |
| | |
| | #6 (permalink) |
| Status: Junior Member Join Date: Jun 2011 Posts: 20
![]() | hi thanks for your information i am new to this forum |
| | |
| | #7 (permalink) |
| Status: Junior Member Join Date: Jun 2011 Location: 1 Posts: 1
![]() | thank you everbody
__________________ free download |
| | |
| | #8 (permalink) |
| Status: Junior Member Join Date: Jul 2011 Posts: 4
![]() | 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 |
| | |
| | #9 (permalink) |
| Status: Junior Member Join Date: May 2011 Posts: 18
![]() | 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 |
| | |
| | #10 (permalink) |
| Status: Junior Member Join Date: Jul 2011 Posts: 16
![]() | 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 |
| | |
| | #11 (permalink) |
| Status: Junior Member Join Date: Nov 2011 Posts: 26
![]() | 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 |
| | |
![]() |
| Thread Tools | |
| Display Modes | |
| |