Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (690)
Games in Android Showcase (200)
games submitted by our members
Games in WIP (764)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1] 2 3 ... 58
1  Discussions / General Discussions / Re: Comparison between 2 IDE's - Netbeans and Eclipse on: 2016-09-14 13:54:19
Hey you're up there with the big guns as an initial contributor, nice!
James Gosling (Liquid Robotics)
Neil C. Smith (PRAXIS Live)
2  Games Center / WIP games, tools & toy projects / Re: Frequent Flyer, a small shoot-em-up game on: 2016-09-13 14:09:29
Played well, worked first time on Chrome windows 10 with zero fuss, nice work. 
Good gameplay, but maybe a small radar mini map would be good to know where the action is.
3  Games Center / WIP games, tools & toy projects / Re: First Recon - Small Online First Person Shooter on: 2016-09-10 10:20:49
TPS 200.

Ping 300. There appears to be a teleporting bug when I play now, I kept on going back in time. Maybe it's the high ping?
4  Games Center / WIP games, tools & toy projects / Re: PFTheremin on: 2016-09-09 13:27:35
Nice app, worked fine for me on windows 10 java 8.
The default settings make a spooky wail. Will be interesting to see how you and others tune and use it.
I have no experience in how to make or use sound but intend to learn one day.
5  Games Center / WIP games, tools & toy projects / Re: First Recon - Small Online First Person Shooter on: 2016-09-09 12:25:12
Very nice graphics, impressive work. Reminds me of the fun old days playing counterstrike!
I did notice that when I was just standing without moving that the screen appeared to bump up and down very slightly as if the physics of me standing there was not quite right.
With jumping, I managed to get on top of the fire truck and break out of the pen which was funny.
Nobody was online when I tried it, but I'm looking forward to fragging some people!
Keep up the great work  Cool
6  Discussions / General Discussions / Pokemon GO 'augmented reality' game on: 2016-07-11 21:46:26
Pokemon GO is very popular here and appears to use Google maps, GPS and the phone's camera to catch Pokemon.

In the United States, by July 8 - two days after its release - it was installed on more than 5 percent of Android devices in the country, according to web analytics firm SimilarWeb.

It is now on more Android phones than dating app Tinder and its rate of daily active users was neck and neck with social network Twitter, the analytics firm said. The game is also being played an average of 43 minutes a day, more time spent than on WhatsApp or Instagram, it added.
7  Game Development / Shared Code / Re: Quark - Game Framework on: 2016-06-22 09:35:06
Cool stuff, both demos displayed for me and I was able to move with WASD.
I've never heard of TeaVM before. An interesting java byte-code to javascript compiler.
8  Games Center / WIP games, tools & toy projects / Re: Drift Team on: 2016-06-19 08:05:10
Cool game, controls and camera are nice.
Would be cool if you could bump the AI players. I couldn't seem to affect them at all when I tried to fish tail them or bump them off course.
9  Discussions / General Discussions / Re: Question: Bit-exact floats on different computers? on: 2016-06-16 11:19:16
KevGlass made a networked game using perfect determinism with strictfp that was a success. I forget which game that was but I found this old discussion about it on google:
[EDIT, found it]:

My little networked game used Roquen's approach where the server is always right. But I used a funny setup to update the clients where the server would send an old game world's state which was then updated to the present by the clients. This happened every few seconds.  
There's some detail about it here:

I wasn't happy with the end result since there was noticeable frame drop when the big update occurred to get the old server world up to date by applying all of the events and updates. But perhaps it could be refined some more.

I'll be interested to see how you deal with the networked game problem.
10  Java Game APIs & Engines / Engines, Libraries and Tools / Re: LWJGL 3 - LMDB bindings on: 2016-06-07 14:50:15
It's a pity to de-motivate the project lead like that. The main currency in open-source projects is respect, fame and the warm feeling of being altruistic and you've painted a sorry picture of them all! 

Whether or not LWJGL is truly lightweight, it's open source and can easily be forked.
If it's also modular as promised, even better. Making separate Git projects out of it is another good solution and can always be done in the future.

I don't think that Spasi's additions do any harm and he brings up interesting libraries that I'd never heard of before since they're not in the java ecosystem, but appear to be best practice in the C world. Putting together a bare bones 'best practice' game dev library is useful. I imagine that it's also easier to manage build scripts and forums and what-not by combining all these projects into one, saving Spasi's and others' precious time.

