I developed a GUI application with JAVA swing components and run it on Windows. When running the same application on Raspbian Jessie the font and size is different.
I found many solutions to solve this for other Linux implementation. I tried those. Mainly I failed due to different setup file names etc with the new "Jessie" implementation dated 26th of May 2016.
Could anyone please guide me to a proper installation procedure to get the same font appearance on Jessie as on my Windows desktop?
Just to finalise this. As I did not get an answer, I decided to change all fonts in my application to those available in both Windows and Linux.
Related
Can't solve the problem in Java Web Application. The application has been in production for several years now, I only add new functionality if necessary. For the last half of the year, all that had to be done was to update the libraries. But starting from December last year, it began to “freeze” for clients.
The functionality of the application is to work with documents of various formats: uploading to the server, deleting a document, creating previews, and downloading files. When uploaded to the server, the files are converted to .pdf format. So, the application is running on Windows Server 2016 Standart 10.0.14393 Build 14393 x64-based PC and LibreOffice 6.4.x.x is also installed, WildFly 20.0.0 Final on which the application is launched.
The task was to upgrade LibreOffice 6 to 7. I read the release notes and did not find anything that would prevent me from upgrading the LibreOffice version. We installed version 7.1 (just in December), then the problems started.
The problem is that when loading a file in the .docx/.doc format, the file is not loaded correctly, the preview is “broken”, and the “unkillable” soffice.bin/.exe processes remain on the server in the Task Manager.
As it turned out later, clients use barcodes in documents (but for 4+ years), and I also go to the “File” property in LibreOffice and choose “Properties…”, so I find the checkbox for embed fonts is enabled. If this checkbox is removed, then everything works correctly on any version of LibreOffice. But with it, starting from version 6.4 inclusive and higher - the program “freezes” for 2 minutes. This is the timeout limit in jodconverter per process.
However, if I do the same manipulations on my local machine where Windows 10 is installed, then everything works fine for me, as well as on other local machines. The problem is only on Windows Server 2016, which we have for tests, as well as for clients.
What I tried on the server: I installed the old version of the Java application from 2020 year and LibreOffice 6.4 and 7.1 - it still doesn't work. I took the latest version of the Java application, but LibreOffice 6.0 - 6.3 (inclusive) - and everything works. I also installed font with barcodes from a file - Free 3 of 9, it also did not help for LibreOffice 6.4 and higher.
Installing LibreOffice 6.0 also installed Microsoft Visual C++ Redistributable 2015 x64, I thought that was the problem. But after trying different combinations, I was not successful in solving the problem. At the moment, Microsoft Visual C ++ Redistributable 2015-2022 x64 and Microsoft Visual C ++ Redistributable 2017 x86 are installed on the server. Guided by this article.
Regarding Microsoft Visual C ++ Redistributable, I read an article that earlier, when installing LibreOffice, this package was also installed in a parallel process, but Microsoft changed the license to use the software or something like that, and then The Document Foundation stopped inserting into the LibreOffice installation file Microsoft Visual C++ Redistributable.
I want to note that the problem is not in the specification of files or barcodes since I created a completely empty document on the server, through LibreOffice, in the .docx / .doc format and put the font checkbox - it also “freezes”, and all the symptoms that I described above appear.
I came to the conclusion that the involvement of the Java application itself, fonts, or the .docx / .doc format in the error is unlikely, although not excluded.
Can you tell me the solution or where to look for the problem?
Perhaps someone will encounter it in the future, I solved the problem by switching from Windows Server 2016 to Windows Server 2019.
I'm developing a desktop application for Mac. When I run the application using Java6 it works fine, but when I run it using Java7, the application window seems to be limited to a width 1024 pixels (i.e. when it starts the window is 1024px wide, and can't be expanded/dragged to make it wider). I've tried all sorts of ways to adjust the size (setting window state to maximized, explicitly setting the width, etc.). I've also tried changing where I set the Window size, but so far no luck.
I have tried searching for anyone who has had similar problems, but have not had much luck. The only real hit I got was from an OTN discussion forum: https://community.oracle.com/thread/2617106, but there is no resolution and the discussion seems to be archived so I can't reply to it.
If anyone out there has come across this issue, I'd love to hear about it.
Environment:
Operating System: Mac OS X 10.7.5
Java Version: 1.7.0_55 (Oracle Corporation)
New Information:
Have found a related bug report in OpenJDK: https://bugs.openjdk.java.net/browse/JDK-8046008?page=com.atlassian.jira.plugin.system.issuetabpanels:changehistory-tabpanel
This seems to indicate that it is a problem for Mac OS X 10.7.5, which I am using.
I can't start JavaFX 2.2.5 applications in browser(all possible browsers) in Oracle Linux 6.3 x86 and latest MacOS. I have the latest Java 7 u 13 from Oracle.
Neither JavaFX Netbeans sample, my applications nor Ensamble(http://download.oracle.com/otndocs/products/javafx/2.2/samples/Ensemble/index.html) work.
The applications work if I start them as normal apps, but not from the browser.
Java works perfectly on those systems, just that I can't start JFX 2 in browsers.
What should be done? My clients need the flexibility of starting their apps from browsers.
It worked a few versions ago, but now I can't start them. Browsers tell me that I don't have Java. (they show that image with Java that redirects to the page from where I can download Java). I also tried to install just the JRE from that link. I have removed and reinstalled Java.
Is anyone else facing this problem?
Any help would be really useful.
I have also posted this on oracle forum: https://forums.oracle.com/forums/thread.jspa?threadID=2494131
In addition, after installing JRE 7u13 on XP/sp3 (IE8), the "verify Java Version" page (http://java.com/en/download/installed.jsp) produces a Data Execution Prevention (DEP) exception
I've got access to my customer's Mac machines.
My apologize. They had 7u12 on their Macs.
Happily enough, it seems that Oracle managed to get JFX working in browser with 7u13.
Regarding Linux, I finally got it to work, but don't forget about "firefox/plugins" and "firefox/plugin" (the latest is wrong). Oracle should update this error from their description available at: http://java.com/en/download/help/linux_install.xml#enable
I have been googling on this but I can't find the answer.
Can anyone tell me if you can put a Java application on the windows 8 start screen?
According to java.com
When will Java be supported in Windows 8? Windows 8 is officially
supported with the release of Java 7 Update 10. Java will only be
supported in Desktop screen. Java will not run in the Start screen.
I am not sure how to interpret this since I do not know the startscreen of Windows 8 and they talk about internet explorer 10 on the same page which makes me think they may only be talking about the browser.
Basically I want to have a tile to act like a classic windows icon. Is this the way it works and is this the way you can run a java application? Or do you need to go to the desktop interface first?
No. You can't.
All the apps on the Windows 8 start screen are the apps downloaded from the Windows Store.
All the other Java applications that you develop will run in the desktop environment, but not in the start screen.
As per this source, you can look forward towards creating apps for Windows Store using Java and then you can maybe think of putting a Java application on the Windows start screen.
You cannot put directly a Java application in the start screen in windows 8 (just as you couldn't create shortcut icons on the Desktop in Windows 7), however notice this is rarely what you want with a Windows desktop application.
Most of the times you will want to wrap your Java desktop application with a windows installer which will put the start screen icon on windows 8.
Your Java code will then be launched by the installer executable which might do some house cleaning jobs like checking what compatible version of Java is installed in the computer and if required install a newer one.
Is there a way to put a menu on a panel in Java's Swing/SWT applications in Ubuntu 11.04 (like in Mac OS X)? I've seen that most (if not all) of native applications on Ubuntu use this feature. So, is there a way?
It took me a while to understand what you meant. If you mean you want to use the Unity desktop Global Menu, you will likely have to use the Java Gnome Bindings