JD2XX Java FTDI library - Where can I get it from? - java

I'm thinking of writing a little program for my SDR-14 software radio
using Java and had a look
around for a Java library to communicate with the SDR's FTDI USB interface IC. A
quick Google finds loads of mentions of the JD2XX library which used
to be at ..
https://jd2xx.dev.java.net/
Except that that page now gives a 404 error so I wonder if that
project was deleted or left that domain following the Oracle take over
of Sun.
Does anyone know where this project has gone and where I can
download the library from ?
Regards
Ian

The project was evidently lost in the recent (or not so recent) java.net upgrade. The last reasonable archive I found with the source for the project is (oddly enough) at http://fred.bilinski.it/src/Fred-20050525.zip so you may want to download that and archive it. It has the source for the jd2xx classes and the jd2xx dll (not sure whether the dll is 32-bit or 64-bit) but these are dated from 2005, so you might want to reach out to http://bleyer.org/jd2xx/ and see if you can get more recent updates.
Alternatively you may want to look at http://sourceforge.net/projects/ftd2xxj/ which appears to be more recent.

It seems he has made a SourceForge project as well: http://sourceforge.net/projects/d2xx/
And the files can be found in the SVN repository: http://d2xx.svn.sourceforge.net/viewvc/d2xx/

Related

Patching a bug in the JDK for an individual application

I have established through another question that the problem I'm having with my JavaFX program is due to a bug in the JDK that is not going to be fixed anytime soon. I was even informed that the bug is in PrismTextLayout.
So having found the source code for this, how would I implement some kind of patch which would allow me to fix this bug for my application only. Obviously if I did fix the problem, I would contribute it back to a future JDK, but for now I just want a quick fix.
I thought a simple google search for patching the JDK, etc would turn up heaps of information, but actually, virutally nothing.
Can someone, if not explain how to patch, at least point me in the right direction for some documentation on this subject.
Patching a JavaFX class without actually building the whole JDK or JavaFX is quite easy. I did that for example for the class SVGPath some time ago.
Extract the class source from the source zip which is distributed with the JDK and add it to your project in the correct folder according to its package name. In my case this would be javafx/scene/shape/SVGPath.java.
Explicitly add ${JDK_HOME}/jre/lib/ext/jfxrt.jar to your classpath.
Run your program with the java options "-Djava.ext.dirs=".
This procedure is essential to be able to override the existing classes in jfxrt.jar.
That is it.

I've added a Jar to my IDE classpath on Codename One and now my cloud builds fail

I added a JAR for JSON parsing to my NetBeans classpath when building my application. Everything worked great in the simulator but I got a build error from the build servers as I try to build the native app.
How can I parse JSON or use arbitrary JAR's in Codename One?
Codename One has builtin support for JSON in the JSONParser class.
However, the bigger question at hand is changing the classpath which Codename One doesn't allow since the native JAR might not work on the mobile device. This is explained in this post which is a bit old but the basic reasoning is:
An arbitrary JAR might use an API that isn't supported by Codename One.
An arbitrary JAR might be compiled with a compiler that generates bytecodes that are untested with the build servers (e.g. in the past Eclipse ADT had some issues with the old VM).
Codename One's build process doesn't know the JAR is there and doesn't send it to the servers.
The most common case is using native libraries and JAR's don't have builtin support for native code on mobile devices.
To solve these issues Codename One has a cn1lib file format and a list of available cn1lib libraries. You use them by placing a cn1lib in the lib directory and pressing "Refresh Libs" in the context menu.
cn1libs support native code, hints on code completion and will work for native builds "as is". Steve did a thorough tutorial on porting the native iOS/Android Freshdesk SDK to Codename One here.

JBoss GUI Installer?

There is a document from 2006 http://docs.jboss.org/jbossas/guides/installguide/r1/en/html_single/ that describes using a GUI to select options for installing JBoss. However, I'm unable to determine where the contemporary version of the jems-installer-1.2.0.jar mentioned in that install guide is found.
The wiki at http://community.jboss.org/wiki/JEMSInstaller provides links to passworded SVNs only; whatever it's discussing is nowhere to be found on the public SVN.
A blog post at http://www.ericgar.com/2006/10/17/eclipse-jbossas-ejb-30-setup-instructions/ provides a direct link to Sourceforge where there is an installer jar: http://prdownloads.sourceforge.net/jboss/jboss-4.0.4.GA-Patch1-installer.jar?download.
Does this utility simply no longer exist?
Here you go:
JEMS Installer on SourceForge
Although it looks as if the project was abandoned around 2008ish. It should support JBoss 4, possibly 5, but not any later editions from what I've read online.
Personally I wouldn't bother with it, installing JBoss is pretty simple - and getting to know the config files will help you later while you're administering it.

Netbeans Editor Library?

Netbeans seems to say in several places that it supports a library to just host the "Netbeans editor" widget in some other program. It has some weird documentation that seems to say a lot, but doesn't really say much about how to use it: http://bits.netbeans.org/dev/javadoc/org-netbeans-modules-editor-lib2/architecture-summary.html
I can't seem to find any download for the "Netbeans editor library" (1 or 2), and the documentation they provide says to download the entire mercurial repository, which doesn't really help me, since it doesn't tell me what is part of this "library" and what is not.
If someone could point me to a download for this library, or some minimal documentation about how to use it, that would be great. I've already seen the blog post here, but it doesn't really help with getting the library, and it seems to be talking about classes which I can't find in the Netbeans sources I downloaded (Maybe a different version?)
The NetBeans editor is part of the NetBeans platform and thus is part of either NetBeans IDE itself or the separate platform download.
The platform itself can be downloaded from here: http://platform.netbeans.org/platform-get.html
But I'm not sure if you can use a platform module outside a platform application. If that should be possible it most probably will be a very complicated thing to do.
You might want to have a look at this article:
http://platform.netbeans.org/tutorials/nbm-htmleditor.html which explains how to create a standalone HTML editor based on the NetBeans platform by simply customizing the platform.

Downloading Sun javadocs / mirror websites

The network between our company and Sun's javadocs seems to be down. Where can I get a copy of the javadocs for a given package, so that I can keep my own stash to handle network outages in the future? Are there any mirrors for the Sun javadocs?
For each major release there is a large doc package, e.g. here for JDK 1.6.
(I hope the link is correct, picked it out of the docs I downloaded a while ago. Can't connect to SUN either from here.)
Down for me too (java.sun.com seems to be MIA at the moment).
Some form of the JDK docs are here: http://www.docjar.com/docs/api/java/
Most surefire bet: download the source and run Javadoc over it yourself, and stick it on an internal web server.
(FWIW - I can't reach their javadocs from my internal network right now either.)
I run classfinder on a MacMini locally. It's a small webserver dedicated to serving Javadoc and related source. You just take the zipped Javadoc and (optionally) the source package, and drop them in the appropriate directory. Classfinder works out the dependencies between all the docs and presents everything as a unified set of docs.
If you have multiple versions of packages (e.g. different servlet docs) you can dynamically select what you want to display. It all works beautifully and deserves much more fame than it currently gets.

Categories