The huge amount of work that Spasi has put into LWJGL3 and the sister-projects should be celebrated. It is judging by his medal count! It's a shame to criticise him for going even further beyond the call of duty by including extra interesting stuff.

What LWJGL 3 is now is a vast collection of bindings, most of which are irrelevant to most people. What this means is that maintenance effort is going to be simply non-existent on it, and once you (eventually) grow tired of it, and you will, it'll just stagnate and get bitrot and become a large legacy which will distract people from otherwise creating separate efforts to solve specific issues.

I lost interest in maintaining LWJGL after a few years of developing on it, largely because it did everything I needed it to by that point, and also because I was seeing virtually no return on my efforts. I watched Markus accumulate two and a half billion dollars on the back of the literally months and months of effort I'd put in on the library he used to catapult himself into the realms of the unspeakably rich with barely so much as a thankyou, and that, for me, was the point at which I decided I couldn't be arsed with open source any more. I only have so much time left in the world and a lot of things I'd like to do, and making Markus richer wasn't on the list, so I diverted my efforts elsewhere. At some point, you too will find something more interesting and distracting, and you'll be leaving behind a huge, huge pile of stuff which no-one except you really cares too much about.
That's a shame that you feel that way. I think you know there's more to life than cash and fame, you probably just had a rotten day.
Think of all the mathematicians, scientists, engineers and writers who did amazing things and didn't get paid a cent for their life's work. They're not losers for being hard working and altruistic, they toiled for a purpose above themselves which added to their sense of life fulfillment and contributed to better living standards for everyone.
I mean, why do you think that the super wealthy always create universities named after themselves such as Stanford, Yale and Duke? It's a cliche, but making a ton of money above the average income doesn't fulfill life's higher aims.
As a LWJGL dev you should be proud to have contributed to the sensation that was Minecraft. Markus wasn't obliged to reflect any cash or fame on the downstream tech that he used. From memory he did have a credits page on which linked to LWJGL and generated much interest there and also here at JGO, promoting Spasi and princec and all the other LWJGL devs which will help them get work in the future on anything graphics and game-related, in addition to respect in the game-dev community.
I'm sure Markus will drop in one day to remember the good old times and thank everyone who made tech like LWJGL.
Thanks to all the devs who made and continue to make lwjgl, java,, libgdx, and all the other incredible projects  Cool
11  Game Development / Game Mechanics / Re: Hardware-like software cursor. on: 2016-05-02 14:30:57
I (honestly) was thinking about that solution too - but it makes your (gameplay) framerate issues even worse, especially when vsync is on.
If it's dynamic enough and only activates at <half the monitor's refresh rate, it should be OK. It might improve the perceived responsibility.
Could you also just repaint the small cursor and the small 'dirty' section where it used to be painted? Might save some time.
12  Discussions / Miscellaneous Topics / St Petersburg paradox on: 2016-05-02 13:05:23
This is not related to java, it's a maths problem.
I was wondering if any of the many smart maths people here could take a look at this problem about the St Petersburg paradox? I posted it on MathExchange but the dweebs there put my question 'on hold' for some reason.

I've tried to verify the below quoted statements on wikipedia because I think they're mixed up:

"For example, with log utility a millionaire should be willing to pay up to $10.94, a person with 1000 should pay up to 5.94, a person with 2 should pay up to 2, and a person with 0.60 should borrow 0.87 and pay up to 1.47."

According to my simulation of results in a spreadsheet, I calculate that a natural logarithm utility function player with an initial wealth of 1000 (not a million) would pay a maximum of 10.95, rounded to the nearest cent, to participate once in the game. Here is a link to my spreadsheet simulation calculations that demonstrate my above findings that a player with 1000 initial wealth will only pay 10.95, not 5.94 as is stated in the wikipedia article.
Apologies if I've made a silly error. Just wanted to check.

13  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-04-20 04:51:35
Azul Systems have ported OpenJDK to run natively on ARM - I'll be evaluating it soon. I imagine it to be more or less the same as the Oracle offering, performance wise (that is, very good indeed).

