Go to advanced search

by Balin
Wed Feb 20, 2019 3:04 pm
Forum: Java
Topic: Why are Raspberry Pi still using Java 8 when Java 11 is available?
Replies: 26
Views: 11882

Re: Why are Raspberry Pi still using Java 8 when Java 11 is available?

Hello! I wonder why Raspberry Pi is still using old Java 8 for ARM 32-bit and 64-bit, when Java 11 for ARM 32-bit and 64-bit is now available from Azul Systems? I'm using Pi4J to control the GPIO pins from web applications(Primefaces + Tomcat) and I'm switching now from Java 8 to Java 11. https://w...
by Balin
Tue Oct 16, 2018 11:06 am
Forum: Java
Topic: Database selection
Replies: 13
Views: 14292

Re: Database selection

Hi guys......Im doing a project related to capturing and storing videos using raspberry pi (coded in python). i want to save these captured videos on a database. which database do you recommend for me? You want to save whole videos in your database? Or only the references, and store the videos them...
by Balin
Mon Oct 15, 2018 12:20 pm
Forum: Java
Topic: Database selection
Replies: 13
Views: 14292

Re: Database selection

My favorite is HSQLDB (http://hsqldb.org/). It has different modes (RAM - not recommended on PI :-), embedded or as separate server), and you can use different database flavours to access it. It's for Java, though, with other languages, it loses lots of it's advantages. But for simple storage of sen...
by Balin
Thu Oct 04, 2018 8:07 am
Forum: Java
Topic: Create executable of java program
Replies: 10
Views: 14609

Re: Create executable of java program

I found the Apache Maven Assembly Plugin , which packs everything, the executable jar needs, into it, very handy. You just have to add the plugin in your pom.xml, and call maven with the goal "package". You can do this with an Eclipse runtime configuration, but of course as a separate process on a b...
by Balin
Tue Oct 02, 2018 5:51 am
Forum: Java
Topic: OCPP2.0 client implementation with raspberry pi 3 model B
Replies: 1
Views: 4413

Re: OCPP2.0 client implementation with raspberry pi 3 model B

A short look at google brought me this: https://github.com/ChargeTimeEU/Java-OCA-OCPP. Maybe it's a starting point? I don't know about OCPP, though.
by Balin
Fri Sep 28, 2018 8:44 am
Forum: Java
Topic: "From Zero To Hello" - deploying a simple application to payara java-ee-server on my PI
Replies: 2
Views: 6678

Re: "From Zero To Hello" - deploying a simple application to payara java-ee-server on my PI

Cool!

I'll try payara ASAP. Looks promising!

Thanks for posting this!
by Balin
Thu Sep 27, 2018 1:08 pm
Forum: Java
Topic: Hello world server program in java
Replies: 13
Views: 8701

Re: Hello world server program in java

OK, I'm trying to show a very simple example. I assume, that you use some Raspbian stretch or equivalent, but it works with every system, that offers a JDK.. First, install Java, e.g. openjdk. It should be the JDK, not only the JRE. Then, install a JSP server, e.g. Apache Tomcat from the repository....
by Balin
Wed Sep 19, 2018 6:11 am
Forum: Java
Topic: Hello world server program in java
Replies: 13
Views: 8701

Re: Hello world server program in java

Using Java as server-side language is usually something for quite large systems, and then using what is called a application-server like Tomcat ( https://tomcat.apache.org/download-80.cgi ). I dont see Tomcat mentioned much on this forum so I'm not sure its event runnable on RPi. Maybe the reason t...
by Balin
Tue Sep 18, 2018 12:36 pm
Forum: Java
Topic: Hello world server program in java
Replies: 13
Views: 8701

Re: Hello world server program in java

vajra11, with a mere Apache, some HTML and a simple Java program, this is - well, unusual. Sure, you could use a Java program as a CGI, like mentioned here: https://bit.ly/2ODhSz2. But usually, you use some JSP server to deal with the java part of a web application, like Tomcat, Jetty, Websphere or ...
by Balin
Mon Sep 17, 2018 8:00 am
Forum: Java
Topic: Raspeberry pi 3b+ good for java ?
Replies: 7
Views: 5708

Re: Raspeberry pi 3b+ good for java ?

First of all, Java runs very well on any Raspberry Pi, even the older and smaller ones. Even for JSP web applications with a tomcat or similiar, the Pis are usable. I recommend using the suitable OpenJDK from Azul on it, because Oracle tends to look at these small computers as "embedded systems", wh...

Go to advanced search