Go to advanced search

by crackers
Mon Dec 30, 2013 1:20 am
Forum: Java
Topic: Using the Connector class correctly to send a datagram
Replies: 21
Views: 6234

Re: Using the Connector class correctly to send a datagram

Is there some reason you're limiting yourself to JME? Since the Pi runs a full-blown Oracle JVM, that might be a better approach...
by crackers
Sun Oct 13, 2013 10:13 pm
Forum: Java
Topic: Java 7 on Raspbian
Replies: 1
Views: 3263

Re: Java 7 on Raspbian

All of the Debian-based packages install into /usr/lib/jvm

And why in the world would you need the installation directory? All of the commands are available via alternatives...
by crackers
Thu Aug 08, 2013 3:55 am
Forum: Java
Topic: Remote debug - Java application on raspberry with eclipse
Replies: 3
Views: 4030

Re: Remote debug - Java application on raspberry with eclips

If you remove the debugging options, does the program run then? If you're getting the help text, then there's obviously something amiss on the command-line...
by crackers
Wed Aug 07, 2013 4:32 am
Forum: Java
Topic: Remote debug - Java application on raspberry with eclipse
Replies: 3
Views: 4030

Re: Remote debug - Java application on raspberry with eclips

You're attempting to use very old parameters, that's why. You need to use these:

Code: Select all

-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005
You may not want the suspend flag set to "y" -- a little Googling will tell you what it does.
by crackers
Fri Aug 02, 2013 5:10 am
Forum: Java
Topic: ImageJ for the Java Impaired
Replies: 10
Views: 4855

Re: ImageJ for the Java Impaired

The "headless" version is intended primarily for servers where the use of graphics is not ever going to be required. In order to run a graphics program, you need to install the full JRE.
by crackers
Thu Jul 25, 2013 5:27 am
Forum: Advanced users
Topic: Java SE 8 or Java ME 3.3 ?
Replies: 3
Views: 1117

Re: Java SE 8 or Java ME 3.3 ?

Java ME does not (necessarily) have all of the standard Java classes, if I remember correctly -- it's very much a reduced-stack implementation. If you manage to get ME running, there's no guarantee it'll run the automation software.
by crackers
Sat Jul 06, 2013 3:38 am
Forum: Java
Topic: Questions about Eclipse
Replies: 13
Views: 6582

Re: Questions about Eclipse

All you need is the JDK and a text editor -- IDE's are niceties.
by crackers
Wed Jul 03, 2013 1:00 am
Forum: Beginners
Topic: Noob questions - Cheap USB Power
Replies: 5
Views: 925

Re: Noob questions - Cheap USB Power

The specs say 1 Amp @ 5 Volts, so that's what the Pi likes. The low cost does give me pause about the quality of the output, as you noted with your phone. If it were me, I'd just go to some place like Adafruit and get one of theirs -- I know those are tested and to be of good quality. The transparen...
by crackers
Sat Jun 29, 2013 7:17 pm
Forum: Java
Topic: Java for Web Server
Replies: 4
Views: 3080

Re: Java for Web Server

You don't need Java -- Javascript has nothing to do with Java, it's just very badly named. Javascript runs in any browser, no plugins required. Your LAMP server is plenty enough.
by crackers
Thu Jun 20, 2013 6:01 am
Forum: Java
Topic: Java Servlet
Replies: 5
Views: 13848

Re: Java Servlet

Jetty works just swell...
by crackers
Sat Jun 08, 2013 5:05 pm
Forum: Beginners
Topic: Does Linux overwrite existing files?
Replies: 8
Views: 2349

Re: Does Linux overwrite existing files?

Actually, it's pretty simple in the case you mentioned: yes, apt-get update will over-write system configuration files -- unless you've changed them. At least that's how it's supposed to work. If you're worried about having changed some configurations, make a backup copy before doing the update. Use...
by crackers
Wed Jun 05, 2013 3:00 pm
Forum: Automation, sensing and robotics
Topic: Automation 'protocols'
Replies: 3
Views: 1067

Re: Automation 'protocols'

I've looked at MQTT as well. Unfortunately, there is no published message packaging -- it's coordinated between the publisher and subscriber. I am assuming, from the documentation and the available libraries, that the messages are simply bytes and it doesn't matter whether you use strings, hex-strin...
by crackers
Tue Jun 04, 2013 5:43 am
Forum: Java
Topic: JME and Bluecove on the RPi?
Replies: 4
Views: 1692

Re: JME and Bluecove on the RPi?

