What To Do With .java Files?

free web hosting
Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > Java, Java Servlets, Java Script, & JSP

What To Do With .java Files?

peroim
Ok, I "know" Java, but what now? What do you do with the .java files? (I'm interested in both java-applets and java-programs.)

Thanks, Peroim.

Reply

fffanatics
You would compile the .java files into .class files. There you can either run them using the java nameofprogram command or include them into a website if the class file extend JApplet. There isnt much else to do with the code besides run it.

Reply

hype
You can actually throw away the .java files after you compile it and the .class files is your final work... However, if you ever need to edit your work again its better you keep that .java files so that next time you could work on it from there instead of starting all over... Java is portable so you just have to have the .class file in order to work on almost all operating system or website that have the java virtual machine or something... smile.gif

Reply

derickkoo
QUOTE(peroim @ Oct 31 2006, 12:36 AM) *

Ok, I "know" Java, but what now? What do you do with the .java files? (I'm interested in both java-applets and java-programs.)

Thanks, Peroim.


hey, .java is just the java program source file, if you wanna make it run you need to compile them to .class file by javac.exe that is included the the JDK (Java Develop Kit), current i use the 5.0 version of jdk, after install JDK on your computer and setup the neccessary environment correctly, ok open command line and change directory to the <JDK_HOME>/bin, and use the follow command.

> javac pkgname.classname.java

without error ,ok you gotta the class code of java now, it's not easy to compile during abrove way especially you wanna compile a java project, so you can use Eclipse or NetBean both are wonderfull open-source java IDE, i prefer to use Eclipse and have working on java with eclipse for most a year, when you edit java source code in eclipse when you save the code, ok the file has already compiled to the class file now,

cool, right.? i think so. happy java

 

 

 


Reply

2091
QUOTE(peroim @ Oct 30 2006, 05:36 PM) *

Ok, I "know" Java, but what now? What do you do with the .java files? (I'm interested in both java-applets and java-programs.)

Thanks, Peroim.



hi there!

i'll use the java programming language since years, and i found something, witch everyone will love...

never need to compile your java sourcecode via console, have a "code-expender" (press crtl + space, popup apears, choose method etc.)

well, this program is called "eclipse" and you can get it from www.ecplipse.org

direct me to the DL site

if you don't use this app you need to compile the sourcefile by yourself, witch means you have to switch in a command - box, goto rootdir/programme/sun/java/bin (the bin directory of your java installation)
and enter "javac sourcecodename" where the sourcecode name is without the extension (.java).

this will compile your .java into a bytecode (.class file).

next, you have to type "java sourcefile" in the same directory...


with eclipse you may have up to 1000 workspaces, and it will be easy to compile your code...

(simple press crtl + x, j and there it goes smile.gif)

sorry, but my english isn't verry well cuz i'm a german user (not *BLEEP*ing germany, from austria ^^)


have a nice day

Reply

Marrow
Hi All,

I started to deal with Java and jsp about a month ago.
As I still consider myself as a rookie, I have read lots of tutorials, howtos about jsp, java and applets.
In every JDK installation there is written to set the PATH variable (or JAVA_HOME and CLASSPATH variable, in case of linux). If you do that, then there is no need to go to the Java/bin folder for compiling (or for any other program launching).
I hope this helps someone.

Regards,
Marrow

Reply

peroim
hi everybody,

thanks for the replies. i've got NetBeans installed and now i know how to compile java files, i can start learning java rolleyes.gif

Peroim

Reply

1stJedi
hi friend NetBeans is good but the best thing is e-clips. Known as Easy Clips. This is just wonderful. So plz try this.

Reply

hitmanblood
Well with JAVA you can do almost everything, and really everything. However if you want to program applet's as you pointed out in the first post. You have to know inheritance as you extend applet class and you have to know bits and bytes of html. Applets are really cool when you get used to it. It is a bit different from programming in java as now it is not linear not at all. You could place several objects and they would be posted and you have to have a bit sense for graphics. Also the best way to run applets is not your browser but rather appletviewer which can be used in your cmd that is command prompt in windows.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : java, files

  1. How To Create Pdf Files Using Free Tool
    Introduction to use a free tool to create PDF file (0)
  2. Clearing Your Ie Tif
    Clear your Temporary Internet Files on IE (0)
    -Welcome to: Clearing your Internet Explorer Temporary Internet Files Tutorial-!
    Attention!: As some of the members on here may know, it is possible to clear your Internet
    Explorer Temporary Files. I have searched this entire Tutorials subforum to find a topic already
    made, and I have found nothing. This tutorial I did NOT find this on Google, or any other search
    engine. I always find this out for myself. Lets start: Ok, first we open up Internet Explorer,
    then we click "Tools"...then we click on "Internet Options...". On the Main page "Gener....
  3. How To Download Any Flv Files From Any Sites
    (6)
    Now you can download any flv files from any websites!! People often know how to download
    youtubes clip, but not from other sites. In this tutorial you will need a tool name Moyea FLV
    Downloader, it is free and you can download it at http://www.flvsoft.com/download_flv/ This is
    the best tool i have meet up with to download flv files in any site. Since it can detect flv files,
    and list it, you can download it as you want, so no more favourite clips goes away from your sight
    and now you have it on your own hard drive! 1. Run moyea flv downloader see 1.jpg 2.....
  4. Panasonic Lumix - Problems With Movie Files
    troubles managing (renaming, moving, deleting) movie files from the ca (0)
    I've recently bought a Panasonic Lumix TZ3, the one with a wideangle to telephoto lens (10x zoom
    from 28mm to 280mm equivalent) and I am very satisfied with the overall performance. Obviously I
    didn't buy the camera because of the movie features but occasionally I do take some short clip
    or use the "picture with audio" to comment on a photo, these functions are pretty easy to use and
    the quality of the video is reasonable. The movie files (or the audio attached to a picture) get
    saved in Jpeg Motion Picture format, generating a .MOV file which appears on the me....
  5. Java Obfuscator
    (1)
    Well Basically I have a Java Obfuscator yet I do not know how to use it, I have about 300 files to
    Obfuscate in a .jar so basically i need some help with Obfuscating the .jar Any help at all will be
    helpful, by the way a Obfuscator is a program that "Encryptes" .jar files so that it is hard to Take
    Source Code and reuse it.....
  6. Java De/compiler
    (5)
    Hey I'm currently using Netbeans as my Compiler and jd-gui as my decompiler I want to know if
    there is anything more effective when i use jd-gui is messes up the source code and deletes the
    @overrides and comment outs....
  7. Java And Xml: Links You Must Have
    (1)
    XML and JavaGeneral XML resources * "XML, Java and the Future of the Web," Jon Bosak. The
    paper that started it all, at least from a Java programmer's point of view. Definitely worth a
    read, even if it's a bit dated. Jon is commonly considered to be the father of XML. Funny how
    all of these technologies seem to have paternity
    http://metalab.unc.edu/pub/sun-info/standa...hy/xmlapps.html * "Media-Independent
    PublishingFour Myths about XML" Jon Bosak
    http://metalab.unc.edu/pub/sun-info/standa.../why/4myths.htm * Robin Cover's XML-....
  8. Java Multithreading Issues
    (2)
    So we have a web based application running on JBoss on several clustered servers. The front end of
    the application is using jms to communicate with the middleware MDB, which communicates with other
    backend application servers. The application runs well when only a few requests are submited.
    However, when requests boost to couple thousands, the app starts to crash. The log files shows a
    concurrency issue with the ThreadPoolExecutor. When we set the core size pool to one the issue was
    solved. Looks like we have concurrent issue of multiple threads accessing same resource s....
  9. Firefox Temporary Media Files
    Where are they stored? (0)
    Sometimes when I view video tutorials online and I want get pleased with the flash or mp4 I will be
    viewing online. When I try to seach for the temporary file stored by Firefox so that I can save it
    in another drive I fail to find it. Does anyone know where these files are stored and which format
    they will be in? One day I opened the folder: CODE C:\Documents and
    Settings\Rare\Local Settings\Application
    Data\Mozilla\Firefox\Profiles6qbhaqp.default\Cache and found a lot of files
    without extentions. Could these be the ....
  10. Lan Surfer In Linux
    GUI software to view other's shared files (2)
    I have been using LAN surfer and Network scanner in Windows , These software's are used
    to scan the LAN over a given range of IP addresses and then display the folders shared by each
    computer available on LAN in the specified range... now i have switched to Linux... Can you tell me
    any GUI software which would do this task in Linux ubuntu 7.04. I tried nmap but i did not
    find it that useful...i think it does only port scanning and stuff but does not display the files
    shared... but i am not sure..tell me if it can be used and how... I also installed s....
  11. Browse System Files In The Browser...
    (2)
    Hi all Trap 17 people... I am not sure if you are already aware of this fine piece of information,
    But definitely a must know feature... Browsing your system files in your browser. For more visit the
    below link http://varalu.blogspot.com/2008/07/browsin...in-firefox.html You can use this feature
    to do so many stuffs... pretty much useful for addon developers. /smile.gif"
    style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />....
  12. How To Implement Single Instance Application On Java
    (0)
    See the next few lines containing Java Code: CODE 1. // imports    2. import
    sun.management.ConnectorAddressLink;      3. import sun.jvmstat.monitor.HostIdentifier;      4.
    import sun.jvmstat.monitor.Monitor;      5. import sun.jvmstat.monitor.MonitoredHost;      6. import
    sun.jvmstat.monitor.MonitoredVm;      7. import sun.jvmstat.monitor.MonitoredVmUtil;      8. import
    sun.jvmstat.monitor.MonitorException;      9. import sun.jvmstat.monitor.VmIdentifier;     10.  
      11. public static void main(String args[]) {     12.         /* The method Managem....
  13. Auto-upload Files With Filezilla And Autohotkey
    (0)
    If your web host only allows FTP access and not shell access then you have to edit files locally and
    then upload them. If you are debugging your website that means making a lot of changes to a file or
    files and lots of manual uploads after each change to a file. FileZilla works great to upload and
    download files to a remote FTP site and it even allows you to set a default editor so you can right
    click on a remote file and click view/edit. It then downloads the file to a temporary directory and
    monitors any changes made to the file. When it detects that you have saved the....
  14. Call Pdf995 From Java
    (0)
    How can i call pdf995 engine from Java to generate Pdf from Doc. This approach from Visual Basic
    Application is provided in http://www.pdf995.com/faq_dev.html . How can i approach same from Java?
    Can anyone help? ....
  15. How Can You Get Audio Files From Itunes Videos?
    (1)
    I need some help. How can you get audio files from iTunes videos? iTunes videos don't import
    into Windows Movie Maker so I don't know how. Is there a way to convert iTunes video files to
    kinds that are supported by Windows Movie Maker? Thanks in advance for help. /smile.gif"
    style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />....
  16. Naming Web Page Files
    Which way you like- MyPage.html or my-page.html or my_page.html (9)
    Everybody talks about meta tags, keywords, good title names and how they can increase page rankings,
    etc. But I was wondering whether the page name itself holds any value in indexing. Yes, I am
    talking about the web page file names (some-thing.html) NOT the one which you put in title tags. I
    am going to express my views and want to know what you think is correct. I have seen pages named in
    various ways like these: 1) my_web_page.html 2) DoYouLikeMyPage.html 3) hey-see-my-webpage.html (I
    think this way is more appropriate) 4) this.is.a.page.html (somewhat confusing) ....
  17. Audio Files?
    (5)
    I need some help. Is it possible to get audio files off of sites? Like IMEEM and YouTube. I know the
    whole http://www.file2hd.com thing. It doesn't always work though. Are there other ways? Is
    there a way people hack audio files off of sites? NOTE: I DO NOT WANT DO THIS! I merely want to
    know so that I can protect my sites from it. Thanks.....
  18. Jar Executable Files
    (3)
    I have been supplied with a digital log book for use this semester and it comes in the form of a
    .jar file and a .mdb file. I tried running it on my mac but it crashes every time but it seems to
    run perfectly on windows xp. Does anyone have any ideas why? I thought .jar files would be
    computable on any platform. ....
  19. I Need Help With Setting Up My Site, Made Using Java
    any help would be appreciated (5)
    I just got web hosting approved and I want to host the site I created using Struts framework.
    I'm a complete newb when it comes to web hosting, so I need a little help. Is there a tutorial
    that covers this subject? I apologize in advance if this question was already answered, but
    I've been unable to find the answer anywhere. One thing I have to note is that I need to know
    absolute address of the uploaded files in order for my application to work. Is this even allowed?
    Any help with hosting of Java applications will be appreciated.....
  20. 1350 Great Free Logos (jpg + Psd)
    With both jpg and original psd files to edit (8)
    1350 Great Free Logos (With both jpg and psd files)
    http://rapidshare.com/files/126291346/1346...Great.Logos.zip This is a great collection of
    logos, they are already made logos which you can use like that or just use to create other logos, do
    what you want, they are free, they came from free websites that give this logos for free and lot
    more, but i just took the good ones mainly. There is also a small collection of 100 logos inside
    the compressed file, which you can use to insert those graphics in your logo/design/web design
    projects, do what you want with them ....
  21. Learn Java Programming Language Online Step By Step
    (1)
    I had found this site >> http://learnjava.awardspace.com This website is for people who want
    to learn Java Programming Language step by step. This website also includes JAVA lessons from the
    beginning to advanced level. So this site appropriates for the beginner of Java programmer language
    or non-basic Java Programming Language. The lessons are easy to follow and understand starting
    from how to get your PC JAVA ready, the fundamental programming concept and creating the real
    application. Moreover, the working examples are also included. Please enjoy the les....
  22. Java Or C++
    (9)
    Many having tell me to make my MMORPG in java leads me to agree, But I'm not sure truly is it
    not yet easier, but yet the outcome of programming an MMORPG in java will make it fail or succeed
    more then one in C+= I've learned a lot of variables in javascript, and I don't think that
    java would be too bad either. My true question is, is those who use these languages, which seems
    to give better outcome, and which seems to be more in ease. Regards -PCessna....
  23. Budding Java Game Developers?
    Ever wanted to make your own java web-based game, but not had the time (9)
    Right, this is the first post of hopefully many in this thread. Basically the idea is to get many
    developers together to share ideas and knowledge to create our very own game. First we'll be
    asking for is any ideas of what kind of game everybody would like to make, and then we'll set
    about assigning tasks depending on everybodies skills. We will need programmers, artists,
    web-designers, even admin and marketing. This will be freeware, but the experience will be great.
    So, ideas anyone?....
  24. How To Disable "show Hidden Files And Folders" In Folder Option
    (12)
    How to disable "Show hidden files and folders" in Folder Option As you know, you can hide files
    or folders in Microsoft Windows ( to hide a file or folder , right click on file or folder >select
    properties and then select Hide file) But if you open Folder Option and check "Show hidden files
    and folders " you can see hidden files. to disable "Show hidden files and folders" feature follow
    below steps : 1- Click start > Run > type regedit to run Windows Registry Editor. 2- Go to following
    address: QUOTE HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/Current Versio....
  25. Eclipse Exporting .jar Files
    Could not find main class. Program will exit. (5)
    I need help! I've been using eclipse for a while making little applets, and now I've
    decided to look at some tutorials on how to make simple applications. I've found a pretty good
    tutorial that tells you how to make a helloWorld app with swt and jFace, and also has an example
    file explorer that you can make. They both work perfectly from inside eclipse, but when I try and
    export either one into a .jar file, they don't work anymore. It comes up with a message saying
    "Could not find main class. Program will exit." In the little wizard it has for....
  26. Java For The Beginning Programmer Ebook
    (4)
    Java for the Beginning Programmer teaches Java to someone with absolutely no programming background.
    This book focuses on core programming topics such as variables, looping, subroutines, and program
    layout. This course focuses on real programming techniques, and not using an Integrated Development
    Environment (IDE) to generate code. This course ends with an introduction to graphical user
    interface programming. http://www.heatonresearch.com/articles/series/15/ ....
  27. The New And Very Good Free Host Server
    For upload/share files.www.rapidshare.se (13)
    Here it is: http://www.rapidshare.se/index.php Go check it out! I've heard good
    things about this free upload server.....
  28. How To Create Java Button Or Frame
    to be customized (14)
    hi to all!!!! just like to ask if it would be possible if i could make a custom
    button or frame in java. i got tired of using the build infeatures in java. i would like to create
    my own dessign of button or frame.. can it be possible!!! /biggrin.gif' border='0'
    style='vertical-align:middle' alt='biggrin.gif' /> thank!!!! /laugh.gif'
    border='0' style='vertical-align:middle' alt='laugh.gif' /> New Help In! is NOT a descriptive
    topic title. Next time you decide not to follow the posting rules, you will be issued a w....
  29. Java Mobile Applications
    What you wanna have on your phone ? (7)
    I'm trying to do a Java mobile J2me application... But I don't know what to do... Any
    suggestions....? Maybe you guys can say what you would like to have on your mobile phone... ....
  30. convert .java to .c
    (5)
    hey, do any of you programmers know how to do this with a program? i am not as proficient in c as i
    am in java.....

    1. Looking for java, files

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for java, files

*MORE FROM TRAP17.COM*
Similar
How To Create Pdf Files Using Free Tool - Introduction to use a free tool to create PDF file
Clearing Your Ie Tif - Clear your Temporary Internet Files on IE
How To Download Any Flv Files From Any Sites
Panasonic Lumix - Problems With Movie Files - troubles managing (renaming, moving, deleting) movie files from the ca
Java Obfuscator
Java De/compiler
Java And Xml: Links You Must Have
Java Multithreading Issues
Firefox Temporary Media Files - Where are they stored?
Lan Surfer In Linux - GUI software to view other's shared files
Browse System Files In The Browser...
How To Implement Single Instance Application On Java
Auto-upload Files With Filezilla And Autohotkey
Call Pdf995 From Java
How Can You Get Audio Files From Itunes Videos?
Naming Web Page Files - Which way you like- MyPage.html or my-page.html or my_page.html
Audio Files?
Jar Executable Files
I Need Help With Setting Up My Site, Made Using Java - any help would be appreciated
1350 Great Free Logos (jpg + Psd) - With both jpg and original psd files to edit
Learn Java Programming Language Online Step By Step
Java Or C++
Budding Java Game Developers? - Ever wanted to make your own java web-based game, but not had the time
How To Disable "show Hidden Files And Folders" In Folder Option
Eclipse Exporting .jar Files - Could not find main class. Program will exit.
Java For The Beginning Programmer Ebook
The New And Very Good Free Host Server - For upload/share files.www.rapidshare.se
How To Create Java Button Or Frame - to be customized
Java Mobile Applications - What you wanna have on your phone ?
convert .java to .c
advertisement



What To Do With .java Files?



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE