#Java Applets using JRuby

1 messages · Page 1 of 1 (latest)

cyan kiln
#

I know Java applets have been out of use and discontinued for a long time, but despite this im wanting to learn to develop them. I'm personally not a fan of Java, but I am quite experienced using Ruby. I've heard JRuby can be used to develop applets. Does anyone know how I could get into learning this? Currently i have 0 knowledge of applets, and Java.

north sunBOT
#

<@&987246964494204979> please have a look, thanks.

#

Here is an AI assisted attempt to answer your question 🤖. Maybe it helps! In any case, a human is on the way 👍. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.

#
TJ-Bot
I know Java applets have been out of use and discontinued for a long time, but despite this im wanting to learn to develop them. I'm personally not a fan of Java, but I am quite experienced using Ruby. I've heard JRuby can be used to develop applets. Does

te comfortable with Ruby. Is it possible to create Java applets using JRuby? If so, how can I do this and are there any specific libraries or resources I should be aware of?

Yes, it is possible to create Java applets using JRuby. JRuby is a Java implementation of the Ruby programming language, which allows you to run Ruby code on the Java Virtual Machine (JVM). This means you can leverage the power of Java while writing code in a language you are more comfortable with.

To create a Java applet using JRuby, you will need to write your code in Ruby and then use tools like jruby-complete.jar to package your code into a JAR file that can be executed as a Java applet. You can also use the appletviewer tool provided by the JDK to test your applets locally.

As for libraries and resources, you may want to look into using the java module in JRuby, which provides access to Java classes and APIs. You can also explore existing Ruby gems or libraries that provide functionality for creating GUI components and interacting with the browser.

Overall, while Java applets may not be commonly used today, learning how to develop them with JRuby can still be a valuable skill and a fun way to explore different programming languages and technologies.

steady plinth
#

So applets were ways of running little java apps in a web browser

#

problem is, nowadays no browsers can run them

#

there are plugins you can install which are sorta new

#

but applets are unfortunately considered dead

#

was your goal to write some ruby and get it running in the browser for a game?

cyan kiln
cyan kiln
#

I'm fully aware learning this is useless and will get me nowhere in life btw, I learn useless stuff like COBOL too😭

steady plinth
#

oh well then

#

i'd say start with java 8 and make applets that way

#

then transition to figuring out how to make jruby work

#

there should be old java applet tutorials that would still function if you had the cheerpj plugin installed