Java sockets – system monitoring / server capture process

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

Monitoring remote Solaris client’s by using Java sockets. The below configuration shows how to configure a host (Solaris or Linux), to expose local performance states in JSON using Java sockets, the stats are then collected by a remote system to crunch (graph/chart) the data. The full capture pipeline process is outline below. Note: If losing […]

Read More

Java solution for – Error: Could not find or load main class

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

For example java package mypkg1 contains the main but I am still getting the error Error: Could not find or load main class One Full example below. mypkg1/One.java package mypkg1; import mypkg2.Res; public class One { public static void main(String[] args) { Two two = new Two(); Res res = new Res(); System.out.println(two.Two(2, 2)); System.out.println(res.Res(4, […]

Read More

JME3 and Blender howto

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

JME beginners howto Full walkthrue http://www.gamefromscratch.com/post/2015/08/31/A-Closer-Look-at-jMonkeyEngine.aspx JME3 howto https://docs.jmonkeyengine.org/beginner/hello_simpleapplication.html Terrain map howto https://jmonkeyengine.github.io/wiki/jme3/beginner/hello_terrain.html Blender howto Blender Beginner Tutorial – Part 2: Moving, Rotating https://www.youtube.com/watch?v=s05DiCEDVGE Blendor compile for Solaris (was not able to get it working) https://wiki.blender.org/index.php/Dev:2.4/Doc/Building_Blender/Solaris Free blender 3d models https://www.blender-models.com/model-downloads/buildings/ OpenRTS Engine https://github.com/methusalah/OpenRTS jme3 help series # JME31 Sneak Peek Install # 140621 GitHub […]

Read More

Solaris OpenGL (lwjgl-2.x) library and install

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

Note this works with version 2.x, version 3.x does not included the Solaris lib’s First Download the lwjgl library from sourceforge link below http://sourceforge.net/project/showfiles.php?group_id=58488&package_id=54362&release_id=670417 To test the OpenGL run the below. java -cp jar/lwjgl.jar:jar/lwjgl_test.jar:jar/lwjgl_util.jar -Djava.library.path=native/solaris org.lwjgl.test.WindowCreationTest Now lets test JME3 Download from git the jme (try with stable version) git clone https://github.com/jMonkeyEngine/jmonkeyengine.git Now lets compile […]

Read More

How to use libGDX with Android Studio (gradle)

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

First create a gradle.properties file Note: Change the ip and port below systemProp.http.proxyHost=10.10.10.10 systemProp.https.proxyHost=10.10.10.10 systemProp.http.proxyPort=3120 systemProp.https.proxyPort=3120 systemProp.http.proxyUser= systemProp.http.proxyPassword= systemProp.https.proxyUser= systemProp.https.proxyPassword= systemProp.http.nonProxyHosts= systemProp.http.proxyStrictSSL=false Point the environment the gradle file # Add gradle proxy settings export GRADLE_USER_HOME=/root/.gradle Now lets install libGDX in Android Studio Download the latest setup libGDX app. java -jar gdx-setup.jar Only change the SDK […]

Read More

Java hashmap single key Multiple Values

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

Default java library import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; Google java library import java.util.Set; import com.google.common.collect.ArrayListMultimap; import com.google.common.collect.Multimap; Apache java library import java.util.Set; import org.apache.commons.collections.MultiMap; import org.apache.commons.collections.map.MultiValueMap; Full working example package com.sqlitedb.examples.util.map; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; /** * * @author Eli Kleinman */ public class TestArr { public void […]

Read More