Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Can I still use Java as a web client?

  1. #1
    Junior Member
    Join Date
    Nov 2022
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Can I still use Java as a web client?

    I used to program a lot in Java, but haven't touched it for several years now. I'm thinking of diving back in because I have an idea for a game. The main reason to use Java is its scripting engine - this app would rely a lot on loading and executing bits of javascript at runtime, and I remember Java's JS language bindings as one of the best I've come across.

    What's holding me back is trying to figure out how I would put this on the web. I could do it as a servlet, but I would prefer something entirely client-side since I don't really need it to access any data on my server. If applets were still a thing, that would be perfect but they have been phased out and do not seem to be coming back.

    I've tried to use webstart before, but found that it runs into a ton of security issues too. Since I want casual users to be able to access this game, I don't want them to have to configure a ton of things just to get my Java app going.

    Is there some sort of modern equivalent of applets I can use? Or maybe cross compile my Java into a javascript/html? Or are servlets my only option if I want to write this in Java?

  2. #2
    Junior Member
    Join Date
    Jul 2023
    Location
    Birmingham, MI
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Can I still use Java as a web client?

    Consider exploring GWT (Google Web Toolkit) for cross-compiling Java to JavaScript and HTML. Alternatively, TypeScript with game development frameworks like Phaser might be worth exploring. Servlets aren't necessary for a fully client-side solution without server-side data access. By the way if you're interested in understanding the psychological aspects of user experience and behavior in web development, you can explore learn more.
    Last edited by savannasanders; July 27th, 2023 at 12:40 AM.

  3. #3
    Member Helium c2's Avatar
    Join Date
    Nov 2023
    Location
    Kekaha, Kaua'i
    Posts
    102
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Can I still use Java as a web client?

    Java has a wide range of applications. Including website building. It is probably the most efficient use of web site and memory allocations there is. Very effective and efficient use on a website or web hosting server. Can i use Java as a web client? Yes. If you plan to make applets and canvases like you see on some websites in HTML or other programs, you'll need to get on an editor. NetBeans. This will be used to embed all of your class files directly to your chosen website to add those files on. You will be working with another developer. To get your job done. And effectively confirm it's working. Web developers job is here.

Similar Threads

  1. Java Client FTP
    By teten in forum Java Theory & Questions
    Replies: 0
    Last Post: June 17th, 2013, 04:56 AM
  2. my encrypting simple client to server program unable to get the key from client
    By Paytheprice in forum What's Wrong With My Code?
    Replies: 11
    Last Post: February 3rd, 2013, 07:15 AM
  3. Replies: 0
    Last Post: May 31st, 2012, 05:35 PM
  4. server/client application fails when client closes
    By billykid in forum Java Networking
    Replies: 4
    Last Post: January 26th, 2012, 01:54 AM
  5. Java Client
    By newsomjk in forum What's Wrong With My Code?
    Replies: 1
    Last Post: March 31st, 2010, 11:39 PM