JWrapper icons on a Linux system - java

We use JWrapper for deployment of some of our desktop apps. I must say I am quite impressed with JWrapper, the ease of use and the features it provides.
We develop mostly in Linux environments but our clients use mostly Windows. We use JavaFX for our desktop apps with Java 8. We use Java 8 because of the fact that it plays nicely with JavaFX and things like the Date chooser are only available since Java 8.
After making sample apps to test the features of JWrapper, with the JRE-1.7 bundle, everything worked like a charm: icons on Linux, Windows and Mac.
For our demo apps I had to bundle Java 8 for JWrapper, everything worked fine, the apps installed everywhere and launched after install, but on Linux (Ubuntu) no icons appeared in the Dash. I searched in the ~./local folder for the .desktop files and only found the sample apps' .desktop files there.
I scoured the JWrapper forums for similar issues and found one referring to a similar problem, but the question did not get any attention and JWrapper retired their forum a day or two ago in favour of using stackoverflow. Here is the question in the forum:
http://www.jwrapper.com/old-forum.html#nabble-td209
This leads me to the conclusion that there is a incompatibility with JWrapper and Java 8 on Linux. I understand Java 8 is still new, and is yet to be bundled and tested by the good people of JWrapper. (I would offer my help with this if you guys are interested)
I can go and write the creation of icons (.desktop files) for Linux systems in a JWrapperPostInstallApp but that would only be a workaround. Am I missing something? Does anyone have an already working workaround?

Related

windows 7 64 bits didn't found win32comm [duplicate]

I am using the javax.comm API to help my program communicate with hardware over serial port. I am using the Windows 7 and NetBeans IDE 9.
I used the common Java program to check the available ports on my PC. The program compiled and ran without error. However it returned nothing.
What can I do to use the javax.comm API on Windows? It seems win32com.dll does not work with a 64-bit operating system.
This is how I got it to work.
I've tested it using JDK 1.6 (32bit) on my Windows 7 64bit machine.
Install 32bit JDK.
Copy 'win32com.dll' to JDK_HOME\jre\bin.
Copy 'javax.comm.properties'to to JDK_HOME\jre\lib.
Copy 'comm.jar'to to JDK_HOME\jre\lib\ext.
Now run your program and it should work.
Recent 2.2pre versions of RXTX include binaries for 64-bit windows. I think the latest RXTX information source has changed to this: http://rxtx.qbang.org instead of http://www.rxtx.org though.
At one point the RXTX library included drop-in support for using the javax.comm api. I'm not sure if it still does, but the main change then to use the "native" RXTX packaging was primarily just a package name change.
it seem the win32com.dll does not work with 64-bit Operating system
I think that is correct. In fact, according to the relevant download page, Oracle no longer supports the javax.comm API for any Windows platform.
However, I found this page which has a 64bit build of the DLL, among other things.
EDIT
By an astounding piece of research (i.e. following the links and reading stuff) I found the download page for the latest RXTX, which claims to have binaries for various platforms. If your platform is not there, try building from source. If that doesn't work, consider investing the effort in making it work.
I've integrated RXTX libraries into some of my earlier projects and i found out this bug it has while working with comm ports under windows, so you might want to check this first before going into some serious app design.
Communication works fine, never had any problem with that, but once you open the port you cannot close it and reopen, if you use method provided for closing port, your app just hangs, no exception no nothing. I found later the same behavior described by users on web, but never really found the solution to this problem.
Again, this might help you save some time, check it first.
Latest release, which is this http://rxtx.qbang.org/pub/rxtx/rxtx-2.1-7-bins-r2.zip, doesn't have this issue no more. Unfortunately i think its solved only for windows, its still there on Linux binaries, and i haven't tried it on mac.
Have you got a look on RXTX ? I think it is still active.
I had this issue...on a 64 bit machine..running windows 7
a legacy application developed in jdk 1.4, for 32 bit windows... and using the win32 comm api binary
i tried the RXTX binary for 64 bit and i was able to communicate with my device on some level... but... there were other problems as my application referenced a version of the jpos library that internally was using the comm-api (had import javax.comm.*... in some Serial...Listener class)....
I installed a 32 bit jdk and setup the comm-api binaries for 32 bit windows as directed here...setup comm api on windows
all was fine afterwards
You might be interested at an alternative library I've authored: http://code.google.com/p/jperipheral/

Why Java Applet working only on my computer, but not on the others?

I just wonder something about java applet with awt. I quite disappointed with this problem and want to throw it away sometimes. Below are my descriptions:
I already created one application using java applet with awt controls on my own computer, let's say computerA using Window 7 32bit Operating System. To up and running this application, I update java version to the latest one.
Application is working fine with computerA. However, this application also need to run on the others as well. As my own situation, I run with another computer, let's say computerB using Window 7 64bits Operation System. I knew that the application created with 32bits java version, thus I decided to install this java version on computerB. However, when I run the application it can only display interface on browswer, but some of its function did not work.
Yet I didn't throw it away, I decided to configure in the last computer, let's say computerC. This computer use Window 8 32bits Operating System. I did configure as I did with computerA and computerB. The result is still exact as computerB.
I also checked up this solution on here, but it is not fit my problem.
Here are my questions:
What is the exact problem on here?
Where does the problem come from?
Is it solvable?
How can I solve this kind of problem? Any helps?
Update:
PostgreSQL Database also install in other local computers as well.
I noticed that If I convert my code into eclipse project, it worked fine. No problem at all.
Thanks in Advance.

