Tag Archives: java

Android Volley Sending data twice

When you use Android Volley Library to make a http post request, the default situation is that the data will be send twice. In order to avoid this, you would need to add the line 2 of the below code … Continue reading

Posted in Android, Java | Tagged , , , , | Leave a comment

Creating Jar for JavaFX Application

This is a step by step guide to creating a Jar for a JavaFX Application using IntelliJ IDEA. It is only tested on IntelliJ IDEA 2016 with Java8. Steps might be slightly different for Java7. First, open up File > … Continue reading

Posted in Java, JavaFX | Tagged , , | Leave a comment

JavaFX load data on launch

To load data on launch for a JavaFX app, you would simply need the following in your Controller. The initialize method is the first piece of code that is run when you launch the JavaFX app.

Posted in Java, JavaFX | Tagged , | Leave a comment

Installing Apache Tomcat on Raspberry Pi

In this post, I will be documenting the process of running Apache Tomcat on Raspberry Pi 2. Before we start installing Tomcat, it would be good to do a update. After the update, verify that you have java 8 installed. … Continue reading

Posted in apache tomcat, Raspberry Pi | Tagged , , , , , | 3 Comments

Getting Started on Raspberry Pi as a Server

This will be part of a series of posts on how to get started on using Raspberry Pi 2 as a Server to host a java web service. I am currently exploring the possibility of using Raspberry Pi as a … Continue reading

Posted in Raspberry Pi | Tagged , , , , , , | Leave a comment

JavaFX: Include Button into cell for TableView

There are times when you need to have an Button for each of the row in the TableView, hence in this post I will go through how we could add a Button into the row of the TableView. c3 will … Continue reading

Posted in Java, JavaFX | Tagged , , | Leave a comment

Finding JAVA_HOME on Windows and Linux

For windows: In general, this is not required for Linux system but if you need it, it is here. For Linux: Specials thanks to http://srcode.org/2014/05/07/detect-java-executable/

Posted in Uncategorized | Tagged , , | Leave a comment

JUnit with System.out.println

System.out.println and System.out.print will usually print the output String to the screen, however with the below code, you could actually redirect the print out to a Stream and thereafter use it for JUnit testing. //Prepare to redirect output OutputStream os … Continue reading

Posted in Java | Tagged , | 2 Comments

To open “IntelliJ IDEA” you need to install the legacy Java SE 6 runtime

I had encountered the error as per the title above. In order to resolve the error, there are two options. First it will be to simply install the legacy Java SE6 runtime. It is obvious that I did not go … Continue reading

Posted in Java | Tagged , , , , | Leave a comment

CS1020 StackSort Lab4 Ex3

Link to the question – StackSort Lab 4 Ex 3

Posted in NUS, SoC | Tagged , | Leave a comment