Cas Smiley
That's exciting. I found the announcement about it here:
Too bad that I bought a 64 bit ARM board rather than a 32 bit one. This Azul JVM is only for 32 bit.
Will be interesting to hear your experiences with it on the raspberry pi 3.
14  Games Center / Showcase / Re: Amoebam - LD35 Compo Entry on: 2016-04-19 13:05:48
Worked well for me, chrome windows 7 html5.
Impressive for one weekend.
But I must say it's pretty hard! I could barely finish the last jump in the tutorial. And then trying to kill the enemies without being able to shoot while jumping was tough. But I expect that these little things are very hard to iron out in such a short time.
Nice work overall. Finishing a jam with something to show is a victory in itself  Cool
15  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-04-19 12:59:46
One thing that seems strange is this quote from the UDOOx86 kickstarter:
"Quad Core 64-bit new-generation x86 processors"

I thought x86 meant 32 bit?
Given that the processor is actually 64 bit, shouldn't the whole project be called the UDOOx64 rather than UDOOx86  Huh

16  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-04-19 12:51:30
Link share Wink
- X86
- Intel® Quad Core up to 2.24 GHz
- 4 GB of RAM
Estimated delivery: Nov 2016
X86 - Win ^^
Interesting board, thanks for sharing.
I see that the power consumption is said to be between 5 and 6 Watts which is only double or triple the ARM boards.
Here are the board's processor specs for the Intel® Celeron® Processor N3160 (2M Cache, up to 2.24 GHz).

Interesting to see that it's a Celeron which as a desktop has a bad reputation for being slow but comparable to the ARM boards it must be relatively faster. I notice that this incarnation of the celeron was released in 2016Q1.
I hope this UDOOx86 board takes off and gives rise to lots more competition. One of the pains with the ARM boards is that few programs work with them. Even java is a pain to run on ARM since Oracle attempt to charge a licensing fee for the embedded Oracle JDK if you distribute a commercial program, unlike the regular JVM.
Also, I haven't been able to find an ARM64 headful (graphics capable) Oracle JVM, embedded or not. This is not a big problem since the openJDK arm64 JVM works headful but I suspect that it's slower than the oracle one.
Having a fast and power-efficient x86 board would be great from a software point of view since ordinary java will work on it. Also, the linux operating systems on x86 are fully functional and stable, unlike arm64 which is a big headache. For example, Chromium browser doesn't work on Ubuntu arm64 at the moment, among other driver and OS problems:
17  Game Development / Networking & Multiplayer / Re: Kryonet hosting? Where and how? on: 2016-04-12 06:51:24
I use ramnode and have been impressed with how cheap it is at $5 per month with 2 cores.
Also, in the last few years I've never had to restart the server. I guess that's Linux and Java stability.

Sounds like you're using libgdx, but if you end up running tomcat for a website, Java melody is very handy

18  Games Center / Showcase / Re: Age of Conquest IV for PC, Mac, Linux, Android & iOS (Strategy/WEGO) on: 2016-04-07 14:16:57
Yes the scrolling works well, I was just commenting about how the window itself wasn't maximised, it took up only about 3/4 of the screen. Seems like a fully expanded default window would be better for immersion and so on. I am using windows 7.
19  Games Center / Showcase / Re: Age of Conquest IV for PC, Mac, Linux, Android & iOS (Strategy/WEGO) on: 2016-04-06 13:19:58
I downloaded it and it worked well. I must say I was very surprised and happy to see that the game is largely free, I was only expecting a demo.

The graphics, smoothness and responsiveness were great. The resizable-window was cool, rather than full screen exclusive. But perhaps the window should be maximised by default rather than small because then it would be easier to scroll by moving the mouse to the screen edge like a normal RTS. The ctrl - mouse wheel zoom is a great idea.

I did the tutorial and to be honest I didn't get a good feeling for how the game is supposed to work. I was a little confused about which territory was mine since I could see all territories. The intro mentioned Rome, but my people seemed to be in North Italy or France. I couldn't seem to control the Rome city. Perhaps a pulsating colour on your own territories would make it more obvious which cities are yours.
It's not clear how to move troops, I expected to slide them from where they were to where I wanted them to go, like Civ2. I did attack a town but then I couldn't find my troops anymore and couldn't seem to attack anything else. I had to google what the acronym WEGO is, it might be worth writing what it means.

Perhaps a 2 minute youtube video detailing how to do things before the tutorial would be nice.

Overall, it looks like a great game and I intend to give it more time this weekend.