Eclipse does not recognize Java 7 on Mavericks, can't find jdk.1.7.0_51 to fix issue

Now, the problem of not being able to use Java Development Kit 7 with eclipse on Mac computers seems to be a problem a lot of people have. After digging around, I found what seemed to be a widely accepted solution here: Eclipse Kepler for OS X Mavericks request Java SE 6
The problem is, there are no files in /Library/Java/JavaVirtualMachines. I enabled hidden files but still found nothing. I looked around for more solutions, but they all seem to involve the jdk.1.7.0_xx file. I have tried reinstalling java (downloaded from the java site) multiple times but no files appear.
Now, I could try installing Java 6, but it's kind of a pain to download on a 30kbps internet connection, so I would prefer if there was another way. Plus, it's concerning that a file that everyone else seems to have is missing.
So, my question is: Is there any way I can acquire this file (separate download, something I missed, etc) or do I have to download Java SE 6? Any answer would be appreciated.

eclipse with flex plugin for red5

I've just started to mess around with red5 , I can't say it was easy to get it run at the first place, but after a day on google I finally succeed.
The first thing I had to face is the poor documentation of this server. I couldn't find any good tutorials about making apps (I would pay for a good one, but still nothing) for it, but it doesn't matter since it's free.
I found this : Adobe TV . It's the best starting point I could find so far. The only thing is that I can't set up the same working enviroment as the guy has in the video. I understand it is eclipse (i have that) , and i know he is using flex plugin, but how do I get eclipse to debug mxml files as he does? (around 3.20 in the video) . I downloaded the flex plugin, but after I install it, eclipse stays exactly the same as before.
PLease note I am new to eclipse (and JAVA and flash -huhh... :D - ).
I am running Windows 7 Ultimate 32bit.
Any help would be greatly appreciated.
There is one more IDE called FDT for flex app development. They are using eclipse. Worthy to try this IDE http://fdt.powerflasher.com/ this is available linux too. This is does not support red5 by native. But you can just simply create as java project.
I prefere the Flex Development to do with flashdevelop: http://www.flashdevelop.org/
it is a very nice openen source code editor. Configuration is really easy and takes just 1 Minute. The only thing to do is to configure the path of the flex sdk. Debugging is nice and i love the code completition feature.

Java applications with Windows 7 - are there compatibility concerns?

with some fuzz around Windows 7, does somebody have experiences with Java compatibility with Windows 7? Should this be a concern or do the programs probably work ok?
I'd be especially interested if somebody has experiences with Swing applications?
The versions available seem to be beta versions so they won't provide perfect basis for evaluation but some.
br, Touko
Updating info related to the question:
According to Supported System Configurations for Java SE 6 and Java For Business 6
,
Windows 7 support was introduced in 1.6.0_14
From Java SE 6 Update 14 Release Notes changes:
6821003 hotspot runtime_system Update hotspot windows os_win32 for windows 7
From Java SE 6 Update 18 Release Notes:
For 6u18, support has been added for the following system configurations:
* Windows 7 support is now available
I have been using various Java apps on my Win 7 x64 box just fine and never had any problems. Even some of my oldt poorly coded swing apps have worked without issues.
For the most part, Win 7 is Vista in new clothing. Shouldn't have much issues because of that.
Your biggest concern is having the right Java runtime installed. WHen that is out of the way you can expect properly written Swing programs to work identically.
(With proper I refer to not having hardcoded button sizes or similar)
There are several problem of swing application in windows7 there are stated below:
JCheckBoxMenuItem will not show image
JCheckBoxMenuItem(Icon,Text,boolean);//Icon will not displayed
you can refer the http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7122141.
Focus issues. Sometimes escape won't work
The problem I have with my Swing application on Windows 7 (and presumably Vista - haven't tried it), is that the Java Runtime indicates to Windows that it is UAC-aware, while my application that runs in the JVM actually isn't. As a result, if someone installs it into the traditional location (e.g. C:\Program Files\MyApp), the application fails because it cannot write configuration data or error log files to its installation directory. Because I use some third-party libraries that write their own files to the current (i.e. install) directory, and I've got many more important things to do than dig into those libraries just to make their error reporting and configuration storage UAC-aware, I took the path of least resistance and changed my default install directory to C:\MyApp. I realize that this is a regression back to the old DOS days where people ended up with myriad application directories in C:\, but it's not my fault that Windows' method of implementing UAC Virtualization for legacy applications doesn't work for Java apps.

Categories