Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Java


  • Please log in to reply
6 replies to this topic

#1 stang90

stang90

  • Members
  • 81 posts
  • OFFLINE
  •  
  • Local time:10:39 PM

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?

BC AdBot (Login to Remove)

 


#2 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:08:39 PM

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.

#3 stang90

stang90
  • Topic Starter

  • Members
  • 81 posts
  • OFFLINE
  •  
  • Local time:10:39 PM

Posted 30 October 2008 - 06:20 PM

so any sudgestions of what program i should use?

#4 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:08:39 PM

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?

#5 stang90

stang90
  • Topic Starter

  • Members
  • 81 posts
  • OFFLINE
  •  
  • Local time:10:39 PM

Posted 30 October 2008 - 09:44 PM

ya, im just trying to run it

#6 sausage

sausage

  • Members
  • 389 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Colorado
  • Local time:08:39 PM

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:

#7 nigglesnush85

nigglesnush85

  • Members
  • 4,371 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:UK
  • Local time:02:39 AM

Posted 05 November 2008 - 01:30 PM

Are you getting any errors?
Regards,

Alan.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users