BleepingComputer.com: Java

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Java

#1 User is offline   stang90 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 52
  • Joined: 26-September 08

Posted 28 October 2008 - 06:01 PM

plane in simple i got a program on my computer that has the file extention ".java"

what program would i need to run this?

#2 User is online   groovicus 

  • Hail Groovicus!
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 9,605
  • Joined: 05-June 04
  • Gender:Male
  • Location:Centerville, SD

Posted 28 October 2008 - 06:13 PM

A file with the extension .java is an uncompiled java file; in other words, it is just a plain text file. In order to run it, one would need to compile the file into a .class file. The Java Runtime Environment has all of the necessary files to compile the .java file. After it is compiled, your computer should automagically know what to do with it.
"Take the risk of thinking for yourself, much more happiness, truth, beauty, and wisdom will come to you that way" - Christopher Hitchens

#3 User is offline   stang90 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 52
  • Joined: 26-September 08

Posted 30 October 2008 - 06:20 PM

so any sudgestions of what program i should use?

#4 User is online   groovicus 

  • Hail Groovicus!
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 9,605
  • Joined: 05-June 04
  • Gender:Male
  • Location:Centerville, SD

Posted 30 October 2008 - 06:58 PM

To compile it? You would use javac.exe, which is part of the java SDK.

Java SE Development kit
How to use the compiler
Where to go when you need help

Compiling a .java file is way too long of an explanation, so you will need to do the legwork yoursefl. Are you just wondering what the code does? Or do you know what the code does, and you want to run it?
"Take the risk of thinking for yourself, much more happiness, truth, beauty, and wisdom will come to you that way" - Christopher Hitchens

#5 User is offline   stang90 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 52
  • Joined: 26-September 08

Posted 30 October 2008 - 09:44 PM

ya, im just trying to run it

#6 User is offline   sausage 

  • Forum Regular
  • PipPipPip
  • Find Topics
  • Group: Members
  • Posts: 317
  • Joined: 01-November 08
  • Gender:Male
  • Location:Louisville Colorado

  Posted 03 November 2008 - 06:27 PM

You might be able to get a java developer like bluej or something else. It might not work but hell, its a chance.


BlueJ


Unfortunately you also need JDK 5 or 6 not JRE to run it. There is a link to it on bluej's website.

All you have to do is create a project. stick the .java file in the project folder (Created for you by BlueJ) and reopen BlueJ then if you see an orange box with a name on it (doesn't matter whatthe name is) hit Ctrl-K to compile. Hope that helps :thumbsup:
If I'm posting, I probably have something horribly wrong with my computer, there's no obvious explanation for it, that's just the way it is.

#7 User is offline   nigglesnush85 

  • Forum Addict
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Members
  • Posts: 4,371
  • Joined: 07-January 07
  • Gender:Male
  • Location:UK

Posted 05 November 2008 - 01:30 PM

Are you getting any errors?
Regards,

Alan.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users