Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Image problems  RSS feed

 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Anywhere where I use images (when registering anew user, setting a personal image) I get an exception.

What is wrong with it? I have taken a look around and I see that there were many problems associated with images. However, I am not sure what that is.




Thank you
[originally posted on jforum.net by AnotherGuest]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the problem is access to graphic libraries.

If you are using Tomcat try adding -Djava.awt.headless=true on your catalina options.

Without this options on unix, graphics libraries are not available if your computer has X installed (or running I don't remember)
[originally posted on jforum.net by pala]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And Linux systems need at least the X11 base libraries loaded ...

[originally posted on jforum.net by GatorBait3]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have Feodra Core 5 installed.

I'll add -Djava.awt... in my catalina options and see how that works.

How do I load X11 libraries? I am not sure what those are.

Thank you.
[originally posted on jforum.net by AnotherGuest]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
AnotherGuest wrote:Hi,

I have Feodra Core 5 installed.

I'll add -Djava.awt... in my catalina options and see how that works.

How do I load X11 libraries? I am not sure what those are.

Thank you.

X11 is a graphical "windowing" application/library for Linux systems. Do a Google search for X11 and Fedora .... you will find links to RPMs to install for your version of Fedora. Or, if you are familiar with using the RPM installer to search for packages to install, search for X11 Base Library.

Since you are running it on a server, you don't need the entire X11 system/setup, but you do need the base libraries to handle and process images.

[originally posted on jforum.net by GatorBait3]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.
I'll try that out and see how that works.

[originally posted on jforum.net by AnotherGuest]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!