ok, im a new person that need help to start of with java

  • (2 Pages)
  • +
  • 1
  • 2

15 Replies - 606 Views - Last Post: 29 October 2011 - 08:22 PM Rate Topic: -----

#1 the need help  Icon User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 8
  • Joined: 28-October 11

ok, im a new person that need help to start of with java

Posted 28 October 2011 - 02:54 PM

hello everyone! i was wondering if anyone could explain me what i should start with. i really wanna work with java in the future and i need help to start. all i want to is to maybe make an calculator or something. i just want to start off with java or c++.
Is This A Good Question/Topic? 0
  • +

Replies To: ok, im a new person that need help to start of with java

#2 smohd  Icon User is offline

  • Critical Section
  • member icon


Reputation: 1819
  • View blog
  • Posts: 4,627
  • Joined: 14-March 10

Re: ok, im a new person that need help to start of with java

Posted 28 October 2011 - 03:06 PM

You may need to look at Getting Better at Programming in Java, this will show you how to get started. Also you can have a look at Java Resource thread and look at Java books if you need to look at books.
Was This Post Helpful? 1
  • +
  • -

#3 the need help  Icon User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 8
  • Joined: 28-October 11

Re: ok, im a new person that need help to start of with java

Posted 28 October 2011 - 03:10 PM

ok, ill check out those things, but acctually do i like to get stuff personally to me:P
Was This Post Helpful? 0
  • +
  • -

#4 the need help  Icon User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 8
  • Joined: 28-October 11

Re: ok, im a new person that need help to start of with java

Posted 28 October 2011 - 03:22 PM

umm, i red this: http://www.dreaminco...world-tutorial/ and i didnt understand the compileing stuff at the end. explain to me?
Was This Post Helpful? 0
  • +
  • -

#5 smohd  Icon User is offline

  • Critical Section
  • member icon


Reputation: 1819
  • View blog
  • Posts: 4,627
  • Joined: 14-March 10

Re: ok, im a new person that need help to start of with java

Posted 28 October 2011 - 03:40 PM

Those are commands you write in command prompt if you need to use it to compile your run your code:
javac: this compiles the specified java file
java this runs the class
Now depends on what you use to run your code, also it will be better to say what you didint understand from those lines exactly
Was This Post Helpful? 0
  • +
  • -

#6 the need help  Icon User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 8
  • Joined: 28-October 11

Re: ok, im a new person that need help to start of with java

Posted 28 October 2011 - 03:43 PM

so what is javac? a programm that compiles my code so i can run it? where do i get it? make it?
Was This Post Helpful? 0
  • +
  • -

#7 the need help  Icon User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 8
  • Joined: 28-October 11

Re: ok, im a new person that need help to start of with java

Posted 28 October 2011 - 05:24 PM

help me?
Was This Post Helpful? -1
  • +
  • -

#8 lilVaratep  Icon User is offline

  • D.I.C Head

Reputation: 20
  • View blog
  • Posts: 207
  • Joined: 09-October 11

Re: ok, im a new person that need help to start of with java

Posted 28 October 2011 - 07:15 PM

javac is not a program, more of a command that you can use in the command prompt on Windows. You can obtain the javac and java commands by downloading the jdk here. Download the JDK and install it.
Was This Post Helpful? 0
  • +
  • -

#9 pbl  Icon User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8328
  • View blog
  • Posts: 31,857
  • Joined: 06-March 08

Re: ok, im a new person that need help to start of with java

Posted 28 October 2011 - 08:17 PM

View PostlilVaratep, on 28 October 2011 - 10:15 PM, said:

javac is not a program, more of a command that you can use in the command prompt on Windows.

javac IS a program that reads a java source file contained in foo.java and generates a file foo.class containing the byte code (binary) that can be executed by the JVM (Java Virtual Machine)
Was This Post Helpful? 2
  • +
  • -

#10 the need help  Icon User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 8
  • Joined: 28-October 11

Re: ok, im a new person that need help to start of with java

Posted 29 October 2011 - 01:14 AM

what do i do wrong?

compile code:
javac helloworld.java


run code:
@echo off
title helloworld
java helloworld
pause


the java file:
/*  Program name HelloWorld.java 
who's sole purpose is 
to 
introduce java programming */

public class HelloWorld{
	public static void main (String args[])	
	{
	 System.out.println("Hello World"); // note the semi-colon after the statement
	} // end of the main method
} // end of Hello World



Was This Post Helpful? 0
  • +
  • -

#11 Ryano121  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1362
  • Posts: 3,002
  • Joined: 30-January 11

Re: ok, im a new person that need help to start of with java

Posted 29 October 2011 - 05:58 AM

First of all you need to make sure that your Environment Variables are set up correctly to see the JDK. To test this, type in javac in a command prompt and hit enter. If loads of text gets displayed, everything is good, if 'javac cannot be found' is shown, you need to do some configuration.

If it is working, make sure that your Java filename exactly matches the class name. So rename the file to HelloWorld.java and change the compiling and running code to match this exactly. It is case sensitive.
Was This Post Helpful? 0
  • +
  • -

#12 the need help  Icon User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 8
  • Joined: 28-October 11

Re: ok, im a new person that need help to start of with java

Posted 29 October 2011 - 07:13 AM

can u help me with teamviewer?
Was This Post Helpful? 0
  • +
  • -

#13 Ryano121  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1362
  • Posts: 3,002
  • Joined: 30-January 11

Re: ok, im a new person that need help to start of with java

Posted 29 October 2011 - 07:21 AM

How is that related to getting the Hello World program to compile and run? If you have a question that is not relevant this one, make a new topic in the relevant forum.
Was This Post Helpful? 0
  • +
  • -

#14 the need help  Icon User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 8
  • Joined: 28-October 11

Re: ok, im a new person that need help to start of with java

Posted 29 October 2011 - 05:21 PM

you know what teamviewer is?
Was This Post Helpful? 0
  • +
  • -

#15 pbl  Icon User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8328
  • View blog
  • Posts: 31,857
  • Joined: 06-March 08

Re: ok, im a new person that need help to start of with java

Posted 29 October 2011 - 05:57 PM

Kind of a PCAnywhere software, lets you connect to a PC from anywhere as if you were in front of it. And its free as VLC.
What is the relation with Java ? Or is it written in Java ? I doubt
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2