EDIT: forgot to say, WEGO is a great idea, especially for multiplayer where it is super frustrating waiting for other players. Here's a definition for those  like me who don't know what WEGO is:
Turn-based games come in two main forms depending on whether, within a turn, players play simultaneously or take their turns in sequence. The former games fall under the category of simultaneously-executed games (also called phase-based or "We-Go"), with Diplomacy being a notable example of this style of game.
The WEGO system is this:   Everyone issues their orders for the turn at the same time.  You hit "End Turn" and all side's actions are made at the same time.  It eliminates the unbalanced turn-based part but also adds an extra dimension by attempting to anticipate what your enemy might do while your orders are being carried out.
20  Games Center / Showcase / Re: Age of Conquest IV for PC, Mac, Linux, Android & iOS (Strategy/WEGO) on: 2016-04-06 09:34:18
This looks very impressive, similar to Risk and Diplomacy (board games) or Civilisation (PC).
Well done implementing the multiplayer aspect. I'm looking forward to trying it.
21  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-04-04 14:37:04
To add to Grunnts' point, students and teachers at uni are very interesting and you'll probably enjoy meeting new friends and colleagues more than anything else. It's one of the few real (non-internet) forums where you can have an in-depth technical debate about topics that you're interested in. I'm still studying and it's a high point in my week when I have a class with a knowledgeable teacher who can provide some new ways of looking at a problem that I wasn't aware of.

University is not actually a big commitment since you can quit at any moment and start work. If you find that the benefit of what you're learning is less than the cost of fees and missed wages then just take a break and start work.
But while you look for a job, you may as well start uni and see what it's like. That way you'll not have the fear of missing out.
22  Game Development / Performance Tuning / Re: Interesting talk from Cliff Click, Azul Systems on: 2016-03-30 19:21:49
Something interesting which you're probably already aware of is that Azul systems have the best garbage collector (GC) that there is, it takes far less time in total and runs for shorter times than any Sun/Oracle GC.

It surprises me how impressive Sun and Oracle's work is on the JVM yet they give it away for free and Sun obviously struggled to monetise the technology. Even Oracle appear to have bought java just to sue Google for using the java API in android.
Meanwhile, Azul makes a single GC improvement and patents the idea, and then is able to sustain what looks like a very successful business. It's bizarre how things work out.
23  Game Development / Performance Tuning / Re: Interesting talk from Cliff Click, Azul Systems on: 2016-03-30 15:10:45
It was interesting at the end when he mentioned the 'register allocator' and if I heard correctly, speculated that the JVM could deliver a further 5% speed boost with this.

I find it hard to believe that there are few big improvements left to be made in the JVM. Seems like there's always more that can be done.
24  Games Center / Featured Games / Re: Tetradecagon on: 2016-03-27 00:37:46
There's always more work that can be put into any game. In my opinion the bigger danger is to polish a game that no-one actually wants to play, wasting lots of the developer's time. If the game were released earlier, then it can be modified in response to audience feedback.
In many ways Brynn has done the right thing: release early, release often. Since he's gauging public opinion already, he knows what is missing and can be improved. Perhapshe will take it onboard, or perhaps he will be inspired to make a new project. Either way I don't think that there's a problem.
The game looks good by the way, very arcade-like.
25  Discussions / General Discussions / Re: Power consumption of desktops vs ARM SOC's such as Odroid-C2 or Rpi3 on: 2016-03-23 14:05:40
That's interesting how the server VM makes such a big difference.
Apparently tiered compilation is in OpenJDK:
I'll try it tomorrow and report back any speed differences.

Sounds like a nightmare with the GPIO. Being a cutting-edge new computer I can imagine that you might be the first person running into these troubles.
Can you hook up the pins manually somehow? Perhaps light them up with LED's or something to figure out how the layout has changed from the Rpi2 to the Rpi3.

I've wasted lots of time too. But most of my troubles are with linux and drivers. I have to reset my NetworkManager ubuntu app every 15 minutes to keep my usb wifi dongle working. I still haven't found a solution for it, and the wifi dongle was purchased with the odroid-c2 along with the linux distro so you'd think they'd have made sure it was compatible.
26  Discussions / General Discussions / Re: Power consumption of desktops vs ARM SOC's such as Odroid-C2 or Rpi3 on: 2016-03-23 13:42:54
OpenJDK is running the server VM, and since it's linux I don't think there is a client version.
I also believe that there's no special client or server version of the oracle embedded jdk either, but maybe I'm wrong.
EDIT: Oops, the oracle jdk says it's an embedded client version. But I see no server version on the oracle download page.

Here are the System.getProperty() dumps for each.

OpenJDK: SE Runtime Environment, sun.boot.library.path=/usr/java/jdk1.8.0_73/jre/lib/aarch64, java.vm.version=25.73-b02, java.vm.vendor=Oracle Corporation, java.vendor.url=, path.separator=:, HotSpot(TM) 64-Bit Server VM,,,, sun.os.patch.level=unknown, Virtual Machine Specification, user.dir=/home/odroid/Desktop, java.runtime.version=1.8.0_73-b02, java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment, java.endorsed.dirs=/usr/java/jdk1.8.0_73/jre/lib/endorsed, os.arch=aarch64,, line.separator=
, java.vm.specification.vendor=Oracle Corporation,, sun.jnu.encoding=UTF-8, java.library.path=/usr/java/packages/lib/aarch64:/lib:/usr/lib, Platform API Specification, java.class.version=52.0, 64-Bit Tiered Compilers, os.version=3.14.29-37, user.home=/home/odroid, sun.arch.abi=gnu, user.timezone=, java.awt.printerjob=sun.print.PSPrinterJob, file.encoding=UTF-8, java.specification.version=1.8, java.class.path=.,, java.vm.specification.version=1.8,, java.home=/usr/java/jdk1.8.0_73/jre,, user.language=en, java.specification.vendor=Oracle Corporation, awt.toolkit=sun.awt.X11.XToolkit, mode, java.version=1.8.0_73, java.ext.dirs=/usr/java/jdk1.8.0_73/jre/lib/ext:/usr/java/packages/lib/ext, sun.boot.class.path=/usr/java/jdk1.8.0_73/jre/lib/resources.jar:/usr/java/jdk1.8.0_73/jre/lib/rt.jar:/usr/java/jdk1.8.0_73/jre/lib/sunrsasign.jar:/usr/java/jdk1.8.0_73/jre/lib/jsse.jar:/usr/java/jdk1.8.0_73/jre/lib/jce.jar:/usr/java/jdk1.8.0_73/jre/lib/charsets.jar:/usr/java/jdk1.8.0_73/jre/lib/jfr.jar:/usr/java/jdk1.8.0_73/jre/classes, java.awt.headless=true, java.vendor=Oracle Corporation, file.separator=/, java.vendor.url.bug=,, sun.cpu.endian=little, sun.cpu.isalist=

Oracle embedded JDK: SE Embedded Runtime Environment, sun.boot.library.path=/usr/java/ejdk1.8.0_73/linux_armv6_vfp_hflt/jre/lib/arm, java.vm.version=25.73-b02, java.vm.vendor=Oracle Corporation, java.vendor.url=, path.separator=:, HotSpot(TM) Embedded Client VM,,,, sun.os.patch.level=unknown, Virtual Machine Specification, user.dir=/home/odroid/Desktop, java.runtime.version=1.8.0_73-b02, java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment, java.endorsed.dirs=/usr/java/ejdk1.8.0_73/linux_armv6_vfp_hflt/jre/lib/endorsed, os.arch=arm,, line.separator=
, java.vm.specification.vendor=Oracle Corporation,, sun.jnu.encoding=UTF-8, java.library.path=/usr/java/packages/lib/arm:/lib:/usr/lib, Platform API Specification, java.class.version=52.0, Client Compiler, os.version=3.14.29-37, user.home=/home/odroid, sun.arch.abi=gnueabihf, user.timezone=, java.awt.printerjob=sun.print.PSPrinterJob, file.encoding=UTF-8, java.specification.version=1.8, java.class.path=.,, java.vm.specification.version=1.8,, java.home=/usr/java/ejdk1.8.0_73/linux_armv6_vfp_hflt/jre,, user.language=en, java.specification.vendor=Oracle Corporation, awt.toolkit=sun.awt.X11.XToolkit, mode, java.version=1.8.0_73, java.ext.dirs=/usr/java/ejdk1.8.0_73/linux_armv6_vfp_hflt/jre/lib/ext:/usr/java/packages/lib/ext, sun.boot.class.path=/usr/java/ejdk1.8.0_73/linux_armv6_vfp_hflt/jre/lib/resources.jar:/usr/java/ejdk1.8.0_73/linux_armv6_vfp_hflt/jre/lib/rt.jar:/usr/java/ejdk1.8.0_73/linux_armv6_vfp_hflt/jre/lib/sunrsasign.jar:/usr/java/ejdk1.8.0_73/linux_armv6_vfp_hflt/jre/lib/jsse.jar:/usr/java/ejdk1.8.0_73/linux_armv6_vfp_hflt/jre/lib/jce.jar:/usr/java/ejdk1.8.0_73/linux_armv6_vfp_hflt/jre/lib/charsets.jar:/usr/java/ejdk1.8.0_73/linux_armv6_vfp_hflt/jre/lib/jfr.jar:/usr/java/ejdk1.8.0_73/linux_armv6_vfp_hflt/jre/classes, java.vendor=Oracle Corporation, file.separator=/, java.vendor.url.bug=,, sun.cpu.endian=little, sun.cpu.isalist=

