Go to advanced search

by clicky
Sat May 16, 2015 7:05 pm
Forum: Java
Topic: executing jar w/ multiple libraries
Replies: 3
Views: 993

Re: executing jar w/ multiple libraries

Theoretically Java on Windows or RPi does exactly the same thing. Only thing I can think of is that current directory you are trying to run it from does not contain your .class files (namely Automation_System.core.HAS). Are you sure you are trying to execute it from directory you copied all your .cl...
by clicky
Wed May 13, 2015 2:54 pm
Forum: Java
Topic: Teaching Java Programming to Kids, Parents and Grandparents
Replies: 18
Views: 4288

Re: Teaching Java Programming to Kids, Parents and Grandpare

Pull virtually *any* source you want down from Github whatever and tell me what its written in/ more likely that not it will be C|C++ using gcc and the gnu toolset. Interesting question. I did it and here are the results: http://githut.info/ Java takes second place in number of active repositories ...
by clicky
Wed May 13, 2015 12:51 pm
Forum: Java
Topic: Teaching Java Programming to Kids, Parents and Grandparents
Replies: 18
Views: 4288

Re: Teaching Java Programming to Kids, Parents and Grandpare

Fair enough - I got the point what you meant by teaching Java vs C++... But I still believe Java is far, far tamer than C++... Java is not used by most developers today... Google's version of Java and their Dalvik virtual machine are what Android folks use ... the last real hold-outs for Java... Jav...
by clicky
Wed May 13, 2015 12:13 pm
Forum: Java
Topic: Teaching Java Programming to Kids, Parents and Grandparents
Replies: 18
Views: 4288

Re: Teaching Java Programming to Kids, Parents and Grandpare

With all due respects, Java is a horrible language to teach to children; in fact, that might be considered child abuse. You said that and gone to say: if you really thought you wanted to use Java (which is a convoluted C++ without pointers and a really terrible library) you should just use C++ and ...
by clicky
Mon May 11, 2015 8:34 am
Forum: Java
Topic: Live feed android appls
Replies: 2
Views: 568

Re: Live feed android appls

Search for raspivid + cvlc for RPi for a stream. On the Android you can use VLC and watch live feed directly. This is the command I am using on my server: raspivid -o - -t 999999999 -w 640 -h 360 -fps 25 | cvlc -vvv stream:///dev/stdin --sout '#standard{access=http,mux=ts,dst=:8090}' :demux=h264 Alt...
by clicky
Thu Apr 23, 2015 7:43 am
Forum: Java
Topic: Pi4J Version 1.0 is Released!
Replies: 2
Views: 1092

Re: Pi4J Version 1.0 is Released!

:)

Nice milestone! Pi4j now has stable 1.0 version!

Well done Robert!
by clicky
Sun Apr 19, 2015 9:08 pm
Forum: Java
Topic: pi4j 1.0 not available on Maven?
Replies: 2
Views: 851

Re: pi4j 1.0 not available on Maven?

It is published as 1.0 but not yet promoted to oss repository. I hope Robert is going to do it soon. Until then, you can always download 1.0 artifact and manually install it to your .m2 dir... (https://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html) BTW that's only until pi4j 1.0 arriv...
by clicky
Sun Apr 19, 2015 9:04 pm
Forum: Java
Topic: Pi4j - i2cdetect programmatically
Replies: 8
Views: 1682

Re: Pi4j - i2cdetect programmatically

Hi Daniel,

Sorry for not being able to respond earlier - your solution is pretty much what I had originally in my mind.

If I even get chance I'll try to implement logic from i2cdetect - thing what DougieLawson pointed at (btw thanks!).
by clicky
Thu Apr 16, 2015 7:46 am
Forum: Java
Topic: RPI GPIO with Java
Replies: 11
Views: 3239

Re: RPI GPIO with Java

I can imagine what kind of issues might be there in multi-threaded CPUs and low level interrupts. Single threaded Pi was very close to old µProcessors/newer µControllers where relying on interrupts was quite deterministic. I can see one solution (but have a golder hammer(*)) but it won't be for ever...
by clicky
Wed Apr 15, 2015 11:36 am
Forum: Java
Topic: RPI GPIO with Java
Replies: 11
Views: 3239

Re: RPI GPIO with Java

I deliberately omitted to mention writing similar kernel module for DHT11/22 not to scare people.

BTW if Pi2 has issue decoding IR signals - does it have an issue with Dallas one wire protocol, too?
by clicky
Tue Apr 14, 2015 7:54 pm
Forum: Java
Topic: RPI GPIO with Java
Replies: 11
Views: 3239

Re: RPI GPIO with Java

Oh. Thanks. In that case kernel support (and accessible through /proc filesystem) is out of question.
by clicky
Tue Apr 14, 2015 12:32 pm
Forum: Java
Topic: RPI GPIO with Java
Replies: 11
Views: 3239

Re: RPI GPIO with Java

Sorry for superficial interest in this and lack of time to investigate further: but isn't DHT11 working with standard one-wire protocol?

If so - there's kernel support for it (I think)...
by clicky
Tue Apr 14, 2015 12:28 pm
Forum: Java
Topic: Light Weight webserver
Replies: 2
Views: 1012

Re: Light Weight webserver

Impressive stats! :)
by clicky
Tue Apr 14, 2015 12:28 pm
Forum: Java
Topic: Remote VM is in Maven Central
Replies: 1
Views: 642

