Results 1 to 6 of 6

Thread: Java website

  1. #1
    Eleeist is offline Member
    Join Date
    May 2011
    Posts
    84
    Rep Power
    0

    Default Java website

    Hello,

    I have a Debian server with Java JDK installed. I wrote a simple script in Java and would like to send it to the server and run it in the browser. Do I have to just send the class file to whatever folder I want and it will work?

    Sorry if these questions are silly, I am a really newbie in Java.

  2. #2
    Solarsonic is offline Senior Member
    Join Date
    Mar 2011
    Posts
    261
    Rep Power
    4

    Default

    Use an applet.

  3. #3
    Eleeist is offline Member
    Join Date
    May 2011
    Posts
    84
    Rep Power
    0

    Default

    I successfully installed Tomcat on my server. Where should I put the Java files?

  4. #4
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Location
    Russia
    Posts
    620
    Rep Power
    4

    Default

    Hi.
    You said that you have some Java code. Can you tell what it do?
    Java has few technologies which interact with client. There are Servlet, JSP, Applets, Web Start and other one. You did not mention what technologies you use.
    Or you just can show your code here.
    Skype: petrarsentev
    http://TrackStudio.com

  5. #5
    Eleeist is offline Member
    Join Date
    May 2011
    Posts
    84
    Rep Power
    0

    Default

    Hi,
    I am following this tutorial: YouTube - Java Programming Tutorial - 5 - Variables

    So eg. I have the following code:

    Java Code:
    class apples{
    	public static void main(String args[]){
    		System.out.println("Hellow world!");
    	}
    }
    I have some PHP and MySQL knowledge, but I would like to learn Java, as I heard it is more complex and versatile. The main purpose is to create interactive websites.

  6. #6
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Location
    Russia
    Posts
    620
    Rep Power
    4

    Default

    to create interactive websites.
    it is wrong and this is just stereotype. Java is use for create enterprise app. Usually it has big web user interface.
    If you really want to develop in Java I should start to read with Head First Java.
    That example that you post you can't run in browser, This is just Hello World.
    You need compile it and run. That is all.
    You can find more info in book that I point.
    Skype: petrarsentev
    http://TrackStudio.com

Similar Threads

  1. Java example apps website, looking for one
    By silverglade in forum New To Java
    Replies: 2
    Last Post: 04-25-2011, 01:27 AM
  2. Can i run JAVA-Viewer.jad on website?
    By DeDanan in forum New To Java
    Replies: 4
    Last Post: 02-28-2011, 10:17 PM
  3. Java and Website
    By Fares in forum Advanced Java
    Replies: 3
    Last Post: 11-14-2010, 02:22 PM
  4. How to download website (Get all link in website)
    By finalmem in forum Advanced Java
    Replies: 0
    Last Post: 11-12-2008, 08:43 AM
  5. Kode Java Website
    By wsaryada in forum Reviews / Advertising
    Replies: 4
    Last Post: 01-18-2008, 09:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •