|
From: Frankie F. <jsy...@te...> - 2013-05-13 21:25:23
|
I can run it from ant update-drivers with no problem:
$ ant update-drivers
Buildfile: /home/frankster/jsynthlib/trunk/JSynthLib/build.xml
init:
build-code:
[javac] Compiling 2 source files to
/home/frankster/jsynthlib/trunk/JSynthLib/build/bin
[javac] Note:
/home/frankster/jsynthlib/trunk/JSynthLib/core/DeviceListWriter.java
uses unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
update-drivers:
[java] In dir .:
[java] Checking synthdrivers/RolandTD6
[java] Found synthdrivers.RolandTD6.RolandTD6Device
...
I've got java 1.7 - which version are you using?
$ javac -version
javac 1.7.0_15
On 13/05/2013 20:20, Packe wrote:
> Hi,
>
> I'm trying to write a driver for my Roland D50. I have added the files and wanted to generate the synthdrivers.properties file.
>
> Unfortunately the DeviceListDriver application fails. It creates an empty file only containing the two first lines of comments in the properties file.
>
> I have added debug prints which gives me this:
>
> In dir .:
> Checking synthdrivers/AccessVirus
> Checking synthdrivers/AlesisA6
> Checking synthdrivers/AlesisDM5
> Checking synthdrivers/AlesisDMPro
> Checking synthdrivers/AlesisQS
> Checking synthdrivers/BehringerFCB1010
> java.lang.ClassNotFoundException: AccessVirusDevice
> at core.DeviceListWriter$MyClassLoader.loadClass(DeviceListWriter.java:336)
> at core.DeviceListWriter.addClasses(DeviceListWriter.java:72)
> at core.DeviceListWriter.main(DeviceListWriter.java:389)
> java.lang.ClassNotFoundException: AlesisA6Device
> at core.DeviceListWriter$MyClassLoader.loadClass(DeviceListWriter.java:336)
> at core.DeviceListWriter.addClasses(DeviceListWriter.java:72)
> at core.DeviceListWriter.main(DeviceListWriter.java:389)
> java.lang.ClassNotFoundException: AlesisDM5Device
> at core.DeviceListWriter$MyClassLoader.loadClass(DeviceListWriter.java:336)
> at core.DeviceListWriter.addClasses(DeviceListWriter.java:72)
> at core.DeviceListWriter.main(DeviceListWriter.java:389)
> […]
>
> When I look at the code I get a bit suspicious about this part:
>
> String devName = synthDevices[j].substring(0, synthDevices[j].indexOf('.'));
> try {
> if(verbose)
> System.out.println(" Checking " + actSynthDir.getPath());
>
> Class deviceclass = loader.loadClass(devName, true);
>
> The exception occurs on the last line of this snippet. From the substring line I guess only the class name is used as argument for the class loader. This should not work according to the API.
>
> Is it just me who runs into this problem?
>
> BR
> /Pascal
>
>
> ------------------------------------------------------------------------------
> AlienVault Unified Security Management (USM) platform delivers complete
> security visibility with the essential security capabilities. Easily and
> efficiently configure, manage, and operate all of your security controls
> from a single console and one unified framework. Download a free trial.
> http://p.sf.net/sfu/alienvault_d2d
> _______________________________________________
> Jsynthlib-devel mailing list
> Jsy...@li...
> https://lists.sourceforge.net/lists/listinfo/jsynthlib-devel
|