The Pi won't run JME -- it requires the full JSE, but one built for it's architecture (ARM). Personally, I'm using the Java 8 EA version and it's working just fine for me.

Have absolutely no idea if Bluecove will work or not...
by crackers
Wed May 29, 2013 5:36 am
Forum: Beginners
Topic: problems installing processing - java library not loading
Replies: 5
Views: 2760

Re: problems installing processing - java library not loadin

If you take into account that it's a single-core CPU putting along at 700Mhz, Java 8 is more than fast enough for most needs. I've been running 8 on hard-float non-stop since mid-December 2012*. Benchmarks discussion: http://www.raspberrypi.org/phpBB3/viewtopic.php?f=81&t=25418 *It's a custom home-a...
by crackers
Mon May 27, 2013 8:26 pm
Forum: Beginners
Topic: problems installing processing - java library not loading
Replies: 5
Views: 2760

Re: problems installing processing - java library not loadin

You have two options: run ldconfig like this:

Code: Select all

$ sudo ldconfig -v
and make sure that it finds the libjli.so (the -v is verbose output).

Or you can specify the location on the command-line with

Code: Select all

-Djava.library.path=/absolute/path/to/libjli.so
The .so must be compiled for ARM...
by crackers
Wed May 15, 2013 1:10 am
Forum: Java
Topic: How to install Oracle JDK 7?
Replies: 3
Views: 4144

Re: How to install Oracle JDK 7?

Ah... yeah, forgot to mention that I am running the hard-float Wheezy. JDK 8 will only run on HF.
by crackers
Tue May 14, 2013 3:47 am
Forum: Java
Topic: How to install Oracle JDK 7?
Replies: 3
Views: 4144

Re: How to install Oracle JDK 7?

Well, aside from trying to install a package that isn't intended for the ARM architecture, if you want the fastest JVM with hard-float, install the Java 8 preview. I've been running it non-stop since it was released and not had one issue.
by crackers
Sat May 11, 2013 5:25 am
Forum: General discussion
Topic: Striping down for Java(Swing) thin client
Replies: 2
Views: 796

Re: Striping down for Java(Swing) thin client

You technically don't need a window-manager - all you need is the raw X server and then auto-run the Java program after X is started. You should use something like lightdm to manage access -- it's easier than trying to build in authentication/access yourself.

The rest is left as an exercise... ;)
by crackers
Sat May 04, 2013 1:21 am
Forum: Java
Topic: Help Sending XBMC notification
Replies: 2
Views: 1383

Re: Help Sending XBMC notification

Sorry, but webiopi is Javascript, which is not the same as Java.

Have you tried https://groups.google.com/forum/?fromgr ... um/webiopi
by crackers
Wed May 01, 2013 4:20 am
Forum: Java
Topic: TCP to serial port program
Replies: 6
Views: 6180

Re: TCP to serial port program

It's a bi-directional socket, so I just use InputStream and OutputStream from Socket. That's about as dirt-simple as it can get. You could get all fancy with nio, but consider that your code is much more likely to be faster than the hardware. This is what my /etc/ser2net.conf looks like: 4000:raw:0:...
by crackers
Sat Apr 27, 2013 1:14 am
Forum: Media centres
Topic: Playing media from a NAS on RPi
Replies: 6
Views: 5104

Re: Playing media from a NAS on RPi

Samba is the CIFS implementation for Linux, if that helps.
by crackers
Sat Apr 27, 2013 1:12 am
Forum: Media centres
Topic: Logitech Media Server and Linkstation Live
Replies: 16
Views: 4163

Re: Logitech Media Server and Linkstation Live

The question should be: "how do you get to your music from other places?"

Those NAS also do DLNA (UPNP), so that's another option...
by crackers
Wed Apr 24, 2013 4:17 am
Forum: Java
Topic: jQuery dropdown list and checkbox
Replies: 3
Views: 2039

Re: jQuery dropdown list and checkbox

by crackers
Wed Apr 24, 2013 4:16 am
Forum: Java
Topic: Java Spring + Hibernate + MySQL + Embedded Jetty Webserver
Replies: 5
Views: 9822

Re: Java Spring + Hibernate + MySQL + Embedded Jetty Webserv

Not to be rude, but all of your answers are in here and via Google:

http://static.springsource.org/spring/d ... ence/html/

I've really found their documentation to be quite good for quite some time.
by crackers
Fri Apr 19, 2013 5:03 am
Forum: Java
Topic: jQuery dropdown list and checkbox
Replies: 3
Views: 2039

Re: jQuery dropdown list and checkbox

jQuery --> Javascript != Java

Go to advanced search