FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Java download question





Eyre
To anyone that programs with java, i am a beginner and learning how to code with java. i donwloaded the runtime package, but dont know if i have to download anything else. Do i?
cokdes
u can use a simple text processor such as notepad to make a java file. For example:

Code:

public class HelloWorld{
      public static void main(String[] args){
            System.out.println("HelloWorld!!!");
      }
}


then, save your java code as "HelloWorld.java" (must be the same with the class name, also the case). and then you can compile your java file in command prompt (Windows) with command:

Code:

C:/javac Helloworld.java


to run your program type:

Code:

C:/java HelloWorld


don't forget to make the CLASSPATH, but I don't know how... (any body can help?) Smile
Because I usually use TextPad or NetBeans IDE to make a Java Project..
Eyre
alright that works Very Happy thanks
dandelion
JRE is only for compiled applications.
To compile them you need download and install The J2SE Development Kit (JDK) at least.
Related topics
Firefox Problem!
JAva HELP
Java project coupling problems
Question About Windows XP interface
Where to find Java Scripts
QUESTION | Half-Life Server
mobile programmers codes
Java Has Failed!
HTML/Java Question
[php] Php Editor
Whos is the FUTURE.... JAVA or .NET
Simple menu written in C - Problem with loop
Making Money From The Internet
anyone here who is amazing at php
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.