Any news on your raspberry pi 3?  Cool
27  Discussions / General Discussions / Re: Power consumption of desktops vs ARM SOC's such as Odroid-C2 or Rpi3 on: 2016-03-23 13:11:26
Gahh, problem solved. Sorry for the multiple posts.
I needed to install the embedded headful version of the jdk which wasn't listed on the regular Java SE downloads page. The embedded jdk is on its own special page for some reason, here:

Interestingly, the oracle embedded jdk is slower than openjdk when running my little java2d pathfinding and lighting demo Huh

java-8-openjdk-arm64 (8u73) runs at about 55fps.
ejdk1.8.0_73/linux_armv6_vfp_hflt (8u73) runs at about 35fps.

Here is a break down of how long the updating (pathfinding and lighting calcs which involve some Math.sin functions), rendering (using java2D) and sleep (System.sleep(1)) take with each jdk.
You can see that the update is much faster on openjdk (2.1ms per frame) compared with the oracle embedded jdk (8ms per frame). The rendering is faster too, but the sleep is the same.

CodeTimer : mean period = 17.0901ms (count = 293, time = 5007.4107ms)
    update    12.31%    2.1037ms (count = 293, time = 616.3806ms)
    render    80.09%    13.6876ms (count = 293, time = 4010.4525ms)
    sleep     7.6%      1.2989ms (count = 293, time = 380.5777ms)

CodeTimer : mean period = 27.2585ms (count = 184, time = 5015.5651ms)
    update    29.37%    8.0067ms (count = 184, time = 1473.2273ms)
    render    66.51%    18.1293ms (count = 184, time = 3335.7976ms)
    sleep     4.12%     1.1225ms (count = 184, time = 206.5402ms)

I wonder how the open jdk can be faster than oracle's embedded version? Strange
28  Discussions / General Discussions / Re: Power consumption of desktops vs ARM SOC's such as Odroid-C2 or Rpi3 on: 2016-03-23 12:20:25
I tried including the option -Djava.awt.headless=false on the command line when I run java and now I get an:
UnsatisfiedLinkError: Can't load library: /usr/java/jdk1.8.0_73/jre/lib/aarch64/
29  Discussions / General Discussions / Re: Power consumption of desktops vs ARM SOC's such as Odroid-C2 or Rpi3 on: 2016-03-23 12:08:49
I have a 'java.awt.HeadlessException' problem with the Oracle ARM 64 JDK. The The OpenJDK version runs fine, no headless exceptions.
I installed Oracle JDK 8u73 "Linux ARM 64 Hard Float ABI" from their downloads page on to my odroid c2 and tried running my Java2D app that uses Swing/AWT and I got a HeadlessException.
Here's the page where I downloaded the jdk:

The odroid is a 64-bit ARM computer running Ubuntu, and I know it's hard float since this directory exists: /lib/arm-linux-gnueabihf.
When I print System.getProperties() I see that java.awt.headless=true. Does anyone know how to fix this?
I notice that the 64-bit ARM jdk is only 74MB but the x64 version is 152MB. It made me think that the missing MB's are the missing AWT and Swing files. But when I look in look at rt.jar it shows that the javax.swing classes exist  Huh

I found this related post that our very own @Cas has answered:
But it's still a mystery to me how that person downloaded the headful jdk.
If I did download the headful version, then why does the jvm think it's headless?

