i am having code which is using javax.comm lib file,i am getting error saying cannot find symbol.i want to know where exactly my jar file should be?i using windows xp and net beans ide
Import jar into netbeans
Do get it to run maybe also check
The Java Communications API: A Working Example
According to the Java Communications API web page, there is no implementation for Windows XP:
[...]
Implementations of the API are currently available for Solaris SPARC, Solaris x86, and Linux x86.
[...]
Related
The jawt.lib necessray to link for using of JAWT_GetAWT API.
I createded native "C" dll through this way
http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/file/8b04ee324a1a/test/java/awt/JAWT/myfile.cpp
My java code is
http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/file/8b04ee324a1a/test/java/awt/JAWT/MyCanvas.java
It is working fine in Window 7/8 64-bit OS with below code only.
For 32-bit OS, It gives below error.
java.lang.UnsatisfiedLinkError: C:\Users\Rovet.Sen\Des
ktop\POC\U\MyCanvas-32.dll: Can't find dependent libraries
It works fines in window7 32-bit os.
Now it is not working in window8 32-bit OS.
So due to the random behavior of this dll, I am try to find out the alternative for of JAWT_GetAWT API.
Is there any way to write own code for this API?
Thanks
As you don't tell which installation steps you did and where you get a problem. Find below the steps extracted from the link I already mentioned in the comment.
download the Java Access Bridge
as stated in the documentation, you don't need to for Java SE 7 Update 6 and later
install the files following the steps Installing Java Access Bridge for Windows 32-Bit
install means here
unzip the file accessbridge-2_0_2-fcs-bin-b06.zip
copy the extracted files to the given directories
run your example code
If step 3. fails, please provide us a MVCE - Minimal, Complete, and Verifiable Example
I'm using grails burning image plugin and it works fine on my Windows development environment and on the linux pre-production server.
Unfortunately, the production server is a FreeBsd server based on openJDK 1.7.0_65.
When I want to upload a picture which is a '.jpg' or '.jpeg' file, I get a com.sun.image.codec.jpeg.ImageFormatException.
After looking on stackoverflow, I found these two posts which seem to say that I have to add -XDignore.symbol.file option launching the java compiler.
Source:
import com.sun.image.codec.jpeg.*
Using internal sun classes with javac
How can I add this option to my grails application?
This sun package is not supported in OpenJDK. See these links for further reference:
Issue 28: fails under OpenJDK-7++
difference between Sun JDK and open JDK
Sadly, this renders the plugin virtually useless with OpenSDK's.
Edit: What I found as a solution is this plugin:
hd-image-utils
Fair warning thou, it has problems working with CMYK images.
I am trying to get GPS data from a NMEA 0183 GPS via the Java Marine API, using the RXTX API.
Running the Java Marine supplied SerialPortExample.java, I return the two errors. Perhaps they are related and so I am bundling them together into this question.
gnu.io.PortInUseException: Unknown Application
I believe this is caused by the RXTX API. A search reveals that OSX often is missing the required var/lock folder, which one would rectify by with sudo mkdir /var/lock (full details: https://groups.google.com/forum/#!topic/openhab/YUJC8DTLokc) however this does not solve my problem.
WARNING: RXTX Version mismatch
I have Jar RXTX-2.1-7 but native lib Version = RXTX-2.2pre2. I am trying to download the latest version of RXTX, but keep running into dead links (http://rxtx.qbang.org)
I am running Mavericks on MB Air.
Can anyone help?
Problem 1
gnu.io.PortInUseException: Unknown Application
I solved this by looking up the ports in use on my machine with ls /dev/tty.*
This flagged up a lot of old bluetooth devices, I cleared most of them off (Apple > System Preferences > Bluetooth) and it solved the problem
Problem 2
WARNING: RXTX Version mismatch
I took some time to delete everything associated with the RXTX install, and ensured that I was only using one version. Seems to have done the trick.
unknown port exception
This error happens while some of other programs are using the serial port .Make sure your no other applications are using serial port when your application works .check your application is also running only single copy.
RXTX version mismatch
download rxtx jar matched with your java version
I had the same bug. Make sure you terminate any other processes that could be using that connection. I was trying to run my program from the command line but the port was connected to energia's serial monitor.
RXTX: if you manually added any RXTX files delete them and run sudo apt-get install librxtx-java, this should clear up the mismatch.
I would like make an java app that communicates with a serial device(handheld scanner) so that the app is platform independent.
I have found a few code examples, and when I copy them into Eclipse it says that javax.comm.* is missing.
How do I install this on my Mac?
And how do I add this library to my app so that the users does not have to install anything?
I want to able to give the users a jar file and the device, and they should be able to run it on windows/Mac/Linux without little or none configuration.
I found a download where I could download a javax.comm.jar file but the download included a win32comm.dll it dependented on some how - at least that was the fault I got when I added the jar file to my project.
Error loading win32com: java.lang.UnsatisfiedLinkError: no win32com in java.library.path
This is the Java Communications API. You can get it here but it won't help you. The supported platforms are Solaris SPARC, Solaris x86, and Linux x86.
For Mac and Linux, if the serial port is already configured, you can open /dev/ttyS0, /dev/ttyS1, /dev/ttyS2, etc. as a file and read/write to it. On Windows, if the serial port is already configured you can open "COM1", "COM2", etc. and read and write to it.
Unfortunately, javax.comm (as provided in the reference implementation) isn't cross-platform, so you'll have to either resort to bundling additional native libraries and supporting classes or use a platform-dependent way to configure the serial port. On Windows, this could be the "mode" command, and on Mac/Linux, this could be the stty command.
I would recommend RXTX. It doesn't use the javax.comm package, but it follows the same API (with some helpful additions).
E1: As it turns out, RXTX 2.0 does use the javax.comm package. You can find it on the same download page.
I've done numerous searches and I realize that I can just download this file and install it either in windows/system32 or in the application's directory. My question is, how does this dll generally get installed on Vista? I tried installing the .net framework 3.5 and it didn't get installed with that.
Background:
I'm running a java.jar wrapped as an exe using exe4j.
msvcr71.dll is the Microsoft Visual C++ Common Runtime for Visual Studio 2003. Applications developed with VS2003 will usually install this.
i tried this fix to resolve MSVCR71.dll missing error in Windows 7 X64:
http://backspacetab.com/2011/05/09/msvcr71-dll-windows-7-x64/
Its only for 64Bit users... 32bit users follow the guide here: http://i.justrealized.com/2009/how-to-fix-missing-msvcr71dll-problem-in-windows/
Thanks and enjoy !!
have you tried executing using "java -jar java.jar"? Does it produce the same result?
Since VS 2003 targeted older versions of .NET and is not a supported development environment on Vista, it's probably only going to get installed on Vista if an application's installer does so.
I don't know if the .NET 1.1 redistributable will install it on Vista, but it's worth a try in a virtual machine.
Your problem might be related to these Sun bugs -
http://bugs.sun.com/view_bug.do?bug_id=6560269
and
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6648440
Upgrading to the latest exe4j (version 4.1) solved this issue!