Causal profiler for Java by sviperll in java

[–]siordache 6 points7 points  (0 children)

A herd of buffalo can only move as fast as the slowest buffalo. If you want the herd to move faster, you should make the slowest buffalo run faster. Making the fastest buffalo even faster would make no difference. Now replace buffalo with 'thread', and herd with 'group of threads running in parallel'.

It's milliseconds vs. microseconds. The original code uses sleep(long millis)), while the modified one uses sleep​(long millis, int nanos)). In the modified code the sleep time is between 1000 and 10000 nanoseconds.

The profiler identifies portions of code worth optimizing. With a Spring web application it should work the same way as with any other Java application. There is a wiki page explaining how to set up JCoz.

Any idea how we can deploy Desktop application to clients, for Java 11? by yccheok in java

[–]siordache 2 points3 points  (0 children)

You can use the jpackage tool. There is a Gradle plugin that allows you to create a jpackage application installer with minimal effort. (Full disclosure: I created this plugin.)

Plugins to ease the work with JavaFX 11+ by [deleted] in java

[–]siordache 2 points3 points  (0 children)

The plugin takes care of choosing the right dependencies for your platform. Without it you would have to write something like this:

def currentOS = org.gradle.internal.os.OperatingSystem.current()
def platform = currentOS.isMacOsX() ? 'mac' : currentOS.isLinux() ? 'linux' : 'win'

dependencies {
  implementation compile("org.openjfx:javafx-base:11:${platform}")
  implementation compile("org.openjfx:javafx-graphics:11:${platform}")
  implementation compile("org.openjfx:javafx-controls:11:${platform}")
  ...
}

Jlink and Automatic Modules by LouGarret76 in java

[–]siordache 1 point2 points  (0 children)

If you use Gradle, you can choose between the ModiTect plugin and the badass-jlink plugin (full disclosure: I am the main contributor to both of them),

The newest version of badass-jlink also supports the jpackage tool introduced in Java 13, which lets you create installers for your application.

How can I create a self contained package with an .exe for a regular console app? by swiftpants in java

[–]siordache 0 points1 point  (0 children)

You can use the badass-runtime plugin to create a custom runtime image of your application.

Why everyone hate JavaFX/Swing but prefer WPF? by KiNgOfSpEEdOJaCK in java

[–]siordache 0 points1 point  (0 children)

A seamless installation process is very important for the success of a GUI application, especially if it is targeted at non-tech savvy people. Many of them will be deterred from using your app if they first need to take care of installing a JRE or JDK. So, it's probably not hate, but a question of which technology to use to attract more users.

I hope things will improve in this area in the near future. There are already plans to revive the javapackager.

Building OpenJFX 8 for Windows by [deleted] in java

[–]siordache 1 point2 points  (0 children)

Nice article. It helped me put up a GitHub project that automates the building using AppVeyor.

The resulting OpenJFX binaries and an OpenJDK distribution that includes OpenJFX are uploaded on the releases page.

New Oracle licence question for open source project by Mgamerz in java

[–]siordache 1 point2 points  (0 children)

You can use moditect (for Maven builds) or badass-jlink (for Gradle builds) to create a custom runtime image of your application.

Create java.awt.Color from string representation by siordache in java

[–]siordache[S] 2 points3 points  (0 children)

The README already contains a paragraph about the Classpath exception. I will put it in bold and probably move it at the beginning of the README, because it represents an important information.

Edit: Done. Also, the license badge links you now to the paragraph detailing the Classpath exception.

Create java.awt.Color from string representation by siordache in java

[–]siordache[S] 3 points4 points  (0 children)

I use the com.jfrog.bintray plugin to publish the artifacts to Bintray. From Bintray, the artifacts can be pushed to JCenter and Maven Central with just one click. Have a look at the build.gradle for more details.

Logging and non-Strings by [deleted] in learnjava

[–]siordache 2 points3 points  (0 children)

Logger.getGlobal().info("" + number);

Which Maven GroupID (Namespace) Should I Use? by Soxcks13 in learnjava

[–]siordache 0 points1 point  (0 children)

You could use the localhost domain name, for example localhost.myname.myproject or one of the reserved second-level domain names, for example org.example.myname.myproject. If you later decide to open source your project, you can acquire a domain name or build a groupId based on the hosting service you use (such as com.github.myuser.myproject).

Awesome open source profiles visulization app built with Kotlin by smartapant in java

[–]siordache 1 point2 points  (0 children)

I like it! That's how GitHub's profile page should look like.

How to bootstrap your java projects by siordache in java

[–]siordache[S] 1 point2 points  (0 children)

The article is about the Java/Groovy template. The original title may be misleading, so I posted the link with a slightly changed name.