Of course my odroid computer is not headless, I'm looking at the desktop on my TV.

Thanks for any pointers  Smiley
30  Discussions / General Discussions / Re: Power consumption of desktops vs ARM SOC's such as Odroid-C2 or Rpi3 on: 2016-03-20 17:27:13
I received my odroid c2 in the mail!
I ordered it with a fancy emmc storage chip which is supposed to run faster than an SD card. It came pre-installed with Ubuntu 16.04 based on Kernel 3.14LTS installed with the MATE desktop.
It booted up quickly, and I was able to plug it into my TV using the HDMI port, and my mouse also worked straight out of the box which was a pleasant surprise.
The wifi usb antena I bought from the same company didn't work straight away unfortunately. It took a while to fix, and I'm not sure what fixed it exactly since I had to restart multiple times, plug in an ethernet cable, update ubuntu and the linux kernel and repeat before the wifi dongle would work. Even now it seems to drop out randomly, but I haven't investigated fully. Perhaps I'm missing another driver.
I wish the linux installation was stock ubuntu with unity rather than MATE, it would have made it easier to google for solutions to my problems.
One annoying thing is that everytime I shut the computer down, the time is reset to when I first booted it up. I'm not sure if this has something to do with the ordoid c2 not having a real time clock (RTC), or if it's a problem that I made when I updated the linux kernel or something else. It's quite annoying since the youtube website won't work in the Chromium browser, it complains that the https connection is corrupted. Fortunately the time updates itself using the internet after a minute or two and then everything is fine until the next time I boot up.

The system is faster than I expected and usable as a desktop, but I wouldn't call it fast. There appears to be about a half second delay before seeing any window after opening an app. I'm not sure if this is because the GPU has no drivers installed yet, or if it's because the 2Ghz processor is slow. Hopefully it's a GPU issue, which is supposed to be fixed in April:
"Ubuntu/Linux Mali GPU driver works only on the fbdev at this moment. X11 Mali drivers will be available in March or April."

The chromium browser works well, but the page loading is slow enough that I can see the css reflow the page as it loads jgo, for example. Unfortunately youtube videos on default HD 1080p settings are choppy with pauses every few seconds, but when I changed the youtube quality to 360p it ran fine. Apparently this slowness is due to the above issue of the VPU or GPU not having drivers yet.
Firefox 64bit bugs out and crashes though this is a known issue with the odroid c2, see the 'side notes' here:

Open JDK was pre-installed, so I tried running my old java2d apps. Unfortunately they immediately threw this error, but it was an easy fix by commenting out a line in a java properties file.

The little ordoid c2 ran my java2d-rendered lighting and pathing project ( in software quite well, painting the small 480x480 window at about 55fps using java 8 openjdk arm 64. I haven't tested on oracle's arm java version yet.
This compares to 250fps on my windows i7 laptop (hp dv6 7029tx) running oracle jdk Using the java2d trace option (-Dsun.java2d.trace=log) I can see that the rendering is all done in software (java2d.loops) too so the results are somewhat comparable. I'll have to try running it with oracle java on the odroid rather than openjdk.

Pages: [1] 2 3 ... 58
Wave Propagation (192 views)
2016-09-20 13:29:55

steveyg90 (306 views)
2016-09-15 20:41:23

steveyg90 (305 views)
2016-09-15 20:13:52

steveyg90 (343 views)
2016-09-14 14:44:42

steveyg90 (370 views)
2016-09-14 14:42:13

theagentd (403 views)
2016-09-12 16:57:14

theagentd (349 views)
2016-09-12 14:18:31

theagentd (282 views)
2016-09-12 14:14:46

Nihilhis (724 views)
2016-09-01 13:36:54

roseslayer (1292 views)
2016-08-06 11:43:29
List of Learning Resources
by elect
2016-09-09 09:47:55

List of Learning Resources
by elect
2016-09-08 09:47:20

List of Learning Resources
by elect
2016-09-08 09:46:51

List of Learning Resources
by elect
2016-09-08 09:46:27

List of Learning Resources
by elect
2016-09-08 09:45:41

List of Learning Resources
by elect
2016-09-08 08:39:20

List of Learning Resources
by elect
2016-09-08 08:38:19

Rendering resources
by Roquen
2016-08-08 05:55:21 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!