Re: Remote VM is in Maven Central

Fair enough. I'll put this in my todo list.
by clicky
Fri Mar 27, 2015 9:48 pm
Forum: Java
Topic: MCP3424 pi4j
Replies: 7
Views: 3534

Re: MCP3424 pi4j

Here's an example:
https://github.com/Pi4J/pi4j/blob/mast ... ample.java

Let me know if you get stuck anywhere...
by clicky
Fri Mar 27, 2015 9:46 pm
Forum: Java
Topic: Pi4j - i2cdetect programmatically
Replies: 8
Views: 1682

Re: Pi4j - i2cdetect programmatically

I'm pretty sure that i2cdetect does quite similar thing. It would be interesting finding the code of it. If there's better, faster way to do so - we can always implement it in pi4j...
by clicky
Thu Mar 26, 2015 2:55 pm
Forum: Java
Topic: Pi4j - i2cdetect programmatically
Replies: 8
Views: 1682

Re: Pi4j - i2cdetect programmatically

Yes, but it would be a bit clunky and possibly slow. On the other hand i2cdetect is not particularly fast either. You would need to try each address separately and guard results with try/catch... Where it doesn't fail - you'll have a device attached to that address. I've just checked - it should hav...
by clicky
Thu Mar 26, 2015 9:25 am
Forum: Java
Topic: Retrieving data from mySQL database using Java
Replies: 10
Views: 4424

Re: Retrieving data from mySQL database using Java

Here's another tip - if you can't set up RPi's DNS in any other way, you can use hosts file (on windows usually lives in C:\Windows\System32\drivers\etc\hosts (first link google gave me how to edit it: http://helpdeskgeek.com/windows-7/windows-7-hosts-file/ ) and store domain name of RPi along with ...
by clicky
Tue Mar 24, 2015 10:08 am
Forum: Java
Topic: (newbie) building pi4j from maven
Replies: 7
Views: 6519

Re: (newbie) building pi4j from maven

Nice! BTW you might want to check http://remotevm.abstracthorizon.org/ and adopt it to NetBeans. With agent running on the RPi and adding client to your class path (run config only) - you can run code directly of Pi without need of manual copy of everything. Since you're already nicely compiling stu...
by clicky
Fri Mar 13, 2015 8:14 am
Forum: Java
Topic: Comparing Maven, Gradle and Ant.
Replies: 11
Views: 4262

Re: Comparing Maven, Gradle and Ant.

Idea of RAM disk is nice, but I always though that OS like Linux does manage disk cache really effectively. I have confirmed it with trying to deploy one system on JBoss (2.5+GB) from different mediums. First ordinary HD, SSD and ram disk. It turns out that SSD and ram disk didn't show any differenc...
by clicky
Tue Mar 10, 2015 5:53 pm
Forum: Java
Topic: Comparing Maven, Gradle and Ant.
Replies: 11
Views: 4262

Re: Comparing Maven, Gradle and Ant.

I see. As you said - it seems that RPi is quite unsuitable for the task. Ant itself might do the job, but only if you have all other dependencies already downloaded and prepared. Maven, on the other hand, would be preferable solution as it does all the dependency resolution and build automatically f...
by clicky
Tue Mar 10, 2015 12:46 pm
Forum: Java
Topic: Comparing Maven, Gradle and Ant.
Replies: 11
Views: 4262

Re: Comparing Maven, Gradle and Ant.

Solution is quite simple: don't create jars on Pi! :)

Use any (Maven/Gradle/etc) on your PC and transfer final Jar back to Pi.
by clicky
Mon Mar 09, 2015 11:32 am
Forum: Java
Topic: RPi 2 performance
Replies: 9
Views: 4425

Re: RPi 2 performance

Thanks. Also, I think I've read somewhere that ARM7 has better support for JVM than ARM6 and should offer some performance improvements... And that original JVM is capable of using those enhancements out of the box. Now, what enhancements are those I forgot... O: )
by clicky
Thu Mar 05, 2015 10:39 am
Forum: Java
Topic: Remote Java programming
Replies: 15
Views: 10238

Re: Remote Java programming

Again - feature of your HTTP server is pretty cool. But I think you're mixing * development * and * deployment *. In first case you need really quick turnaround between change and seeing result - they way we used on in our IDE: change the class, press run, see the result, react on it and repeat. Dep...
by clicky
Thu Mar 05, 2015 10:17 am
Forum: Java
Topic: Remote Java programming
Replies: 15
Views: 10238

Re: Remote Java programming

See, that's the main issue: you need to jar your stuff before hot-deploying them. Unlike that, remotevm project (and probably LaunchPi) does different thing: you run your development from your IDE from a laptop/PC and remotevm client in collaboration with remotevm agent transfer only changed files a...

Go to advanced search