6 Replies - 1461 Views - Last Post: 12 February 2007 - 11:50 AM Rate Topic: -----

#1 LoganLooker   User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 56
  • Joined: 01-February 07

Running Java Applications

Posted 12 February 2007 - 08:21 AM

Ok heres my problem i haven't figured this out yet whats wrong when i use notepad to write JAVA (if thats possible?) it turns out like this WHATS WRONG!?!?!?!?!

Posted Image



WHEN i try to run them they open the code / script in notepad and dont accually do the thing?!?!?!

Is This A Good Question/Topic? 0
  • +

Replies To: Running Java Applications

#2 Amadeus   User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 250
  • View blog
  • Posts: 13,507
  • Joined: 12-July 02

Re: Running Java Applications

Posted 12 February 2007 - 08:23 AM

You need to run them using the java compiler - not by double clicking on them. What java compiler are you using?
Was This Post Helpful? 0
  • +
  • -

#3 LoganLooker   User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 56
  • Joined: 01-February 07

Re: Running Java Applications

Posted 12 February 2007 - 08:40 AM

View PostAmadeus, on 12 Feb, 2007 - 08:23 AM, said:

You need to run them using the java compiler - not by double clicking on them. What java compiler are you using?


Java compiler whats that? lol i need that please help?

this is what happens when i double click on them?

ARRRGHH WHATS WRONG LOL!?!?!?! :pirate:

Sorry for the big images on the website its probably taking up bandwith?!?!? SORRY delete them once this is solved or i can make a TUT after i figure this out for more NEWBZ like me!?

Posted Image
Was This Post Helpful? 0
  • +
  • -

#4 Amadeus   User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 250
  • View blog
  • Posts: 13,507
  • Joined: 12-July 02

Re: Running Java Applications

Posted 12 February 2007 - 08:45 AM

Hmm...there is a tutorial already. It appears as if you may be simply writing files and expecting them to run as applications. this is not the case. A java program can be written using a text editor and saved a .java file. That file must then be compiled (translated, if you will) into a class or executable that will run within the java runtime environment. That class or executable must then be 'executed' or run. One cannot simply type java into a file and then double click on it. Here is a good look at the basics of writing, compiling, and running a program:

http://java.sun.com/...a1/compile.html
Was This Post Helpful? 0
  • +
  • -

#5 LoganLooker   User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 56
  • Joined: 01-February 07

Re: Running Java Applications

Posted 12 February 2007 - 08:49 AM

View PostAmadeus, on 12 Feb, 2007 - 08:45 AM, said:

Hmm...there is a tutorial already. It appears as if you may be simply writing files and expecting them to run as applications. this is not the case. A java program can be written using a text editor and saved a .java file. That file must then be compiled (translated, if you will) into a class or executable that will run within the java runtime environment. That class or executable must then be 'executed' or run. One cannot simply type java into a file and then double click on it. Here is a good look at the basics of writing, compiling, and running a program:

http://java.sun.com/...a1/compile.html


THANK YOU!!!!! BIG Reputation points should be delivered to this guy! So called Amadeus

I get all that now is there a place where i can download a Compiler from or is that in the tut that i should read a little more of?

Do i download the JAVA 2 SDK Tools pack? lol

This post has been edited by LoganLooker: 12 February 2007 - 08:51 AM

Was This Post Helpful? 0
  • +
  • -

#6 Amadeus   User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 250
  • View blog
  • Posts: 13,507
  • Joined: 12-July 02

Re: Running Java Applications

Posted 12 February 2007 - 09:03 AM

You can begin with the sdk...it is available here:

http://java.sun.com/...loads/index.jsp

you are looking for JDK 6.

Once downloaded and installed, you can try the tutorial - it should provide everything you need, but if you have any questions at all, please feel free to post them here on the forum.
Was This Post Helpful? 0
  • +
  • -

#7 LoganLooker   User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 56
  • Joined: 01-February 07

Re: Running Java Applications

Posted 12 February 2007 - 11:50 AM

View PostAmadeus, on 12 Feb, 2007 - 09:03 AM, said:

You can begin with the sdk...it is available here:

http://java.sun.com/...loads/index.jsp

you are looking for JDK 6.

Once downloaded and installed, you can try the tutorial - it should provide everything you need, but if you have any questions at all, please feel free to post them here on the forum.


ok im at school so i will have to wait to get home lol darn i was hoping that i could code my game and all that stuff while I was at school Thats a real bumper :crazy: :angry: but ohhh well lol! thank you again for the help with all of this! B) :music: :P :D

/-------------------_----------------------\"""\
| ok a little more help lol i downloaded
| it but still not working what should i
| do do i ha ve to open the JDK thing <------------- HELP HERE READ THIS LOL!
| and then open the .java txt doc. thro
| that JDK program this is really bad
| Im such a NEWB!
\-------------------_----------------------/..../

This post has been edited by LoganLooker: 12 February 2007 - 12:04 PM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1